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.
For her first Internet of Things build, Debra of Geek Mom Projects connected a single RGB LED to CheerLights with an Adafruit HUZZAH ESP8266 board. She found CheerLights through Dr. Lucy Rogers, who made a color-changing Christmas tree for the cast on her arm.

The whole build sits on a breadboard: the HUZZAH, a common-cathode RGB LED, three resistors, and a few wires, plus a USB-to-TTL cable to program the board. The HUZZAH and the cable cost $9.95 each. She adapted the Arduino sketch from bbx10’s esp-cheer-lights, changing it from NeoPixels to one RGB LED. Every 15 seconds the HUZZAH asks the CheerLights channel on ThingSpeak for the latest color as a hex value. The sketch splits it into red, green, and blue and sets the three LED pins with PWM, multiplying each value by 4 because the HUZZAH’s PWM runs to 1024, not 255. Anyone with a Twitter account picks the color by tweeting a color name with #cheerlights or to @cheerlights.
The code works very well, and it’s fun to watch the LED change colors unpredictably. It can go several hours without a change, then sometimes it updates itself every 15 seconds, depending on the Twitter activity.
Debra, on Geek Mom Projects
The parts list, wiring diagram, and full sketch are on her blog.
Discover more from CheerLights
Subscribe to get the latest posts sent to your email.

