In this tutorial, we will have a basic introduction to the 7 Segment Display. They are commonly used to display digits from 0 to 9 and also a few alphabets (usually, A to F).
What is a 7 Segment Display?
It is the most common device used for displaying digits and the alphabet. You can see the 7 Segment Display devices in TV shows counting down to ‘0’. The use of LEDs in displays made it more popular.
The binary information can be displayed in the form of decimals using this display. Its wide range of applications is in microwave ovens, calculators, washing machines, radios, digital clocks etc.
The displays are made up of either LEDs (Light Emitting Diode) or LCDs (Liquid crystal display). LED is a P-N junction diode that emits energy in the form of light, differing from a normal P-N junction diode which emits in the form of heat.
Liquid crystal displays (LCD) use the properties of liquid crystal for displaying. LCD will not emit light directly. These LEDs or LCDs are used to display the required numeral or alphabet. Single 7 segments or a number of segments arranged in an order meets our requirements.
Pin Configuration of 7 Segment Display

Generally, these types of displays are available in a 10-pin package. The pin diagram of this display is shown in the above figure. It is an electronic circuit consisting of 10 pins.
Out of 10 pins, 8 are LED pins and the other 2 pins in middle are common pins and these are internally shorted. Depending on whether the common pin is the cathode or anode, it can be either named as a common cathode or common anode display respectively.
These are available from different vendors. They have the shape of a rectangular box similar to that of IC but in large size.
Pin Number | Pin Name | Description |
---|---|---|
1 | e | Controls the left bottom LED of the 7-segment display |
2 | d | Controls the bottom-most LED of the 7-segment display |
3 | common | Connected to Ground/Vcc based on the type of display |
4 | c | Controls the right bottom LED of the 7-segment display |
5 | DP | Controls the decimal point LED of the 7-segment display |
6 | b | Controls the top right LED of the 7-segment display |
7 | a | Controls the top most LED of the 7-segment display |
8 | Common | Connected to Ground/Vcc based on the type of display |
9 | f | Controls the top left LED of the 7-segment display |
10 | g | Controls the middle LED of the 7-segment display |
Must Read 7 Segment Display Datasheet
Structural View of 7 Segment Display

From the top view, 8 segments can be seen in the form of the numeral ‘8’.
Here, the 7 LEDs called segments are assigned with an alphabet from A to G. Forward biasing of the particular segment or LED will emit the light energy thus illuminating a part of the numeral. There is another segment assigned as H, used for displaying dots.
The decimal or dot point is used for representing the decimal point in a numeral. For example, to display 5.5, the dot is used to represent the decimal point in this numeral.
Generally, in the LED package, either all the cathodes or all anodes of the segments are combined to form a common pin. Thus each display will have 7 pins used for displaying the digits, one common pin and another pin for decimal/dot point
The bottom view of the display is shown below. The bottom view of the segment shows 10 pins of the segment. These are the cathode or anode pins of the LEDs present in the 7 segments. 7 segments are illuminated using these pins.
Internal Structure of 7 Segment Display
The internal structure of the display is too difficult. Internally, the device will have SMD LEDs. This can be divided into two parts i.e. internal circuit and the display. The internal circuit will have LEDs arranged in a rectangular form. These two parts are surrounded by glass, ceramics and plastic in order to protect them.
Working Principle of 7 Segment Display
It works by glowing the required respective LEDs in the numeral. The display is controlled using pins that are left freely. Forward biasing of these pins in a sequence will display the particular numeral or alphabet. Depending on the type of 7 segments the segment pins are applied with a logic high or logic zero and in a similar way to the common pins also.
For example, to display the numeral ‘1’ segments ‘b’ and ‘c’ are to be switched on and the remaining segments are required to be switched off. In order to display two digits, two 7 segments are used.
Depending on whether the common pin is an anode or cathode, 7 segments are divided into the following types.
Types of 7 Segment Display
There are following two types of 7 segments.
- Common Anode (CA)
- Common Cathode (CC)
Common Anode
In the common anode type, all the anodes of 8 LEDs are connected to the common terminal and cathodes are left free. Thus, in order to glow the LED, these cathodes have to be connected to the logic ‘0’ and anode to the logic ‘1’.

a | b | c | d | e | f | g | Output |
0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 |
1 | 0 | 0 | 1 | 1 | 1 | 1 | 1 |
0 | 0 | 1 | 0 | 0 | 1 | 0 | 2 |
0 | 0 | 0 | 0 | 1 | 1 | 0 | 3 |
1 | 0 | 0 | 1 | 1 | 0 | 0 | 4 |
0 | 1 | 0 | 0 | 1 | 0 | 0 | 5 |
0 | 1 | 0 | 0 | 0 | 0 | 0 | 6 |
0 | 0 | 0 | 1 | 1 | 1 | 1 | 7 |
0 | 0 | 0 | 0 | 0 | 0 | 0 | 8 |
0 | 0 | 0 | 0 | 1 | 1 | 0 | 9 |
In order to display zero on this segment, one should enable logic high on a, b, c, d, e and f segments and logic low on segment ‘g’. Thus, the above table provides data on 7 segments for displaying numerals from 0-9.
Common Cathode
As the name indicates cathode is the common pin for this type of 7 segments and the remaining 8 pins are left free. Here, a logic low is applied to the common pin and a logic high to the remaining pins.

a | b | c | d | e | f | g | Output |
1 | 1 | 1 | 1 | 1 | 1 | 0 | 0 |
0 | 1 | 1 | 0 | 0 | 0 | 0 | 1 |
1 | 1 | 0 | 1 | 1 | 0 | 1 | 2 |
1 | 1 | 1 | 1 | 0 | 0 | 1 | 3 |
0 | 1 | 1 | 0 | 0 | 1 | 1 | 4 |
1 | 0 | 1 | 1 | 0 | 1 | 1 | 5 |
1 | 0 | 1 | 1 | 1 | 1 | 1 | 6 |
1 | 1 | 1 | 0 | 0 | 0 | 0 | 7 |
1 | 1 | 1 | 1 | 1 | 1 | 1 | 8 |
1 | 1 | 1 | 1 | 0 | 0 | 1 | 9 |
The above truth table shows the data to be applied to the 7 segments to display the digits. In order to display the digit ‘0’ on 7 segments, segments a, b, c, d, e and f are applied with a logic high and segment g is applied with a logic low.
7 Segment Display Features
- It is available in two modes i.e Common Cathode and Common Anode.
- Available in many different sizes like 9.14mm,14.20mm,20.40mm,38.10mm,57.0mm and 100mm (Commonly used/available size is 14.20mm).
- Available colours: White, Blue, Red, Yellow and Green (Res is commonly used).
- Low current operation.
- Better, brighter and larger display than conventional LCD displays.
- Current consumption: 30mA / segment.
- Peak current: 70mA.
Applications
- The applications of 7segments are mostly in digital calculators, electronic meters, digital clocks, digital clocks, clock radios, etc.
- Today most applications are using LCDs, because of low current consumption.
- Used in applications where font size is required to be bigger.
- Microcontroller Independent, hence used in small circuit projects.
- Used in combination with four segments to display measurement/sensor value with four characters.
- Has bright illumination, hence used where the display is required to work in low light or dark conditions.
Hola! I’ve been following your site for a while now
and finally got the courage to go ahead and give you a shout out from Humble Texas!
Just wanted to mention keep up the great job!