Lessons
Short lessons, 10 to 30 minutes each, to understand what is happening inside the missions. Diagrams first, one idea per screen, three questions at the end. Nothing is saved.
E Electricity basics
Voltage, current, resistance
Three ideas, one rule. About 10 minutes, with one slider to play with.
Your first circuit
Build a loop on a breadboard, spot a short circuit, and check it with a multimeter. About 15 minutes, with one interactive breadboard.
Before this lesson: E1 Voltage, current, resistance
LEDs and the right resistor
Which way round an LED goes, and how to pick the resistor that keeps it safe, with one formula and a calculator. About 15 minutes.
Before this lesson: E2 Your first circuit
Power: batteries, 3.3 V and 5 V
Choose a battery pack, estimate how long it lasts, join the grounds, and feed an ESP32 board the right voltage on the right pin. About 20 minutes, with a battery-life calculator.
Before this lesson: E1 Voltage, current, resistance, E3 LEDs and the right resistor
Series, parallel and the voltage divider
Combine resistors in a row or side by side, split a voltage in two, and use a light-dependent resistor to let your ESP32 "see" the light. About 20 minutes, with an interactive divider.
Before this lesson: E1 Voltage, current, resistance, E3 LEDs and the right resistor
K Code basics
Your first program: connect and upload code to your ESP32
From a box of parts to a blinking LED and your first message on screen, one step at a time. About 30 minutes, with a troubleshooting table for when something refuses to work.
Before this lesson: E3 LEDs and the right resistor
Inputs, outputs and if
Read a button, switch on an LED and a buzzer, and let your code decide what to do. About 20 minutes, with a virtual button to press.
Before this lesson: K1 Your first program: connect and upload code to your ESP32
Analog values and thresholds
Read a changing voltage with analogRead(), turn it into a decision with a threshold, then stop the stutter with two thresholds. About 25 minutes, with a live graph you can drag.
Before this lesson: K2 Inputs, outputs and if, E5 Series, parallel and the voltage divider, S1 Light and infrared sensors
Timing and states
Stop the board from freezing during a wait, keep time with millis(), then build a small alarm as a state machine. About 30 minutes, with a diagram you can press.
Before this lesson: K3 Analog values and thresholds
Libraries and modules (I2C, UART)
Install a library, find out which modules are on your I2C wires with a scanner sketch, and see how a UART link differs. About 30 minutes, with a bus you can press.
Before this lesson: K4 Timing and states
S Sensors
Light and infrared sensors
Meet your first digital sensor, an infrared break-beam pair that tells your ESP32 whether something is blocking an invisible line. About 20 minutes, with a beam you can break on screen.
Before this lesson: K2 Inputs, outputs and if, E4 Power: batteries, 3.3 V and 5 V
Magnets, tilt and motion
Build a door alarm around a reed switch and a magnet, try a tilt switch, then read a PIR motion sensor and wire it safely to the ESP32. About 30 minutes, with a magnet you can drag.
Before this lesson: K2 Inputs, outputs and if
Smart sensors, distance and camera
Measure distance with a time-of-flight sensor, then read where a coloured target sits in a camera module's view. About 40 minutes, with a distance cone and a camera frame you can move.
Before this lesson: K5 Libraries and modules (I2C, UART), A2 Servos and PWM
M Mechanics and 3D
Soldering and perfboard
Solder safely, tell a good joint from a bad one, and move a breadboard circuit onto a perfboard so it stays put. About 25 minutes, with a practice exercise.
Before this lesson: E2 Your first circuit
3D printing for your projects
Go from a model to a printed box that fits: measuring, clearance, walls, screw holes, battery bays, overhangs and PLA settings. About 25 minutes, with a clearance slider.
Mechanisms: levers, linkages, gears
See how levers, rods and gears trade distance for force, then use a servo to move a printed flap or latch safely. About 40 minutes, with a gear-ratio widget and a linkage you can drag.
Before this lesson: A2 Servos and PWM, M2 3D printing for your projects
A Actuators and motors
Sound, buzzers and speakers
Tell an active buzzer from a passive one, play notes and a short melody with tone(), and meet the DFPlayer Mini for MP3 files. About 30 minutes, with a piano you can press.
Before this lesson: K2 Inputs, outputs and if
Servos and PWM
Understand PWM and duty cycle, then command a servo to an angle with 1 to 2 ms pulses, with its own power supply. About 35 minutes, with a slider you can move.
Before this lesson: K3 Analog values and thresholds, E4 Power: batteries, 3.3 V and 5 V
DC motors and H-bridges
Understand what an H-bridge does, then make a small DC motor go forward, backward, brake or coast, at the speed you choose, with a DRV8833 board and its own power supply. About 35 minutes, with switches you can click.
Before this lesson: C2 Transistors, MOSFETs and diodes, A2 Servos and PWM
Addressable LEDs
Light a ring of NeoPixel LEDs from one data pin, mix colours as red, green and blue numbers, and work out how much power the ring needs. About 35 minutes, with a colour mixer you can move.
Before this lesson: K4 Timing and states, E4 Power: batteries, 3.3 V and 5 V
C Components
Capacitors
Learn what a capacitor stores, how to read its value and its marks, and why a 470 µF one across a servo's power wires helps when the supply dips as the servo moves. About 25 minutes, with a tank you can fill.
Before this lesson: E4 Power: batteries, 3.3 V and 5 V, A2 Servos and PWM
Transistors, MOSFETs and diodes
Let a tiny signal from your board switch a bigger current: an NPN transistor, a logic-level MOSFET, and the diode that protects them from a motor. About 45 minutes.
Before this lesson: E4 Power: batteries, 3.3 V and 5 V, K2 Inputs, outputs and if
W Wireless and connected things
Wi-Fi and radio (alerts, web pages, board-to-board)
Join your Wi-Fi without sharing your password, send an alert to your phone, serve a tiny control page, and make two boards talk by radio. About 45 minutes.
Before this lesson: K4 Timing and states