Introduction: Fuzzy Logic Mood Light With LEDs

Picture of Fuzzy Logic Mood Light With LEDs

In this instructable i will make a red mood light out of stuff i had using things i found around the house.

After a particularly long, awkward night entertaining company i found myself in need of a low wattage light source of the romantic inclination. Without one i found myself in the dark and was reminded of Woody Allen's character In Annie Hall.

" Hang in there for a second. I got a
little-little artifact. A little erotic
artifact, that-that I brought up from the
city, which I think, uh, is gonna be perfect. "

The artifact in question was a red light bulb, I think i can do better. Lets get started

Step 1: Make a Base

Picture of Make a Base

I found a chunk of sign foam and cut it into a square. Sign foam is a high density urethane foam thats light, easy to work with, waterproof, unaffected by moisture and non conductive. I always find scraps around my house, as should you.

I used a small hacksaw to rough out the shape and 80 grit sandpaper to smooth out the edges. I went with a more organic shape because i didn't want to take the time to get all the edges square. im lazy that way.

Step 2: Making Holes

Picture of Making Holes

Next i marked up twenty five spots on the foam where i wanted the leds to go. I happened to have 25 diffused red 5mm blinking leds left over from making throwies. I wish i had red/blue or reg/green flashing 5mm leds for style, but all red makes up for it in pure machismo.

I made sure to lay out the 5x5 grid pattern in no particular order because i knew id never be able to properly line everything up without measuring. And measuring was imposable since i sanded off all the straight edges. So i just picked 4 spots and eyeballed the middle points till i had 25 dots marked out.

Cheap 5mm chinese leds are just a little smaller then my cheap 13/64 drill bits from harbor freight. So i used that drill bit to bore a hole at each dot. Not wanting to put holes in my patio furniture i used an old box as a base. I tried to drill straight up and down, but some of the holes are at odd angles. Meh

Now most of the LED housing fits into the hole, but the flange at the base of the diode body keeps it from going all the way in. Using a piece of scrap foam and a 1/4 inch bit i test the depth before counter sinking all 25 holes. Id hate to ruin this one now that ive spent so much time on it.

Finding the depth acceptable i mark it with electrical tape and proceed to countersink all 25 holes so the leds just barely peek out when installed. I like the look of proper led mounts, but for projects like this the cost is just to high for that "professional" look. Check ebay for prices, in bulk good mounts are rather reasonable.

After blowing all the dust out its time for a quick test fit to make sure all the LED's seat properly; then its on to painting.

Step 3: Painting

Picture of Painting

Painting is easy, i just make it look hard.

Raw sign foam is porous stuff and just sucks up paint while the panel parts paint beautifully. First its two coats of black primer, then 2 coats of red enamel. Then colour sanding and another coat of red. Finally for that "wet look" i hit it up with a coat of clear acrylic. The clear takes forever to dry and 2 hrs later i left a bunch of fingerprints in it. This required ANOTHER coat of clear and an over night cure just to be safe. The end result is candy apple red on top with a slightly less shiny effect on the sides. Since i only plan on turning it on when the other lights are off, this is of little consequence.

While im waiting for the paint to dry, i decided to test out the leds.

Step 4: LED Burn in Testing

Picture of LED Burn in Testing
Since my leds have a super wide voltage range and some built in resistors anyways i decided to use a 6v 650ma wall wort with no other electric components to power this lamp. Im not adding any additional resistors because im lazy, but i dont want to burn the house down ether. The simple solution was to drop all the leds in a breadboard and plug them in just to see what happens.

This is a video:

In theory everything about this is wrong, the voltage is to high and there isn't enough current from the transformer. If i remember highschool physics correctly this should rip a hole in space/time within the first 5 minutes. Sadly, after 2 hrs the leds are only slightly warm.

Step 5: Soldering

Picture of Soldering
The first thing i did was make sure all the leds were in the holes properly, with all the little legs in one direction and all the long ones the other way. then i flipped the piece over and checked to make sure none of them weren't sticking out to far (or not enough). While im sure no one else will ever notice (or care), it would bother me forever.

Next i cut some 20g uninsulated soft copper wire into sections long enough to connect all the legs in one row. I just laid the wire next to the positive leads and added a drop of solder to make them stick. Copper wire loves being a support in my electronics projects as its easy to work with and takes solder easily. I soldered all the positive legs together in one row, then all the negative ones, making sure to leave a little extra wire hanging off the side. I checked each row as i finished to make sure (one last time) that there were no bad LEDs. I actually found one that got heat damaged from the soldering and needed to be replaced. Its a lot easier to do this now then later, so check often. That extra bit of copper off the end is used to connect all the rows so the 25 LEDs are essentially all connected to the power supply directly.

Some people would call this parallel, i would call those people nerds. Normally im all about wiring LED's in series, but because these are >blinking< diodes they need to be treated differently. If you add anything after the blinking led in series, that extra component will only get power when the blinking LED is on. I have used this to my advantage in other projects, using the blinking led as a cheap/easy timer, but here i wanted each light to blink independent of all the others. So parallel is a must.

At some point i clipped the barrel plug off the wall wart and stripped the insulation off the wires. These bare ends i now solder to the leds. Because the diodes are all in parallel i could solder these power lines anywhere and the unit would function. After plugging it in to the wall everything worked great.

Heres a video:

The last thing to do is clip all those unsightly legs from the back and put it someplace where a red light is needed.

Step 6: Final Thoughts

Picture of Final Thoughts
In retrospect 25 blinking red LEDs is not as romantic as I had first envisioned. At best it projects a warm, slowly moving red light on the wall akin to a dying fire. At worst it looks like some old tymey computer. Depending on your company this might be sexy, but everyone will know your a nerd.

The really cool part of working with lots of blinking leds is the realization that none of them work on the same timer. Low quality standards during manufacture means slight differences in each led, no two are alike. Put three together and they chase each other endlessly one way then the other. Add more and other patterns seem to emerge and fade away all by them selfs. This means sudo random effects can be accomplished without complicated micro controllers or programing skills. Impress your friends, people inherently want to believe order is present where none exists.

*EDIT* Feb 27

By popular demand i took some extra photos of the finished product.
And an extra video:

Eat your heart out kids.

*edit* July 21

Existence is random.
Has no pattern save what we imagine after staring at it for too long.
No meaning save what we choose to impose.


treg (author)2008-09-09

If the Ac adaptator is not able to send enough current, it mean that it will : -Over heat a little (and may became hot during summer days) -Not be able to send as much tension (volts) as it should -Will not be able to send a constant tension (it will vary a little bit with the same period as your AC source, 50 or 60Hz) The two last points explains why you leds do not over heat to much (did you try to read the real tension with a voltmeter ?), but there are certainly better way of doind things, like : -Add a voltage regulator before the leds -Add a non blinking led in serie with each the blinking led, hence double the voltage drop (but you'd have to check the specs of the integrated resistor in the leds to see if the voltage drop is not too strong) -Add a resistor (cost about $0.15 !) Anyway, the leds will age faster, but it is not a real problem. Just remmeber to check the temperatur of the AC adaptator from time to time after long use in hot days just to be sure.

Pwntalive (author)treg2008-09-09

Wow, thats a mouthful. And while you are most likely right on several counts, my unflinching laziness makes me not want to do anything at all at this point. A few months back i snipped the wall wort leads and added a 9v battery clip for portability.

pbaron (author)Pwntalive2013-12-23

My electronics knowledge consists of "find an instructable, watch how they do it, do it, does it work? yay!" In terms of adding a 9v battery clip and making this battery powered, would that burn out the LEDs since it's more voltage than with the power source (which you had at 6v if I remember correctly?) I'm making a robot costume and I don't want to be connected to a wall power source.

tisaconundrum (author)pbaron2016-04-04

DC to DC converter would save you

luckyvictor (author)2010-11-17

Why does it blink randomly?? wouldn't the LEDs stay on while there is a power supply?

Pwntalive (author)luckyvictor2010-11-17

did you read the whole article? im sure the answer to your question is in there someplace.

javier7high (author)2008-10-19

schematics of the wiring?

Pwntalive (author)javier7high2008-10-20

its just a power supply and a load. If you need a schematic for that, perhaps you shouldn't be using power tools called for in step 2. Srsly, did you even read this instructable?

javier7high (author)Pwntalive2008-10-20

lol yeah sorry. its just that i dont want to burn my poor leds from wiring em wrongly im new in electronics u know. but i found another instructable better explained. sorry for the stupid question

JellyWoo (author)2008-09-09

i'm sorry if you already said this but does this blink with the music? also is the pattern random? thanks

Pwntalive (author)JellyWoo2008-09-09

See step 6 for epic justice.

carmatic (author)2008-05-04

does the circuitry in the leds break the connection between the positive and negative terminals of the leds, or do they actually isolate the emitter from the electricity and draw power all the time? if it is the latter, then you can just wire them in series but you need enough voltage for each of them if it is the former , however, there is a possibility that the leds will shut off one after the other if wired in series, kind of like a chase light sequence, maybe because it uses a capacitor combined with the flow of current to time the blinks, but it really depends on the design of the circuitry inside them

Pwntalive (author)carmatic2008-07-10

If you put them in series, the whole string blinks at once. And they draw way more current then a standard LED by itself. LED throwie tests show only 25% the life of throwies made with "super bright 10mm" LEDs. What does that mean? I dont know.

josephprivott (author)2008-07-10

What neat project and a great video (props for the cover song). It almost appears that the lights are coordinated to the song

Pwntalive (author)josephprivott2008-07-10

Thanks, yeah funny thing is they aren't. and they cant. But it sure does look at way. My theory is with that many lights in a grid, the viewer starts seeing patterns that are totally random. And the guy playing the song, that was totally random to.

matseng (author)2008-02-27

The flashing looks nice. But where's the fuzzy logic? I cant find any logic, fuzzy on non-fuzzy. I don't even see any fuzzies on the enclosure/box. Unless.... you count the very imprecise and fuzzy measurements made for the drilling holes as fuzzy ;-) I know how hard it is to drill in neat and even rows using a hand tool. I drilled eighty holes in a board for my upcoming instructable "The Tangible Drummachine" and that was not fun to do....

T3h_Muffinator (author)matseng2008-04-18

Hey - so after thinking about this for a bit, I think Zachninme and I came up with a way to make this work on pseudo-fuzzy logic. I'd call it more of random chance, but at least it uses standard LEDs. Basically - hook up all of the LEDs in series with self-resettable fuses low-current(20mA), and then in parallel. In (my) theory (and I don't know much....) Current should flow in different magnitudes through each fuse/LED pair due to imperfections in manufacturing. This should sink current through some pairs and not others, but once too much current is flowing through the pairs, the fuse kicks out and a new pair lights with the extra current available. Each pair should repeatedly flicker at some (most likely super-high) frequency. I think we should be able to control that frequency, though, with a capacitor somewhere. What do you think?

Pwntalive (author)T3h_Muffinator2008-04-19

Im going to say thats out of my league to comment on. I might, however, be interested in breadboarding it. If i understood the self-resettable fuse part.

zachninme (author)T3h_Muffinator2008-04-18

I'm not sure if even this is fuzzy logic... just cooler :P

PKM (author)matseng2008-02-27

I guess it could kind of mean pseudo-PWM to reduce the light output to an average of 12.5 LEDs by having them blinking randomly... I don't know. But I do know that I want one. And maybe some other colours of LED for a more Mathmos-y feel...

Pwntalive (author)PKM2008-02-27

Not as many colours offered in blinking leds, try ebay. And buy in bulk for the best prices.

imarzouka (author)2008-04-03

You should use resistors to limit the current through the LEDs. Let this calculator do the design for you:

Pwntalive (author)imarzouka2008-04-03

See Step 4 for further info regarding resistors and this project. But i like how your totally plugging your site, great jorb.

btop (author)2008-03-29

Wow, looks cool :) maybe if you sanded the leds a bit that would diffuse the leds and maybe give out a more romantic glow?

RichardBronosky (author)2008-02-29

[quote="Pwntalive in step 6"]
This means sudo random effects can be accomplished without complicated micro controllers or programing skills.

The effects are cool, but do they really require root privileges?


Oh, yeah! I went there. While every other *nix-head fought the urge. I went there.

ewertz (author)RichardBronosky2008-03-01

"sudo", "random" and "without...programming skills".

Sounds like $75/hour contract admins I had to stomach during the last Internet bubble.

I guess it could have been worse. If they *had* programming skills, their sudo-randomness would have been even more efficient.

RichardBronosky (author)ewertz2008-03-03

I think you missed the joke. I was punning on the authors accidental use of sudo when it should have been pseudo.

In all of your usages it should have been pseudo also.

ewertz (author)RichardBronosky2008-03-04

*I* certainly didn't.
I'm the other technical guy in the country that can actually spell and form complete sentences.
Nice to finally meet you.

My problem is uncontrollable sarcasm.

dag yo, thanks for catching that. all instances of sudo should be Judo, for its gentle way with the ladies. My bad. Seriously though, thanks for pointing that out. LOLz

Pwntalive (author)ewertz2008-03-02

I think the bill for this whole thing came to maybe $3. Thats efficient enough for me. And as much as id love to throw in a whole section on multiplexing this whole thing, i was afraid of talking over peoples heads. Check out the comments on "where do i get LEDs" and "are you driving those with AC"

WingDings (author)Pwntalive2008-03-03

lol >.

Wow - you are a true geek! I had to look that one up to see what on earth you were talking about! :D

samuelterminator (author)2008-03-03

this may be a noobish question, but what type of solder did you use?

Oomar Galor (author)2008-02-28

Pwtalive, Good work!! I was wondering what the power source was?

Pwntalive (author)Oomar Galor2008-02-28

check step 4 for epic justice.

WingDings (author)Pwntalive2008-03-03

Lol! Keep the pith coming!

Oomar Galor (author)Pwntalive2008-02-29

Pwntalive, Thanks for the info.

hooloovoo33 (author)2008-02-29

Having this light up in time to music would be sexy. Also randomizing a bunch of different colors could be cool too.

jojovandiver (author)2008-02-29

This is the best instructable I have read so far!!! Do you make any leds powered by solar?

Pwntalive (author)jojovandiver2008-02-29

Try my other instructable, its full of even more pithy goodness.

Mexicalex (author)2008-02-29

Awesome. I totally think it's romantic...

Brennn10 (author)2008-02-27

I will have to try the copper wire idea for my next LED project!

dUc0N (author)Brennn102008-02-28

Agreed... I love the way you ended up doing the wiring. Simple and very clear. You really only have to look at it for a second or two to understand what's going on.

Pwntalive (author)dUc0N2008-02-28

Thank you, instuctables is all about being easy to use

GorillazMiko (author)2008-02-26

That's really awesome. Great job getting featured, it came out AMAZING. And agreeing with canida, adding the finished product would be great. Nice job! +1 rating.

Pwntalive (author)GorillazMiko2008-02-27

Additional photos Now up, thanks for the rating

Brennn10 (author)2008-02-27

Sorry for multiple comments, but quick question. Did you include an IC, or are your LEDs just the ones that blink? Oh yea, where did you purchase your LEDs? Thanks and nice job, I am thinking of doing this when I have time!

matseng (author)Brennn102008-02-27

From Step5 "Normally im all about wiring LED's in series, but because these are >blinking< diodes they need to be treated differently."

So this projects needs 25 self-blinking/flashing leds.

It would probably be a lot cheaper to use 25 ordinary leds and a microcontroller for $2, but that would require a lot of programming and more complicated wiring though....

servant74 (author)matseng2008-02-27

Yea, DC current and blinking/flashing LEDs. For those interested, googling 'blinking LED' found many vendors. The one at the top of the list had them for US$.50 each in 10+ quantities. You can probably find them for less. I like them as 'attention getters' where I just don't want to have the issue of putting in more circuitry.

matseng (author)servant742008-02-27

$0.50 is not too bad. Sometimes I wish that I lived somewhere where I could buy electronics stuff without shipping them across half the globe....

About This Instructable




More by Pwntalive:Nerf Hammershot Blaster Disco Glitter Blast LARP PaintFuzzy logic Mood light with LEDsRadiation Kid Gun Build
Add instructable to: