Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.

Re: Led limit for arduino

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.

http://farm4.static.flickr.com/3664/348 ... 304dd8.jpg
GAHorton

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

Re: Led limit for arduino

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

westfw

Posts: 1709
Joined: Fri Apr 27, 2007 1:01 pm
Location: SF Bay area

Re: Led limit for arduino

GAHorton

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

Re: Led limit for arduino

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

westfw

Posts: 1709
Joined: Fri Apr 27, 2007 1:01 pm
Location: SF Bay area

Re: Led limit for arduino

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

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

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

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