Equivalent Display Modules

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.

Number

g f e d c b a

Hex code

0

1000000

C0

1

1111001

F9

2

0100100

A4

3

0110000

B0

4

0011001

99

5

0010010

92

6

0000010

82

7

1111000

F8

8

0000000

80

9

0010000

90

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

Things change for common cathode configuration.

Number

g f e d c b a

Hex Code

0

0111111

3F

1

0000110

06

2

1011011

5B

3

1001111

4F

4

1100110

66

5

1101101

6D

6

1111101

7D

7

0000111

07

8

1111111

7F

9

1001111

4F

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.