Electronic – arduino – Multiple 74HC595 chained together won’t light all LEDs


I'm new to Arduino – and electronics in general – and am having a frustrating problem with two serial-to-parallel 74HC595 chips trying to drive two 7-segment LED displays. The LEDs are both common cathode, and each LED input has its own 510 ohm resistor, connected up to an output of a 74HC595. If I unplug the common cathode from A, I see the correct display in B. If I unplug the common cathode from B, I see the correct display in A. But when both common cathodes are plugged in, B starts displaying rubbish (mostly it's just blank though) while A displays correctly. It's like there's not enough power to go around. I'm using the 5V power output, because that's what the 74HC595 chips need (actually it can be between 2V and 6) and I don't want to start frying chips.

If anyone can point out what I'm doing wrong (or what I could potentially try to get it working) that would be great. I am working on a hobby project where I was hoping to have 6 of these LED and 74HC595 chips hooked up.

Best Answer

From what you said about the resistor, figuring nearly-to-the-rail output from the CMOS 74hc595 and about 1.25V diode drop, each segment probably is pulling about 7mA. If you get two full displays going that's starting to add up. Just 14 segments at this current (not even two full digits worth) you're already breaking 100mA. Not to mention that if you are powering the 74HC595's off the same 5V source that's still more current, though thankfully not too much since it is a CMOS device.

I'd have to look at the specs of the arduino to be sure, but it wouldn't be surprising if the tiny little regulated supply on the arduino isn't up to it. Even if it were rated for it, I'd probably try to at least feed the 74HC595's with a separate 5V supply. To use a separate supply, be sure to tie the grounds together.

If you plan on running 6 digits, accounting for all segments on, you'd want something with at least 500mA or even better 1000mA. It's better to have the amp-capacity and not need it, than need it and not have it.