fossasia / pslab-hardware

PSLab Hardware Design and Schematics https://pslab.io
Apache License 2.0
1.64k stars 92 forks source link

Modify schematic library proto1.lib to comply with KiCAD's library testing utility #17

Closed jithinbp closed 6 years ago

jithinbp commented 7 years ago

PSLab KiCAD/proto1.lib does not currently pass the automatic schematic library testing utility provided by KiCAD. The following procedure can be followed to check the errors

git clone https://github.com/KiCad/kicad-library-utils 
sudo kicad-library-utils/schlib/checklib.py <path to PSLab\ KiCAD>/proto1.lib 

at present, violations of the following nature are shown by the checklib.py utility

Checking symbol 'myUSBMB':
  Violating Rule 4.10 - Part metadata
  Violating Rule 4.12 - Footprint filters
  Violating Rule 4.2 - Symbol visual style
  Violating Rule 4.5 - Pin orientation
  Violating Rule 4.9 - Default fields
Checking symbol 'tp':
  Violating Rule 4.1 - Pin placement
  Violating Rule 4.10 - Part metadata
  Violating Rule 4.12 - Footprint filters
  Violating Rule 4.8 - Field text size
  Violating Rule 4.9 - Default fields

issue #11 will need this to be addressed first

jithinbp commented 7 years ago

A pretty amazing blog post of what can be achieved using travis can be found here It explains how travisCI can be used to automatically generate and display the CAD rendering in the README doc Example README

jithinbp commented 7 years ago

an automatic render of the schematic can also be made. tutorial

CloudyPadmal commented 7 years ago

We'll have to follow a similar procedure in KiCAD right since it is a CAD tool? :)

jithinbp commented 7 years ago

First goal is to get the libraries to be accepted by the automatic script, otherwise we will keep getting build errors with Travis. I am unable to find the rule list, and how to correct them. using trial and error. e.g. , Violating Rule 4.1 - Pin placement is not verbose enough. The schematic works fine with KiCAD, but is somehow not accepted by the checking utility. Please share the rule list if you find one. I have found a few Travis logs for failed builds from other projects, and am locating sources for the builds that passed , so that I can compare the same with our library.

The blog posts I had linked to can be stretch goals. It uses Travis to generate and upload the latest render to a cloud link, and the same is embedded in the README.md

CloudyPadmal commented 7 years ago

Sure! I'll share if a rule list is found! :+1:

CloudyPadmal commented 6 years ago

Travis build is now passing with library-check.sh of KiCAD utilities repo, this issue can be closed!