Source: https://mokxi.com/teachers/plans/debug-like-an-engineer
Updated: 2026-11-11

Lesson plan

# Debug like an engineer lesson plan

The multimeter, the oscilloscope, the logic probe and analyzer, Serial done right, and a method that finds any fault. Ends with a boss: three bugs in one circuit.

3 chapters, 6 lessons, about 2 hours, on the Arduino Uno R3. Every lesson runs in the browser, with nothing to install.

Start a class from this course

The unit

## Objectives and materials

### By the end, students can

- Volts across, amps in line, and the checks you make with the power off.
- A scope for shapes and edges, a probe and an analyzer for ones and zeros.
- Print debugging done well, then reproduce, isolate, measure and fix on a real fault.

### Materials for the whole unit

- Arduino Uno R3
- Capacitor
- Full-size breadboard
- LED
- Logic analyzer, four channels
- Logic probe x 2
- Multimeter x 3
- Oscilloscope
- Potentiometer
- Pushbutton
- Resistor
- Slide switch

Every part is already on the simulator’s bench, so there is nothing to buy or hand out. The counts are the most any one lesson uses, if you build it on real breadboards too.

Chapter 1. About 40 min

## The multimeter

Volts across, amps in line, and the checks you make with the power off.

Lesson | Time | What students do

The multimeter: volts across, amps through Two meters on one LED circuit: a voltmeter across the LED and an ammeter in the loop. Why one goes across and the other goes in line, and how to check Ohm's law against real readings. | 20 min

- Across for volts, in line for amps
- Read the LED's voltage
- Read the current
- Change the resistor, predict, then measure
- The LED barely moved
- Quick check

The power-off checks: ohms, continuity and diodes Three meters on a circuit with no supply at all: one reading a resistor, one beeping across a switch, one testing an LED. Why these checks need the power off, and what each one tells you. | 20 min

- Why the power has to be off
- Ohms: is it the value it says?
- Swap the resistor, trust the meter
- Continuity: is it connected?
- Diode test: is the LED alive?
- Quick check

### Materials

- Full-size breadboard
- LED
- Multimeter x 3
- Resistor
- Slide switch

### Check for understanding

Each student finishes "The power-off checks: ohms, continuity and diodes" on their own, without opening the hints. The simulator checks 6 of its 6 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Quick check".

Chapter 2. About 35 min

## Seeing signals

A scope for shapes and edges, a probe and an analyzer for ones and zeros.

Lesson | Time | What students do

What a scope sees: PWM, rise time and a bouncing button A meter gives you one number; an oscilloscope gives you the shape. Measure a PWM pin's frequency and duty, watch an RC slow its edges down, and catch a button bouncing a dozen times in one press. | 20 min

- A pin that is never at 3.7 V
- Measure the duty
- Rise time: why edges are not instant
- Make the edges fast
- Catch the button bouncing
- Two ways to debounce

Logic probe and logic analyzer A logic probe says high, low or nothing; a logic analyzer records the ones and zeros and decodes them into bytes. Find a floating pin, fix it with a pull-up, and read serial straight off the wire. | 15 min

- Is this pin high or low?
- The pin nobody drives
- Fix it with a pull-up
- Read serial off the wire
- Which tool when

### Materials

- Arduino Uno R3
- Capacitor
- Full-size breadboard
- Logic analyzer, four channels
- Logic probe x 2
- Multimeter
- Oscilloscope
- Pushbutton
- Resistor

### Check for understanding

Each student finishes "Logic probe and logic analyzer" on their own, without opening the hints. The simulator checks 5 of its 5 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "Which tool when".

Chapter 3. About 40 min

## The method

Print debugging done well, then reproduce, isolate, measure and fix on a real fault.

Lesson | Time | What students do

Reading Serial like a pro Print debugging done well: labeled and timestamped lines, a warning word you can search for, and a verbose switch you flip from the Serial Monitor without rebuilding. | 15 min

- A line that means something on its own
- A word you can search for
- Turn the chatter on and off
- Ask the board how it is
- What printing costs

Boss: one circuit, three bugs A button and an LED that do nothing, with three faults planted at once. Use the method engineers use (reproduce, isolate, measure, fix) and a meter to find all three. | 25 min

- The complaint, and the method
- Bug 1: the input side
- Isolate the output: measure the resistor
- Bug 2: turn the LED round
- Measure again
- Bug 3: the wrong resistor
- What it was

### Materials

- Arduino Uno R3
- Full-size breadboard
- LED
- Multimeter
- Potentiometer
- Pushbutton
- Resistor

### Check for understanding

Each student finishes "Boss: one circuit, three bugs" on their own, without opening the hints. The simulator checks 7 of its 7 steps as they go.

Then ask each one to explain, in a sentence or two, the last thing it asked of them: "What it was".

Your class

## Teach this unit as a class

Start a class from this course and its 6 lessons are assigned in one go, in order. Students join with a six-character code or printed login cards, and each one’s work comes back to you.

The class tools are free for 30 days for one class of up to 20 students, with no card. The lessons themselves are free either way.

Start a class from this course See the demo class

More units

## Other lesson plans

Electronics basics 20 lessons, about 10 h. Embedded on the Arduino Uno 16 lessons, about 12 h. Embedded on the ESP32-C3 13 lessons, about 11 h. Embedded on the Raspberry Pi Pico 7 lessons, about 6 h. Build your own fight stick 5 lessons, about 4 h. Embedded on the STM32F411 6 lessons, about 6 h. C++ on a board 13 lessons, about 10 h. Digital logic and memory 4 lessons, about 4 h. Interactive devices on the Uno 9 lessons, about 8 h. From gates to a computer 23 lessons, about 16 h. Build a claw machine 8 lessons, about 6 h. Every unit All the courses as ready-made units, on the teachers page.
