By Kevin McAleer, 3 Minutes
Page last updated November 24, 2026

Every good project starts with a question. Ours is simple: is the door open? In this lesson we look at the gadget we are going to build and at how the pieces talk to each other.
The status buddy sits on your desk and watches something that opens and closes: a door, a lid, a drawer, the cat flap. When it changes, the buddy:
You don’t need all four to have a useful gadget. Each stage works on its own, and we test it before moving on. That is the best way to build anything with electronics: add one thing, check it works, then add the next.
flowchart TD
M["Magnet on the door"] -.-> R["Reed switch<br/>GP15"]
R --> P["Pico W<br/>MicroPython"]
P --> O["OLED screen<br/>I2C"]
P --> S["Speaker<br/>GP0, SAM"]
P --> W["Wi-Fi"]
W --> C["Arduino Cloud<br/>phone dashboard"]
The Pico sits in the middle and does all the thinking. The reed switch is the only input. The screen, speaker and Wi-Fi are outputs.
| Stage | Section | What the buddy can do |
|---|---|---|
| 1 | Sense | Print open or closed and light the onboard LED |
| 2 | Show | Draw the door state on the OLED |
| 3 | Talk | Announce the change out loud |
| 4 | Connect | Push the door state to Arduino Cloud |
After that, the Shrink it section moves the whole thing onto a tiny XIAO board, and Putting it together joins every stage into one main.py.
Because the same pattern turns up everywhere. Read something, show it, say it, send it. Swap the reed switch for a soil moisture probe and you have a talking plant monitor. Swap it for a button and you have a doorbell. Kev’s reed switch post suggests a cat flap monitor, a mailbox alert and a garage door checker, and they are all the same code with a different sensor.
Tip: Pick the real thing you want to watch now. A front door, a toy box lid, your fridge. Having a real job in mind makes every later lesson more fun.
Quick quiz 1 of 2
Which part of the status buddy is the only input?
Quick quiz 2 of 2
Why do we build the buddy in stages?
Comments