Pages: [1]   Go Down
 Author Topic: Which Resistors Would You Recommend  (Read 202 times) 0 Members and 1 Guest are viewing this topic.
Los Angeles
Offline
Newbie
Karma: 0
Posts: 25
 « on: March 18, 2013, 09:31:45 pm » Bigger Smaller Reset

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.

Do I need 3 resistors for each LED?

According to the Datasheet for the LEDs https://www.sparkfun.com/products/10820 this is what I've calculated:

Forward Voltage: 2.2V (Red), 3.4V (Green & Blue)
Forward Current: 20mA (For Red, Green and Blue)

I'm assuming that since I'll be using a wall DC charger for the Arduino (9V DC), that the source voltage is 9V.

I'm using this calculator to calculate the ohms: http://led.linear1.org/1led.wiz

Based off of my calculations Am I correct?

- 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.

- 8x  330ohms, 1/4W (The wizard recommends a 1/4W or greater 330 ohm resistor. The color code for 330 ohms is orange orange brown.) <-- That's for the green and blue values. Would these work: https://www.sparkfun.com/products/8377

I've looked for them on sparkfun but I can't find any 390ohm resistors. Does anyone know where to find them or a better alternative? Thanks!
 Logged

Massachusetts, USA
Offline
Tesla Member
Karma: 96
Posts: 6346
 « Reply #1 on: March 18, 2013, 10:06:51 pm » Bigger Smaller Reset

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.
 Logged

Los Angeles
Offline
Newbie
Karma: 0
Posts: 25
 « Reply #2 on: March 18, 2013, 10:19:04 pm » Bigger Smaller Reset

Thanks John!

I still don't have my arduino, I'm planning on ordering tonight! So I totally see what you're saying with the whole source voltage thing.

Source Voltage: 9v
Forward Voltage: I was using the max before, but I heard it's not recommended so the average is (Red = 2.0mA, Blue & Green = 3.2mA)
Forward Current: 20mA
Datasheet: http://dlnmh9ip6v2uc.cloudfront.net/datasheets/Components/LED/YSL-R596AR3G4B5C-C10.pdf

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?
 Logged

Massachusetts, USA
Offline
Tesla Member
Karma: 96
Posts: 6346
 « Reply #3 on: March 18, 2013, 10:40:31 pm » Bigger Smaller Reset

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.
 Logged

Earth
Offline
Full Member
Karma: 2
Posts: 103
Webmaster
 « Reply #4 on: March 18, 2013, 10:41:48 pm » Bigger Smaller Reset

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
 Logged

Webmaster living off grid in a camper with 300watts of solar panels charging 9 absorbed glass mat 12V batteries. i own about 40 dot coms. i can read, write and debug HTML, CSS, JSON and PHP. I can understand some javascript. A++ is new to me. i thought it was a dead language. lol! A rogue planet called Nibiru is close by and will cause disasters all over earth including fireballs, earthquakes, meteors and volcanic eruptions. But i will be ready with  Project Camper

Los Angeles
Offline
Newbie
Karma: 0
Posts: 25
 « Reply #5 on: March 18, 2013, 10:53:32 pm » Bigger Smaller Reset

Thanks John!

Last thing,

Is there any difference between 1/2W & 1/8W, the site calculated 1/8W for both red and blue, but I can only find 1/2W. Would that be cool?

UPDATE: I found these (Would these work?):

 « Last Edit: March 18, 2013, 10:58:05 pm by VAlexander » Logged

Offline
Full Member
Karma: 1
Posts: 132
 « Reply #6 on: March 18, 2013, 11:40:55 pm » Bigger Smaller Reset

If you expect the current through LED is around 20ma, 1/8 should be fine. Formula for wattage rating required for you situation is:

P = I^2 * R

so P = 0.0004 * 100 = 0.04W and P = 0.0004 * 150 = 0.06W much less than 1/8W

 Logged

Search for "mjkzz" on eBay :-)

Johannesburg UTC+2
Offline
Edison Member
Karma: 34
Posts: 1705
 « Reply #7 on: March 19, 2013, 12:24:22 am » Bigger Smaller Reset

Quote
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:

Quote
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
 Logged

IT Crowd:
Roy... "Have you tried turning it off and on again?"
Moss.. "Have you tried forcing an unexpected reboot?"

NYC, US
Offline
Sr. Member
Karma: 9
Posts: 398
I have no clue about Arduino, is it Italian coffee?
 « Reply #8 on: March 19, 2013, 11:54:24 am » Bigger Smaller Reset

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.

 « Last Edit: March 19, 2013, 11:58:15 am by sonnyyu » Logged

Westbrook, CT
Offline
Full Member
Karma: 2
Posts: 128
"Why should I bother with made-up games when there are so many real ones going on." (c) Kurt Vonnegut
 « Reply #9 on: March 19, 2013, 01:07:56 pm » Bigger Smaller Reset

In the future, consider an online LED current calculator such as this one:
http://ledcalculator.net/
 Logged

Arduino Uno R3
Mac OSX Lion

Johannesburg UTC+2
Offline
Edison Member
Karma: 34
Posts: 1705
 « Reply #10 on: March 19, 2013, 01:12:41 pm » Bigger Smaller Reset

In the future, consider an online LED current calculator such as this one:
http://ledcalculator.net/

He did.... mentioned this one in first post.....
 Logged

IT Crowd:
Roy... "Have you tried turning it off and on again?"
Moss.. "Have you tried forcing an unexpected reboot?"

 Pages: [1]   Go Up