Skip to content

Week 06: Electronics Design

Assignment:

  • Group: use the test equipment in the lab to observe the operation of an embedded microcontroller.
  • Individual: use an EDA tool to design an embedded microcontroller system using parts from the inventory, and check its design rules for fabrication.

This week I designed my own development board around the Seeed Studio XIAO RP2040 in EasyEDA, then prepared it for milling.

Group assignment

Our group work for this week is documented on the RIIDL Fab Lab group page: Week 6: PCB Design.

What I learned: I used both a multimeter and an oscilloscope to test electronic boards. The multimeter was for static checks: measuring supply voltages and checking continuity to confirm that connections were actually made. The oscilloscope showed what the multimeter can't, which is how a signal changes over time while the board is running. Using both made it clear which tool answers which question: the multimeter tells me whether the board is powered and connected, and the oscilloscope tells me whether it is actually doing something.

1. Schematic

alt text

I started with the schematic in EasyEDA. The board is built around the XIAO module (I used the XIAO symbol from the library, listed as XIAO-SAMD21, which has the same pinout and footprint as the XIAO RP2040). Around it I added:

  • SW1: a 6×6 mm push button as a digital input
  • U2 / U3: two 8-pin 2.54 mm headers to break out the XIAO's pins
  • U4: a buzzer as an output
  • U5: an LED as an output, with R1, a 1 kΩ current-limiting resistor
  • U6: a connector for an HC-SR04 ultrasonic sensor (GND, ECHO, TRIG, VCC)

2. Setting up the PCB

alt text

Using Convert Schematic to PCB, the components came into the PCB editor with ratsnest lines showing the connections still to be routed. I created a rectangular board outline in millimetres and placed the components around the XIAO.

3. Routed board and Gerber export

alt text

After placing and routing the traces, the final board measured 63.37 × 46.61 mm. I generated the Gerber fabrication files from EasyEDA so the board could be milled in the lab.

4. Checking the design rules: trace-width test

alt text alt text alt text alt text alt text

Before committing to my board, I checked which trace widths our milling setup could actually produce. I imported a standard trace-width test image (.001, .010 and .020 inch) into EasyEDA using Insert Image to PCB, adjusted the colour tolerance and simplify level, and scaled it to size. The red preview shows the copper that would remain after milling. The milled result is documented in Week 08.

Design rules used for my board

The design rules are saved inside the EasyEDA PCB file (RP2040-pcb_3.json, under DRCRULE):

Rule Value in EasyEDA Why this value
Track width 0.5 mm (19.7 mil) Wide enough to survive milling and soldering on FR1 without lifting, and well above the finest line the trace-width test showed our setup can produce
Clearance (track to track / pad) 0.5 mm (19.7 mil) Leaves room for the 30° V-bit to cut a full isolation path between neighbouring copper
Real-time DRC On EasyEDA checks these rules while routing and flags any track placed closer than the clearance

All 47 copper tracks on the board use the 0.5 mm width. The clearances were checked again at the CAM stage, where CopperCAM generated isolation contours around each trace and pad for the engraving bit (step 5 below). The milled board was then soldered and tested: it runs code and drives an LED, a sensor and a servo through its pins (Week 8, Week 9, Week 10).

5. Preparing the board in CopperCAM

alt text alt text alt text

I opened the exported Gerber layers (top layer, bottom layer, board outline) and the Excellon drill files in CopperCAM.

alt text

CopperCAM calculated the isolation contours (yellow) around each trace and pad, which is the path the engraving bit follows to separate the copper.

alt text alt text

In the tool library I set up the tools: a 3.17 mm 30° conical engraver for the traces and a 3 mm cylindrical cutter at 12,000 rpm for the board outline.

alt text

The final G-code preview showed the toolpaths over the board before milling. Fabrication of the board continues in Week 08: Electronics Production.

Design files

EasyEDA (Standard) source files for the XIAO RP2040 board. To open them, use File → Open → EasyEDA Source in EasyEDA Standard.