Electronic Architecture
XIAO RP2040
This week focused on designing a custom electronic board to support
my final project. The design integrates a microcontroller,
regulated power supply, input buttons, and communication headers.
The objective was to create a modular and expandable PCB that
can be reused for control, sensing, and future expansion.
KiCad Workflow
Electronic CAD
The entire electronic design was developed using KiCad.
This open-source Electronic Design Automation (EDA) software
allows schematic capture, PCB layout design, component management,
and fabrication file generation.
1. Project Creation
The first step was creating a new project inside KiCad.
This automatically generates:
- .kicad_pro → Project file
- .kicad_sch → Schematic file
- .kicad_pcb → PCB layout file
This structure ensures that schematic and PCB remain synchronized.
2. Schematic Editor
Tool Used: Schematic Editor (Eeschema)
In the schematic editor, I created the logical representation
of the circuit.
Key Tools Used:
- Add Symbol: Inserted XIAO RP2040, regulator, resistors, capacitors, buttons.
- Wire Tool: Connected electrical nets.
- Power Symbols: Added GND, +7V, Regulator OUT.
- Net Labels: Named connections to keep schematic clean.
- Annotate Tool: Automatically numbered components (R1, C1, U1).
- Electrical Rules Check (ERC): Verified missing or incorrect connections.
ERC was critical to detect floating pins and power issues before moving to PCB layout.
3. Assigning Footprints
Tool Used: Assign Footprints
After finishing the schematic, each symbol was assigned a physical footprint.
For example:
- Resistors → 1206 SMD footprint
- Capacitors → 1206 SMD footprint
- Voltage regulator → SOT-223 or equivalent
- XIAO RP2040 → Header-based footprint
This step links the logical schematic to physical PCB components.
4. PCB Layout Editor
Tool Used: PCB Editor (Pcbnew)
After importing the schematic into the PCB editor,
all components appeared unplaced.
Key Steps:
- Defined board outline.
- Placed microcontroller centrally.
- Positioned regulator near power input.
- Grouped buttons logically.
- Routed power traces thicker than signal traces.
Trace routing was performed manually to maintain signal clarity
and reduce noise, especially in power lines.
5. Design Rule Check (DRC)
Tool Used: Design Rule Checker
DRC verifies:
- Minimum trace width
- Clearance between traces
- Unconnected pads
- Overlap errors
Running DRC ensured the PCB was manufacturable
and electrically correct before fabrication.
6. Generating Fabrication Files
Tool Used: Plot → Gerber Files
The final step was exporting:
- Gerber files (.gbr)
- Drill files (.drl)
- Board outline
These files are required for PCB manufacturing.
Final Project Integration
This electronic design forms the core control board of my final project.
It centralizes power regulation, user interaction, and communication
into a compact PCB architecture.
The modular design ensures adaptability and future expandability.