A 7-segment display is a type of electronic display device that uses seven individual segments to form a digit or character. It is commonly used to display decimal numbers, and in some cases, letters and other symbols, in electronic devices such as clocks, calculators, digital meters, and more.
Each of the seven segments is made up of an LED or LCD that can be turned on or off to create the desired output.
A 7-segment display consists of 7 LEDs arranged in a figure-eight or an "8" shape. These segments are labeled from a to g, as shown below:
a
---------
| |
f| |b
| |
---------
| |
e| |c
| |
---------
d
Each of these segments can be either on or off, depending on the binary input provided to the display.
A 7-segment display works by illuminating the specific segments needed to represent a desired number or character. Each digit from 0 to 9 requires a unique combination of segments to be lit.
The display can be either common cathode or common anode:
Common Cathode (CC): In this configuration, the cathodes (negative terminals) of all the LEDs are connected together. Each segment is turned on by applying a high voltage to the corresponding pin (i.e., logic 1).
Common Anode (CA): In this configuration, the anodes (positive terminals) of all the LEDs are connected together. Each segment is turned on by applying a low voltage to the corresponding pin (i.e., logic 0).
The following is the truth table that shows the binary values of the segments for each digit in a common cathode 7-segment display:
| Digit | a | b | c | d | e | f | g |
|---|---|---|---|---|---|---|---|
| 0 | 1 | 1 | 1 | 1 | 1 | 1 | 0 |
| 1 | 0 | 1 | 1 | 0 | 0 | 0 | 0 |
| 2 | 1 | 1 | 0 | 1 | 1 | 0 | 1 |
| 3 | 1 | 1 | 1 | 1 | 0 | 0 | 1 |
| 4 | 0 | 1 | 1 | 0 | 0 | 1 | 1 |
| 5 | 1 | 0 | 1 | 1 | 0 | 1 | 1 |
| 6 | 1 | 0 | 1 | 1 | 1 | 1 | 1 |
| 7 | 1 | 1 | 1 | 0 | 0 | 0 | 0 |
| 8 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |
| 9 | 1 | 1 | 1 | 1 | 0 | 1 | 1 |
For example:
Below is a brief breakdown of how each digit is displayed on a 7-segment display:
Each of the seven segments of the display can be controlled using binary logic. To control a 7-segment display, we send a binary number (in the form of logic values for each segment) to the display driver, which then lights up the appropriate segments to form the correct digit.
For instance, to display the digit 5 (in common cathode):
This pattern corresponds to the digit 5 when displayed on the 7-segment.
The operation of a 7-segment display depends on whether it's common anode or common cathode:
For Common Cathode:
For Common Anode:
Digital Clocks:
Calculators:
Digital Meters:
Odometers:
Electronic Devices:
A 7-segment display is a widely used electronic display for representing numerical digits and sometimes letters, utilizing seven individual segments that can be turned on or off based on binary inputs. Understanding its operation involves recognizing the combination of segments needed to form each digit, and controlling them via common cathode or common anode configurations. This simplicity makes the 7-segment display an ideal choice for many applications, such as clocks, calculators, meters, and various other digital devices.
Open this section to load past papers