Rainbow Jar - RGB Pixel Strip Controlled Via Arduino

by phenoptix in Circuits > LEDs

76014 Views, 502 Favorites, 0 Comments

Rainbow Jar - RGB Pixel Strip Controlled Via Arduino

2013-08-02 13.01.jpg
2tajt.gif
Our most popular item on our display at Maker Faires is always the Rainbow Jar. One customer has already replicated it so we thought we'd share how we made it so you can make your own!

https://vine.co/v/hqxpVgdFQ9z (tried embedding this vine but it breaks instructables!)

Getting Started - What You Need

Parts.jpg
Tools.jpg

This is all the stuff we used. 


What You'll Need


50cm of Addressable LED Strip

Plastic Sweetie Jar (found them on eBay)

Arduino Uno

Pin Headers (UK)

Stripboard (UK)

Rainbow Wire

5V Power Supply

Something to diffuse the light - we've used RGB LEDs!


Tools


Soldering Iron and Solder

Wire Strippers

Craft Knife and Ruler


All of the links are to our site - in the US you can get everything from Adafuit or Sparkfun

Preparing the Strip

Soldered.jpg
TapeDetail.jpg
WireDetail2.jpg
Strippers.jpg
Strip.jpg
Sparate.jpg
The strip is controlled by an Arduino, using two control wires Data and Clock. We're attaching green to the data and yellow to the clock. Orange to the +5V and Blue to the GND

Remove the red and brown wires from the rainbow cable and keep them for later. Strip the four wires at once using the super cool and handy Hakko Cutters.

If you're using our Rainbow Cable then bend the orange and blue cables out a little. A little bit of solder added to the tips of the wire will help them adhere when you hold them onto the pads and add some heat from your soldering iron.

Make a Shield!

2013-08-01 14.44.jpg
Snap.jpg
Two Snapped.jpg
Board.jpg
Score and Snap.jpg
Snap2.jpg
Soldered Shield.jpg
Separate.jpg
Solder23.jpg
details.jpg
Adjust.jpg
Now we make a little shield for the Arduino.

Take the pin headers and snap off two lots of four pins. Put them into the Arduino, you'll want them in the 0,1,2,3 on one side and the Vin GND GND and 5V headers on the other side.  Put the strip board on top and mark up how much of the board you need. They're not opposite each other so you won't need to do anything with the copper on the stripboard.
Score along the lines of what you need on the stripboard and snap it along the score lines.

Now we do a little alteration of the pin headers, pushing them down on a hard surface until the black plastic bit is flush with the hard surface. That way we can put the plastic bit on the side of the stripboard with no copper and have a nice bit to solder onto the copper.

Strip the other ends of the rainbow wire and solder the Clock and Data Pins to the strips that line up with 3 and 2 Respectively. Don't worry if you do them the other way by mistake, you can change it in the code!

Solder the blue in line with one of the GND Pins and the orange in line with the 5V.

Add External Power!

2013-08-01 14.59.01.jpg
2013-08-01 14.58.18.jpg
2013-08-01 14.55.17.jpg
This seems to run fine as it's only 50cm of strip through the Arduino, but lets make it a bit future proof adding external power, using a cool 2.1mm female jack.

Using a bit of the red and brown wire we cut earlier attach to the 5V and GND lines on the shield we just made. Attach the 5V to the +ve on jack connector and GND to the -ve.

Program the Arduino

2013-08-01 14.26.05.jpg
2013-08-01 15.01.30.jpg
Now lets give your project some brains!

Download the awesome library from Adafruit.
Unzip the library and put it in your Arduino libraries folder. 
Attach your Arduino to your PC via a USB cable and boot up the Arduino IDE load the Stringtest example and change the length to 16 LEDs.

Upload to your Arduino and try the shield out! The test is very pretty, watch it! If it's not working, check your soldering and that you have the clock and data the right way around.



Prepare the Jar

JarKnife.jpg
JarCut1.jpg
JarCut2.jpg
JarCut3.jpg
For whatever reason the jar looks better with the light going from bottom to top, also it's more stable with the cable in the bottom.

So it's time to introduce the knife to the plastic jar, it cuts well but be careful. Cut away from you.

You want a nice neat letter box to slot the strip through.

Thread the Strip, Coil It Up and Add Your Diffuser and You're Done!

2013-08-01 15.00.56-2.jpg
2013-08-01 15.01.45.jpg
2013-08-01 15.04.50.jpg
2013-08-01 15.04.20.jpg
2013-08-01 15.02.22.jpg
2013-08-01 15.02.02.jpg
Thread the strip through the letter box you've made then coil it up and hold it towards the back of the jar. Now start adding your diffusing materials. If you've left the strip running like it did you'll see it take shape and be able to adjust the strip and diffusing material to make the best jar you can.

Edit here that needs some photographs. I went back and repacked the jar. This time using a roll of bubble wrap in a sausage shape to attach the strip to. Then the internals of the wrap don't take up your diffusing materials an keeps the tape neat so you can have it at the back of the jar.

Once done. Stand back and admire your work!

Fin!

2013-08-02 13.01.jpg
Stand back and admire your work. Oh it looks best in the dark, so either wait until it's dark or turn off the lights (or build a box like I just did!) Let us know what you think!