Tuesday 3 December 2019
Monday 4 November 2019
Tutorial 1.15: Gerber Files for Printed Circuit Board
Generate Gerber Files
1. In general, you will have a Gerber file for each layer of your board.
2. This means you will have a Gerber file for each of the front and back copper layers,
solder mask and silkscreen and so on.
3. In KiCad double click on the PCB Layout Editor and the Pcbnew
window opens.
4. In Pcbnew click on File then click on the Plot … icon
(icon with plotter with paper protruding).
5. The Plot window opens.
6. Click on the folder next to Output directory: and navigate to your project file.
7. Open a new file called Gerbers.
8. Click Select File.
Plot Window Settings
1. Under Included Layers check:
1.1. F.Cu.
1.2. B.Cu.
1.3. F.SilkS.
1.4. B.SilkS.
1.5. F.Mask.
1.6. B.Mask.
1.7. Edge.Cuts.
2. Under General Options check:
2.1. Plot footprint values.
2.2. Plot footprint references.
2.3. Exclude PCB edge layer from other layers.
3. In the Gerber Options area check the box next to
Use Protel filename extensions.
4. Eventually, the Plot window should be as shown in figure 1.15A below:
Fig. 1.15A: Plot Window |
5. Click Plot.
Output Messages
1. From the Output Messages it can be seen that the following plot files are created:
1.1. -F_Cu.gtl;
1.2. -B_Cu.gbl;
1.3. -F_SilkS.gto;
1.4. -B_SilkS.gbo;
1.5. -F_Mask.gts;
1.6. -B_Mask.gbs; and
1.7. -Edge_Cuts.gm1.
2. This can be seen in the Output Messages box shown in figure 1.15B below:
1.1. -F_Cu.gtl;
1.2. -B_Cu.gbl;
1.3. -F_SilkS.gto;
1.4. -B_SilkS.gbo;
1.5. -F_Mask.gts;
1.6. -B_Mask.gbs; and
1.7. -Edge_Cuts.gm1.
2. This can be seen in the Output Messages box shown in figure 1.15B below:
Fig. 1.15B: Files Generated Displayed in the Output Messages Box |
2. Click Save and save the report.txt file.
1. Click Generate Drill Files….
2. A Generate Drill Files window opens.
3. Select:
3.1. Excellon: PTH and NPTH in a single file.
3.2. Map File Format: PostScript.
3.3. Drill Origin: Absolute.
3.4. Drill Units: Inches.
3.5. Zeros Format: Decimal format.
4. Click Generate Drill File.
5. The Generate Drill Files window and the result can be seen in figure 1.15C below:
6. Click Generate Map File.
7. The result is shown in the Messages box of the Generate Drill Files window
shown in figure 1.15D below:
8. In the Messages box it is shown that the following files are created:
9. -drl_map.ps.
10. These files must be given to a manufacturer to manufacture your PCB.
11. Click Close to close the Generate Drill Files window.
12. Click Close again to close the Plot window.
Generate Drill File
2. A Generate Drill Files window opens.
3. Select:
3.1. Excellon: PTH and NPTH in a single file.
3.2. Map File Format: PostScript.
3.3. Drill Origin: Absolute.
3.4. Drill Units: Inches.
3.5. Zeros Format: Decimal format.
4. Click Generate Drill File.
5. The Generate Drill Files window and the result can be seen in figure 1.15C below:
Fig. 1.15C: Generate Drill Files Window and Result |
6. Click Generate Map File.
7. The result is shown in the Messages box of the Generate Drill Files window
shown in figure 1.15D below:
Fig. 1.15D: Results in Messages box of the Generate Drill Files |
8. In the Messages box it is shown that the following files are created:
9. -drl_map.ps.
10. These files must be given to a manufacturer to manufacture your PCB.
11. Click Close to close the Generate Drill Files window.
12. Click Close again to close the Plot window.
View the Gerber Files
Front Layer
1. In KiCad (5.1.2) click on Gerber Viewer (icon with black PCB and GBR written
on the lower right.
2. The Gerbview window opens.
3. Click File and click Open Excellon Drill File(s) … .
4. Select file with .drl extension.
5. This shows the component's legs holes and via holes as in figure 1.15E below:
Fig. 1.15E: Drill Files Showing Holes of Component's Legs and Via Holes |
6. Click File and click Open Gerber File(s) …
7. Select the file with – Edge_Cuts.gm1 file extension.
8. You should see the outline of the board as shown in figure 1.15F below:
Fig. 1.15F: Edge_Cuts File Showing Outline of Board |
9. Click File and click Open Gerber File(s) … .
10. Select the front silkscreen file or the file with the -F.SilkS.gto file extension.
11. The front silkscreen file can be seen in figure 1.15G below:
12. From the above, you can see the holes and vias line up with the silkscreen.
13. Click File and click Open Gerber File(s) … .
14. Select the front copper file or the file with the -F_Cu.gtl file extension.
15. The front copper file is now added to the previous files as shown in figure 1.15H
below:
16. Click File and click Open Gerber File(s) … .
17. Select the front solder mask file or the file with the -F_Mask.gts file extension.
18. Turn off the front copper layer file by unselecting the checkbox.
19. Otherwise, you won't see the front solder mask file.
20. The front solder mask file is now also added to the previous files and can be seen
in figure 1.15I below comprising brown-red circles and squares:
22. Remember the files with the F.Mask and B.Mask extensions define the area
that is free of solder mask.
23. It is the negative of the resulting solder mask film that covers the board.
24. The brown-red circles and squares show where the solder will be deposited
in order to connect the components.
1. Repeat the process for the back layers.
6. Click File and click Open Gerber File(s) … .
7. Open the back-solder mask file or the file with the -B_Mask.gbs file extension.
8. The back-solder mask file is where the back-solder mask file -B_Mask.gbs file should
line up with the drill hole layer as shown in figure 1.15J below:
9. Also, load the back copper and back silkscreen files.
10. In figure 1.15K below is shown the drill hole layer. solder mask layer and back
copper layer.
11. Check that everything lines up.
12. As you open the files, they are allocated to a Graphic layer by a number which
is indicated by the Layers Manager window on the right.
13. In the Layers Manager, you can select a layer by clicking on the blue diamond
on the left.
14. You can also by selecting the checkbox of a layer display the layer or by deselecting
not display a particular layer.
15. By turning the layers on and off you can check if everything lines up.
16. When finished close Gerbview.
11. The front silkscreen file can be seen in figure 1.15G below:
Fig. 1.15G: Front Silk Screen |
13. Click File and click Open Gerber File(s) … .
14. Select the front copper file or the file with the -F_Cu.gtl file extension.
15. The front copper file is now added to the previous files as shown in figure 1.15H
below:
Fig. 1.15H: Front Copper File Showing the Front Copper Track or Layer |
16. Click File and click Open Gerber File(s) … .
17. Select the front solder mask file or the file with the -F_Mask.gts file extension.
18. Turn off the front copper layer file by unselecting the checkbox.
19. Otherwise, you won't see the front solder mask file.
20. The front solder mask file is now also added to the previous files and can be seen
in figure 1.15I below comprising brown-red circles and squares:
Fig. 1.15I Front Solder Mask Shown With Front Copper Turned Off |
22. Remember the files with the F.Mask and B.Mask extensions define the area
that is free of solder mask.
23. It is the negative of the resulting solder mask film that covers the board.
24. The brown-red circles and squares show where the solder will be deposited
in order to connect the components.
25. As you open the layer files, they are allocated to a Graphic layer by a number
which is indicated by the Layers Manager window on the right.
26. In the Layers Manager, you can select a layer by clicking on the blue diamond on
the left.
27. You can also by selecting the checkbox of a layer display the layer or by
deselecting not display a particular layer.
28. When finished close Gerbview.
which is indicated by the Layers Manager window on the right.
26. In the Layers Manager, you can select a layer by clicking on the blue diamond on
the left.
27. You can also by selecting the checkbox of a layer display the layer or by
deselecting not display a particular layer.
28. When finished close Gerbview.
Repeat For the Back Layers
2. Once again click File and click Open Excellon Drill File(s) … .
3. Select file with .drl extension.
4. Also, select the file with – Edge_Cuts.gm1 file extension so you can see the outline
of the board.
4. Also, select the file with – Edge_Cuts.gm1 file extension so you can see the outline
of the board.
5. This shows the component's legs holes and via holes as in figure 1.15E above:
6. Click File and click Open Gerber File(s) … .
7. Open the back-solder mask file or the file with the -B_Mask.gbs file extension.
8. The back-solder mask file is where the back-solder mask file -B_Mask.gbs file should
line up with the drill hole layer as shown in figure 1.15J below:
Fig. 1.15J: Back Solder Mask Layer Lines Up With Drill Hole File |
9. Also, load the back copper and back silkscreen files.
10. In figure 1.15K below is shown the drill hole layer. solder mask layer and back
copper layer.
Fig. 1.15K: Drill Layer Back Solder Mask and Copper Layer |
11. Check that everything lines up.
12. As you open the files, they are allocated to a Graphic layer by a number which
is indicated by the Layers Manager window on the right.
13. In the Layers Manager, you can select a layer by clicking on the blue diamond
on the left.
14. You can also by selecting the checkbox of a layer display the layer or by deselecting
not display a particular layer.
15. By turning the layers on and off you can check if everything lines up.
16. When finished close Gerbview.
Sunday 3 November 2019
Tutorial 1.14: Place Footprints, Draw Board, Route Tracks
Place Footprints and Draw Outline of PCB
Place Footprints
2. Right-click and select Move.
3. Move the footprints apart.
4. The white lines are called air wires.
5. They are collectively known as a rat’s nest.
6. Move and rotate footprints until you have the least number of air wire crossings.
7. I follow the circuit drawing in my placing of footprints.
8. After placement of the footprints, it should be as in figure 1.14A below:
Fig. 1,14A: After Placement of The Footprints
Draw Board Edge or Outline of Printed Circuit Board (PCB)
2. Click on the Place menu and select Line.
3. You can also on the right click on the icon with blue lines connected by green dots
4. Draw a box around the components to form the outline PCB.
1. Select the left vertical line and right-click.
2. Select Properties … E.
3. Line Properties window opens.
4. Set
4.1. Start point X: 4,1 in
4.2. Start point Y: 5,3 in
4.3. End point X: 4,1 in
4.4. End point Y: 3,2 in
4.5. Item thickness: 5,0 mils
4.6. Layer: Edge.Cuts
4.7. Click OK.
4. Draw a box around the components to form the outline PCB.
Draw Left Vertical Line
2. Select Properties … E.
3. Line Properties window opens.
4. Set
4.1. Start point X: 4,1 in
4.2. Start point Y: 5,3 in
4.3. End point X: 4,1 in
4.4. End point Y: 3,2 in
4.5. Item thickness: 5,0 mils
4.6. Layer: Edge.Cuts
4.7. Click OK.
Draw Top Horizontal Line
1. Select the left vertical line and right-click.
2. Select Properties … E.
3. Line Properties window opens.
4. Set
4.1. Start point X: 4,1 in
4.2. Start point Y: 3,2 in
4.3. End point X: 7,7 in
4.4. End point Y: 3,2 in
4.5. Item thickness: 5,0 mils
4.6. Layer: Edge.Cuts
4.7. Click OK.
2. Select Properties … E.
3. Line Properties window opens.
4. Set
4.1. Start point X: 4,1 in
4.2. Start point Y: 3,2 in
4.3. End point X: 7,7 in
4.4. End point Y: 3,2 in
4.5. Item thickness: 5,0 mils
4.6. Layer: Edge.Cuts
4.7. Click OK.
Draw Right Vertical Line
1. Select the left vertical line and right-click.
2. Select Properties … E.
3. Line Properties window opens.
4. Set
4.1. Start point X: 7,7 in
4.2. Start point Y: 5,3 in
4.3. End point X: 7,7 in
4.4. End point Y: 3,2 in
4.5. Item thickness: 5,0 mils
4.6. Layer: Edge.Cuts
4.7. Click OK.
10. Now do the same for the Back Copper (B.Cu) layer.
11. Also select ground GND.
12. This project does not have a VCC Net.
13. In the end, the filled back copper layer should look something like in figure 1.14F below.
Fig. 1.14F: Filled Back Copper Layer
1. Select Add ext to copper layers or graphic text the T icon and B.SilkS layer.
2. Type “V-01”.
3. The copper fill on the back copper layer and the version number is shown in
figure 1.14G below:
Fig. 1.14G: Version Numer V-01 on Back Silk Screen
2. Select Properties … E.
3. Line Properties window opens.
4. Set
4.1. Start point X: 7,7 in
4.2. Start point Y: 5,3 in
4.3. End point X: 7,7 in
4.4. End point Y: 3,2 in
4.5. Item thickness: 5,0 mils
4.6. Layer: Edge.Cuts
4.7. Click OK.
Draw Bottom Horizontal Line
1. Select the left vertical line and right-click.
2. Select Properties … E.
3. Line Properties window opens.
4. Set
4.1. Start point X: 4,1 in
4.2. Start point Y: 5,3 in
4.3. End point X: 7,7 in
4.4. End point Y: 5,3 in
4.5. Item thickness: 5,0 mils
4.6. Layer: Edge.Cuts
4.7. Click OK.
1. Move the footprints onto the board.
2. The circuit with the current in each track is shown in figure 1.14B below:
3. Once again spread the footprints that you have a minimum of crossings
on the board.
1. It should be kept in mind when routing the tracks the pads of the surface-mounted
2. Select Properties … E.
3. Line Properties window opens.
4. Set
4.1. Start point X: 4,1 in
4.2. Start point Y: 5,3 in
4.3. End point X: 7,7 in
4.4. End point Y: 5,3 in
4.5. Item thickness: 5,0 mils
4.6. Layer: Edge.Cuts
4.7. Click OK.
Move Footprints onto the Board
1. Move the footprints onto the board.
2. The circuit with the current in each track is shown in figure 1.14B below:
![]() |
Fig, 1.14B: Circuit with Current In Each Track |
3. Once again spread the footprints that you have a minimum of crossings
on the board.
Route The Tracks
components are on the front copper layer.
2. These pads are therefore only directly accessible on the front copper layer.
3. It is the layer indicated by a maroon, brown-reddish color, and abbreviated F. Cu.
4. The through-hole components are accessible on both the front and back copper layer.
5. The back copper layer is indicated with a green color and abbreviated as B. Cu.
For Maximum of 2A Tracks
1. For a maximum of 2A in Pcbnew select from the above dropdown list:
Track: 22,00 mils (0,559 mm) and Via: 36,0/18 mils (0,91/0,46mm)
2. Click on Route tracks icon.
3. It is the icon on the right with the green squiggly line.
4. Then do the power tracks mostly on the Front Copper (F.Cu) layer.
1. Now do the low current (below 100mA) signal tracks.
2. In Pcbnew select from the above dropdown list:
Track: 10,00 mils (0,254 mm) and Via: 20,0/10,0 mils (0,51/0,25mm)
3. Click on Route tracks icon.
4. It is the icon on the right with the green squiggly line from the top left corner to
the right bottom corner.
5. Then do the signal tracks on the Back Copper (B.Cu) layer.
6. Do not do the ground connections at this stage.
7. Use vias to jump over tracks if you have to.
8. The circuit with the routed tracks is shown in figure 1.14C below:
Fig. 1.14C: Circuit With Routed or Traced Tracks
9. The white lines or air wires are the ground connections which will be connected with a
copper fill.
1. Select the Front Copper (F.Cu) layer.
2. Select the Filled zones tool on the right.
3. It is the icon with a square green background and a grey annular pad and track.
4. Click on the viewing area.
5. The Copper Zone Properties window opens as shown in figure 1.14D below.
6. Under Net select GND.
7. Click OK.
8. Draw the fill rectangle close around the outer edge of the board
9. Double click to end selection.
2. Click on Route tracks icon.
3. It is the icon on the right with the green squiggly line.
4. Then do the power tracks mostly on the Front Copper (F.Cu) layer.
For Maximum of 100mA Tracks
1. Now do the low current (below 100mA) signal tracks.
2. In Pcbnew select from the above dropdown list:
Track: 10,00 mils (0,254 mm) and Via: 20,0/10,0 mils (0,51/0,25mm)
3. Click on Route tracks icon.
4. It is the icon on the right with the green squiggly line from the top left corner to
the right bottom corner.
5. Then do the signal tracks on the Back Copper (B.Cu) layer.
6. Do not do the ground connections at this stage.
7. Use vias to jump over tracks if you have to.
8. The circuit with the routed tracks is shown in figure 1.14C below:
Fig. 1.14C: Circuit With Routed or Traced Tracks
9. The white lines or air wires are the ground connections which will be connected with a
copper fill.
Copper Fill
Front Copper Layer
2. Select the Filled zones tool on the right.
3. It is the icon with a square green background and a grey annular pad and track.
4. Click on the viewing area.
5. The Copper Zone Properties window opens as shown in figure 1.14D below.
Fig. 1.14D: Copper Zone Properties |
6. Under Net select GND.
7. Click OK.
8. Draw the fill rectangle close around the outer edge of the board
9. Double click to end selection.
10. The filled Front Copper (F.Cu) layer should look as in figure 1.14E below.
Fig. 1.14E: Filled Front Copper Layer
Back Copper Layer
10. Now do the same for the Back Copper (B.Cu) layer.
11. Also select ground GND.
12. This project does not have a VCC Net.
13. In the end, the filled back copper layer should look something like in figure 1.14F below.
Fig. 1.14F: Filled Back Copper Layer
Place Version Number
2. Type “V-01”.
3. The copper fill on the back copper layer and the version number is shown in
figure 1.14G below:
Fig. 1.14G: Version Numer V-01 on Back Silk Screen
4. A close-up of the copper fill on the back copper layer and the version number is shown in
figure 1.14H below:
Fig. 1.14H: Close-Up of Version Number V-01 on Back Silk Screen
Previous: Tutorial 1.13 Track or Trace Clearance, Conductor Spacing, Vias, Design Rules
figure 1.14H below:
Fig. 1.14H: Close-Up of Version Number V-01 on Back Silk Screen
Previous: Tutorial 1.13 Track or Trace Clearance, Conductor Spacing, Vias, Design Rules
Thursday 31 October 2019
Tutorial 1.13 Track or Trace Clearance, Conductor Spacing, Vias, Design Rules
Generate and Import Netlist
Generate Netlist
1. In Eeschema click on Generate netlist icon.
2. The netlist is generated.
The Layout of the Pcb
1. In KiCad (5.1.2) click on the PCB Layout Editor icon (i.e. the icon with gold PCB
board tracks).
2. A window opens with heading Pcbnew.
3. Click File and click Page settings.
4. A Page Settings window opens.
5. Fill in:
5.1 Revision: Version 01.
5.2 Title: Switching Regulator Controller LTC1624CS8.
5.3 Comment4: Your Name.
5.4 Click OK.
6. Click on Set units to inches icon, it is on the left, the icon with "in"
and an omnidirectional arrow below it.
7. Set Grid: 50,00 mils (1,2700mm) on the horizontal drop-down menu at the top.
Import Netlist
1. Click Tools and the Load Netlist … .
2. The Netlist window opens.
3. In the Netlist file: navigate to the TutorialName.net file.
4. Click Update PCB.
5. Click Close.
6. In PCB Layout Editor or Pcbnew, you should now see the footprint of the PCB and
thin white lines connecting the footprints.
7. The white lines are called a rat’s nest.
Minimum Design Rules:
OSHPARK1. Go to OSHPARK Fabrication Services
2. For a two-layer board their minimum design rules are shown in figure 1.13A below:
![Oshpark two layer board design rules Oshpark-two-layer-board-design-rules](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj7VLj_Di_i_-JYZgZ2fatfH0Kgf895BBPYLvL0gDHe2yq7OILdXSKI07k0T9yAAfeB_rDYptN777p3spXwUmHz0eVYqeTd_pFP7SxnsnrjPFu5h9pGnAFVhJzb1TUHQ_0o2mDKzKYUXtT4/d/OSHPARKMINDESIGNRULES.png)
Fig. 1.13A: Oshpark Minimum Design Rules
3. Thus the minimum design rules as stated by OSHPARK are:
3.1. Trace clearance = 6 mil (0.1524mm).
3.2. Trace width = 6 mil (0.1524mm).
3.3. Drill size = 10 mil (0.254mm).
3.4. Annular ring = 5 mil (0.127mm).
Aisler
Minimum Design Rules
1. The minimum design rules as set out by Aisler are as shown in figure 1.13B below:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjkh4fqc84fxJEhgjZiAomLw_G7OhU7Afp7VD5tqWNYkh4k7_q6Y2IkS3djvxr4EFz-aZRwSV8bbdrh4dVNHfTOoXkJwvdOmM5wHyQgEAVl11UAbeMjjKewU_VCVqtRbAPORLv9RMjN9Z_H/s640/Aisler1.png)
Fig 1.13B: Aisler Minimum Design Rules
2. Minimum trace width is 100um or 3.937mils say 4mils.
3. The minimum via diameter is 200um or 7.874mils or 8mil.
4. The minimum via diameter is 0.4mm or 16mil.
5. 300um = 11.811mils.
Trace, Track Clearance or Conductor Spacing and Vias
You can view this video on YouTube by clicking on: Trace, Track Clearance and Vias for PCB.
Trace, Track Clearance or Conductor Spacing
1. The IPC-2221A Generic Standard on Printed Board Design of May 2003 on
page 43 published the following table 6-1 regarding the minimum conductor spacing.
2. It is shown in figure 1.13C below:
![IPC-2221A Table 6-1Electrical Conductor Spacing IPC-2221A Table 6-1 Electrical Conductor Spacing](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiksLqdQXd2sO4yqgeFZUpUER92HmjhXYhs9a9JYkCSFB1VtDvrlHdt9Gup_GroRcUxWm6PJ_p17z8DYVR7rVERI1TFmEn9ChW_Yvi-L_1Qe0_mT6615d0MOq8xxT1C75gIDjn6ilIQ41s2/w640-h486/IPC-2221A.png)
Fig. 1.13C: IPC-2221A Table 6-1 On Electrical Conductor Spacing
3. In figure 1.4B we saw that the highest peak voltage we measured was just below
18 volts.
4. So, if we choose Voltage Between Conductors (AC Peaks) in the second row
16-30 volts and in column A6 the Electrical Conductor Minimum Spacing is given
as 0.25 mm or 0.00984 in or 9.843 mils let say 10mils.
KiCad
1. This table is also available in KiCad itself.
2. Click on PCB Calculator and the on the Electrical Spacing tab.
3. You will see the following in figure 1.13D below:
![KiCad electrical conductor spacing KiCad electrical conductor spacing](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg86PUPoJwz-U5s8rrLC4RmiaRJzySd6g3cWgDpAh9Y1H8Ao-HRhONx2ye9Gtv0sxjn3cc9rOXbSOy1csXzXlNTp2NB-7IpA-f0gX_40HNucBJl81U6nbR3NTMIvBqp3bWJyHc4QKkIt6Yw/w640-h411/KiCad+Table.png)
Fig. 1.13D: KiCad Electrical Spacing
4. In the 16-30V row and A6 column it is given as 0.25 mm, or 250 um or 9.843 mils.
Saturn PCB Design, PCB Toolkit V7.8
1. In the Saturn PCB Design, PCB Toolkit V7.8 click on the Conductor Spacing tab.
2. In the Minimum Conductor Spacing box and in Voltage Between Conductors
select 16 - 30.
3. In Device Type Selection select A6 – Assembly.
4. You should see the following in figure 1.13E:
![]() |
Fig. 1.13E: Saturn PCB Conductor Spacing |
5. According to the Saturn PCB Design toolkit the minimum conductor spacing that
should be used is thus 0.25mm or 9.84mils.
6. This complies with the IPC-2221A Generic Standard on Printed Board Design
of May 2003.
7. This also complies with the Kicad PCB Calculator and the on the Electrical Spacing
8. The minimum trace clearance that can be manufactured by Oshpark is
0.1524mm or 6mil and can, therefore, manufacture the PCB.
9. The minimum spacing trace to trace that can be manufactured by Aisler is
100um or 0.100mm or 3.937mils and can, therefore, manufacture the PCB.
8. The minimum trace clearance that can be manufactured by Oshpark is
0.1524mm or 6mil and can, therefore, manufacture the PCB.
9. The minimum spacing trace to trace that can be manufactured by Aisler is
100um or 0.100mm or 3.937mils and can, therefore, manufacture the PCB.
Vias
1. For the 2A conductor group in the Saturn PCB Design, toolkit select the
Via Properties tab.
2. Set
2.1 Layer Set = 2 Layer.
2.2 Temp Rise (C) = 10.
2.3 Via Height = 62 mils.
2.4 Via Plating Thickness 1 mils.
3. Now adjust Via Hole Diameter = 18 mils so that Via Current is equal to
approximately 2.00 Amps.
4. See the results in figure 1.13F below:
![]() |
Fig. 1.13F: Saturn PCB Toolkit To Calculate Via |
5. For the 100mA conductor group in the Saturn PCB Design, toolkit select the
Via Properties tab.
6. Set:
6.1 Layer Set = 2 Layer.
6.2 Temp Rise (C) = 10.
6.3 Via Height = 62 mils.
6.4 Via Plating Thickness 1 mils.
7. We want to calculate the hole diameter for 100mA current.
8. Now if we adjust Via Hole Diameter = 5 mils so that Via Current is
equal to approximately 1.1795 Amps as shown in figure 1.13G below.
![]() |
Fig. 1.13G: Via Diameter For 100mA Group |
0.254mm or 10 mil.
10. For Aisler for vias, the minimum via diameter is 0.2mm or 8mil and the
corresponding pad diameter should be at least 0.4mm or 16mil.
How Does The Solder Mask And Solder Mask Layer Work?
Solder Mask
1. Solder mask itself or solder stop mask or solder resist is a thin layer that is
applied to a printed circuit board or (PCB).
2. It is usually dark green or sometimes purple.
3. It is a physical substance applied to the printed circuit board.
4. There are holes in this mask or this layer that expose parts of the printed circuit board.
5. These holes in general expose the copper pads to which the components wire
are soldered.
6. These holes also expose parts of the printed circuit board itself.
Solder Mask Layer
1. The solder mask layer on the other hand is used to deposit the solder mask on the
printed circuit board.
2. It is said this solder mask layer is the negative of the solder mask.
3. A good explanation can found at:
4. As mentioned there are holes in the solder mask (physical layer on the printed
circuit board) that expose the printed circuit board.
5. There are two very important parameters of a solder mask. They are:
5.1 solder mask clearance, and
5.2 solder mask minimum width.
6. This is shown in figure 1.13H below:
7. What is shown in figure 1.13H above as:
7.1 Mask clearance, is in fact, the solder mask clearance. It is the
distance between the edge of the mask and the edge of the copper pad.
7.2 Mask web/dam/bridge (width here 0.148mm), is in fact, the
solder mask minimum width. It is the minimum width that the solder mask
can be.
8. In KiCad the solder mask layer is represented by a graphical layer.
9. As mentioned this graphical solder mask layer of the solder mask is a negative
of the solder mask itself on the printed circuit board.
9
10. This means where there are graphics in the solder mask layer (something that
blocks the layer) the physical solder mask itself is not applied to the printed circuit board.
11. It also means where there are graphics there is an opening in the solder mask on
the printed circuit board and the printed circuit board is exposed.
12. The solder mask minimum width seen in fig. 1.13I the minimum width that can
be tolerated between the graphical items on the solder mask layer.
13. Shown in figure 1.13J below is shown what happens if the space between graphic
items is less that than the solder mask minimum width.
14. As can be seen, the too-thin parts between the graphic items are removed and
the area is merged in the Gerber files into a larger blob.
15. This solder mask layer minimum width has to do with the PCB manufacturer's
capability to create the required minimum width.
16. OSHPark has the following design rule setup for KiCad solder mask clearance shown
in figure 1.13K below:
17. The solder mask minimum width given by OSHPark is described as the
minimum soldermask web and is given as 4 mil (0.1016mm) as shown in figure 1.13L below.
Fig. 1.13L: OSHPark Solder Mask Minimum Width |
18. The minimum recommendations by OSHPark are, therefore:
18.1 Solder mask clearance = 0.0508mm or 0.002in or 2mils.
18.2 Solder mask minimum width = 0.101mm or 0.004in or 4mils.
19. The recommendation in KiCad Pcbnew of May 25, 2020, is given in
figure 1.13M below:
1. The solder mask also called solder resist is used to stop solder from forming on
the traces.
2. In general, a solder mask opening is set so that it is 4mils larger than the
copper pad it is exposing or the opening is 2mils larger on each side.
Setup Design Rules
2. The Board Setup window opens.
3. Follow the recommendations of the PCB manufacturer.
"Global Design Rules tab".
5. Under Design Rules click on Solder Mask/Paste
6. Set:
6.1. Solder mask clearance: 2 mils.
6.2. Solder mask minimum width: 4 mils.
6.3. Click OK.
7. See figure 1.13H below:
![]() |
Fig. 1.13G: Solder Mask Clearance and Width |
8. In Pcbnew click File click Board Setup… .
9. Board Setup window opens.
10. Click on Design Rules.
11. Leave Allow blind/buried vias unchecked.
12. Leave Allow micro vias (uVias) unchecked.
13. Set Minimum track width: 6,0 mils (Oshpark).
14. Set Minimum via diameter: 20,0 mils (Use Oshpark minimum drill at 10,0mils
and double it).
15. Set Minimum via drill: 10,0 mils (Use Oshpark minimum drill at 10,0mils).
16. Set Minimum uVia diameter: 20,0 mils.
17. Set Minimum uVia drill: 10,0 mils.
radii if 2 different drills are used)
19. See figure 1.13I below for design rules setup:
1. In the Board Setup window and under Design Rules click on Net Classes.
2. In general, you must try and make your tracks a bit wider than the minimum width.
3. Set:
3.1. Name: Default
3.2. Clearance: 10 mils.
3.3. Track Width: 10 mils.
3.4. Via Size: 30 mils.
3.5. Via Drill: 15 mils.
3.6. uVia Size: 30 mils.
3.7. uVia Drill: 15 mils.
2. Set:
2.1. Name: Signal
2.2. Clearance: 10 mils. (as discussed above)
2.3. Track Width: 10 mils. (as discussed in tutorial 1.12 Trace or Conductor
Width Calculation for PCB a conductor width of 4 mils can conduct
0.3378A. However, the minimum trace width of Oshpark is 6mils
but let's make it 10mils ).
2.4. Via Size: 20 mils. (Based on via drill = 10mil x 2 = 20mil).
2.5. Via Drill: 10 mils. (Oshpark minimum drill size that can be manufactured
is 10mil).
2.6. uVia Size: 20 mils.
2.7. uVia Drill: 10 mils.
![]() |
Fig. 1.13I: Design Rules Setup |
Net Classes
Default
1. In the Board Setup window and under Design Rules click on Net Classes.
2. In general, you must try and make your tracks a bit wider than the minimum width.
3. Set:
3.1. Name: Default
3.2. Clearance: 10 mils.
3.3. Track Width: 10 mils.
3.4. Via Size: 30 mils.
3.5. Via Drill: 15 mils.
3.6. uVia Size: 30 mils.
3.7. uVia Drill: 15 mils.
Below 100mA Current Group signal
S
1. For maximum current of 100mA.2. Set:
2.1. Name: Signal
2.3. Track Width: 10 mils. (as discussed in tutorial 1.12 Trace or Conductor
Width Calculation for PCB a conductor width of 4 mils can conduct
0.3378A. However, the minimum trace width of Oshpark is 6mils
but let's make it 10mils ).
2.4. Via Size: 20 mils. (Based on via drill = 10mil x 2 = 20mil).
2.5. Via Drill: 10 mils. (Oshpark minimum drill size that can be manufactured
is 10mil).
2.6. uVia Size: 20 mils.
2.7. uVia Drill: 10 mils.
Below 2A Current Group
Power
1. For a Maximum Current of 2A
2. Set
2.1. Name: Power
2.2. Clearance: 10 mils. (as discussed above)
2.3. Track Width: 22 mils. (as discussed in tutorial 1.12 Trace or Conductor
Width Calculation for PCB ).
2.4. Via Size: 36 mils. (Based on via drill = 18mil x 2 = 36mil).
2.5. Via Drill: 18 mils. (As calculated above.)
2.6. uVia Size: 36 mils.
2.7. uVia Drill: 18 mils.
5. In the end, the net classes should be as in figure 1.13J below:
Net Class: Signal (Below 100mA)
2. Set
2.1. Name: Power
2.2. Clearance: 10 mils. (as discussed above)
2.3. Track Width: 22 mils. (as discussed in tutorial 1.12 Trace or Conductor
Width Calculation for PCB ).
2.4. Via Size: 36 mils. (Based on via drill = 18mil x 2 = 36mil).
2.5. Via Drill: 18 mils. (As calculated above.)
2.6. uVia Size: 36 mils.
2.7. uVia Drill: 18 mils.
3. dPair stands for differential pair.
4. We do not have a differential pair I this circuit thus we do have to concern us with
dPair.
Fig. 1.13J: Net Classes |
Net Class: Signal (Below 100mA)
1. By studying the circuit diagram the only track that can safely said to fall in the signal class
is the track in which capacitor C3 appears.
2. It is described in the net having capacitor C3 pad 1 and the net having capacitor C3 pad 2.
3. These two tracks should therefore be allocated to the net class Signal.
4. Net Class Signal and the two nets allocated to the class is shown in figure 1.13K below:
Fig. 1.13K: Net Class Signal With Two Nets C3-Pad1 and C3-Pad2
Net Class: Power (Below 2A)
1. The rest of the tracks are classified to fall in the below 2A category.
2. While it is true that there are other tracks that also fall in the below 100mA category this
approach is the safest especially if you build the circuit for the first time.
3. Net Class Power and the nets allocated to the class is shown in figure 1.13L below:
Tracks and Vias
1. Select Tracks & Vias
2. Under Tracks Width type 22 mils and 10 mils.
3. Under Vias Size type 36 mils and 20 mils.
4. Under Vias Drill type 18 mils and 10 mils.
2. Under Tracks Width type 22 mils and 10 mils.
3. Under Vias Size type 36 mils and 20 mils.
4. Under Vias Drill type 18 mils and 10 mils.
5. It should look like figure 1.13K below:
Previous: Tutorial 1.12: Trace, Track or Conductor Width Calculation for PCB
Next: Tutorial 1.14: Place Footprints, Draw Board, Route Tracks
Fig. 1.13K: Track Width Via Size and Drill. |
Previous: Tutorial 1.12: Trace, Track or Conductor Width Calculation for PCB
Next: Tutorial 1.14: Place Footprints, Draw Board, Route Tracks
Subscribe to:
Posts (Atom)