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
Led limit for arduino
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 90
- Joined: Tue Feb 19, 2008 4:30 am
Re: Led limit for arduino
what are the values for these components?
- westfw
- Posts: 2008
- Joined: Fri Apr 27, 2007 1:01 pm
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...
-
- Posts: 90
- Joined: Tue Feb 19, 2008 4:30 am
- westfw
- Posts: 2008
- Joined: Fri Apr 27, 2007 1:01 pm
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...)
(but it is just as devoid of explanation as my circuit...)
-
- 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.
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.
-
- 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.
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.
-
- Posts: 373
- Joined: Tue Mar 06, 2007 11:51 pm
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.
Please be positive and constructive with your questions and comments.