Skip to content

Raspberry Pi (physical computing)

Wire up real circuits and control them with code — lights, sensors, buzzers and more.

Ages 10–18

About this pathway

This is where code meets a breadboard. Using a Raspberry Pi's GPIO pins, you'll wire up real components — LEDs, buttons, buzzers, sensors — and write Python to control them. It's slower and more hands-on than screen-only pathways (there's wiring to get right, not just code), which is exactly what makes it satisfying: a program that makes a physical light blink on command.

The same pathway also covers microcontrollers: an Arduino runs one program the moment it gets power, which makes it ideal for robots, lights and sensors, and an ESP32 adds Wi-Fi and Bluetooth, so a project can send its measurements to a phone or a web page.

What you'll build

A few of the projects kids on this pathway have walked out with.

A traffic light sequence

Wire three LEDs and time a proper red-amber-green-amber sequence in code.

A burglar alarm

A motion sensor triggers a buzzer and a flashing light — with a keypad code to disarm it.

A mini weather station

Read temperature and humidity from a sensor and log or display the results.

A plant-watering alarm with Arduino

A soil-moisture sensor on an Arduino beeps and lights up when the plant needs water.

A Wi-Fi thermometer with an ESP32

The ESP32 serves a small web page that shows the room's temperature on any phone on the same network.

How a session works

Every dojo runs this a little differently, but it usually looks like this.

1

Wire the circuit

Follow a diagram to connect components to the right GPIO pins — a mentor checks the wiring before anything gets powered on.

2

Write the code

Python controls the circuit: turning pins on and off, or reading a sensor's value.

3

Test, then debug the wiring or the code

If it doesn't work, it's usually one or the other — working out which is most of the skill here.

Skills you'll pick up

The building blocks every later pathway builds on.

Arduino programming Circuits & breadboards Debugging hardware GPIO basics Python for hardware Reading sensors Wi-Fi projects with ESP32

Questions

Ready to try it in person?

Other pathways

Not sure this is the right one? Kids move between pathways freely.

Scratch

Drag-and-drop blocks and real games from your very first Saturday — no experience needed.

Explore Scratch →

Python

Trade the blocks for real code and build your first text-based games and programs.

Explore Python →

BBC micro:bit

Code a tiny physical computer — lights, buttons and sensors you can hold in your hand.

Explore BBC micro:bit →

mBot

Build and program a small robot that drives, follows lines and avoids obstacles.

Explore mBot →