7 Segment Display, Pinout Diagram, Working & Datasheet

Board of Pinout Diagram

Pin Configuration

Pin NumberPin NameDescription
1eControls the left bottom LED of the 7-segment display
2dControls the bottom most LED of the 7-segment display
3ComConnected to Ground/Vcc based on type of display
4cControls the right bottom LED of the 7-segment display
5DPControls the decimal point LED of the 7-segment display
6bControls the top right LED of the 7-segment display
7aControls the top most LED of the 7-segment display
8ComConnected to Ground/Vcc based on type of display
9fControls the top left LED of the 7-segment display
10gControls the middle LED of the 7-segment display

7-Segment Display Features

  • Available in two modes Common Cathode (CC) and Common Anode (CA)
  • 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

Note: The above current rating is for 14.20mm Red colour 7-segment display. More details can be found at the datasheet given at the end of this page

Equivalent Display Modules

Dot Matrix LED Display, 16×2 LCD Displays, OLED Display, TFT LCD Screen Display

7-segment Display Brief Intro

The seven segments displays are the oldest yet one of the efficient types of display used in embedded applications. This display has nothing more than 8 LED inside it. These 8 LEDs are separated into each segments which can be named as a,b,c,d,e,f,g,DP as shown in the picture above. These entire 8 segment LEDs have one end of their pins pulled out of the module as shown above and the other ends are connected together and pulled out as the Common pin. So to make an LED of a particular segment glow we just have to power common pin along with the segment pin. This way we can power more than one segment at a time to represent the numeric number 0-9 and also few Alphabets as shown on the graphic image below. We also have an option to show a decimal point using the DP pin.

Selecting your 7-Segment Display

As discussed in the Features there are many options to choose for a 7-segment display. There many different types of size and colours to select from. The default and most commonly used / available one is the 14.20mm with Red colour display as show in the above animation. If you are planning to make your project look out of the box, then other colour display can also be used. Also note that as size and colour differs the amount of current consumed by the display will also differ. The Red colour one is universally used since it consumes less current than other colours.

Now, there is another important parameter which you have to concentrate before buying this module. That is either a Common Anode display or a Common Cathode display. We cannot use a circuit/program designed for Common Anode display for Common Cathode or vice versa.

Common Cathode 7 Segment Display

The common cathode display is commonly called CC display. In this type the common pin on the 7-segment display is connected to all the eight Cathode pins of the LEDs. So In order to make this type of seven segment display to work we should connect he Com pin to the Ground pin and power the other pins with Vcc (+5V typically).

Common Anode 7 Segment Display

The common anode display is commonly called CA display. In this type the common pin on the 7-segment display is connected to all the eight Anode pins of the LEDs. So In order to make this type of seven segment display to work we should connect he Com pin to the Vcc (+5V typically) and ground the required segment pin to turn it on.

How to use 7-Segment display

One important advantage of a 7-segment display is that, it is very easy to use. Unlike other display modules a 7-segment display can be made to work even without a Microcontroller or a Microprocessor.

This is possible because of the readily available 7-segment counter IC’s like IC CD4026. This IC can be used in combination with the display for projects which have very simple circuits. The IC can drive one 7-segment display module and the number that is being displayed can also be incremented or decremented.

But, most commonly a seven segment display is used along with a MCU/MPU in that case, the eight segment pins will be connected to the I/O pins of the Microcontroller and the com pin will be connected to the ground of Vcc depending upon its type (CC/CA). Then these IO pins can be toggled in a particular sequence to display the desired numbers. This particular sequence is explained through the table below.  For displaying each number in the seven segment display its respective sequence is given in the table. If we want to display the number “0”, then we need to glow all the LEDs except LED which belongs to line “g” (see 7 segment pin diagram above, so we need a bit pattern 11000000. Similarly to display “1”we need to glow LEDs associated with b and c, so the bit pattern for this would be 11111001.

Digit to Displayh g f e d c b aHex code
01 1 0 0 0 0 0 0C0
11 1 1 1 1 0 0 1F9
21 0 1 0 0 1 0 0A4
31 0 1 1 0 0 0 0B0
41 0 0 1 1 0 0 199
51 0 0 1 0 0 1 092
61 0 0 0 0 0 1 082
71 1 1 1 1 0 0 0F8
81 0 0 0 0 0 0 080
91 0 0 1 0 0 0 090

Note:The table is applicable only for Common Anode type display, if it is a common Cathode type then simply replace the ‘1’s with ‘0’s and ‘0’s with ‘1’s.


  • 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 display are required to work in low light or dark conditions

Component Datasheet PDF: 7 Segment Display Datasheet

Leave a Comment