Before reading this, review Peralta Lab PCB Mill Specs. We will pull information from there to set up PCB design rules in KiCAD. There are a few setting that are recommended above the actual mill capabilities. This knowledge may come in handy if you have a particular component that does not fit into the recommended settings.
Open PCB editor
Set grid scale to mils – This will allow us to set the design rules using mils instead of mm.
Figure |
**
**
File>Board Setup>Design Rules>Constraints
Click file, select Board setup. When the Board Setup window pops up, find the Constraints section under Design rules on the left side of the window.
Default Settings |
The window should look like this. These are the setting we will be changing.
Figure |
Chance your settings to look like this. See explanation of changes below.
Updated Settings |
Minimum clearance – the minimum amount of space between two copper traces.
Min track width – the minimum width of copper traces on your PCB
Min annular ring width – Minimum copper ring around a through hole. When you create your footprints, larger is better but for the design rules we want the minimum allowable.
Minimum via diameter – a via is a plated through hole that is used to route a trace from one layer of the board to another.
Minimum Copper to hole clearance – this is the clearance between a copper plane or trace and a through hole annular ring. A Larger clearance helps ensure no shorts during soldering.
Hole to hole clearance – This is a package parameter called pitch. Pitch is the distance between pins on a component (header, IC, MCU, etc.).
Leave the rest default
In the Solder Mask/Paste tab, set the Solder mask clearance to 5 mils. This will ensure that the solder mask does not end up on top of a pad, preventing you from soldering to it.
Figure |
Now you are ready to start designing your PCB. When you want to check you board for any design rules violations, click inspect at the top of the window and select Design Rules Checker.
Click on Run DRC at the bottom right of the window. This will check the PCB design for the rules we assigned and provide a list of errors and warning that need to be fixed.
Figure |