Loading...
Pages: [1]   Go Down
Author Topic: max number of leds  (Read 642 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I started to make some simple projects with leds using the 74hc595.
I use 8 leds per 74hc595 and each led has a 220Ω resistor.
At this time i have 2 74hc595 and 16 leds in the circuit and they are connected like this http://www.arduino.cc/en/Tutorial/ShiftOut.

I wonder if there is any limit in the max number of leds and 74hc595 i can use in order to protect arduino.

Thanks in advance.
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 98
Posts: 6386
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There is a limit to how much 5v power you can safely draw from the Arduino.  Not sure what that is but if you power from USB it's probably less than 500 mA.   If you provide a hefty 5v power supply for the shift registers and LEDs then you should only be limited by how fast you can shift in bits and how often you want to change the output.
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 249
Posts: 16572
Available for Design & Build services
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

At 20mA per LED, you could connect probably connect up to 40 LEDs before you hit the 800mA limit of the 5V regulator.
Reduce the curent flow to each LED and you drive more of them.
( I read the data sheet as saying tota current flow should be limited to 70mA, so you should limit current to around 8mA/pin to avoid smoking  the parts with all pins driving continuously at the same time).

Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 277
Posts: 25566
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

I also hope you haven't put that capacitor on the clock line, that will damage your arduino.
Yes there are limits but not fixed number, things get more complex as you scale them up and you have to add decoupling capacitors on the supplies and buffeting on the common shift register lines.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

So i could use an NPN transistor and an external power supply in order to draw much lower current from the arduino?
Logged

Global Moderator
Boston area, metrowest
Offline Offline
Brattain Member
*****
Karma: 249
Posts: 16572
Available for Design & Build services
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, exactly.  Or a logic level  N-channel MOSFET to switch the cathodes to ground, will dissipate very little power.
« Last Edit: March 15, 2011, 07:33:07 am by CrossRoads » Logged

Designing & building electrical circuits for over 25 years. Check out the ATMega1284P based Bobuino and other '328P & '1284P creations & offerings at  www.crossroadsfencing.com/BobuinoRev17

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thank you CrossRoads.
That was very helpful.

The maximum current that i can draw from the 5V pin is 800 mA?
Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 277
Posts: 25566
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
The maximum current that i can draw from the 5V pin is 800 mA?
No it depends on the input voltage you will be limited by the amount of heat the regulator will dissipate:-
http://www.thebox.myzen.co.uk/Tutorial/Power_Examples.html
Logged

Pages: [1]   Go Up
Print
 
Jump to: