Led limit for arduino

Post here about your Arduino projects, get help - for Adafruit customers!

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
GAHorton
 
Posts: 90
Joined: Tue Feb 19, 2008 4:30 am

Re: Led limit for arduino

Post by GAHorton »

what are the values for these components?

westfw wrote:Before this gets TOO tangled, let me point out that if the goal is to light 4 LEDs on a single pin, it may be simpler to use a parallel configuration. You need the transistor in either case, but the parallel config lets you get by without needing to deal with a separate power supply for the LEDs.
Image
http://farm4.static.flickr.com/3664/348 ... 304dd8.jpg

User avatar
westfw
 
Posts: 2008
Joined: Fri Apr 27, 2007 1:01 pm

Re: Led limit for arduino

Post by westfw »

1k should work OK for the base resistor. The other resistors you can calculate using the standard LED resistor equation; in this case the transistor drop is only a fraction of a volt, and can be neglected. So for 2V leds (red/yellow/etc) and 20mA, you'd use about 150 ohms...

GAHorton
 
Posts: 90
Joined: Tue Feb 19, 2008 4:30 am

Re: Led limit for arduino

Post by GAHorton »

is this what you are talking about?

http://itp.nyu.edu/physcomp/Tutorials/HighCurrentLoads

User avatar
westfw
 
Posts: 2008
Joined: Fri Apr 27, 2007 1:01 pm

Re: Led limit for arduino

Post by westfw »

Yes. Though even 4 LEDs isn't quite "high power" compared to the motors and lamps that tutorial is talking about. There is also http://www.arduino.cc/playground/upload ... _leds2.jpg
(but it is just as devoid of explanation as my circuit...)

GAHorton
 
Posts: 90
Joined: Tue Feb 19, 2008 4:30 am

Re: Led limit for arduino

Post by GAHorton »

well then is this even feasable to do with the arduino with say 20 lights?


the only way i'm thinking it would work is by having the arduino control the flashing and have as many volts as i need being a separate thing.

GAHorton
 
Posts: 90
Joined: Tue Feb 19, 2008 4:30 am

Re: Led limit for arduino

Post by GAHorton »

well then is this even feasable to do with the arduino with say 20 lights?


the only way i'm thinking it would work is by having the arduino control the flashing and have as many volts as i need being a separate thing.

The_Don125
 
Posts: 373
Joined: Tue Mar 06, 2007 11:51 pm

Re: Led limit for arduino

Post by The_Don125 »

You can control 20 LEDs directly off of an Arduino so long as you use resistors to limit current to approximately 2.5mA per LED if running on USB power (to stay within the 100mA limit of USB) or up to 5mA per LED to prevent burning out the ATMega.

Locked
Please be positive and constructive with your questions and comments.

Return to “Arduino”