Arduino RGB room lighting help!?


I have been looking around for what kind of transistor, mosfet, what have you, that could take in the power from the power supply of 12V 3A, and take in the PWM signal from an arduino to adjust the brightness for RGB led lighting I have in my room.

I know there are a few ways, but I would like to know what the basic parts I would need, transistors, resistors, capacitors, to get this going.

Any and all input would be awesome. Thanks!

15 answers
sort by: active | newest | oldest
Aug 19, 2010. 10:09 AMjeff-o says:
What you need is a logic-level MOSFET. These handy devices can be switched on and off directly by a microcontroller or other logic-level (ie. 5V) signal. They can easily handle 5,10, 15A of current due to their low internal resistance. Depending on your circuit, you will choose either a P-channel or N-channel MOSFET. I think it your case it won't really matter though. Of course, you'll probably also want to get one that is a though-hole component simply for ease of use. Drop by www.digikey.com and search for "MOSFET" - narrow the search results from there!
Aug 21, 2010. 7:15 AMjeff-o says:
One like this would do the trick. http://search.digikey.com/scripts/DkSearch/dksus.dll?Detail&name=IRLZ14PBF-ND
Aug 22, 2010. 6:34 PMjeff-o says:
Hmmm, possibly. Depends on a lot of things. A capacitor would definitely change the waveform from a sharp on/off to more of a ramp. But if the capacitor is too large then the LEDs may never fully turn on or off. So, if you do use caps, choose the value carefully.
Aug 18, 2010. 5:55 AMfrollard says:
Sounds like you already have most of the idea down -- you just need the correct power transistor. Any TTL logic input mosfe should work. You want to run strands of series leds as close to input (12V ish) to minimize waste in the resistor. Each strand then needs a current limiting resistor, then you can run as many strands as you want in parallel after that (so long as it stays in the current limit of your power supply). Lastly, on the power supply side of the transistors, its good to run some heavy duty electrolytic capacitors to absorb the 'shock' of flashing the leds, and even some smaller caps to absorb the noise of the khz flicker that can create some whining in some circuits.
Aug 18, 2010. 8:55 PMfrollard says:
Even easier -- treat each channel (r g or b) as a 'strand' I mentioned above, then simply run those off the outputs of the power transistors. Like steve says, make sure to only use pwm, don't use them as 'dimmers' or they will cook. (on = very little heat, off = very little/no heat. halfway conducting = burning half the power off, and on such a small part that means a HIGH temperature!
Sep 4, 2010. 11:00 PMShelby S says:
Along with what frollard said, I think that a fade value for each strand would be nice, too. It could give a slight saturation value.
Aug 18, 2010. 3:13 PMsteveastrouk says:
You'd be MUCH better creating a switch mode power supply for your LEDs, than use them in a linear way, because that transistor is going to have to dissipate close to 36W in some conditions, unless its operates as a switcher.
Aug 19, 2010. 12:49 AMsteveastrouk says:
Post some pictures of the original controller and we can help better. Steve

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!