This week we worked on understanding how circuits work, simulating the way the circuits would work and how we can build a PCB. This includes learning about the different types of components used for building the circuits.
KiCad
This weekβs personal assignment was to design a circuit, run a simulation and design the PCB, while document the process.
Hereβs the link to our group assignment of this week.
It is the engineering process of creating, developing, and integrating electronic circuits and components (like resistors, transistors, and ICs) to build functional systems.
It helps us create functional, reliable, and manufacturable electronic circuits and systems for industries like consumer electronics, automotive, healthcare, and telecommunications. It transforms concepts into working prototypes by defining, simulating, and testing PCB layouts, components, and embedded systems, ensuring they meet performance, safety, and cost requirements.
To design the PCB for the dog wearable for my final project, I used KiCad. It is an open-source Electronic Design Automation (EDA) software. For Fab Academy, it's crucial to understand that designing a board here is not a single step, but a three-part workflow:
KiCad divides the design process into distinct environments that must be completed in order:
When designing the circuit for the XIAO RP2040 and the MPU6050, keeping the schematic readable was a priority.
Net Labels over Wires
Instead of drawing a web of messy green lines, I used Net Labels (like SDA and SCL for the I2C communication). KiCad automatically connects any pins sharing the same label.
Before moving to the PCB, I ran the ERC (Electrical Rules Checker). To avoid false errors about power sources, I added PWR_FLAG symbols to the 3.3V and GND nets, telling KiCad that the XIAO acts as our power source.
In the PCB editor, the design becomes physical. I had to make strategic decisions regarding the layers and track widths:
0.25mm width for data signals (like the button and IMU data), but increased the width to 0.5mm for power lines (3.3V and GND) to ensure stable current flow.F.Cu (Front Copper) layer.Edge.Cuts layer to draw the custom board outline, giving the PCB the shape of my dog! πΎTo work faster and more efficiently in KiCad, mastering keyboard shortcuts is essential. Here are the most useful commands I constantly used during my circuit design process:
| Key | Action | Environment |
|---|---|---|
| A | Add a symbol / Add a footprint | Schematic & PCB |
| M | Move an item (disconnects wires) | Schematic & PCB |
| G | Grab / Drag an item (keeps wires connected) | Schematic & PCB |
| R | Rotate an item 90 degrees | Schematic & PCB |
| W | Draw a Wire | Schematic |
| L | Add a Net Label | Schematic |
| P | Add Power symbol (VCC, GND) | Schematic |
| E / V | Edit properties / Edit Value | Schematic |
| X | Route a track (Draw copper line) | PCB layout |
| Del | Delete selected item | Schematic & PCB |
XIAO RP2040 + MPU-6050 Β· Step-by-step from scratch
Download and install KiCad 7 or later on your computer (Windows, Mac or Linux).
Tip: Always use the latest stable version for better compatibility.
Organize your files from the start to keep the schematic and PCB linked.
Go to:
File β New Project
dog_wearable
Add specific footprints or symbols that aren't in the default KiCad library.
Path:
Preferences β Manage Symbol Libraries
.kicad_sym
Place the main microcontroller on the schematic canvas.
Add the motion sensor to the schematic, leaving space for wires.
Library:
Sensor_Motion
Add the button, LED, and required resistors using the browser (A).
SW_PushLED
Connect power cleanly using PWR and GND symbols.
PWR_FLAG
Instead of drawing long wires, use labels for a clean schematic.
Shortcut:
Press 'L' to Label
After connecting everything, it dshould look like this.
Verify there are no logical errors in your schematic.
This table describes the components used for the Dog Wearable PCB and their specific connections to the XIAO RP2040.
| Component | Qty | Connection (XIAO) | Function |
|---|---|---|---|
| XIAO RP2040 | 1 | Main Controller | The brain of the wearable. |
| MPU-6050 | 1 | D4 (SDA) / D5 (SCL) | IMU Sensor for motion detection. |
| Push Button | 1 | D6 (Input) | User interface to trigger events. |
| Red LED | 1 | D10 (Output) | Visual status indicator. |
| Resistor 330Ξ© | 1 | In series with LED | Current limiter for the LED. |
| Resistor 10kΞ© | 1 | Connected to D6 | Pull-down resistor for the button. |
| Pin Headers | 2 | VCC / GND / Pins | To connect |
Link each symbol to its real physical package (Tools β Assign Footprints).
Seeed footprintModule_GY-521LED_D5.0mm
Transfer your design from the schematic to the physical board using the "switch to PCB editor" button.
Keys:
G (Grab) / R (Rotate)
Define the physical shape. I
used the Edge.Cuts layer to draw
the dog outline.
Edge.Cuts layer
Physically connect the pads. Use thicker tracks for power lines.
Final verification and files to send for fabrication.
Here you can find the files to download