Skip to content

6. Electronics Design

This week I worked on getting my hands on electronics design with the help of KiCad doftware. It was the first time for me to work on building a custom printed circuit board. During the group work, I learned how to measure/test microcontroller power usage with a multimeter.

Setting up KiCad on the Local Computer

I followed the instructions mentioned on Fab Electronics Library for KiCad (in Readme.md file) to download and configure the required library.

Designing PCB schematics in KiCad

All necessary symbols for the circuit board were added by choosing “Add a Symbol” menu on the right hand side of the Kicad Window.

Key Gen
Fig 1: Add a Symbol menu to add circuit components.

Footprints of the components was set so that they take optimal space on the board by choosing tools from upper menu as shown in Figure 2, then they were assigned as shown in Figure 3.

Uploading Gen to Web Account
Fig 2: Menu for choosing Footprint Assignment.
Uploading Gen to Web Account
Fig 3: Footprint Assignment.

Wires and labels were added by choosing menu icons in Figure 4 and 5.

Uploading Gen to Web Account
Fig 4: Choosing Wire Icon.
Uploading Gen to Web Account
Figure 5: Choosing Labels Icons.

Each pins of components was connected with a wire (Shown as Green coloured strip connected to pins in Figure 6). Symbol PWR_FLG were connected to Ground and Power pins.

Uploading Gen to Web Account
Figure 6: Labelling pins with small green colored wires.

Figure 7 shows the complete and connected PCB schematics.

Uploading Gen to Web Account
Figure 7: Connected and Ready PCB Schamatic.

Then, “Update PCB from Schematics” option was chosen from “Tool” menu. Initially, there were some errors because there were a few unassigned labels hanging in the schamtics area.

Uploading Gen to Web Account
Figure 8: Updating PCB from drawn schematics.

Updating PCB from Schematics opened the kicad_pcb file, and then we had to move components in order and draw connections using routes. Initially, my routing resulted in the scenario where all pins which should get 3V power could not be connected to the 3V pin on the MCU. So, I needed to try different connection routes. I sought the assitance of our lab instructor Antti Mäntyniemi with this issue.

Specific routing wire width was suggested to be 0.400 mm during the local session. But I missed to use this width and ended up drwaing routes with default wire width.

Uploading Gen to Web Account
Figure 9: Routed PCB.

I moved the components in a better order, drew edges to the board, and routed the connections between the components. GROUND connections were connected at this stage since they were to connected after filling the zone.

Uploading Gen to Web Account
Figure 10: Routed PCB with lines added as edges.

“Add a filled zone” from the right hand menu was selected and clicked inside of the board region. To add GROUND connections to the board, “F.Cu” from left was selected and PWR_GND from the list. It added copper (now in red color) to the board (in Fig 11), which was not there before (Fig 10). All red zone (copper filled) serves as medium for GROUND connection.

Uploading Gen to Web Account
Figure 11: PCB Schematics with DRC Analysis.
Uploading Gen to Web Account
Figure 12: Final PCB Schematics.

Figure 13 shows 3D View of the PCB. It can be selected via: View-> 3D Viewer in KiCad PCB layout window.

Uploading Gen to Web Account
Figure 13: PCB (in 3D Viewer).

KiCad files can be found from here.