Source: https://mokxi.com/teachers/plans/embedded-pico
Updated: 2026-11-11

Lesson plan

# Embedded on the Raspberry Pi Pico lesson plan

A dual core Cortex-M0+ at 125 MHz. PWM on every pin, a 64 bit clock, and pins that do not forgive 5 V.

4 chapters, 7 lessons, about 6 hours, on the Raspberry Pi Pico. 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

- Drive a pin, read a pin, and learn what this chip will not tolerate.
- Six lamps from an array, and PWM on any pin you like.
- The monitor both ways, and a loop that never waits.
- A blank page, six lamps and a way to measure what you built.

### Materials for the whole unit

- Full-size breadboard
- LED x 6
- Pushbutton
- Raspberry Pi Pico
- Resistor x 6

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 1 h 40 min

## The board

Drive a pin, read a pin, and learn what this chip will not tolerate.

Lesson | Time | What students do

First light on the Pico An LED on GP15, a second one inside the module, and a board that keeps its program in a separate flash chip. Where the RP2040 is different. | 50 min

- The board, and where its program lives
- Run it
- The lamp you can see
- Both pins, checked separately
- Blink it faster
- What this board has that the others do not

Reading a pin A button on GP15 with the pad pull-up on, a lamp on GP14, and the pad configuration that sits under one line of Arduino code. | 50 min

- One line, three registers
- Watch it go low
- And the lamp follows
- Check the output pin too
- Turn it round
- The one thing this board will not forgive

### Materials

- LED
- Pushbutton
- Raspberry Pi Pico
- Resistor

### Check for understanding

Each student finishes "Reading a pin" 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: "The one thing this board will not forgive".

Chapter 2. About 1 h 40 min

## More than one of everything

Six lamps from an array, and PWM on any pin you like.

Lesson | Time | What students do

Six pins and an array A dot sweeping along six LEDs, driven from a list of pin numbers. Arrays, loop bounds, and where the idea stops scaling. | 50 min

- One pin per lamp
- Run it
- All the way along
- Watch a pin in the middle
- Slow it down
- Where one pin per lamp stops

PWM on any pin Every GPIO on this chip has a PWM channel, which is unusual. Slices, channels, and what the divider is actually doing. | 50 min

- Eight slices, two channels each
- Run it and watch it breathe
- What 0 and 255 really do
- Where the frequency comes from
- Make the breath faster
- What PWM is good and bad at

### Materials

- Full-size breadboard
- LED x 6
- Raspberry Pi Pico
- Resistor x 6

### Check for understanding

Each student finishes "PWM on any pin" 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: "What PWM is good and bad at".

Chapter 3. About 1 h 40 min

## Talking and timing

The monitor both ways, and a loop that never waits.

Lesson | Time | What students do

The board talks and listens UART0, the monitor, and an echo. The one debugging tool you always have, and what it costs to use it. | 50 min

- Nothing is wired, and that is the circuit
- Say hello
- The uptime, from a 64 bit counter
- Type something
- Add a line of your own
- What printing costs

Timing without delay The chaser is written with delays, so it can do nothing else. Rewrite it around the microsecond timer and it can do anything. | 50 min

- What the sweep cannot do
- Run it as it is
- Rewrite it around the clock
- Two details that are not optional
- Now add the thing it could not do before
- What you would use micros for

### Materials

- Full-size breadboard
- LED x 6
- Raspberry Pi Pico
- Resistor x 6

### Check for understanding

Each student finishes "Timing without delay" 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: "What you would use micros for".

Chapter 4. About 50 min

## Make it yours

A blank page, six lamps and a way to measure what you built.

Lesson | Time | What students do

Project: make the sweep yours Six lamps and a blank page. Change the pattern, count the passes, report them, and measure how long your own loop takes. | 50 min

- What you have to work with
- Change the pattern
- Count what it does
- Measure yourself
- Pick one and finish it
- What you would reach for next

### Materials

- Full-size breadboard
- LED x 6
- Raspberry Pi Pico
- Resistor x 6

### Check for understanding

Each student finishes "Project: make the sweep yours" 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: "What you would reach for next".

Your class

## Teach this unit as a class

Start a class from this course and its 7 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. 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. Build a vending machine 6 lessons, about 5 h. Every unit All the courses as ready-made units, on the teachers page.
