Skip to content

6. Electronics Design

This week we took a deep dive in electronics design. At least it felt so, since this was new to me; I had previously tinkered with breadboards and jumper wires, but I had never designed a PCB board. We used Kicad software for designing a circuit board with guidance from our instructor Antti.

During group work, we measured the power consumption of a LED by measuring the current drawn by the USB. The color output of the LED affected the power consumption. Also we measured the power consumption of the smaller builtin LED.

Printed circuit board design using Kicad

First, we downloaded the fab library from the fabacademy gilab site fab academy gitlab site.

After setting up the fab library in Kicad, we started to design the schematic.

We added all the necessary components for the test circuit board. The components could be added by pressing letter "a" or by choosing add a symbol from the right hand menu, as shown in the figure below.

add a symbol
Figure: The symbols could be added using the menu icon or by pressing "a" letter.

We set up the footprints of the components, so that they would take the right amount of space in the board. This was made by choosing tools from the upper menu and from there: assign footprints.

Setting the footprints of the components
Figure: The footprints could be assigned by choosing tools from upper menu, and assign footprints.

Then we added wires and labels. The wires could be added by pressing "w" and labels by pressing "l", or by using the menu selecion as shown below.

add wires and labels
Figure: The wires and labels could be added using the menu icons or by pressing "w" and "l" letters.
add wires and labels
Figure: The pins were labeled after adding a small segment of wire to each pin.

We connected the components with the wires. Then we added flags for ground and power pins, so that the program knows which are the current source and ground.

schematic
Figure: The ready schematic.

After this we chose "tools" from the upper menu and there: "update PCB from schematic"

Figure: Updating PCB from schematic.

This yielded a window with the components laid out next to each other.

Figure: Components laid out on the PCB.

I moved the components in a better order, drew edges to the board, and routed the connections between the components. I left the grounds unconnected at this point, since they would be connected to the large filled part of the PCB.

Figure: Routed PCB with lines added as edges.

Finally, I selected "add a filled zone" from the right hand menu, clicked inside of the board region and selected F.Cu from left, and PWR_GND from the list. This filled the board region with the copper, except the connecting lines and pins that were not connected to ground. I had trouble with making the connections so that there would be only one unified ground area. I decided to solve this by adding a zero ohm resistor between two ground areas.

Figure: I added zero-ohm resistor to the schematic to connect two separate ground areas.
Figure: Ready PCB board design.

The ready Kicad circuitboard design file is here. The Kicad schematic file is here.

After working through the example, I decided to try to design my own board. I tried to design a PCB board for the photoresistor controlled led project, which I did using breadboard and jumper wires during Embedded Programming.

Figure: Designing my own schematic for light resistor controlled led.
Figure: Designed PCB for light resistor controlled led which I did in Embedded Programming.

During regional review, Jani suggested me to increase the connection width, which I did. Later when I tried to mill the board, I inreased the widths even more so that I would not erode the lines, even if there was problems with the precision. I also added my own text tag to the circuit board design.

Figure: Increased line thicknesses of my own circuit board design.

The final circuit board file is here.