Back in 2017 I built a small lamp for my mom. Not a fancy one. Just a lamp in her living room that switches on whenever I am in one of my „safe zones“ – at home, at her place or at work. Lamp on means: „Mom, I am Ok.“ No phone call needed, no „Did you arrive safely?“ message. At least in theory.

Nearly ten years later the lamp is still on duty, and my mom still checks it. So it was time for an update.

The old version was a Raspberry Pi Zero with a relay, wired into an IKEA lamp. It did its job, but a complete Linux computer just to switch one light on and off is a bit much. The new version is a lot smaller: a NodeMCU board with an ESP8266, a strip of 31 addressable LEDs and one 5V power supply that runs everything. The relay is gone.

The idea stays the same. Once a minute the lamp asks my server for the current status. If the answer is „I am Ok“, the LEDs switch on one after another in a warm white, until the whole strip is lit. And it stays on. When the status changes, the animation runs backwards and the lights go off one by one. Much nicer than the hard click of the old relay. And if the server is not reachable for some reason, the lamp just keeps its last state. No false alarm because of a Wifi hiccup.

The lamp knows different Wifi networks and connects to the one it can reach. Every five minutes it reports back to my server with its own IP address, so I know it is still alive. Yes, now the lamp is checking in with me. I see the irony.

One more detail for the nerds: on every internet call the small blue LED on the board flashes once. Totally useless for my mom. But every time I walk past it, I know it is working.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert