The Ultimate Guide to 7 Segment Display: Pinout, Working, and Datasheet (2024)

Displays are widely utilized in embedded systems and devices, with one standout example being the timers on kitchen appliances, digital clocks, and the dramatic bomb timers often seen in movies. What unites them all is the use of seven-segment displays to present numeric information. In this article, we'll delve deeper into the realm of these digital displays, providing a comprehensive overview of their functionality. Continue reading to access a consolidated resource covering all the essential details about seven-segment displays.

What is 7-Segment Display?

The 7-segment display, often referred to as the "seven segment display," is comprised of seven Light Emitting Diodes (LEDs), which is the origin of its name. These LEDs are arranged in a rectangular pattern, as depicted. Each of these seven LEDs is designated as a "segment" because, when illuminated, it contributes to the representation of numerical digits, including both decimal and hexadecimal characters. Interestingly, the history of these devices can be traced back to as early as 1903, credited to an individual named Carl Kinsley. He is recognized as the inventor of a telegraphic method for transmitting letters and numbers. The seven-segment display serves as a simpler alternative to the more intricate dot matrix displays, primarily used for displaying decimal numerals.

These seven-segment displays find extensive application in digital clocks, electronic meters, basic calculators, and various other electronic devices designed for presenting numerical information.

The Ultimate Guide to 7 Segment Display: Pinout, Working, and Datasheet (1)

7-Segment Display Pinout

The Ultimate Guide to 7 Segment Display: Pinout, Working, and Datasheet (2)

A seven-segment display comprises seven distinct illuminating sections strategically arranged to create numbers and characters through various segment combinations.

These seven segments are instrumental in conveying binary information. Unlike a conventional P-N junction diode, an LED emits light energy rather than heat.

On the other hand, LCDs leverage the properties of liquid crystals to present information without emitting light directly. Both LEDs and LCDs are harnessed for the presentation of desired numbers and letters.

Pinout Configuration

Pin No.Pin 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
9
fControls the top left LED of the 7-segment display
10gControls the middle LED of the 7-segment display

The Functioning of the 7-Segment Display

A 7-segment display employs Light Emitting Diodes (LEDs) to emit photons and generate illumination, depicting numerical digits across all seven segments, with the eighth segment serving as a decimal point.

During this process, it's crucial to note that an LED functions as a solid-state optical p-n junction diode, permitting the passage of current through its junction.

The diode facilitates the flow of current from an external voltage source, a phenomenon referred to as electroluminescence. The resulting colors vary from red to blue to green, contingent upon the specific impurities within the semiconductor materials involved.

The inclusion of a decimal point proves advantageous when interconnecting two or more 7-segment displays. This arrangement allows for the display of decimal digits or the presentation of multi-digit content.

The choice of LEDs is influenced by factors including:

  • Cost-effectiveness

  • Extended lifespan

  • Compact dimensions

  • A wide array of color options

  • Convenient availability

  • Seamless integration with other electronic components and digital circuits

  • Nevertheless, their primary advantage lies in the ability to accommodate multiple LEDs within a compact package, enabling the creation of a space-saving seven-segment display – a feat made feasible by the display's diminutive size.

7-Segment Display Types

Two fundamental types of seven-segment LED displays exist:

The Ultimate Guide to 7 Segment Display: Pinout, Working, and Datasheet (3)

Common Anode 7 Segment Display

In this variant, all the negative terminals (anodes) of the eight LEDs are linked, while the positive terminals remain separate.

Common Cathode 7 Segment Display

In this configuration, all the positive terminals (cathodes) of the eight LEDs are interconnected, leaving the negative terminals isolated.

Common anode seven-segment displays enjoy greater popularity compared to their cathode counterparts. This preference arises from the fact that logic circuits can handle more current sinking than sourcing, effectively resembling the reverse connection of LEDs.

How Does 7-Segment Display Work?

Seven-segment units typically incorporate Light Emitting Diodes (LEDs), which illuminate when subjected to forward biasing. The brightness of these LEDs is contingent on the magnitude of the forward current.

Therefore, to achieve optimal illumination, the driver supplies the requisite forward current to these LEDs, which is subsequently directed to the seven segments.

The Ultimate Guide to 7 Segment Display: Pinout, Working, and Datasheet (4)

7 common anode 7-segment truth table

7-Segment Display Codes

The table provided illustrates the codes for digits 0 through 9 when utilizing a seven-segment LED display in the common anode configuration.

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

When transitioning to a common cathode configuration, the coding scheme undergoes alterations.

Numberg f e d c b aHex code
001111113F
1000011006
210110115B
310011114F
4110011066
511011016D
611111017D
7000011107
8
11111117F
910011114F

For reference, we have included an example of interfacing a 7-segment display with an Arduino UNO below.

The Ultimate Guide to 7 Segment Display: Pinout, Working, and Datasheet (5)

How to use a 7-Segment display

One significant advantage of a 7-segment display lies in its user-friendliness. Unlike other display modules, a 7-segment display can function independently, even without the need for a microcontroller or microprocessor.

This autonomy is made possible through the availability of 7-segment counter ICs like the CD4026. When combined with the display, this IC is ideal for projects with uncomplicated circuitry. It can control a single 7-segment display module and manage the displayed number, allowing for incrementing or decrementing.

However, in most cases, a seven-segment display is used in conjunction with a microcontroller (MCU) or microprocessor (MPU). In such scenarios, the eight segment pins are connected to the MCU/MPU's I/O pins, while the common pin is connected to either the ground or Vcc, depending on its type (CC or CA). These I/O pins are then manipulated in a specific sequence to display the desired numbers. The table below illustrates the particular sequence for displaying each number on the seven-segment display. For instance, to display the number "0," all LEDs except the one corresponding to segment "g" should be illuminated, resulting in the bit pattern 11000000. Similarly, to display "1," LEDs associated with segments "b" and "c" should be lit, corresponding to the bit pattern 11111001.

The Ultimate Guide to 7 Segment Display: Pinout, Working, and Datasheet (6)

8 sequence for displaying desired numbers

Note: This table applies specifically to Common Anode displays. For Common Cathode displays, you can simply swap the '1's with '0's and the '0's with '1's.

Applications

  • Deployed in scenarios necessitating larger text size

  • Not reliant on microcontrollers, making it suitable for petite electronic undertakings

  • Applied in conjunction with four-segment setups to exhibit four-character measurements or sensor data

  • Boasts luminous brightness, rendering it fitting for displays in low-light or dim environments

7-Segment Display-based Projects

  • Electronic die featuring a seven-segment display

  • Water level gauge

Conclusion

In brief, two variants of seven-segment displays exist: Common Anode and Common Cathode, each with its advantages and drawbacks.

Common Anode displays enjoy greater popularity compared to Common Cathode ones due to their lower power consumption when showcasing numerical data. However, Common Cathode displays excel in providing superior contrast ratios.

Both types find extensive utility in numerous everyday applications, encompassing digital timekeeping devices, numeric input interfaces, and alphanumeric visual displays.

Read More

The Ultimate Guide to 7 Segment Display: Pinout, Working, and Datasheet (2024)

FAQs

What is a 7-segment display and how does it work? ›

A seven-segment LED is a digital display module specialized to display numerical information. Light-emitting diodes (LEDs) arranged in the shape of numbers offer an easily visible display. They are sometimes called "seven-segment displays" or "seven-segment indicators."

What are the pins of a seven-segment display? ›

The 12 pins of the seven-segment display can be grouped into two types: segment pins and digit select (scan) pins. The current limiting resistors are to protect the LED in each of the segments. There are four digits and there are eight segments for each digit (including the decimal point).

What is the 7-segment display notation? ›

The seven elements of the display can be lit in different combinations to represent each of the Arabic numerals. The individual segments are referred to by the letters "a" to "g", and an optional decimal point (an "eighth segment", referred to as DP) is sometimes used for the display of non-integer numbers.

What is the pinout of 4 7-segment display? ›

Pin Out – 4 Digit 7 Segment Display

A 4-digit 7-segment LED display has 12 pins. 8 of the pins are for the 8 LEDs on each of the 7 segment displays, which includes A-G and DP (decimal point). The other 4 pins represent each of the 4 digits from D1-D4.

How do I know if my 7-segment display is working? ›

Checking 7-Segment Display
  1. Hold the display in your hand and identify pin 1.
  2. Now take the multimeter (assuming a red lead for positive and a black lead for negative) and set it to the proper continuity range.
  3. Check your meter with a sound test (touch both the leads together, and a sound will be produced).
Nov 22, 2017

How do I run a 7-segment display? ›

Driving a 7-segment Display

In this example, the segments of a common anode display are illuminated using the switches. If switch a is closed, current will flow through the “a” segment of the LED to the current limiting resistor connected to pin a and to 0 volts, making the circuit.

How many pins are there on a 7 segment LED? ›

In order to wire up the seven segment display, we'll need digital lines for the 7 segments (and another for the decimal point) and then 4 more digital lines to select which digit to display. This gives a total of 12 pins!

What is the voltage of a 7-segment display? ›

7 Segment LED Display has a common anode. It have a forward voltage of 3VDC and a max forward current of 20mA. This is the way the display works.

How does a 4 digit 7-segment display work? ›

The 4-digtal 7-segment display works independently. It uses the principle of human visual persistence to quickly display the characters of each 7-segment in a loop to form continuous strings. For example, when “1234” is displayed on the display, “1” is displayed on the first 7-segment, and “234” is not displayed.

How many pins can be used to connect power to a 7-segment display? ›

1) We need 10 pins to connect power to a 7 segment display. A seven-segment display is an electronic circuit containing 10 pins, out of which 8 are LED pins, and 2 are left free which are used as common and are internally shorted together.

What is binary to 7-segment display decoder? ›

A digital or binary decoder is a combinational logic circuit that transforms one form of digital code into another. The BCD to 7-segment display decoder is a specialized decoder capable of converting binary-coded decimals into a format suitable for easy presentation via a 7-segment display.

Is a 7-segment display input or output? ›

A standard 7-segment LED display generally has eight (8) input connections, one for each LED segment and one that acts as a common terminal or connection for all the internal display segments.

What is a segment display and what it's used? ›

A segment display is an electronic display that uses some specific number of LEDs to display different characters. Its study helps understanding its advanced uses like LED TVs, etc. Following is a list of some of the segment displays categorised on the basis of the number of LEDs used: Three-segment display (3)

What are the two common types of seven-segment displays? ›

There are two types of LED 7-segment displays: common cathode (CC) and common anode (CA). The difference between the two displays is the common cathode has all the cathodes of the 7-segments connected directly together and the common anode has all the anodes of the 7-segments connected together.

What are the advantages of 7-segment LED display? ›

Ans: The advantages of using a seven-segment display include its simple, low-cost, and versatile design, making it a popular choice for a wide range of applications that require the display of numerical information.

What are the disadvantages of seven-segment display? ›

Disadvantages. Limited Display: Seven-segment displays can only display digits and a limited set of letters, limiting their use in applications that require text or graphics.

Top Articles
Latest Posts
Article information

Author: Manual Maggio

Last Updated:

Views: 6061

Rating: 4.9 / 5 (49 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Manual Maggio

Birthday: 1998-01-20

Address: 359 Kelvin Stream, Lake Eldonview, MT 33517-1242

Phone: +577037762465

Job: Product Hospitality Supervisor

Hobby: Gardening, Web surfing, Video gaming, Amateur radio, Flag Football, Reading, Table tennis

Introduction: My name is Manual Maggio, I am a thankful, tender, adventurous, delightful, fantastic, proud, graceful person who loves writing and wants to share my knowledge and understanding with you.