74hc595
jcferguson
Posts: 86
Hi there,
If I am using a shift register to drive multiple leds as in stampworks experiment 23 - do I NEED something like a uln2803 or can the shift register drive the leds all by itself? I can't find this kind of information on the data sheet and am not sure about how much current the chip can handle at once...
I found this posted by Mike Green:
Another caveat: The 74HC595 is limited to a total supply current of 70ma. If you're driving LEDs and they're all on, they can't draw more than about 8ma each. Any one output pin can supply over 20ma, but only 3 of those can be on at a time. There are specialized LED drivers that can handle higher total currents.
so I guess I need a uln2803 if I want to put 15 Ma through each led? Why does experiment 23 work without them? I found another similar circuit on the web with no uln2803, what gives?
Thanks,
Carlos Ferguson
If I am using a shift register to drive multiple leds as in stampworks experiment 23 - do I NEED something like a uln2803 or can the shift register drive the leds all by itself? I can't find this kind of information on the data sheet and am not sure about how much current the chip can handle at once...
I found this posted by Mike Green:
Another caveat: The 74HC595 is limited to a total supply current of 70ma. If you're driving LEDs and they're all on, they can't draw more than about 8ma each. Any one output pin can supply over 20ma, but only 3 of those can be on at a time. There are specialized LED drivers that can handle higher total currents.
so I guess I need a uln2803 if I want to put 15 Ma through each led? Why does experiment 23 work without them? I found another similar circuit on the web with no uln2803, what gives?
Thanks,
Carlos Ferguson
Comments
The ULN2803 will let you drive higher current and higher voltage loads. You could also use discrete transistors of different kinds.
Mike was probably referring to the "typical" LED, not the LEDs on the Professional Development Board that you are (doubtless?) using. I looked at the documentation of the Professional Development Board and could find no reference to their maximum current draw, so I figured it out all by myself.
The technical term that describes their current draw is "tee-nintsy." Others refer to this as "itty bitty." And, some even say "really, really low", but I do not prefer that phrase.
Ask Parallax. They may be the ONLY people that know . . .·or it may be common knowledge.
--Bill
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You are what you write.
Sid
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Yesterday is history, tomorrow is a mystery, and today is a gift.
That is why they call it the present.
Don't have VGA?
Newzed@aol.com
·
There are a couple of different manufacturers of the 74HC595…It’s possible (however unlikely) that other version can handle more current. I have successfully lit up 8 10mm LEDs on a 595 without it getting warm. The trick is to stay within the devices rated Power Dissipation. Never exceed that and try to stay out of the “Absolute Maximum Ratings” ranges. If you need more current per LED you may have to use the ULN2803 or there was another chip posted here some time ago that was basically a shift register with Darlington outputs. Take care.
[noparse][[/noparse]Edit] - Sid posted the chip I was referring to...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Notice that the "pattern" is turning on only one LED at a time, as it shifts a "1"-bit across the 8 bit positions (the shift operator drops a pattern bit off one end and appends a "0"-bit to the other end).
[noparse][[/noparse]Code excerpts from Expt 23]:
pattern = %00000001
DO ...
pattern = pattern << 1 ' shift pattern left
LOOP UNTIL (pattern = %10000000)
PAR
Post Edited (PAR) : 3/23/2007 8:46:52 PM GMT
Gee. I just hate it when I am wrong. Unfortunately, this happens a lot!
Have fun! (You are a couple chapters ahead of me!)
--Bill
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
You are what you write.
I have been driving 8 leds at about 15 - 20 ma each flashed randomly with a 74hc595 - so sometimes it is drawing over 200 ma with no heat or problems, but I am making a little art-piece and don't want something to burn out later... I'll just put a uln2803 in there, I was just thinking I could save myself some wiring!
Carlos