74HC595 digit/Limits/06. VCC sets the current
Limits · 06 of 9

VCC sets the current

Each lit segment is VCC, a 595 output, 150 Ω and a red LED in a row. At 3.3 V that is under 9 mA a segment and inside the chip's 70 mA limit with all eight lit. At 5 V it is about 17 mA a segment, brighter, and past the limit once more than four are lit.

One segment

A lit segment is a row of four things: VCC, the 595's output, a 150 Ω resistor and a red LED, to GND. The LED takes about 2 V (ARKLED's sheet gives 1.9 to 2.5 V, 2.0 typical). What is left, VCC minus 2 V, falls across the resistor and the output, and that sets the current.

With a perfect output, the resistor alone:

  • 3.3 V: (3.3 − 2.0) / 150 = 8.7 mA
  • 5 V: (5.0 − 2.0) / 150 = 20 mA

A real output is not perfect. Nexperia's datasheet has its HIGH output at 4.32 V typical, 3.84 V at worst, while supplying 6 mA from 4.5 V: about 30 Ω inside the chip, typically, and up to 110 Ω. Added to the 150 Ω, a segment at 5 V takes about 17 mA, and no less than about 11.5 mA. The datasheet gives no such row at 3.3 V, so 8.7 mA stands there as the most it can be.

The LED's own limit is 20 mA continuous, so either supply is fine for a segment.

Eight segments, one chip

Every lit segment's current comes in through the 595's VCC pin, and the datasheet's absolute maximum for that pin is 70 mA, for the whole chip. That is the limit a digit meets.

VCC sets the current
VCC
Showing
Segments lit
7
Chip, typical
117 mA
Chip limit
70 mA
At 5 V each segment takes about 17 mA, and 7 of them 117 mA through the chip's VCC pin: past its 70 mA absolute maximum even in the worst case of the chip's own output. It will light, and many boards like it run this way, but it is outside the datasheet. Keep 5 V for digits with 4 or fewer segments lit if you want to stay inside it.

At 3.3 V, even an 8 with its dot, eight segments, is 8 × 8.7 = 69 mA at the very most: inside 70.

At 5 V, 17 mA a segment means four segments fit, 67 mA, and five do not. An 8 is seven segments, about 117 mA typical and 81 mA on the weakest chip. It lights, and it is past the chip's rating. Nothing here has been measured; these are datasheet numbers and arithmetic, and they say an 8 at 5 V is outside what the chip is sold to do.

So which VCC

VCC also decides what the chip reads as HIGH: 0.7 of VCC. At 5 V that is 3.5 V, more than a 3.3 V board's pins give. So the choice is made for you:

Your boardVCCPer segmentAn 8
Uno5Vabout 17 mAover the chip's 70 mA
ESP32, ESP32-S3, Pico3V3at most 8.7 mAinside it

On an Uno it works at 5 V, brightly, outside the datasheet when most segments are lit. For a display left running for days, a 3.3 V board keeps it inside every number on this page.

When it does not work

The digit is dim on my ESP32.

That is 3.3 V doing what the arithmetic says: under 9 mA a segment against about 17 mA at 5 V. It is the right supply for a 3.3 V board. Shade the digit, or view it straight on; the LED is brightest along its axis.

Will 5V damage it?

The datasheet's ceiling for the whole 74HC595 is 70 mA through VCC. At 5 V an 8 takes something like 80 to 120 mA, which is past it. Boards like this usually survive it, but it is outside what Nexperia promises, and heat is the price.

Can I put 5V on VCC with an ESP32?

Do not. At 5 V the chip needs 3.5 V before it reads a HIGH, and an ESP32 pin gives 3.3 V at most, so the bits it reads are a guess. Put VCC on 3V3 beside any 3.3 V board.

Where this goes next

Why a second TK53 does not chain, and the one extra pin that drives it.

One latch per digit →

Edit this page — content/books/hc595-segment-led/vcc-sets-the-current.mdx

Community

Questions about this product

See what other owners have asked, and read their solutions.

Ask a question ↗

74HC595 Segment LED

Loading discussions…

Discuss this article

Ask about this page. The answer stays here, on the page it belongs to, for whoever hits the same wall next.

Browse Modules and blocks on the forum →