A hands-on guide to KiCad Design
For BotFactory Printers
The following guide will describe the steps needed to create and upload a circuit using an open source CAD tool, KiCAD. The guide is not meant to be a KiCad tutorial, but will teach you the tips and tricks to create and export designs that will work with BotFactory printers.
What is a CAD tool?
A Computer Aided Design (CAD) tool is used by architects, engineers, drafters and designers to create precision drawings or technical illustrations. Instead of designing a circuit on paper and manually arranging the components, it can be done automatically with a CAD tool.
There are many different electrical CAD tools available, both free and paid. This guide will use KiCAD, an open source software that is available as a free download.
Before you begin
You need the following:
- KiCAD installed (Download)
- A schematic of the circuit you wish to make (.sch)
- Footprint library if you are using custom footprints
Creating a Project
When you launch KiCAD, a existing project may or may not be pre-loaded depending on where you previously left off. We are going to ignore the existing project and create a new one.
- Navigate to File > New > Project
- Give your project a name
- Save the project in your desired directory
The Schematic Editor
Define the logic and architecture of your design
Schematic Editor
A schematic is a graphical representation of the logic and architecture of an electrical circuit. It shows the components and interconnections of the circuit using standardized symbolic representations. Look for the icon as shown on the right, and launch the schematic layout editor
Importing your Schematic
If you already have an schematic, KiCAD supports importing existing schematics, as long as they are in a .sch format.
- Navigate to File > Append Schematic Sheet
- Select the .sch file and upload
Symbol Annotation
Once your schematic is complete, we need to Annotate it. The annotation process will assign a unique identifier to each component of the circuit also know as a “Reference Designator” or “RefDes” for short.
- Look for the icon labeled “Annotate schematic symbols” as shown on the right
- Select an annotatiion order of your preference
- Click on Annotate
- Verify that all the components have a label (R0, R1, R2 etc)
Assigning a Footprint
Depending on the component library you use, your components may or may not have associated footprints. Use the following process to verify and associated footprints to your components.
- Look for the icon labeled “Assign PCB footprints to schematic symbols” as shown on the right
- Assign footprints to every component
Note:If you are using custom footprints not available in the standard library, import your footprint library.
Design Rules Check
The DRC is a tool that verifies electrical rules that have been defined for the project. In order to run a DRC:
- Look for the icon labeled “Perform electrical rules check” as shown on the right
- Click on Run
Note:You should see “Finished” with no errors in the Messages field. If there are any errors reported, rectify them in the schematic editor.
Generate a Netlist
The netlist is a file defining the connection between your components and the footprints each of them use. You need to generate the netlist everytime the schematic is updated.
- Look for the icon labeled “Generate netlist” as shown on the right
- Click on Generate netlist in the window that popped up
- Save the netlist in the same directory as your project
- Close the schematic editor and return to main KiCAD window
The Layout Editor
Defining the physical design of your circuit
Open the PCB Editor
The PCB editor helps you define the physical aspects of the board: The layers, the routing, the component positioning. To open the PCB editor look for the icon as shown on the right.
Define the Design Rules
This is the best time to set the rules for your traces and vias.
- Click the Design Rules menu
- Select “Design Rules”
- In the “Default” net class, make sure you set the following values, according to the table below:
- Clearance
- Track Width
- Via Diameter
- Via Drill
- Then click on the “Global Design Rules”, and select.
- Do not allow blind/buried vias
- Do not allow micro-vias
- Min Track Width (according to printer)
- Min Via Diameter (according to printer)
- Min Via Drill (according to printer)
- In the custom track widths tables, create the track widths that you may need in your design.
- In the custom via sizes table, create the via sizes that you may need.
| Min Clearance | Min Track Width | Min Via Diameter | Min Via Drill |
Squink | 12mil | 10mil | 40mil | 30mil |
SV2 | 10mil | 8mil | 30mil | 20mil |
Import Netlist
When the netlist is imported, all the interconnections and footprints defined in the schematic will be imported into the Layout editor.
- Navigate to Tools > Load Netlist
- The default directory should be the current project directory. If it is a different directory, select the current project directory
- Click on Read current netlist
Note:At this point, all the parts should be in their compact layout and following your cursor. Do not worry about the layout, left click on any location to place the entire layout. We will arrange the parts in the next section.
Part Layout
Arrange the parts in your desired layout.
The following is list of shortcuts that can help you in the process.
Shortcut | Action | Description |
M | Move | The part will now follow your cursor, use the mouse or arrow keys on the keyboard to move it around. Left click or press Enter to confirm placement |
R | Rotate counter-clokwise | Counterclockwise The highlighted part will be rotated 90 degrees counterclockwise. |
Shift + R | Rotate clockwise | The highlighted part will be rotated 90 degrees clockwise. |
F | Flip | Flip the part about the surface, changing it to be back facing. |
Routing
You may either route the tracks using an autorouter such as FreeRouting, or manually in KiCAD.
Note:
The track width and spacing should meet the minimum specifications of BotFactory printers.
| Squink | SV2 |
Trace Width | >10mil | >8mil |
Trace spacing | >12mil | >10mil |
Using an autorouter:
- Navigate to File > Export > Spectra DSN
- Save the file in the project directory
- Import the DSN file into an autorouter of your choice
- Navigate to File > Import > Spectra Session and import the routed layout
Routing manually:
Route the components according to the schematic, keeping in mind the specifications provided
Tip:
Use the keyboard shortcuts below to help you:
Shirtcut | Action | Description |
Shift + X | Place Track | Changes cursor to track placement mode. Left click on any part to start placing a track, left clicking again on an empty space inserts an anchor point. Left click on another part joins the 2 parts together with a single track. Double click to force routing end. |
Delete | Delete | Deletes the highlighted objet. If no object is highlighted, KiCAD will try to delete an object that the cursor is hovering above. |
E | Properties | Opens the properties window of the highlighted track. You can adjust the track width and position. |
G | Drag, free angle | Drags the highlighted track with the cursor. |
D | Drag 45 degrees angle | rags the highlighted track with the cursor, maintaining a 45 degrees angle. |
Creating an outline
An outline defines the edge of the board. It needs to be defined in order to be used with BotFactory’s printers
- Make the outline layer the active layer by clicking on Edge.Cuts in the layers panel on the right.
- Click on “Add Graphical Line” next to the layers panel (keyboard shortcut: Ctrl+Shift+L”
- Enclose your circuit layout with an outline.
- Verify that your circuit layout is within the maximum dimension.
Note:
We recommend a maximum dimension of 125mm x 125mm.
Setting an origin
The origin, also know as “Auxiliary Axis”, needs to be defined in order to use your design in a BotFactory Printer.
- Click on the button labeled “Set origin point for grid” in the right panel
- Place an auxillary axis origin at the bottom left corner of your circuit outline
- Click on the button labeled “Set origin for place and drill” in the right panel.
- Set the origin point to be the bottom left corner of your circuit outline. Aligned with the “Origin point for grid”
Note: there should be nothing on the outline layer below or to the left of this origin point. If there is then your components will be placed with an offset.
Generating the Gerber Files
Now we need to generate the gerber files that describe the PCB copper disposition in the board.
- Click on the button labeled “Plot”
- Select the layers you wish to plot. The layers required are explained in the table below.
- Select Plot Format: Gerber
- Select an output folder
- Make sure the following options are selected:
- Use auxiliary axis as origin
- Use Protel filename extensions
- Plot footprint references
- Format: 4.6mm
- Click on Plot.
The resulting files will be placed on the selected output folder. There will be one file per selected layer.
Layer Reference Guide for 2 Layers:
Layer | Description |
F.Cu | Front copper (top copper) |
B.Cu | Back copper (bottom copper) |
Edge.Cuts | Outline (edge of the board) |
F.Mask | Top Solder mask |
F.Paste | Top Paste layer |
Layer Reference Guide for 4 Layers:
Layer | Description |
F.Cu | Front copper (top copper) |
In1.Cu | Internal Copper 1 (under top copper) |
In2.Cu | Internal Copper 2 (under In1.Cu) |
B.Cu | Back copper (bottom copper) |
Edge.Cuts | Outline (edge of the board) |
F.Mask | Top Solder mask |
F.Paste | Top Paste layer |
Generating the Drill Files
Now we need to generate the drill files. BotFactory printers will use drill files to create vias between the different layers.
- Click on the button labeled “Plot”
- Click on the button labeled “Generate Drill Files”
- Select an output folder
- Make sure the following options are selected:
- Drill units: Millimiters
- Zeros Format: Decimal
- Drill Origin: Auxiliary Axis
- Click on “Drill File”
The resulting file will be placed on the selected output folder. There will be one drill file for the whole circuit if micro-vias or buried viasNote: BotFactory printers only support Excellon drill files, which are text (ASCII) files. Other formats like Map files or binary files are not currently supported.
Generating the PnP files (center and rotation)
Now we need to generate the center and rotation files for the Pick and Place process.
- Click on the file menu
- Select “Fabrication outputs”
- Select “Footprint position”
- Select the output folder
- Make sure the following options are selected:
- Units: Millimiters
- Fooprint selection: With Insert attribute
- Click “OK”
The resulting file will be placed on the selected output folder.
Final Check
Navigate to the output folder you previously selected, and verify that you have these files in the folder.<Project Name>-all.pos
<Project Name>-Edge.Cuts.gbr
<Project Name>-F.Cu.gbr
<Project Name>-F.Paste.gbr
Uploading files to printer
Navigate to the printer’s URL, and select Single Layer print. Upload the files in the following order:
Layer | File |
Outline | Edge.Cuts.gbr |
Traces | F.Cu.gbr |
Glue | F.Paste.gbr |
Pick and Place | all.pos |
Follow on screen instructions to print and assemble your circuit!
Our Products & Services
Categories: Technology