Stufin
Home Quick Cart Profile

7 Segment Led Display (Common Cathode)

Buy Now on Stufin

Component Name

7 Segment LED Display (Common Cathode)

Description

The 7 Segment LED Display (Common Cathode) is a type of electronic display device that uses light-emitting diodes (LEDs) to display numerical and alphanumeric information. It is a popular choice for various electronic projects, including digital clocks, calculators, and measurement instruments.

Functionality

The 7 Segment LED Display (Common Cathode) is designed to display numeric and alphanumeric characters by illuminating a combination of seven LED segments. Each segment is a rectangular LED that can be turned on or off independently to form the desired character. The display is organized into seven segments, labeled A to G, with each segment consisting of several LEDs in series.

The display operates on the principle of a common cathode configuration, where all the cathode pins of the LEDs are connected together and tied to a common ground. The anode pins of the LEDs are connected to individual pins on the display, allowing for independent control of each segment.

Key Features

  • 7-Segment Display: The display consists of seven rectangular LED segments, labeled A to G, which can be combined to form numeric and alphanumeric characters.
  • Common Cathode Configuration: The cathode pins of all LEDs are connected together and tied to a common ground, while the anode pins are connected to individual pins on the display.
  • LED Segments: Each segment consists of several LEDs in series, which can be turned on or off independently to form the desired character.
  • Multiplexing Capability: The display can be multiplexed to reduce the number of pins required to drive the display, allowing for more complex displays to be created.
  • Brightness Control: The brightness of the display can be controlled by adjusting the current flowing through the LEDs.
  • Low Power Consumption: The 7 Segment LED Display (Common Cathode) is a low-power device, making it suitable for battery-powered applications.
  • Wide Operating Temperature Range: The display can operate over a wide temperature range, typically from -20C to 70C.
  • Simple Interface: The display has a simple interface, with individual pins for each segment, making it easy to connect and control.
  • Reliability: The display is a reliable component, with a long lifespan and resistance to environmental factors such as humidity and vibration.
  • Compact Size: The 7 Segment LED Display (Common Cathode) is a compact component, making it suitable for use in space-constrained applications.

Applications

The 7 Segment LED Display (Common Cathode) is commonly used in various applications, including

Digital clocks and watches

Calculators and scientific instruments

Measurement instruments, such as multimeters and oscilloscopes

Industrial control panels and automation systems

Automotive dashboards and displays

Medical equipment and appliances

Consumer electronics, such as toys and games

Pinout and Dimensions

The pinout and dimensions of the 7 Segment LED Display (Common Cathode) may vary depending on the manufacturer and specific model. However, a typical 7 Segment LED Display (Common Cathode) has 10 pins, with the following pinout

| Pin | Description |

| --- | --- |

| 1 | Segment A |

| 2 | Segment B |

| 3 | Segment C |

| 4 | Segment D |

| 5 | Segment E |

| 6 | Segment F |

| 7 | Segment G |

| 8 | Common Cathode |

| 9 | Decimal Point (optional) |

| 10 | Backlight (optional) |

The dimensions of the display are typically around 27mm x 18mm, with a thickness of around 7mm.

Overall, the 7 Segment LED Display (Common Cathode) is a versatile and widely used component in various electronic applications, offering a simple and effective way to display numeric and alphanumeric information.

Pin Configuration

  • 7 Segment LED Display (Common Cathode) Pinout and Connection Guide
  • The 7 Segment LED Display (Common Cathode) is a widely used component in IoT and electronics projects for displaying numerical and alphabetical information. It consists of 7 LEDs, each representing a segment of a character, and a common cathode (negative leg) connected to all the LEDs.
  • Pinout:
  • The 7 Segment LED Display (Common Cathode) typically has 10 pins, labeled A to G, and DP (Decimal Point). Here's a breakdown of each pin:
  • 1. A (Segment A):
  • Pin 1 is connected to the top-most horizontal segment of the display.
  • 2. B (Segment B):
  • Pin 2 is connected to the top-right vertical segment of the display.
  • 3. C (Segment C):
  • Pin 3 is connected to the bottom-right vertical segment of the display.
  • 4. D (Segment D):
  • Pin 4 is connected to the bottom-most horizontal segment of the display.
  • 5. E (Segment E):
  • Pin 5 is connected to the bottom-left vertical segment of the display.
  • 6. F (Segment F):
  • Pin 6 is connected to the top-left vertical segment of the display.
  • 7. G (Segment G):
  • Pin 7 is connected to the middle horizontal segment of the display.
  • 8. DP (Decimal Point):
  • Pin 8 is connected to the decimal point LED, which is usually placed at the bottom of the display.
  • 9. COM (Common Cathode):
  • Pin 9 is the common cathode connection, which is shared by all the segments (A to G) and the decimal point (DP).
  • 10. COM (Common Cathode):
  • Pin 10 is also a common cathode connection, identical to Pin 9.
  • Connecting the Pins:
  • To connect the 7 Segment LED Display (Common Cathode), follow these steps:
  • Connect Pin 9 (or Pin 10) to a voltage supply's negative terminal (0V or GND).
  • Connect each segment pin (A to G, and DP) to a suitable digital output pin on your microcontroller or driver IC.
  • Make sure to use a current-limiting resistor in series with each segment pin to prevent excessive current draw.
  • If your microcontroller or driver IC has a built-in LED driver or current sink capability, you may not need an external current-limiting resistor.
  • Here's a sample connection diagram:
  • ```
  • +---------------+
  • | Microcontroller |
  • +---------------+
  • |
  • | Digital Output Pins
  • |
  • v
  • +---------------+
  • | 7 Segment LED |
  • | Display (CC) |
  • +---------------+
  • |
  • | A | Pin 1
  • | B | Pin 2
  • | C | Pin 3
  • | D | Pin 4
  • | E | Pin 5
  • | F | Pin 6
  • | G | Pin 7
  • | DP | Pin 8
  • | COM | Pin 9 (or Pin 10)
  • |
  • v
  • +---------------+
  • | Voltage Supply |
  • +---------------+
  • |
  • | VCC (Positive)
  • |
  • v
  • +---------------+
  • | GND (Negative) |
  • +---------------+
  • ^
  • |
  • | Pin 9 (or Pin 10)
  • ```
  • Remember to consult your microcontroller's datasheet and the 7 Segment LED Display's datasheet for specific connection and programming requirements.

Code Examples

7 Segment LED Display (Common Cathode) Documentation
Overview
The 7 Segment LED Display (Common Cathode) is a widely used component in various electronic projects, including IoT devices, digital clocks, and scoreboards. It is a single digit display that shows numbers from 0 to 9, as well as some special characters. This display consists of 7 segments (A to G) and a decimal point (DP), with a common cathode (negative leg) connected to all the segments.
Pinout
The typical pinout of a 7 Segment LED Display (Common Cathode) is:
| Pin | Segment |
| --- | --- |
| 1 | DP (Decimal Point) |
| 2 | A |
| 3 | B |
| 4 | C |
| 5 | D |
| 6 | E |
| 7 | F |
| 8 | G |
| 9 | CC (Common Cathode) |
Connections
To use the 7 Segment LED Display (Common Cathode), connect the common cathode (pin 9) to a digital ground (GND), and the remaining pins to digital outputs of a microcontroller or a driver circuit.
Code Examples
### Example 1: Arduino Uno
In this example, we will use an Arduino Uno board to display the number "5" on the 7 Segment LED Display.
```c
const int segmentPins[] = {2, 3, 4, 5, 6, 7, 8, 9}; // A, B, C, D, E, F, G, CC
const int digitPins[] = {10}; // Only one digit in this example
void setup() {
  for (int i = 0; i < 8; i++) {
    pinMode(segmentPins[i], OUTPUT);
  }
  for (int i = 0; i < 1; i++) {
    pinMode(digitPins[i], OUTPUT);
  }
}
void loop() {
  displayDigit(5); // Display the number 5
  delay(1000); // Hold for 1 second
}
void displayDigit(int digit) {
  switch (digit) {
    case 0:
      setSegments(false, true, true, true, true, true, true); break;
    case 1:
      setSegments(true, true, false, false, false, false, false); break;
    case 2:
      setSegments(false, true, false, true, true, false, true); break;
    case 3:
      setSegments(false, true, false, true, false, false, true); break;
    case 4:
      setSegments(true, false, true, false, false, true, false); break;
    case 5:
      setSegments(false, false, true, true, false, true, true); break;
    case 6:
      setSegments(false, false, true, true, true, true, true); break;
    case 7:
      setSegments(false, true, false, false, false, false, false); break;
    case 8:
      setSegments(false, true, true, true, true, true, true); break;
    case 9:
      setSegments(false, true, true, true, false, true, true); break;
  }
}
void setSegments(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g) {
  digitalWrite(segmentPins[1], a ? LOW : HIGH); // A
  digitalWrite(segmentPins[2], b ? LOW : HIGH); // B
  digitalWrite(segmentPins[3], c ? LOW : HIGH); // C
  digitalWrite(segmentPins[4], d ? LOW : HIGH); // D
  digitalWrite(segmentPins[5], e ? LOW : HIGH); // E
  digitalWrite(segmentPins[6], f ? LOW : HIGH); // F
  digitalWrite(segmentPins[7], g ? LOW : HIGH); // G
  digitalWrite(segmentPins[0], LOW); // CC (Common Cathode)
}
```
### Example 2: ESP32 with Multiplexing
In this example, we will use an ESP32 board to display the numbers "0" to "9" on multiple 7 Segment LED Displays using multiplexing.
```c
const int segmentPins[] = {16, 17, 18, 19, 20, 21, 22, 23}; // A, B, C, D, E, F, G, CC
const int digitPins[] = {13, 12, 14, 27}; // 4 digits
void setup() {
  for (int i = 0; i < 8; i++) {
    pinMode(segmentPins[i], OUTPUT);
  }
  for (int i = 0; i < 4; i++) {
    pinMode(digitPins[i], OUTPUT);
  }
}
void loop() {
  for (int digit = 0; digit < 10; digit++) {
    for (int i = 0; i < 4; i++) {
      displayDigit(digit, i);
      delay(5); // Hold for 5 milliseconds
    }
  }
}
void displayDigit(int digit, int digitIndex) {
  // Set the digit pin low to enable the digit
  digitalWrite(digitPins[digitIndex], LOW);
  
  switch (digit) {
    case 0:
      setSegments(false, true, true, true, true, true, true); break;
    case 1:
      setSegments(true, true, false, false, false, false, false); break;
    case 2:
      setSegments(false, true, false, true, true, false, true); break;
    case 3:
      setSegments(false, true, false, true, false, false, true); break;
    case 4:
      setSegments(true, false, true, false, false, true, false); break;
    case 5:
      setSegments(false, false, true, true, false, true, true); break;
    case 6:
      setSegments(false, false, true, true, true, true, true); break;
    case 7:
      setSegments(false, true, false, false, false, false, false); break;
    case 8:
      setSegments(false, true, true, true, true, true, true); break;
    case 9:
      setSegments(false, true, true, true, false, true, true); break;
  }
  
  // Set the digit pin high to disable the digit
  digitalWrite(digitPins[digitIndex], HIGH);
}
void setSegments(boolean a, boolean b, boolean c, boolean d, boolean e, boolean f, boolean g) {
  digitalWrite(segmentPins[1], a ? LOW : HIGH); // A
  digitalWrite(segmentPins[2], b ? LOW : HIGH); // B
  digitalWrite(segmentPins[3], c ? LOW : HIGH); // C
  digitalWrite(segmentPins[4], d ? LOW : HIGH); // D
  digitalWrite(segmentPins[5], e ? LOW : HIGH); // E
  digitalWrite(segmentPins[6], f ? LOW : HIGH); // F
  digitalWrite(segmentPins[7], g ? LOW : HIGH); // G
  digitalWrite(segmentPins[0], LOW); // CC (Common Cathode)
}
```
Notes
In the above examples, the common cathode (CC) is connected to a digital ground (GND) and the remaining pins are connected to digital outputs of the microcontroller.
 The `setSegments` function sets the individual segments of the display based on the input digit.
 In the ESP32 example, multiplexing is used to control multiple displays. The `displayDigit` function sets the digit pin low to enable the digit and then sets the segments using the `setSegments` function. The digit pin is then set high to disable the digit.
 The examples are simplified and do not include error handling or debouncing. In a real-world application, you may need to add these features depending on the specific requirements.