LED Disco Light in a Jar!

 by jeff-o
Contest WinnerFeatured
This one of my entries for the Let It Glow! Contest.

Here is a nice, simple instructable for anyone just starting out with LEDs, soldering and electronics. It uses basic parts, with no mucking about with microcontrollers or timers (as fun as those are!) You can build one in an evening if you have all the parts ready to go.

But what is it? The LED Disco Light in a Jar is exactly what the name implies. Over a dozen RGB LEDs in a mason jar, frantically changing colour in a completely random pattern. It's a neat light effect for your next party, or you can use it to entertain a baby for quite a while!

See the last page for videos.
 
Remove these adsRemove these ads by Signing Up

Step 1: Parts

Here is what you need to build the LED Disco Light in a Jar:

1 mason jar, jam jar or anything with a suitably wide neck and a metal cap

1 switch

1 4xAA battery holder, in a 2x2 configuration

1 9V battery snap (mates with the battery holder)

24 RGB fast or slow-change LEDs*

12 10 ohm resistors

some solid 22 gauge wire

some heatshrink

perfboard or make your own printed circuit board**

some 25mm aluminum standoffs and matching screws

Glass Frosting Spray (optional)

  • These LEDs have only two pins, and when power is applied they automatically cycle between red, green, blue, and combinations thereof. You can find them on eBay from various sellers in Hong Kong and elsewhere.

** Making your own PC board isn't tricky, and if you know how to make them I recommend it compared to a perfboard. However, explaining how to make one diverges too far from this Instructable.
1-40 of 42Next »
Adzuom says: Oct 17, 2010. 6:44 PM
hey jeff-o I followed your instructions (except for the pcb, I just wired all the +ves and -ves together) and it worked out excellently.

I used a nice cut glass vinegar carafe I got from St. Vincent de Paul's and used slow colour changing LEDs with a 6V power supply.

Thanks so much for posting, I really like my lamp and your instructions made it easy and fun.

If anyone is curious about how it looks in motion, reply and I can post a vid to Youtube.

Looking forward to my next project - question is, does mineral oil and UV reactant paint mix?
PA100012.JPG
jeff-o (author) in reply to AdzuomOct 17, 2010. 8:56 PM
Looks great, nice work!

Regarding mixing mineral oil and UV paint... Hard to say, so I guess it's up to you! You could also try mixing other UV-reactive liquids, like highlighter marker ink and glow stick fluid. Be sure to get your proportions right, though. From what I've read the concentration can't be too low or high, or it won't work.
itjmiller says: Jun 23, 2010. 8:47 PM
How did you make the PCB with a bottle of nail polish? I don't understand. Any guides you recommend for this step? I just started with all this stuff, and I've watched people make PCB's before, but their process was over complicated.
jeff-o (author) in reply to itjmillerJun 23, 2010. 9:30 PM
Easy! I just painted the pattern on the bare PCB. The result is far from pretty, but it works. Nail polish easily resists the etchant, whether you're using ferric chloride, ammonium persulphate, or muriatic acid. When you're finished etching the board, it comes off easily with nail polish remover. I still use nail polish for touchups on boards made with the photo resist and toner transfer methods.
mastover says: Jul 29, 2009. 3:31 PM
How long does the 9v last? Looks great!
jeff-o (author) in reply to mastoverJul 29, 2009. 4:26 PM
It actually runs on 6V (4 AAs in a holder with a 9V connector). I'm not sure how long batteries last in it, I gave it to a friend as a gift before the first set ran out. Based on calculations alone, a 2000mAh battery (pretty standard for regular alkalines) would last over 16 hours.
knektek in reply to jeff-oMar 9, 2010. 12:33 PM
Dude, i can get rechables that are 4700mAh. four for £8.00, lasts for about a year! even whan frequently used. On my camera about a months worth of photos on holiday. On ebay!
jeff-o (author) in reply to knektekMar 9, 2010. 1:12 PM
Oh yeah?  That just shows how up-to-date I am!  Ha!

Well, 4700mAh AAs would indeed power it for much longer.
Gakki says: Oct 6, 2008. 11:21 AM
Is it possible to combine this with th esunjar to make this solar?
jeff-o (author) in reply to GakkiOct 6, 2008. 12:48 PM
Unfortunately no, for two reasons. The first is that the PWM output from the solar light used in the sun jar interferes with the automatic RGB switching of the LEDs, effectively "resetting" the LED to its first colour (red) over and over. The second is that all those LEDs consume more power than the solar light circuit can supply. At least, that's how it was with the solar lights I have (dirt cheap ones). It might work OK with a larger solar light.
Gakki in reply to jeff-oOct 6, 2008. 8:33 PM
Awwww.... That makes me a sad panda, but thanks for the explanation.
jeff-o (author) in reply to GakkiOct 7, 2008. 3:33 AM
I must emphasize that my tests were done using the cheapest solar light I could find, the type that use a single LED and a single AAA battery. A larger unit may work fine - you'll just have to try it and find out! Isn't that exciting? :D
LordOlimar in reply to jeff-oApr 29, 2009. 10:45 AM
Is it that each individual LED consumes more power than the solar light circuit can supply? Or is it that all 24 lights together consume more power?

Basically, could you do this with one of the cheaper solar lights but just use less LEDs?? (I'd love to be able to do this with a solar light lol)
jeff-o (author) in reply to LordOlimarApr 29, 2009. 11:14 AM
Hmmm, you might be able to run 6-10 LEDs from a single solar light circuit, though with a shorter runtime. The big problem is the PWM output from the solar light circuit. It basically continually resets the RGB LED's internal controller, so that the light is always at the "first" colour in the sequence (usually red). If you wanted to make the disco light solar powered, you'd have to skip all the energy-saving PWM stuff and drive the LEDs directly from a bank of 3AAs. There is a great collection of solar LED circuits over at www.evilmadscientist.com.
Zippy_Pyromaniac says: Jan 17, 2009. 6:34 AM
Nice instructable! For the shrink wrap you could use recycled PET bottles from - wiley's instructablenk wrap you could use recycled PET bottles from wiley's instructable -
jeff-o (author) in reply to Zippy_PyromaniacJan 17, 2009. 6:36 AM
Unfortunately, the wires here are far too small to use that method. I recommend using regular heat shrink tubing of the correct size.
Zippy_Pyromaniac in reply to jeff-oJan 17, 2009. 8:46 AM
awww
rerrett says: Jan 15, 2009. 5:34 AM
suggestion: youtube. ty
cameron59715 says: Nov 16, 2008. 3:34 PM
Hey, thanks for posting the design. I bought some slow flash RGB LED's on eBay . The "datasheet" on the eBay listing listed a voltage drop of 3.6V. All the LEDs of this type listed on eBay had the same voltage drop. I am just wondering if you had the same experience with the voltage drops on these LEDs being a little lower than listed. Thanks again. If you're interested, I have a glueless disco jar design. Bolt on the AA holder through the battery contact grommets. Isolate the contacts with nylon standoffs. What do you think?
DJesplode.jpg
jeff-o (author) in reply to cameron59715Nov 17, 2008. 3:41 AM
Wow, that's an impressive drawing! That would certainly work as well. One could also use a small square of velcro, to make the battery holder easily removable. The LEDs you have will probably work just fine on 3V each - but test them to be sure. I've found that the specs on Chinese-made LEDs can be wildly divergent, to the point that I never fully trust the "datasheet" posted in the auction.
bearsinthesea says: Nov 1, 2008. 9:18 AM
Why use a separate resistor for each branch, instead of one for all of them in the circuit coming from the battery?
jeff-o (author) in reply to bearsintheseaNov 1, 2008. 10:14 AM
The reason is that LEDs don't all have exactly the same voltage drop. When connected in parallel, as the branches are, this could cause problems in the long run. If the difference in voltage drop is large enough, then excess current could be forced through one of the LEDs leading to premature failure.
bearsinthesea in reply to jeff-oNov 1, 2008. 2:12 PM
I almost understand (noob). Maybe not. You have to know voltage vs current for this, ja?

So, if i had a resistor between the batteries and the power rail to reduce the voltage, most of the current might be hitting one of the LEDs first, even thought all the LEDs light up. And that LED might fail first, because of the current, even though the voltage is ok for it. :/

Because the voltage is the same across all the branches in parallel, but the current adds up for each branch, and could be slightly different for each branch. http://www.kpsec.freeuk.com/voltage.htm

Would it be ok if they were all the same LEDs (and therefore the same voltage drop)? I am using all the same FLEDs. (very cheap from china, good tip there).

No, I don't get it. Please tell me where I'm wrong here:
With a resistor after the battery, the current is reduced to a low level, so it can't damage any LEDs, even though the voltage drop will still be the same for every branch (6V). Because resistors limit current.

Maybe i need a different voltage/current for dummies link than the ones i am reading...

Thanks for the help, this is a cool project, and I don't want an LED to burn out early.
jeff-o (author) in reply to bearsintheseaNov 1, 2008. 7:58 PM
You've almost got it. It's true, each branch will drop 6V from the end of the resistor to the end of the second LED. It's also true, that the currents in each branch will be different from each other, and will all add together.

The resistor is there to absorb (or drop) some of the voltage going through each branch, according to V=IR. So, if each LED should be consuming 2.5V (total 5V) at 20mA, then the resistor must drop the remaining 1V. Using the equation I listed, the value of the resistor must be 50 ohms.

Now, note where I wrote "should be." In reality, unless you measure the voltage drop of each LED and group them together, you never really know how much the voltage drop could be. It could range from 2.5V to 3.1V, for instance. So, the resistor could be anywhere from 50 ohms to 1 ohm. We just pick a value that will work with the average voltage drop we're expecting to see from the LEDs.

The trouble comes when you hook up the LEDs in parallel. LEDs are not resistors, they behave differently. What happens if one LED drops 2.5V, while the other drops 3.1? The LED with the highest voltage drop determines what the drop along the entire parallel chain will be. So, the 2.5V LED is actually being fed 3.1V, which is too much for it to handle. It burns bright for a while, then dies.

A resistor for each parallel LED ensures that each LED gets only the voltage it needs, with the rest being sopped up by the resistor.
yourtubemeera says: Jul 16, 2008. 11:53 PM
hey u could keep it upside down for the right effect
Sir-Jackington says: May 29, 2008. 6:58 PM
Thats pretty cool and I do believe I may put your Instructable to good use and make one or two maybe even three
jeff-o (author) in reply to Sir-JackingtonMay 30, 2008. 5:35 AM
Cool. They go together pretty quick. Try using different shaped jars!
J-Five says: May 29, 2008. 5:43 PM
One word GROOVY!!!
crippledeath says: May 27, 2008. 9:55 AM
great job im going to make my own now you have my vote check out my site thank you just click on the link http://www.squidoo.com/DIYSolar
GorillazMiko says: May 19, 2008. 8:17 PM
LOL at the baby. Nice job, you definitely got a 5/5 star rating and my vote.
GorillazMiko in reply to GorillazMikoMay 19, 2008. 8:17 PM
Oh wait, nevermind, you can't vote yet...

I'll remember though!
Patrik says: May 19, 2008. 10:50 AM
Ooh - purty! :-) Sort of a souped-up version of the LED Mood Jar.

For anyone trying to replicate this: note that the PCB board or perfboard is kinda optional here. You could just solder all the terminals together instead. For example, solder all the + terminals to a common + wire running the circumference of the lid, and gather all the - terminals to a wire at the bottom of the jar, leading back up to the battery.
jeff-o (author) in reply to PatrikMay 19, 2008. 1:35 PM
Yep, the LED Disco Light in a Jar was inspired by the LED Mood Jar and a few other LED-in-jar instructables here. I suppose you could try it that way, but then you'd have to figure out a different way of securing the battery holder so it doesn't rattle around in there. The PC board provides a nice sturdy surface to attach everything.
Patrik in reply to jeff-oMay 19, 2008. 2:58 PM
Yeah, rattle-proofing would definitely be a more important design criterion - especially in the hands of little ones. I would probably just hot glue the battery holder to the lid, moving the switch to the side a bit. Do the LEDs rattle around much? There's no worry about the LEDs themselves breaking, of course, but prolonged movement might weaken the solder joints. I guess you could always wrap a little elastic band around the LED strands + battery holder.
jeff-o (author) in reply to PatrikMay 19, 2008. 3:13 PM
The LEDs don't move much once they're in the jar, there isn't much room between the battery holder and the glass. A dab of hot glue at the base of each branch would probably do the trick if the jar were much larger, with more room to spare.
mspark400 says: May 19, 2008. 1:44 PM
splendid! good job!! vote and rating for you!! horay!!
exita says: May 19, 2008. 11:46 AM
Dude, Your kid is so cute :-)
jeff-o (author) in reply to exitaMay 19, 2008. 1:38 PM
Thanks. :D
fungus amungus says: May 19, 2008. 10:52 AM
You should upload those videos to youtube or google video and embed them. A lot more people will see them that way.
jeff-o (author) in reply to fungus amungusMay 19, 2008. 1:27 PM
I'll have to get a Youtube account... :)
1-40 of 42Next »
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!