Skip to content
  • Live
  • Blog
  • Shop
  • Contact
  • About
  • Discord
  • GitHub
  • YouTube
  • Twitch
  • Instagram
CheerLights

CheerLights

We are all connected.

CheerLights on GitHub, Twitch, and Discord. We are all connected.
  • Learn
  • Build
  • Connect
  • Toggle search form

Wireless CheerLights Lamp: Ping Pong Balls on an ESP8266 Over MQTT

Posted on December 28, 2015November 28, 2026 By Hans Scharler No Comments on Wireless CheerLights Lamp: Ping Pong Balls on an ESP8266 Over MQTT

Jim, who writes Jims blog at jekw.co.uk, built a wireless CheerLights lamp: twelve ping pong balls on tall stalks, each one lit from inside by an RGB LED. He calls it an “Andy Stanford-Clark inspired project” and worked on it, on and off, for a year.

Three views of a lamp made of twelve ping pong balls on long white stalks rising from a wooden box of electronics: unlit against an orange wall, then glowing red, orange, green, and violet in the dark, then pink, gray, and pale blue.
Photo: Jim, from his blog post

The base holds an ESP8266-12 Wi-Fi module and two WS2803 LED driver chips on one board, all running from a single 9V power supply. Each stalk is a length of phone cable stiffened with wire from a chain link fence, with the LED glued on top and the ball fixed in place with white Sugru. Jim programmed the ESP8266 in Lua on the NodeMCU firmware. The code joins Wi-Fi, connects to the MQTT broker at iot.eclipse.org, and subscribes to the cheerlights topic, where each new color arrives as a word like “red” or “blue.” Like the Smart Star before it, the lamp has each color pushed to it over MQTT instead of asking for it on a timer. Each new color lights three balls and pushes the older colors along, so the lamp always shows the last four. Jim noticed “a fair few ‘black’ messages” too, which switch three of the balls off.

I liked the idea of Cheerlights using the MQTT gateway hosted on the iot.eclipse.org broker at mqtt://iot.eclipse.org/cheerlights. I also liked the effect of ping pong ball over RGB LED.

Jim, on his blog

The wiring plan, the build steps, and the full Lua program are on Jim’s blog.

Share this:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Reddit (Opens in new window) Reddit
  • More
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Email a link to a friend (Opens in new window) Email
  • Print (Opens in new window) Print

Related


Discover more from CheerLights

Subscribe to get the latest posts sent to your email.

Projects Tags:Community Spotlight, ESP8266, mqtt

Post navigation

Previous Post: Rudolph the (Not Always) Red-Nosed Reindeer Powered by CheerLights
Next Post: CheerLights on an Adafruit HUZZAH: A First IoT Build With One RGB LED

Related Posts

James Bulpin in an office lobby beside a decorated Christmas tree, wearing a gray jumper covered in glowing red LEDs and red-and-white ribbon. CheerLights Christmas Jumper: An IoT Sweater Anyone Can Change Projects
A glass jar with a dark lid glowing bright blue in a dark room, light spots across the glass catching the glow. CheerLights Jar: A NeoPixel Ring and Feather HUZZAH in a Glass Jar Projects
A Raspberry Pi Zero W in a red acrylic case wired to a stick of eight glowing NeoPixels, with a bulb-shaped lamp glowing blue and violet behind it. CheerLights in HackSpace Magazine: Bruno Santos’s Pi Zero W Tutorial Projects

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Get new CheerLights posts by email

Tutorials, new builds, and announcements, one email per post.

  • CheerLights on GitHub: Where Every Open Source Project Lives
  • CheerLights for Home Assistant: Your Lights Follow the Color Everyone Shares
  • CheerLights Terminal 0.2: Watch the Color Change Live in Your Terminal
  • CheerLights on an omg.lol Profile Card: A Display With No Hardware
  • CheerLights on Bluesky: Post a Color and Lights Around the World Change

Copyright © 2026 CheerLights.

Powered by PressBook Grid Blogs theme

Loading Comments...