7 Segment Display Pin Assignments

[Click the image to enlarge it]

7 Segment Display Pin Configuration

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

Com

Connected to Ground/Vcc based on 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

Com

Connected to Ground/Vcc based on 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

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 (CC) 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 (CA) 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 Display

h g f e d c b a

Hex code

0

1 1 0 0 0 0 0 0

C0

1

1 1 1 1 1 0 0 1

F9

2

1 0 1 0 0 1 0 0

A4

3

1 0 1 1 0 0 0 0

B0

4

1 0 0 1 1 0 0 1

99

5

1 0 0 1 0 0 1 0

92

6

1 0 0 0 0 0 1 0

82

7

1 1 1 1 1 0 0 0

F8

8

1 0 0 0 0 0 0 0

80

9

1 0 0 1 0 0 0 0

90

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.

Applications

  • 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

2D model (14.20mm package)

      7 Segment Display Pin Diagram

Download Datasheet PDF:
7 Segment Display Datasheet

Tags


A seven-segment display is commonly used in electronic display device for decimal numbers from 0 to 9 and in some cases, basic characters. Use of light emitting diodes (LEDs) in seven segment displays made it more popular, whereas of late liquid crystal displays (LCD) displays have also come into use. Electronic devices like microwave ovens, calculators, washing machines, radios, digital clocks etc. to display numeric information are the most common applications. Let’s take a look at the 7 segment display pinout to have a better understanding.

7 segment display pinout

A 7 segment display is made of seven different illuminating segments. These are arranged in a way to form numbers and characters by displaying different combinations of segments. The binary information is displayed using these seven segments. LED or light emitting diode is P-N junction diode which emits the energy in the form of light, differ from normal P-N junction diode which emits in the form of heat. Whereas LCD use properties of liquid crystal for displaying and do not emit the light directly. These LED’s or LCD’s are used to display the required numeral or alphabet.

Types of 7 segments

There are basically 2 types of 7 segment LED display.
Common Anode: All the Negative terminals (cathode) of all the 8 LEDs are connected together. All the positive terminals are left alone.
Common Cathode: All the positive terminals (anode) of all the 8 LEDs are connected together. All the negative thermals are left alone.

Working on 7 segments

Seven segment devices are generally made up of LEDs. These LEDs will glow when they are forward biased. Intensity of the LEDs depends on forward current. So, sufficient forward current has to be provided to these LEDs to glow with full intensity. This is provided by the driver and is applied to the seven segments.

Numberg f e d c b aHex code
01000000C0
11111001F9
20100100A4
30110000B0
4001100199
5001001092
6000001082
71111000F8
8000000080
9001000090

Table: Display numbers on a seven segment display in common anode configuration

Things change for common cathode configuration.

Numberg f e d c b aHex Code
001111113F
1000011006
210110115B
310011114F
4110011066
511011016D
611111017D
7000011107
811111117F
910011114F

Table: Display numbers on a seven segment display in common cathode configuration

A sample interfacing of the 7 segment display to Arduino uno is provided for reference.

You can find some sample projects to work on involving 7 segment display here.

Saurabh

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *