Hello I'm currently planning on using 4 LEDs for my project, which I will hook up to an Arduino Uno. Being new to all this I want to make sure that I've gotten the numbers correctly.
4x 390ohms, 1/2W (The wizard recommends a 1/2W or greater 390 ohm resistor. The color code for 390 ohms is orange white brown). <-- That's for the red value.
If you are controlling an LED with an Arduino pin they will be getting 5V, not 9V. Recalculate for 5V.
Those RGB LED's are "Common Anode" which means the + side of all three colors are connected together. To control them you will need to connect the common Anode to +5V and the individual Cathodes, through resistors, each to a different Arduino pin. If you use the 6 pins on an Arduino UNO that support PWM/analogWrite() it will be easy to adjust the brightness.
So based on that, is 150 ohms for red, and 100 ohms for green and blue about right? Someone recommended to go with 180omhs for the red, to balance the brightness off. Would you recommend that? Should I order 12 resistors or do I need less for these 4 leds?
VAlexander:
So based on that, is 150 ohms for red, and 100 ohms for green and blue about right? Someone recommended to go with 180omhs for the red, to balance the brightness off. Would you recommend that? Should I order 12 resistors or do I need less for these 4 leds?
180 for Red sounds reasonable. As does 100 for Blue and Green.
You need one resistor per LED and there are 3 LEDs in each RGB package. At a minimum you will need 12 for four RGB packages.
Resistors are incredibly inexpensive in bulk and very handy. You might want to buy an assortment or at least get enough of each value you order that you will have plenty of spares. Perhaps 25 of each value.
if you put the leds in parallel you would need three 100ohm and one 150ohm i think.
or replace the 150ohm with this to adjust the brightness http://www.ebay.com/itm/250848525880
the site calculated 1/8W for both red and blue, but I can only find 1/2W. Would that be cool?
Yep... a resistor's wattage is the power it can handle, so by going up to a bigger one you're safe. You might waste a few pennies- which would matter if you were in factory production and buying zillions. Higher the wattage also means slightly larger, so if you're building a circuit in a restricted space, they do take up more room.
John said:
You might want to buy an assortment or at least get enough of each value you order that you will have plenty of spares. Perhaps 25 of each value.
Have a look at this "book" of 500x 1/4W resistors at Sparkfun
VAlexander:
Does anyone know where to find them or a better alternative?
use constant current diode, 20 ma LED use 20 ma constant current diode, if LED is not bright enough, parallel one more 5 ma constant current diode. no 20 ma constant current diode on hand, then parallel 2 pcs 10 ma one.
Pro. support much wider power supply 3-100 V.
Con. a little pricy. I paid 0.40 USD if I recall right.