Fab Academy 2026  ·  Week 06

Electronics
Design

This week I explored EDA tools and lab instruments — designing a complete PCB for my final project, simulating circuits in Wokwi, and observing microcontroller signals with a multimeter and oscilloscope.

EDA / Fusion 360 PCB Layout Multimeter Oscilloscope PWM Wokwi
Multimeter PR-85 Schematic Design Oscilloscope

Group Assignment

  1. Use lab test equipment to observe the operation of an embedded microcontroller

Individual Assignment

  1. Simulate a circuit
  2. Design an embedded microcontroller system with an EDA tool and check design rules

Extra Credit

  • Design a case
01
Theory

What is an EDA Tool?

An EDA Tool (Electronic Design Automation Tool) is software used to design, simulate, and analyze electronic circuits and PCBs. These tools allow engineers to create schematics, design board layouts, verify electrical connections, and generate manufacturing files.

EDA tools are essential in modern electronics because they reduce design errors, improve precision, and speed up the development process. Commonly used tools include KiCad, Altium Designer, EAGLE, and Fusion 360.

Designing a Development Board

Designing a development board means creating a PCB centered around a microcontroller for prototyping and testing. It covers schematic design, component selection, PCB layout, and design rule verification — then the board can be programmed for specific tasks, connecting with the embedded programming work from Week 4.

→ Go to Week 4: Embedded Programming
SMD vs THT Assembly

Through-Hole Technology (THT) passes components through drilled holes for strong mechanical support. Surface Mount Technology (SMT) mounts SMD components directly on the surface, enabling smaller designs. In Fab Academy, we primarily use SMD components.

SMD vs THT Comparison
02
Reference — Week 4

Embedded Programming Components

With our instructor, we reviewed the main components of embedded programming — resistors, diodes, transistors, inductors, and push buttons — focusing on their function and interaction within a circuit.

Instructor explaining components

Key Components

  • Resistors (110 Ω) — Not polarized. Limit current and protect components.
  • LED — Polarized (anode/cathode). Requires a resistor to prevent burnout.
  • Transistor — Electronic switch with emitter (E), collector (C), base (B). Fundamental for logic gates.
  • Diode — Allows current in one direction only. Protects the microcontroller.
  • Inductors — Store energy as a magnetic field.

Push Button & Pull-Down Resistor

Without a resistor, a button input becomes a floating point — unstable, randomly reading HIGH or LOW. A pull-down resistor (10 kΩ) to ground ensures LOW when not pressed, HIGH when pressed.

Pull-down and Pull-up configurations
03
Group Assignment

Lab Equipment & Electrical Concepts

Fundamental Electrical Concepts

Click each concept to expand its formula and explanation.

⚡ Voltage (V) +
V = W / Q  ·  Volts = Joules / Coulombs

Voltage is what "pushes" current through the circuit — energy per unit charge between two points.

〰️ Current (I) +
I = Q / t  ·  Amperes = Coulombs / seconds

Flow of electric charge over time. We use conventional current (positive → negative), while electrons physically move in reverse.

🔴 Resistance (R) — Ohm's Law +
V = I · R  ·  Resistance in Ohms (Ω)

Higher resistance means less current for the same voltage.

🔋 Capacitor (C) +
C = Q / V  ·  I = C · dV/dt

Stores energy in an electric field. A stable DC voltage means zero capacitor current — current only flows when voltage is changing.

🌀 Inductor (L) +
V = L · dI/dt  ·  Inductance in Henries

Stores energy in a magnetic field. Opposes sudden changes in current.

🔌 Multimeter — Prasek Premium PR-85

The Prasek Premium PR-85 is a digital multimeter that allows measuring different electrical quantities and verifying whether components are working correctly. Each function below is color-coded to match the physical device dial — click any to expand.

Prasek Premium PR-85
01 · DC Voltage (V⎓) +

Scales: 200 mV · 2 V · 20 V · 200 V · 1000 V

Used to measure: voltage from regulated supplies, microcontroller output, LEDs, sensors, etc.

Our experiment: Placed in series with the yellow LED, at the 20 V range, we read approximately 2.93 V being supplied to the LED — dropping to zero when the microcontroller turned the LED off. Although the microcontroller runs at 3.3 V, this lower reading indicates the connected GPIO pin is worn and doesn't supply its full rated voltage.

DC Voltage measurement in action
02 · AC Voltage (V~) +

Scales: 200 V · 750 V

Used to measure alternating current, such as the electrical grid. This mode is for high-voltage AC sources only — not for microcontroller circuits.

03 · DC Current (A⎓) +

Scales: 20 µA · 200 µA · 2 mA · 20 mA · 200 mA

Used to measure the consumption of small components such as LEDs or sensors.

⚠️ Important: To measure current, the multimeter must be connected in series with the circuit — not in parallel.
04 · AC Current (A~) +

Scales: 20 mA · 200 mA · 20 A

Measures alternating current in equipment or systems that run on AC. As with DC current, the multimeter must be connected in series with the circuit.

05 · Resistance (Ω) +

Scales: 200 Ω · 2k · 20k · 200k · 2M · 20M

Used to measure resistors, verify components, and detect open circuits.

🔬 LDR Experiment: We tested an LDR using the 200 kΩ scale in three conditions:

  • Fully covered (total darkness): High resistance reading
  • Ambient room light: Resistance decreased
  • Direct light applied: Resistance dropped even further

This confirmed the LDR increases resistance in darkness and reduces it with more light — validating its function as a light-dependent sensor.

06 · Continuity Test & Diode Test ➤|— +

This function is found on the same selector position as the diode symbol. It does not work with a numerical scale — it is a quick verification tool.

When there is a connection between two points and the resistance is very low, the multimeter emits a beep. Used to verify that a trace or cable is properly connected.

⚠️ Important: The board must be powered off before using continuity. Place the probes on the copper trace to check the connection.

Diode Test ➤|— Verifies that a diode conducts in only one direction and measures its forward voltage drop. Very useful for identifying anode and cathode before soldering:

  • Black probe → Cathode
  • Red probe → Anode
Diode test — identifying cathode Diode test — identifying anode

💡 LED Experiment — SMD vs THT: We tested green SMD and transparent THT LEDs on a breadboard. To light a LED, the Black probe must go to the Cathode and the Red probe to the Anode. We observed that the voltage the multimeter provides in diode test mode (~2.7 V) is not enough to light the transparent LED, but it does light the SMD green ones.

LED experiment setup SMD LED lit THT LED comparison
07 · Capacitance (F) +

Scales: 20 nF · 200 nF · 2 µF · 20 µF

Measures the value of a capacitor and verifies whether it is in good condition.

08 · Frequency (Hz) +

Range: Up to 20 kHz

Measures the frequency of electrical signals. For analyzing PWM signals it is more recommended to use an oscilloscope, as it also shows waveform shape and duty cycle visually.

09 · Transistor Test (hFE) +

Includes ports for both NPN and PNP transistors.

Measures the current gain (hFE) of a transistor and verifies that it is functioning correctly. Useful for confirming transistor type and checking for damaged components before soldering.

📺 Digital Oscilloscope — Siglent SDS 1102CML+

Unlike the multimeter, the oscilloscope visualizes how voltage changes over time. Y-axis = voltage · X-axis = time. The trigger system stabilizes the signal for clean analysis.

Siglent SDS 1102CML+ Oscilloscope

We built a test circuit with a Raspberry Pi Pico W2 and an LED, controlling it via PWM programmed in Thonny:

Test circuit Thonny PWM code
Maximum voltage observed was approximately 3.3 V — matching the microcontroller's rated supply voltage.

A low duty cycle (5%) produces short PWM pulses:

Low duty cycle waveform

A high duty cycle produces longer PWM pulses:

High duty cycle waveform

Multimeter Voltage on the Oscilloscope

The oscilloscope detected the multimeter providing ~2.7 V during diode test mode — explaining why components requiring more than 2.8 V won't activate.

Multimeter on oscilloscope Oscilloscope reading
📡 What is PWM (Pulse Width Modulation)? +

PWM is a digital technique controlling power by rapidly switching between HIGH (on) and LOW (off). On the oscilloscope you see the square waveform, period, frequency, and duty cycle. Used to control motor speed, regulate LED brightness, and simulate analog output.

⚡ Duty Cycle — The Key Parameter +

The duty cycle is the percentage of time the signal is HIGH within one full period.

Duty Cycle (%) = (Time HIGH / Total Period) × 100
Duty cycle diagram
  • 50% → equal on/off time
  • Higher % → more average power → LED brighter
  • Lower % → less average power → LED dimmer

⚡ Regulated Power Supply — Wanptek DPS3010U

Variable voltage (0–30 V) and adjustable current (0–10 A). Shows consumed current in real time for safe testing. We found the transparent LED's turn-on threshold: 3 V.

Power supply test 1 Power supply test 2

Supporting Elements

  • Voltage divider — Steps down voltage using resistors (e.g., 12 V → 5 V for a sensor).
  • Electrolytic capacitor — Cylindrical, polarized. Filters voltage variations and reduces electrical noise.
04
Individual Assignment

Circuit Simulation

I used a 6mm push button and a green LED on the XIAO ESP32-S3. The button simulates each towel dispense — every press blinks the LED and increments a counter. At 10 presses, the system warns that towels have run out and resets automatically.

Wokwi simulation

Code

C++ / Arduino
#define BUTTON_PIN D4
#define LED_PIN D3

int count = 0;

void setup() {
  Serial.begin(115200);
  pinMode(LED_PIN, OUTPUT);
  pinMode(BUTTON_PIN, INPUT_PULLUP);
  Serial.println("Hello world!");
  Serial.println("Hygiene dispenser ready!");
  Serial.println("Counter: 0/10");
}

void loop() {
  if (digitalRead(BUTTON_PIN) == LOW) {
    count++;
    // LED blinks 3 times as confirmation
    for (int i = 0; i < 3; i++) {
      digitalWrite(LED_PIN, HIGH);  delay(200);
      digitalWrite(LED_PIN, LOW);   delay(200);
    }
    if (count >= 10) {
      Serial.println("✅ Dispenser activated!");
      Serial.println("⚠️  Limit reached! Resetting...");
      count = 0;
      Serial.println("Counter: 0/10");
    } else {
      Serial.println("✅ Dispenser activated!");
      Serial.print("Counter: ");
      Serial.print(count); Serial.println("/10");
    }
    delay(500);
  }
}
05
EDA Tool — Fusion 360

PCB Design

Setting Up the Fab Academy Library

Before starting, I downloaded the Fab Academy component library: gitlab.fabcloud.org/pub/libraries/electronics

Fab library Fab library files
📦 Installation Steps — Click to expand +
  1. Step 1 — Choose the schematic design mode in Fusion 360. Fusion schematic mode
  2. Step 2 — Load the public library — Fusion recognizes it automatically. Loading library

📐 Schematic Design

First time designing an embedded circuit in Fusion 360. Typing "add" opens the full component library. I chose components with larger pads for easier hand-soldering.

Fusion 360 interface
Green = THT  ·  Red = SMD — In Fab Academy, we use red SMD components.
THT component (green) SMD component (red)

My final project is an automated hygiene product dispenser. Key design decisions: N-Channel MOSFET to safely drive the DC motor, Schottky diode to protect against motor switching spikes.

Full schematic overview Detailed schematic Final schematic with all components
🔌 Component Connection Reference — Full Table +
ComponentPinConnects toFunction
LED U2AnodeR1 → PA02_A0_D0 (pin 1)GPIO Control
LED U2CathodeGNDGround
Resistor R1Pin 1–2PA02 ↔ LED AnodeCurrent limiter
Button S1Pin 1/2R2 + PA4_A1_D1 (pin 2)GPIO Signal
Button S1Pin 3/4GNDGround
R2 Pull-up 10kΩPin 13V3Keeps pin HIGH by default
Connector J2Pins 1–6PA10–PA9, GND, 3V3Analog pins for sensors
MOSFET T1GATER3 → PB09_A7_D7 (pin 8)GPIO Control Signal
MOSFET T1DRAINConnector U$4 pin 1Toward motor
MOSFET T1SOURCEGNDGround
Flyback Diode D1AnodeDRAIN / U$4 pin 1Motor side
Flyback Diode D1Cathode3V3Protects against voltage spikes

🖥️ PCB Layout & Routing

Switched to 2D PCB mode via the Switch button. First step: organize components in the ct TOP layer.

Switching to PCB mode Organized components
📌 Ratsnest lines: Yellow lines show which pins need routing — they're not physical connections yet. They disappear once you draw the trace. No need to worry if they cross.

Board outline drawn in the m1 Board Outline layer — crown-shaped base:

PCB board outline

Manual routing panel (Route → Manual Routing):

Routing panel
GND Traces — 20 mil

S1 pin 3/4 · R2 pin 2 · MOSFET SOURCE · XIAO GND · U$4 pin 3

3V3 Traces — 20 mil

XIAO 3V3 → R2 pin 1 · U$4 pin 2 · D1 cathode · J2 pin 6

Signal Traces — 12 mil

All other connections

Final PCB result:

Final PCB layout
📋 PCB Design Rules — 7 Key Rules +
  1. Track Width — Power traces (VCC, GND) wider than signal traces to prevent overheating.
  2. Trace Clearance — Minimum distance between traces to prevent short circuits.
  3. Drill Size — Holes slightly bigger than component pins for easier assembly.
  4. Pad Size — Large enough for clean soldering; larger openings reduce hand-soldering errors.
  5. Via Size — Well-defined diameter and annular ring for reliable inter-layer connections.
  6. Ground Plane — Improves stability, reduces EMI, provides better current return paths.
  7. Trace Length — Long traces can affect signal integrity in high-speed circuits.
06

Get in Touch