This article will discuss the process of adding part libraries and DRC rule files to KiCad. The repository for all of the MacroFab specific KiCad files can be found on our Github here. Instructions covering how to clone the repository onto your computer can be found here.
Importing MacroFab Part Libraries into KiCad
Once you have the MacroFab EDALibraries github repository cloned to your computer, open the PCB footprint editor:
In the footprint editor, click on Preferences and then click on Footprint Libraries Wizard:
In the Footprint Libraries Wizard, select “Files on my computer” and click Next:
On the next page, locate the KiCad footprints cloned from the MacroFab/EDALibraries repository:
Click Next again, and finally on the last page, select if you want to add the libraries globally (for all projects) or only for the current project. Click Finish, and the MacroFab footprint library is now added to KiCad. Next, to add the schematic symbols libraries open the Schematic Library Editor:
Click Preferences, and then click on Component Libraries:
In this window, click on Add:
Select all of the schematic symbol libraries cloned from the MacroFab/EDALibraries repository:
Click Open and then OK, and the schematic symbol libraries are now added to KiCad.
Using MacroFab design rules in KiCad
Unfortunately, KiCad does not support the importing of Design Rule Files, so these values will have to be typed in manually. Within the layout editor pcbnew (these design rules are unique to each .kicad_pcb file), click on Design Rules and then click on Design Rules again:
In the design rules settings, there are two tabs. The first tab is your Net Classes Editor. These classes can be assigned to the nets on your board to assign different sets of traces different sets of design rules to use while routing. The next figure shows all four possible Net Classes for PCBs assembled at MacroFab.
The Default Net Class can be left at its default vaules and the values for uVias can be ignored. The four new Net Classes correspond to the four sets of design rules at MacroFab. You most likely only need to add one of these Net Classes according to the specs of your design. These Net Classes can be assigned to any of the nets on your PCB in the Membership pane.
In the next tab are Global Design Rules. These should be manually set to which ever MacroFab manufacturing specifications your design uses (or more generally, to the minimum values of all your Net Classes). Values in your Net Classes, or anything on the board cannot violate these global design rules. For an example, I edited these values to correspond to our standard manufacturing specifications:
Once you are done, click OK and your KiCad project is ready to use MacroFab’s design rules!