Nursery Robot Connected to CheerLights

Introducing CheerLights

CheerLights is an “Internet of Things” project created by Hans Scharler that allows people’s lights all across the world to synchronize to one color set by Twitter. This is a way to connect physical things with social networking experiences.

I wanted to have a CheerLights display for my soon-to-be-here son’s nursery. I didn’t want a bright light, but something in the background. I found a Robot Nightlight on Amazon and purchased it. This is a great night light and you can change the color using the included infrared remote control. To connect this light to CheerLights, all you have to do is build something to transmit the IR code for you. This project uses an Internet-connected Particle Photon that subscribes to the latest CheerLights color on ThingSpeak and transmit the IR code as if the button was pressed on the remote control.

To change the color of the CheerLights Robot, send a tweet that mentions CheerLights and a color name.



Source Code

The code for the Particle Photon is really straightforward. The gist of the code is that the Particle Photon will request the latest CheerLights color from ThingSpeak. If the color matches one of the defined colors, the Photon will transmit the IR code to the robot just like the IR remote. The robot will change color when CheerLights changes color.

View the source code on GitHub.

Hacking the SleepyLights Robot

I recently bought the SleepyLights Robot by Lumenico for my soon-to-be-here son’s nursery. The robot light is a laser cut, acrylic robot that is illuminated with colored LEDs. You control the robot’s color by using an IR remote that is included. You can change the color to any color that you want, but you have to use the IR remote control.

I want to connect the SleepyLights Robot to the CheerLights project. CheerLights is a global network of colored lights that all stay synchronized with each other. When one light changes to blue, all of the lights turn to blue. Right now, there are over 20,000 lights that have been linked together.

In order to connect my SleepyLights Robot light to CheerLights, I am going to transmit IR codes using a IR LED connected to a Particle Photon. The Photon is a Wi-Fi connected device that you can program to all kinds of things. In this case, I will program the Photon to send the color codes that CheerLights is set to.

Stay tuned for project updates and source code…