Study the structure and working principles of 7 segment displays used for numeric visualization in electronic devices.
The seven-segment display consists of seven luminous elements arranged to form the figure of a stylized 8. Each segment lights up individually or in combination with others to represent the digits from $0$ to $9$ and some letters. It is found in clocks, calculators, counters, testers, and household appliances because it is simple, readable, and low cost [1][2].
The segments are labeled with the letters from a to g: a is the top one, then clockwise b, c, up to the bottom segment d, then e and f on the left, and g in the center. Often there is an eighth element, the decimal point (dp). Each segment is an LED, or a liquid crystal or fluorescent element. In the LED version, the ten or more terminals are reduced by connecting together one terminal of each LED [1][2].
- Common cathode: the cathodes of the seven LEDs are joined (and connected to ground) and a segment lights up by bringing its anode high.
- Common anode: the anodes are joined to the power supply and a segment lights up by bringing its cathode low.
To display a digit, the corresponding segments are lit. Associating bits from $a = $ bit $0$ to $g = $ bit $6$ to the segments, in the common cathode case the codes (in hexadecimal) are: $0 \to 3F$, $1 \to 06$, $2 \to 5B$, $3 \to 4F$, $4 \to 66$, $5 \to 6D$, $6 \to 7D$, $7 \to 07$, $8 \to 7F$, $9 \to 6F$. For example, $2$ lights up $a$, $b$, $g$, $e$, $d$, that is bits $0$, $1$, $6$, $4$, $3$, namely $1 + 2 + 64 + 16 + 8 = 91 = 5B_{16}$. In the common anode the values are the complements to one byte. The conversion from binary code to segment code is done with a table in a microcontroller program, or with an integrated decoder (for example with BCD inputs) [1][2].
With a single display, seven lines and as many limiting resistors are needed. With multiple digits, a direct connection would require too many lines: multiplexing is used. The corresponding segments of all digits are connected together, and a single common terminal per digit is activated in sequence. The digits light up one at a time, fast enough to appear lit simultaneously if the repetition frequency is above about $60\ \mathrm{Hz}$ per digit. With $N$ digits each is lit for $1/N$ of the time, so to maintain average brightness the peak current must be $N$ times higher, within the LED’s pulsed regime limit.
The ideal model is a set of seven independent LEDs. In reality, brightness varies among segments, the number of usable alphabetic characters is limited (some letters are ambiguous), and consumption increases with the number of lit segments (the $8$ uses $7$, the $1$ only $2$). In multiplexing, too low a frequency causes flicker, and a switching delay between digits causes ghosting.
A common cathode display with $4$ digits is driven by a microcontroller at $5\ \mathrm{V}$, with LEDs of $V_f = 2\ \mathrm{V}$ at $10\ \mathrm{mA}$ (assumed values).
1. Resistor per segment: $R = (5 - 2)/0.010 = 300\ \Omega$; with the normalized value $330\ \Omega$ the current is $3/330 \approx 9.1\ \mathrm{mA}$.
2. With multiplexing at $4$ digits, each digit is lit for one quarter of the time. To maintain the same brightness, the peak current rises to $4\cdot10 = 40\ \mathrm{mA}$ per segment, with a resistor of about $(5 - 2)/0.040 = 75\ \Omega$ (normalized value $75\ \Omega$).
3. With all segments lit, the total current through the common terminal is $7\cdot40 = 280\ \mathrm{mA}$ (plus the decimal point), which requires a driving transistor for each common terminal.
4. If each digit is lit for $1\ \mathrm{ms}$, the period of a complete scan is $4\ \mathrm{ms}$, that is $250\ \mathrm{Hz}$: above the flicker threshold.
Seven-segment displays are used in digital clocks, calculators, multimeters, counters and timers, scales, vending machines and household appliances (ovens, washing machines), panel instruments, and scoreboards.
[1] Wikipedia (it): Display a sette segmenti
[2] Wikipedia (en): Seven-segment display
Generating summary…