Note
Hello, welcome to the SunFounder Raspberry Pi & Arduino & ESP32 Enthusiasts Community on Facebook! Dive deeper into Raspberry Pi, Arduino, and ESP32 with fellow enthusiasts.
Why Join?
Expert Support: Solve post-sale issues and technical challenges with help from our community and team.
Learn & Share: Exchange tips and tutorials to enhance your skills.
Exclusive Previews: Get early access to new product announcements and sneak peeks.
Special Discounts: Enjoy exclusive discounts on our newest products.
Festive Promotions and Giveaways: Take part in giveaways and holiday promotions.
π Ready to explore and create with us? Click [here] and join today!
7-segment DisplayΒΆ
A 7-segment display is an 8-shaped component which packages 7 LEDs. Each LED is called a segment - when energized, one segment forms part of a numeral (both decimal and hexadecimal) to be displayed. An additional 8th LED is sometimes used within the same package thus allowing the indication of a decimal point (DP) when two or more 7-segment displays are connected together to display numbers greater than ten.
Each of the LEDs in the display is given a positional segment with one of its connection pins led out from the rectangular plastic package. These LED pins are labeled from βaβ through to βgβ representing each individual LED. The other LED pins are connected together forming a common pin. So by forward biasing the appropriate pins of the LED segments in a particular order, some segments will brighten and others stay dim, thus showing the corresponding character on the display.
The common pin of the display generally tells its type. There are two types of pin connection: a pin of connected cathodes and one of connected anodes, indicating Common Cathode (CC) and Common Anode (CA). As the name suggests, a CC display has all the cathodes of the 7 LEDs connected when a CA display has all the anodes of the 7 segments connected.
Common Cathode 7-Segment Display
In a common cathode display, the cathodes of all the LED segments are connected to the logic β0β or ground. Then an individual segment (a-imgg) is energized by a βHIGHβ, or logic β1β signal via a current limiting resistor to forward bias the anode of the segment.
Common Anode 7-Segment Display
In a common anode display, the anodes of all the LED segments are connected to the logic β1β. Then an individual segment (a-g) is energized by a ground, logic β0β or βLOWβ signal via a current limiting resistor to the cathode of the segment.
Example
Lesson 17 7-Segment Display (Mega Board Project)
Lesson 23 Simple Creation - Digital Dice (Mega Board Project)
Lesson 17 7-Segment Display (R3 Board Project)
Lesson 23 Simple Creation - Digital Dice (R3 Board Project)