Andy Piper turned a tiny ESP32-C3 board covered in LEDs into what he calls a CheerDot: a small standalone light that follows the CheerLights color. He wrote up the whole build, from his first experiments to the finished program.

The board is about 2 cm square, with Wi-Fi, a USB-C port, and a 5×5 grid of 25 WS2812B (NeoPixel) LEDs. Andy programmed it in MicroPython, testing each piece in the REPL (MicroPython’s interactive prompt) before putting it together. On power-up, the board joins Wi-Fi and switches on its blue status LED. It then subscribes to the cheerlightsRGB topic on the CheerLights MQTT broker at mqtt.cheerlights.com. It uses the umqtt.robust client, which should reconnect on its own if the network drops. Each new color arrives as a hex string, gets converted to an RGB tuple, and fills all 25 LEDs. Because the broker keeps the last color as a retained message, the board lights up the moment it subscribes. The LEDs are bright enough that Andy layered tracing paper over them to make it bearable.
We have 25 WS2812B LEDs, on a small device that we can power via USB and connect to the interwebs… so clearly, I had to do something with that.
Andy Piper, Making a “CheerDot” with MicroPython
Read the full walkthrough on DEV, and get the code on GitHub.
Discover more from CheerLights
Subscribe to get the latest posts sent to your email.

