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

You did it. You started with a switch and ended with a gadget that senses, shows, talks and connects. That is a real project, and the pattern in it applies to almost anything you build next.
flowchart LR
A["Sense<br/>reed switch, interrupt, debounce"] --> B["Show<br/>SSD1306 OLED"]
B --> C["Talk<br/>SAM speech"]
C --> D["Connect<br/>Pico W, Arduino Cloud"]
D --> E["Shrink it<br/>config.py, XIAO"]
| Section | What you learned |
|---|---|
| Sense | Pull-ups, active-low switches, interrupts that only set a flag, and debouncing |
| Show | I2C wiring, the ssd1306.py driver, framebuf drawing, and redrawing from state |
| Talk | SAM’s three stages, pitch, mouth and throat, and speaking from the main loop |
| Connect | Wi-Fi in four lines, secrets.py, MIP, and pushing variables to Arduino Cloud |
| Shrink it | The XIAO family, and keeping pin numbers in config.py |
secrets.py. And keep that file out of GitHub and screenshotsThe buddy is a starting point. Swap the reed switch for a different sensor and you have a brand new gadget: a cat flap monitor, a mailbox alert, a talking plant monitor. Kev’s Wi-Fi post even notes that “every one of those is the same code”.
main.py growsAnd if you build a buddy for your own door, cat flap or mailbox, share it. Kev would love to see it.
Happy making!
Comments