fablab   fabacademy

Designing PCBs with KiCad

This documents the process of milling a Hello World board for the Fabacademy (part of the electronics design week assignment).

Assignment

We’re gonna be working with an ATTiny 412 for this project. The components that we’re going to need are:

For KiCad, download the fablab library for components. Follow the instructions in the readme to get started with the library.

Start a new project:

process of pcb designing with kicad process of pcb designing with kicad

Then open the schematic layout editor:

process of pcb designing with kicad process of pcb designing with kicad

Shortcuts that I used:

  1. Place components

    process of pcb designing with kicad process of pcb designing with kicad

    process of pcb designing with kicad

  2. Connect components such as LED’s to resistors using wires

    process of pcb designing with kicad

  3. Connect other components using global labels (this connects the labels on different components with each other)

    process of pcb designing with kicad process of pcb designing with kicad

    process of pcb designing with kicad

  4. Annotate schematic symbols

    process of pcb designing with kicad

    process of pcb designing with kicad process of pcb designing with kicad

  5. Perform electrical rules check

    process of pcb designing with kicad

  6. Assign footprints (to determine the arrangement of the pads for the SMD’s) (don’t forget to press ‘apply, save schematic & continue’)

    process of pcb designing with kicad process of pcb designing with kicad

    process of pcb designing with kicad

  7. Generate netlist

process of pcb designing with kicad process of pcb designing with kicad

process of pcb designing with kicad

My final schematic looks like this:

process of pcb designing with kicad

Then once you’re done, you can exit the schematic layout editor and return to the Kicad overview. The next step is to create the actual footprints for our board, which we can do in the PCB layout editor.

It’s important to specify the design rules (the limits of the milling machine you’re using, so precision and milling bit).

Click on the Board Setup button along the top to open a new window in which to update the design rules of the Roland Modela milling machine (I copied the settings from Nadieh’s documentation).

process of pcb designing with kicad process of pcb designing with kicad

process of pcb designing with kicad

Load the components by clicking update PCB from schematic. Here I encountered the following error:

process of pcb designing with kicad process of pcb designing with kicad

So I returned to the schematic layout editor to see if I could find what went wrong. After running the assign footprints tool and opening one of the components (right click > view component) I ran into this error:

process of pcb designing with kicad

So something went wrong with importing the fab library; after checking the the preferences I noticed that the footprint library wasn’t imported so I redid that. After that the import was succesful and my footprints appeared.

process of pcb designing with kicad process of pcb designing with kicad

Now it’s time to sort out the rat’s nest (that’s what the components with the tangled air wires is called) that has appeared.

process of pcb designing with kicad

For small boards like this it’s recommended to draw the traces by hand. It’s quite a puzzle since you’re often left with just one trace that’s impossible to draw, but I think it’s fun figuring it out. KiCad prohibits you from crossing traces; if there’s a possibility it will draw a wire for you around the traces you already have (for example using the space underneath components as bridges). Here some attempts:

process of pcb designing with kicad process of pcb designing with kicad process of pcb designing with kicad

process of pcb designing with kicad process of pcb designing with kicad

My succesful attempts:

process of pcb designing with kicad process of pcb designing with kicad

A 3D view of the second PCB: process of pcb designing with kicad

I didn’t quite like the design yet so I continued fiddling a bit more. A good tool to remember is Global Deletions; here you can delete all tracks in one go. If you want to delete a whole track, hover over it and press I > backspace.

process of pcb designing with kicad

After reading through documentation of this assignment I realized I had to connect the ATTiny to the FTDI via the capacitor so I started over again, but this time I first tried defining the edge cut so I had some bounderies to keep in mind for my design. However that really restricts you in your design so it’s easier to do the edge cut last. I went back to my first attempt and made some tweaks (mostly moving the capacitor so it was in between the FTDI and the ATTiny).

process of pcb designing with kicad process of pcb designing with kicad process of pcb designing with kicad

process of pcb designing with kicad