Week 06 – Electronics Design

oscar

This week is focused on Electronics Design: using an EDA tool to design a development board, checking that it can be fabricated, and using lab test equipment (including a logic analyzer) to observe the operation of a microcontroller circuit.

On this page I document:

Assignment and Learning Outcomes

The weekly assignment is:

The learning outcomes are:

Checklist

In this page I answer the required questions:

You can see the group documentation here:

Group Assignment – Microcontroller Board Measurement

For the group assignment we used the lab’s test equipment to observe the behaviour of a microcontroller circuit board. The goal was to capture and analyze digital signals, and at minimum, to demonstrate the use of a logic analyzer.

Test Equipment Used

Signals Observed

We focused on two types of signals:

Measurement Procedure

  1. Powered the board and uploaded a simple test program (LED blinking ).
  2. Connected the multimeter ground to the board GND.
  3. Connected one multimeter channel to the LED GPIO and another to the resistance.
  4. Configured the sampling rate and voltage threshold in the multimeter
  5. View the results

Measurement Procedure for analyzer

  1. Upload the analyzer program
  2. Descargar Saleae
  3. Powered the board and uploaded test program and I2C conmunication
  4. Connected the logic analyzer ground to the board GND.
  5. Connected one logic analyzer channel to the LED GPIO and another to the IC2 pin.
  6. Configured the sampling rate and voltage threshold in the logic analyzer software.
  7. Triggered a capture while the board was running.

Observations and Learnings

Working with the logic analyzer made it much easier to understand what the microcontroller was actually doing “on the pins”, instead of treating the board as a black box.

Individual Assignment – Development Board Design

For my individual assignment I used KiCad (with the Fab Academy libraries) to design a small development board built around a Seeed XIAO RP2040.

The design includes:

This satisfies the requirement to design a development board that can interact (button + LEDs) and communicate with an embedded microcontroller (the XIAO RP2040 module).

EDA Toolchain and Workflow

Software and Libraries

Workflow Overview

  1. Create a new KiCad project for Week 06.
  2. Draw the schematic from scratch, using Fab library components.
  3. Assign footprints and configure the board stackup.
  4. Do the PCB layout and routing, respecting the milling design rules.
  5. Run ERC/DRC and fix all issues.
  6. Export manufacturing files and simulate the milling in Mods.

Schematic Design – XIAO RP2040 Development Board

Main Components

Connections

Ver Interactive BOM

The schematic was completed and then checked with KiCad’s Electrical Rules Check (ERC) to make sure all power pins were driven, no unconnected pins remained, and there were no obvious shorts.

Additional Board – more connectors

In addition to the main development board, I designed a very simple second PCB that includes connectors for all pins for the XIAO RP2040 The goal of this board is to:

This board has one connector for I2C – 2 leds - one button one connector for the rest of the pins- headers and the XIAO RP2040 footprint – but it follows the same KiCad workflow and milling constraints as the main board.

PCB Layout and Routing

Board Outline and Component Placement

Routing Strategy

Fabrication Check

The Fab Academy FAQ explains that if the EDA tool does not include a complete DRC for our milling process, we can still verify the design by generating toolpaths and inspecting them.

Steps Taken

  1. Exported the traces and outline from KiCad as Gerber or SVG files.
  2. Loaded the files into Mods and selected the appropriate tool (e.g. 1/64" end mill).
  3. Generated the isolation toolpaths for traces and the cutout path for the outline.
  4. Visually inspected the result to check:
    • That all traces were isolated (no accidental shorts).
    • That no traces were thinner than the tool could handle.
    • That pads had enough copper around them for soldering.

After this inspection I confirmed that the board can be fabricated with the milling process available in the lab.

Problems and Fixes

Footprint and Orientation Issues

Clearance Too Small

LED Polarity

These issues were caught before fabrication thanks to ERC/DRC and visual inspection in 3D view and Mods.

Design Files and Hero Shot

Original Design Files

Original Design Files version 2

Original Design Files generic version

Original Design Files color sensor version

Summary and Reflection

This week connected EDA tools, design rules, and real fabrication constraints. Starting from a blank KiCad project and designing the board from scratch helped me understand every step of the electronics design workflow: schematic capture, footprint selection, PCB layout, DRC, and fabrication checks.

By designing a simple but complete development board for the XIAO RP2040 (button + two LEDs + connectors) I met the requirement of creating hardware that can interact and communicate with an embedded microcontroller. The extra connector-only board will make it easier to reuse the microcontroller in future assignments.

Measuring signals with the logic analyzer closed the loop between design and debugging: I could see the digital behaviour of the system and verify that the hardware and firmware were working together as intended.