Intro: Carlitos' Project: RGB LED Mood Cube
Glowing colour-changing objects are always cool. So why not make your own? Mood lights have been around for some time and, while it is cool to have a colour changing light, it would be even cooler to have something more complex and geekier. An RGB LED Mood Cube seems to be the way to go.
Step 1: Materials
|1x LED Cube Kit|
Provides the LEDs and all the structure required to create an LED cube
It is a special Arduino microcontroller built to control up-to 192 LEDs.
|1x UartSB (USB-to-serial adaptor). |
A USB to serial interface that is used to program the Rainbowduino (or for serial communication in general) trough a USB port.
|1x USB Cable|
A cable to hook-u the UartSB to the Computer
|1x 9V Wall Adapter|
A power supply that will power the cube once the assembly and programming are done.
Step 2: Tools
|1x Wire Cutter|
It will be used to cut the leads off components.
|1x Soldering Iron|
In order to solder all the (many) connections, a soldering station might be preferable since it provides steady and reliable temperature control that allows for easier and safer soldering (you have less risk of burning the components if the temperature is set correctly).
|1x Third Hand (optional)|
A third hand is always useful for holding components and parts when soldering.
|1x Small Flat Head Screwdriver|
This will be used for un/tightening terminal blocks
Necessary to program the Rainbowduino using the Arduino IDE
Step 3: Assembly
The first step is to assemble the LED cube kit. This kit is much easier to put together than the more common way of constructing an LED cube using the LED leads as the supporting structure.
The kit includes all the parts required to hold the LED together and takes care of all the complex wiring. Full instruction on how to put the cube together are available in PDF format.
Once the cube is assembled, we need to drive it in order to display cool stuff in it. For this, we use the Rainbowduino, an Arduino clone created specifically for driving massive amounts of LEDs. The cube fits directly on top of the Rainbowduino, and can provide power to it by using the included JST cable. When connecting both modules together, it is important to make sure the "Green" male headers from the LED cube match the "Green" female headers on the Rainbowduino. Also, it is important to set the Rainbowduino switch to “JST”.
Now that all electrical connections are done, we need to write some software in order to make it display cool stuff in our new cube. We took the liberty of modifying, cleaning and updating the plasma code readily available for the Rainbowduino. This new code should display a nice smooth wave as of colours that propagates softly though the cube. The code can be downloaded from here: Rainbowduino-RGB-LED-Matrix-Plasma.zip.
In order to upload this code to your Rainbowduino, you will need to use the Arduino software, so, if it is not already done, it has to be installed. Also you will need to install the USB-to-Serial adaptor drivers.
Once the code and the Arduino software are downloaded and installed, simply unzip the code and open the .pde sketch file found inside of the unzipped folder using the Arduino software. Then, upload the sketch to the Rainbowduino using the USB-to-serial interface.
Now that the Rainbowduino is programmed, simply remove the USB interface, plug-in the power adapter and admire the light show!
Step 4: Programming
Of course, colourful lights are pretty and everything, but for those of you who would like to program your own patterns and animations, there are functions in the provided code that allow you to set the LEDs individually. You could also add some sensors and make the cube interactive. There are even some Xbee headers that could be used to send information to the cube remotely from a nearby computer Using an Xbee module.
On the physical side, you can make a cover for your cube out of paper, plastic, fabric or whatever other materials you have on hand (make sure the material is translucent though)
Finally, at the end of the construction, you will have many RGB LEDs and a bunch of male and female headers left-over. Make sure you put them to good use in your next project.
Step 5: Get Your Own
For those of you wishing to make their own cube, you can use your own parts and buy the missing materials separately or you can get all the components in a convenient kit at RobotShop.
You are also invited to share your results and experience in the RobotShop Forum and by simply leaving a comment here.