The CheerLights color is now set on Discord and Bluesky. This post is from when anyone could tweet a color to CheerLights. Today, use the /cheerlights command on the CheerLights Discord, or post on Bluesky with #cheerlights and a color. Change the CheerLights Color has every way, and the Learn page has the current API.
HackSpace magazine issue 5, the April 2018 issue, is on sale today, and its CheerLights tutorial is by Bruno Santos. “Connect to your fellow makers with CheerLights” builds a CheerLight from a Raspberry Pi Zero W, a NeoPixel stick, and a Python script.

The parts list is short: any Raspberry Pi (Bruno used a Pi Zero W), a stick of eight NeoPixels, and three female-to-female jumper wires for power, ground, and one GPIO pin. The script uses Adafruit’s NeoPixel library and the requests library. Every 10 seconds it reads the latest CheerLights color as a hex value from the CheerLights API on ThingSpeak, and when the color changes it sets the pixels one by one. Bruno also does the power math: eight pixels can draw up to 480 mA, which the Pi’s 3.3V pin can supply, while bigger displays need their own power supply. To change the color for everyone, the tutorial says to tweet @cheerlights with one of the eleven colors.
The magazine photo shows CheerLights “running on two different projects”: the tutorial build in front and a bulb-shaped lamp behind it. Bruno’s own GitHub repo, from January 2018, runs CheerLights on Pimoroni’s Mood Light kit with a Pi Zero W and fades from one color to the next.
It’s part art project, part a way of learning about the Internet of Things, and part a way of feeling a little more connected to the global maker community.
Bruno Santos, in HackSpace magazine issue 5
The full tutorial is on pages 90 and 91 of the free PDF of HackSpace magazine issue 5, and his Mood Light version is on GitHub.
Discover more from CheerLights
Subscribe to get the latest posts sent to your email.

