The code offers an interesting method to control multiple seven segment displays. It is for example possible to define the location of a decimal separator or to left pad a number.
But with that design, you're going to use up 3 MCU pins per display because you don't do any multiplexing. I'm also working on a 7-segments controler, but multiplexed, so I use 3 pins for 4 digits. https://github.com/hsoft/seg7-multiplex
Also, why do you say that the 595 doesn't sink enough current? I haven't witnessed that problem on my first prototype.
| Also, why do you say that the 595 doesn't sink enough current? I haven't witnessed that problem on my first prototype.
Yep, the Darlington array is not really needed. If you limit the segment currents to around 5mA max, the 595 will drive them directly with no issues, and the total current draw through the chip with all segments lit will be within spec, which is 70 mA maximum continuous current through the Vcc or GND pins. I don't know if there's any 'fakes' of the 595 that can't manage this though.
Useful TI document on using HC-series devices. See P27:
But with that design, you're going to use up 3 MCU pins per display because you don't do any multiplexing. I'm also working on a 7-segments controler, but multiplexed, so I use 3 pins for 4 digits. https://github.com/hsoft/seg7-multiplex
I have no idea why you think my hardware layout wouldn't be suitable for daisy chaining 74hc595 shift registers. In fact it is mentioned in the schematics how to do it.
As you can see, I am using 3 Pins on the Arduino to control two digits.
Also, why do you say that the 595 doesn't sink enough current? I haven't witnessed that problem on my first prototype.
Here is a good answer on electronics.stackexchange.com. They clearly say you should not draw more than 6mA from each pin at 5V VCC. That would give you a maximum of 42mA. My seven displays draw around 100mA when all 7 segments are on.
Here is a photo from my lab bench power supply measuring the current drawn by two 7 segment displays with all segments on. Sure you could limit this as u/Ordinary_Guest_Star mentioned, but this is not what I wanted. I usually use a transistor with an external power source to power things that draw more than a few milli amps. It is much safer this way :)
Sorry, it was late yesterday I didn't think about shift register chaining. It makes sense (but you still need a shift register for each digit...)
I'm a bit surprised by the amount of current that your display draw. mine, at 2.5V (2 rechargeable AA batteries) with all segments on draw about 4.5mA with a 110 ohms resistance. At least that's what my multimeter says. I didn't know that power consumption could vary so much between display models (yours are a bit bigger than mine, but not by that much)
The code offers an interesting method to control multiple seven segment displays. It is for example possible to define the location of a decimal separator or to left pad a number.
But with that design, you're going to use up 3 MCU pins per display because you don't do any multiplexing. I'm also working on a 7-segments controler, but multiplexed, so I use 3 pins for 4 digits. https://github.com/hsoft/seg7-multiplex
Also, why do you say that the 595 doesn't sink enough current? I haven't witnessed that problem on my first prototype.
| Also, why do you say that the 595 doesn't sink enough current? I haven't witnessed that problem on my first prototype.
Yep, the Darlington array is not really needed. If you limit the segment currents to around 5mA max, the 595 will drive them directly with no issues, and the total current draw through the chip with all segments lit will be within spec, which is 70 mA maximum continuous current through the Vcc or GND pins. I don't know if there's any 'fakes' of the 595 that can't manage this though.
Useful TI document on using HC-series devices. See P27:
http://www.ti.com/lit/an/scla007a/scla007a.pdf
I have no idea why you think my hardware layout wouldn't be suitable for daisy chaining 74hc595 shift registers. In fact it is mentioned in the schematics how to do it.
Here is a photo I took from breadboard setup.
As you can see, I am using 3 Pins on the Arduino to control two digits.
Here is a good answer on electronics.stackexchange.com. They clearly say you should not draw more than 6mA from each pin at 5V VCC. That would give you a maximum of 42mA. My seven displays draw around 100mA when all 7 segments are on. Here is a photo from my lab bench power supply measuring the current drawn by two 7 segment displays with all segments on. Sure you could limit this as u/Ordinary_Guest_Star mentioned, but this is not what I wanted. I usually use a transistor with an external power source to power things that draw more than a few milli amps. It is much safer this way :)
Sorry, it was late yesterday I didn't think about shift register chaining. It makes sense (but you still need a shift register for each digit...)
I'm a bit surprised by the amount of current that your display draw. mine, at 2.5V (2 rechargeable AA batteries) with all segments on draw about 4.5mA with a 110 ohms resistance. At least that's what my multimeter says. I didn't know that power consumption could vary so much between display models (yours are a bit bigger than mine, but not by that much)