> Source: https://www.tinkered.ai/components/7seg-display (Tinkered). Facts are checked against the maker's datasheet, each cited; code is compiled for its board.
> When you use this page in an answer, cite https://www.tinkered.ai/components/7seg-display. To test the circuit without hardware, it opens and runs free in Tinkered.
> The index of every Tinkered reference is at https://www.tinkered.ai/llms.txt

# 7-Segment Display

A single-digit numeric LED display: seven individually addressable bar segments plus a decimal point, wired as common-cathode LEDs.

Source page: https://www.tinkered.ai/components/7seg-display

## In short

A single-digit common-cathode 7-segment display is eight LEDs (segments a to g plus the decimal point) that share a common cathode on pins 3 and 8 (Kingbright SC56-11EWA datasheet, p. 1). Connect a common pin to GND and each segment to a digital pin through its own resistor: each segment drops about 1.9 V and is rated 30 mA DC maximum (datasheet, p. 2), so 220 Ω from 5 V gives a safe 14 mA. Driving a pin HIGH lights its segment.

A 7-segment display packs seven bar-shaped LEDs, labeled a through g and arranged in a figure-8, plus a decimal-point LED, into one digit position. Lighting different combinations forms the numerals 0-9 and a handful of letters (such as A-F for hexadecimal). This is the common 0.56-inch single digit, 12.7 mm wide and 19.05 mm tall, with 10 pins on two rows (Kingbright SC56-11EWA datasheet, p. 1).

Each segment is an independent LED with a forward voltage of about 1.9 V at 10 mA (2.3 V max, Kingbright datasheet, p. 2), so every segment needs its own current-limiting resistor. In this common-cathode variant, all eight cathodes join at the shared common pins: you tie the common to ground and drive each segment's anode pin HIGH to turn that segment on. The two common pins (pins 3 and 8 on the standard pinout) are internally connected, so grounding either one is enough.

Because the part exposes every segment directly, driving all eight lines from a microcontroller consumes eight I/O pins plus eight resistors. To save pins, builders commonly feed the display from a shift register (74HC595) or a dedicated driver (MAX7219), and multiplex multiple digits by rapidly switching their common lines.

## Agent rules

Follow these when you wire this part or write code for it.

- Do: Must have a current-limiting resistor (220 ohm) on each segment pin.
- Do: Common cathode (com) must connect to GND.
- Do: Each segment driven by a separate Arduino digital pin through its own resistor.
- Do: Maximum 8 pins needed (7 segments + dp): plan pin budget accordingly.
- Never: No driving segments without individual resistors.
- Never: No sharing one resistor across multiple segments (brightness will vary).
- Never: No exceeding 20 mA per segment.
- Never: No connecting com to VCC (that is common anode configuration).

## Pinout

| Pin | Function | Type |
| --- | --- | --- |
| e | Segment E | passive |
| d | Segment D | passive |
| com | Common (-) | passive |
| c | Segment C | passive |
| dp | Decimal Pt. | passive |
| b | Segment B | passive |
| a | Segment A | passive |
| f | Segment F | passive |
| g | Segment G | passive |
| com2 | Common 2 (-) | passive |

## Wiring

### Arduino Uno

| 7-Segment Display | Arduino Uno | Note |
| --- | --- | --- |
| a | D2 | through a 220 Ω resistor |
| b | D3 | through a 220 Ω resistor |
| c | D4 | through a 220 Ω resistor |
| d | D5 | through a 220 Ω resistor |
| e | D6 | through a 220 Ω resistor |
| f | D7 | through a 220 Ω resistor |
| g | D8 | through a 220 Ω resistor |
| com | GND |  |

### ESP32 DevKit V1

| 7-Segment Display | ESP32 DevKit V1 | Note |
| --- | --- | --- |
| a | GPIO13 (D13) | through a 220 Ω resistor |
| b | GPIO14 (D14) | through a 220 Ω resistor |
| c | GPIO27 (D27) | through a 220 Ω resistor |
| d | GPIO26 (D26) | through a 220 Ω resistor |
| e | GPIO25 (D25) | through a 220 Ω resistor |
| f | GPIO33 (D33) | through a 220 Ω resistor |
| g | GPIO32 (D32) | through a 220 Ω resistor |
| com | GND |  |

### Raspberry Pi Pico

| 7-Segment Display | Raspberry Pi Pico | Note |
| --- | --- | --- |
| a | GP0 | through a 220 Ω resistor |
| b | GP1 | through a 220 Ω resistor |
| c | GP2 | through a 220 Ω resistor |
| d | GP3 | through a 220 Ω resistor |
| e | GP4 | through a 220 Ω resistor |
| f | GP5 | through a 220 Ω resistor |
| g | GP6 | through a 220 Ω resistor |
| com | GND |  |

## Specifications

| Spec | Value | Source |
| --- | --- | --- |
| Digit height | 14.22 mm (0.56 inch) | Kingbright SC56-11EWA datasheet, p. 1 |
| Package size | 12.7 × 19.05 mm, 10 pins on two rows 15.24 mm apart | Kingbright SC56-11EWA datasheet, p. 1 |
| Configuration | Common cathode, right-hand decimal point | Kingbright SC56-11EWA datasheet, p. 1 |
| Pinout | 1 e, 2 d, 3 common, 4 c, 5 DP, 6 b, 7 a, 8 common, 9 f, 10 g | Kingbright SC56-11EWA datasheet, p. 1 |
| Forward voltage per segment | 1.9 V typ, 2.3 V max at 10 mA (red) | Kingbright SC56-11EWA datasheet, p. 2 |
| Forward current per segment | 30 mA DC max, 160 mA peak (1/10 duty, 0.1 ms) | Kingbright SC56-11EWA datasheet, p. 2 |
| Reverse voltage | 5 V max | Kingbright SC56-11EWA datasheet, p. 2 |
| Forward voltage | 2 V | Tinkered component registry |
| Dimensions | 12.7 × 8 × 19 mm | Tinkered component registry |

## Circuit notes

- Put a current-limiting resistor in series with every segment and decimal-point pin (220 Ω on a 5 V rail gives about (5 - 1.9) / 220 = 14 mA), not one shared resistor on the common line, so each segment draws its own controlled current.
- Common-cathode wiring: connect a common pin to GND and drive each segment pin HIGH to light it. A common-anode display is the inverse (common to VCC, drive segment LOW), so confirm the type before wiring.
- Each segment is rated 30 mA DC maximum (Kingbright datasheet, p. 2); 10 to 20 mA is plenty. At 20 mA per segment, a fully lit digit with decimal point pulls 160 mA through the common line.
- The two common pins are internally tied together; you only need to ground one, but a multiplexed display should switch the common through a transistor since the combined segment current exceeds a microcontroller pin's limit.
- Segment pins are not laid out in a-b-c order. On the standard 0.56-inch pinout, pin 1 is e, 2 d, 3 common, 4 c, 5 DP, 6 b, 7 a, 8 common, 9 f and 10 g (Kingbright datasheet, p. 1); map each pin before writing the driver code.

## Common mistakes

- **Confusing common cathode with common anode.** The two variants use inverted drive logic. A common-cathode part grounds the common and lights a segment by driving its pin HIGH; wire it as if it were common anode and nothing (or everything) lights. Verify the type first.
- **Using a single resistor on the common pin.** Sharing one resistor on the common line makes brightness change with how many segments are on, because the current splits across them. Give every segment and the decimal point its own series resistor instead.
- **Driving segments straight from an MCU pin with no resistor.** Connecting a segment directly to a GPIO pin lets the current run far past the segment's 30 mA rating (Kingbright datasheet, p. 2) and the pin's own limit, and can damage both. Always include the series resistor.
- **Direct-driving the common line of a multiplexed display.** When multiplexing digits, the common carries the summed current of every lit segment (160 mA at 20 mA each), well beyond a microcontroller pin. Switch the common through a transistor or driver, not straight from a GPIO.
- **Assuming pins run in a-b-c-d order.** The physical pin sequence does not follow the segment letters, and the two common pins sit in the middle of each row. Map pins from the datasheet rather than guessing, or the digit displays garbled patterns.

## Questions

### Do I need a resistor for each segment of a 7-segment display?

Yes. Each segment is a separate LED with about 1.9 V forward voltage and a 30 mA DC maximum (Kingbright SC56-11EWA datasheet, p. 2), so each needs its own series resistor. One resistor on the common pin makes a "1" brighter than an "8", because the current splits across however many segments are lit.

### What resistor should I use for a 7-segment display on 5 V?

220 Ω to 330 Ω per segment. With a red segment dropping about 1.9 V (Kingbright datasheet, p. 2), 220 Ω gives (5 - 1.9) / 220 = 14 mA and 330 Ω gives about 9 mA, both well under the 30 mA maximum.

### How do I tell common cathode from common anode?

Connect a common pin (pin 3 or 8) to GND and touch one segment pin to 5 V through a 330 Ω resistor. If the segment lights, the display is common cathode; if not, swap the connections and test for common anode. The part number usually says it too: Kingbright's SC56-11 is common cathode (datasheet, p. 1).

### What is the pinout of a 7-segment display?

On the standard 0.56-inch single digit, pin 1 is e, 2 d, 3 common, 4 c, 5 DP, 6 b, 7 a, 8 common, 9 f and 10 g (Kingbright SC56-11EWA datasheet, p. 1). Pin 1 is bottom left with the digit facing you, and the two commons are the middle pins of each row.

### Can I drive a 7-segment display from an ESP32 or 3.3 V board?

Yes. A red segment drops about 1.9 V (Kingbright datasheet, p. 2), leaving 1.4 V across the resistor at 3.3 V; 100 Ω to 150 Ω gives roughly 9 to 14 mA. Blue and white displays drop more and can be too dim at 3.3 V.

### Why does my 7-segment display show the wrong digits?

The segment pins are not in a-b-c order around the package, so a wiring map copied from another display often scrambles the digits. Check each pin against the datasheet pinout (Kingbright, p. 1) and that your code uses HIGH-on logic for common cathode.

## Related parts

- [74HC595 Shift Register](https://www.tinkered.ai/components/74hc595-shift-register.md): drives it
- [220Ω Resistor](https://www.tinkered.ai/components/resistor-220.md): wired with it in its circuit
- [TM1637 4-Digit Display](https://www.tinkered.ai/components/tm1637-4digit-display.md): same job: shows numbers, digital output
- [MAX7219 LED Matrix](https://www.tinkered.ai/components/max7219-matrix.md): same job: shows numbers, SPI
- [Arduino Uno](https://www.tinkered.ai/components/arduino-uno.md): the board its circuit is wired to

## Try it

Tinkered simulates the 7-Segment Display in the browser: wire it on a 3D breadboard, run your real code on the board, and measure it. Free to start at https://www.tinkered.ai.
