SlideShare a Scribd company logo
1 of 7
Download to read offline
VikiLABS
Working with 7-segment displays
www.vikipedialabs.com
July 14, 2017
Seven segment displays are made up of LEDs combined such that
they can be used to display numbers and letters. As their name implies,
they are made of seven LEDs plus an additional LED for a dot. Seven
segment displays can be in form of common anode or common cathode.
They can also be in form of single digit or multi digit seven segment
displays.
1 Single digit displays
b
a
c
d
e
f g
dp
Figure 1: 7 segment display lettering
1
www.vikipedialabs.com
Common Anode (CA) displays have the anode of all LED pins con-
nected together to 5v, therefore, a LOW voltage applied individually on
each pin will light up the LED of that particular pin. Conversely, Com-
mon Cathode (CC) displays have the cathode of all LED pins connected
together to ground, therefore, a HIGH voltage applied individually on a
given pin will turn ON the LED of that particular pin. Fig. 2 shows the
internal structure of a 1-digit 7-segment display.
a b c d e f g dp
GND
7 6 4 2 1 9 10 5
3,8
(a) common cathode
a b c d e f g dp
Vcc
7 6 4 2 1 9 10 5
3,8
(b) common anode
Figure 2: Internal structure of 1-digit 7 segment displays
7 segment displays normally have 8 pins which represents the each
LED on the display (7 segment plus the dot making 8 LEDs) (Fig. 3a
and b). However, there is also a 7 segment display called a Binary Coded
Display (BCD) that has only 4 pins (Fig. 3c. In this case, the binary
combination as shown in Table 1 will produce numbers 0 - 9 and letters
A - F as shown.
(a) Generic 7-segment
display
(b) Common anode/cathode
7-segment display
(c) Binary Coded (BCD)
7-segment display
Figure 3: Single-digit 7 segment displays
2
www.vikipedialabs.com
Table 1: Binary Coded Display pin configuration
Pin 1 Pin 2 Pin 3 Pin 4 binary
0 0 0 0 0 0000
1 0 0 0 1 0001
2 0 0 1 0 0010
3 0 0 1 1 0011
4 0 1 0 0 0100
5 0 1 0 1 0101
6 0 1 1 0 0110
7 0 1 1 1 0111
8 1 0 0 0 1000
9 1 0 0 1 1001
A 1 0 1 0 1010
b 1 0 1 1 1011
C 1 1 0 0 1100
d 1 1 0 1 1101
E 1 1 1 0 1110
F 1 1 1 1 1111
For common anode 7-segment displays, Table 2 shows the binary and
hexadecimal value that would produce numbers 0 - 9 and alphabets A -
F, this can be traced by using Fig. ??. For common cathode 7-segment
displays, the binary and hexadecimal values are shown in Table 3 for
numbers 0 - 9 and alphabets A - F. Notice that the binary values can
also be produced by carrying out a NOT operation on the respective
common anode binary value.
2 Multi-digit displays
Multi-digit displays do not have pins equal to 8 × number of digits,
instead, their number of pins equals 8 + number of digits as shown in
Figure 4.
7 segment displays can be connected directly to a microcontroller.
74HC573 Latch IC can likewise be used to drive 7 segment displays, the
advantage of using a latch is that only 8 digital pins of a microcontroller
can be used for multi-digit displays. If a latch is not used, the number
of pins that is equal to the number of pins the LED display has will be
3
www.vikipedialabs.com
Table 2: Common Anode
dp g f e d c b a binary hexadecimal
0 1 1 0 0 0 0 0 0 0b11000000 0xc0
1 1 1 1 1 1 0 0 1 0b11111001 0xf9
2 1 0 1 0 0 1 0 0 0b10100100 0xa4
3 1 0 1 1 0 0 0 0 0b10110000 0xb0
4 1 0 0 1 1 0 0 1 0b10011001 0x99
5 1 0 0 1 0 0 1 0 0b10010010 0x92
6 1 0 0 0 0 0 1 0 0b10000010 0x82
7 1 1 1 1 1 0 0 0 0b11111000 0xf8
8 1 0 0 0 0 0 0 0 0b10000000 0x80
9 1 0 0 1 0 0 0 0 0b10010000 0x90
A 1 0 0 0 1 0 0 0 0b10001000 0x88
b 1 0 0 0 0 0 1 1 0b10000011 0x83
C 1 1 0 0 0 1 1 0 0b11000110 0xc6
d 1 0 1 0 0 0 0 1 0b10100001 0xa1
E 1 0 0 0 0 1 1 0 0b10000110 0x86
F 1 0 0 0 1 1 1 0 0b10001110 0x8e
OFF 1 1 1 1 1 1 1 1 0b11111111 0xff
Table 3: Common Cathode
dp g f e d c b a binary hexadecimal
0 0 0 1 1 1 1 1 1 0b00111111 0x3f
1 0 0 0 0 0 1 1 0 0b00000110 0x06
2 0 1 0 1 1 0 1 1 0b01011011 0x5b
3 0 1 0 0 1 1 1 1 0b01001111 0x4f
4 0 1 1 0 0 1 1 0 0b01100110 0x66
5 0 1 1 0 1 1 0 1 0b01101101 0x6d
6 0 1 1 1 1 1 0 1 0b01111101 0x7d
7 0 0 0 0 0 1 1 1 0b00000111 0x07
8 0 1 1 1 1 1 1 1 0b01111111 0x7f
9 0 1 1 0 1 1 1 1 0b01101111 0x6f
A 0 1 1 1 0 1 1 1 0b01110111 0x77
b 0 1 1 1 1 1 0 0 0b01111100 0x7c
C 0 0 1 1 1 0 0 1 0b00111001 0x39
d 0 1 0 1 1 1 1 0 0b01011110 0x5e
E 0 1 1 1 1 0 0 1 0b01111001 0x79
F 0 1 1 1 0 0 0 1 0b01110001 0x71
OFF 0 0 0 0 0 0 0 0 0b00000000 0x00
4
www.vikipedialabs.com
(a) 2-digit, 7-segment display
(b) 4-digit, 7-segment display
(c) 6-digit, 7-segment display
(d) 8-digit, 7-segment display
Figure 4: Multi-digit 7 segment displays
5
www.vikipedialabs.com
used by the microcontroller.
3 4-digit 7-segment displays
The internal structure of a 4-digit 7-segment common cathode display
is shown in Fig 5. The cathode of each digit are connected together, a
LOW voltage on the cathode will light up the corresponding LED if its
anode is HIGH while a HIGH voltage on the cathode will turn off the
LEDs.
a b c d e f g dp
D1 D2 D3 D4
Figure 5: Internal structure of 4-digit 7 segment display common cathode
display
The internal structure of a 4-digit 7-segment common anode display
is shown in Fig 6. The anode of each digit are connected together, a
HIGH voltage on the anode will light up the corresponding LED if its
cathode is LOW while a LOW voltage on the anode will turn off the
LEDs of the corresponding digit.
The pinout for 1-digit and 4-digit 7-segment displays is shown in
Fig. 7. For 1-digit displays (Fig. 7a), pin 3 and 8 are the power pins: in
common anode, these pins should be connected to Vcc while for common
cathode, they should be connected to GND.
6
www.vikipedialabs.com
a b c d e f g dp
D1 D2 D3 D4
Figure 6: Internal structure of 4-digit 7 segment display common anode
display
(a) 1-digit display (b) 4-digit display
Figure 7: Pinout for 1-digit and 4-digit displays
7

More Related Content

Similar to 7segmentdisplay

BMI of Boys and GirlsMF2620292320153732282637222721163222302223211.docx
BMI of Boys and GirlsMF2620292320153732282637222721163222302223211.docxBMI of Boys and GirlsMF2620292320153732282637222721163222302223211.docx
BMI of Boys and GirlsMF2620292320153732282637222721163222302223211.docx
hartrobert670
 
Decoders and encoders
Decoders and encodersDecoders and encoders
Decoders and encoders
sanket1996
 
108EN Electrical and Electronic scienceDesign, Simulation .docx
108EN Electrical and Electronic scienceDesign, Simulation .docx108EN Electrical and Electronic scienceDesign, Simulation .docx
108EN Electrical and Electronic scienceDesign, Simulation .docx
paynetawnya
 

Similar to 7segmentdisplay (20)

IRJET - Interfacing Multi-Digit 7-Segment with 8051 Microcontroller
IRJET -  	  Interfacing Multi-Digit 7-Segment with 8051 MicrocontrollerIRJET -  	  Interfacing Multi-Digit 7-Segment with 8051 Microcontroller
IRJET - Interfacing Multi-Digit 7-Segment with 8051 Microcontroller
 
7 segment interface with avr microcontroller
7 segment interface with avr microcontroller7 segment interface with avr microcontroller
7 segment interface with avr microcontroller
 
8 x8m guide
8 x8m guide8 x8m guide
8 x8m guide
 
Digital electronics digital coders decoder encoder adder
Digital electronics digital coders decoder encoder adderDigital electronics digital coders decoder encoder adder
Digital electronics digital coders decoder encoder adder
 
Introduction to embedded system & density based traffic light system
Introduction to embedded system & density based traffic light systemIntroduction to embedded system & density based traffic light system
Introduction to embedded system & density based traffic light system
 
Nand gate breadboardtask
Nand gate breadboardtaskNand gate breadboardtask
Nand gate breadboardtask
 
Applications of Microcontroller 8051
Applications of Microcontroller 8051Applications of Microcontroller 8051
Applications of Microcontroller 8051
 
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
4,encoder & decoder MUX and DEMUX EEng - Copy.pdf
 
Interfacing to
Interfacing toInterfacing to
Interfacing to
 
Electrónica digital: Display de 7 segmentos con compuertas lógicas
Electrónica digital: Display de 7 segmentos con compuertas lógicasElectrónica digital: Display de 7 segmentos con compuertas lógicas
Electrónica digital: Display de 7 segmentos con compuertas lógicas
 
I0312050058
I0312050058I0312050058
I0312050058
 
BMI of Boys and GirlsMF2620292320153732282637222721163222302223211.docx
BMI of Boys and GirlsMF2620292320153732282637222721163222302223211.docxBMI of Boys and GirlsMF2620292320153732282637222721163222302223211.docx
BMI of Boys and GirlsMF2620292320153732282637222721163222302223211.docx
 
M7.2 7-SegmentDisplays.ppt segment displays
M7.2 7-SegmentDisplays.ppt segment displaysM7.2 7-SegmentDisplays.ppt segment displays
M7.2 7-SegmentDisplays.ppt segment displays
 
11-PLDs.pdf
11-PLDs.pdf11-PLDs.pdf
11-PLDs.pdf
 
Seven Segment Displau
Seven Segment DisplauSeven Segment Displau
Seven Segment Displau
 
08 decoder
08 decoder08 decoder
08 decoder
 
Decoders and encoders
Decoders and encodersDecoders and encoders
Decoders and encoders
 
"BCD TO 7 SEGMENT DISPLAY DECODER"
"BCD TO 7 SEGMENT DISPLAY DECODER""BCD TO 7 SEGMENT DISPLAY DECODER"
"BCD TO 7 SEGMENT DISPLAY DECODER"
 
108EN Electrical and Electronic scienceDesign, Simulation .docx
108EN Electrical and Electronic scienceDesign, Simulation .docx108EN Electrical and Electronic scienceDesign, Simulation .docx
108EN Electrical and Electronic scienceDesign, Simulation .docx
 
Chapter 11 - Laboratory Experiments with Standard ICs and FPGAs.pdf
Chapter 11 - Laboratory Experiments with Standard ICs and FPGAs.pdfChapter 11 - Laboratory Experiments with Standard ICs and FPGAs.pdf
Chapter 11 - Laboratory Experiments with Standard ICs and FPGAs.pdf
 

More from heru setiawan (6)

Tip presentasi dalam bahasa inggris
Tip presentasi dalam bahasa inggrisTip presentasi dalam bahasa inggris
Tip presentasi dalam bahasa inggris
 
Realprice installation procedure
Realprice installation procedureRealprice installation procedure
Realprice installation procedure
 
Berpikir positif
Berpikir positifBerpikir positif
Berpikir positif
 
Blonder tongue sa7u_faf_fam
Blonder tongue sa7u_faf_famBlonder tongue sa7u_faf_fam
Blonder tongue sa7u_faf_fam
 
Fu ganti gigi
Fu ganti gigiFu ganti gigi
Fu ganti gigi
 
437 b powermeter and sensor calibration procedure
437 b powermeter and sensor calibration procedure437 b powermeter and sensor calibration procedure
437 b powermeter and sensor calibration procedure
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 

7segmentdisplay

  • 1. VikiLABS Working with 7-segment displays www.vikipedialabs.com July 14, 2017 Seven segment displays are made up of LEDs combined such that they can be used to display numbers and letters. As their name implies, they are made of seven LEDs plus an additional LED for a dot. Seven segment displays can be in form of common anode or common cathode. They can also be in form of single digit or multi digit seven segment displays. 1 Single digit displays b a c d e f g dp Figure 1: 7 segment display lettering 1
  • 2. www.vikipedialabs.com Common Anode (CA) displays have the anode of all LED pins con- nected together to 5v, therefore, a LOW voltage applied individually on each pin will light up the LED of that particular pin. Conversely, Com- mon Cathode (CC) displays have the cathode of all LED pins connected together to ground, therefore, a HIGH voltage applied individually on a given pin will turn ON the LED of that particular pin. Fig. 2 shows the internal structure of a 1-digit 7-segment display. a b c d e f g dp GND 7 6 4 2 1 9 10 5 3,8 (a) common cathode a b c d e f g dp Vcc 7 6 4 2 1 9 10 5 3,8 (b) common anode Figure 2: Internal structure of 1-digit 7 segment displays 7 segment displays normally have 8 pins which represents the each LED on the display (7 segment plus the dot making 8 LEDs) (Fig. 3a and b). However, there is also a 7 segment display called a Binary Coded Display (BCD) that has only 4 pins (Fig. 3c. In this case, the binary combination as shown in Table 1 will produce numbers 0 - 9 and letters A - F as shown. (a) Generic 7-segment display (b) Common anode/cathode 7-segment display (c) Binary Coded (BCD) 7-segment display Figure 3: Single-digit 7 segment displays 2
  • 3. www.vikipedialabs.com Table 1: Binary Coded Display pin configuration Pin 1 Pin 2 Pin 3 Pin 4 binary 0 0 0 0 0 0000 1 0 0 0 1 0001 2 0 0 1 0 0010 3 0 0 1 1 0011 4 0 1 0 0 0100 5 0 1 0 1 0101 6 0 1 1 0 0110 7 0 1 1 1 0111 8 1 0 0 0 1000 9 1 0 0 1 1001 A 1 0 1 0 1010 b 1 0 1 1 1011 C 1 1 0 0 1100 d 1 1 0 1 1101 E 1 1 1 0 1110 F 1 1 1 1 1111 For common anode 7-segment displays, Table 2 shows the binary and hexadecimal value that would produce numbers 0 - 9 and alphabets A - F, this can be traced by using Fig. ??. For common cathode 7-segment displays, the binary and hexadecimal values are shown in Table 3 for numbers 0 - 9 and alphabets A - F. Notice that the binary values can also be produced by carrying out a NOT operation on the respective common anode binary value. 2 Multi-digit displays Multi-digit displays do not have pins equal to 8 × number of digits, instead, their number of pins equals 8 + number of digits as shown in Figure 4. 7 segment displays can be connected directly to a microcontroller. 74HC573 Latch IC can likewise be used to drive 7 segment displays, the advantage of using a latch is that only 8 digital pins of a microcontroller can be used for multi-digit displays. If a latch is not used, the number of pins that is equal to the number of pins the LED display has will be 3
  • 4. www.vikipedialabs.com Table 2: Common Anode dp g f e d c b a binary hexadecimal 0 1 1 0 0 0 0 0 0 0b11000000 0xc0 1 1 1 1 1 1 0 0 1 0b11111001 0xf9 2 1 0 1 0 0 1 0 0 0b10100100 0xa4 3 1 0 1 1 0 0 0 0 0b10110000 0xb0 4 1 0 0 1 1 0 0 1 0b10011001 0x99 5 1 0 0 1 0 0 1 0 0b10010010 0x92 6 1 0 0 0 0 0 1 0 0b10000010 0x82 7 1 1 1 1 1 0 0 0 0b11111000 0xf8 8 1 0 0 0 0 0 0 0 0b10000000 0x80 9 1 0 0 1 0 0 0 0 0b10010000 0x90 A 1 0 0 0 1 0 0 0 0b10001000 0x88 b 1 0 0 0 0 0 1 1 0b10000011 0x83 C 1 1 0 0 0 1 1 0 0b11000110 0xc6 d 1 0 1 0 0 0 0 1 0b10100001 0xa1 E 1 0 0 0 0 1 1 0 0b10000110 0x86 F 1 0 0 0 1 1 1 0 0b10001110 0x8e OFF 1 1 1 1 1 1 1 1 0b11111111 0xff Table 3: Common Cathode dp g f e d c b a binary hexadecimal 0 0 0 1 1 1 1 1 1 0b00111111 0x3f 1 0 0 0 0 0 1 1 0 0b00000110 0x06 2 0 1 0 1 1 0 1 1 0b01011011 0x5b 3 0 1 0 0 1 1 1 1 0b01001111 0x4f 4 0 1 1 0 0 1 1 0 0b01100110 0x66 5 0 1 1 0 1 1 0 1 0b01101101 0x6d 6 0 1 1 1 1 1 0 1 0b01111101 0x7d 7 0 0 0 0 0 1 1 1 0b00000111 0x07 8 0 1 1 1 1 1 1 1 0b01111111 0x7f 9 0 1 1 0 1 1 1 1 0b01101111 0x6f A 0 1 1 1 0 1 1 1 0b01110111 0x77 b 0 1 1 1 1 1 0 0 0b01111100 0x7c C 0 0 1 1 1 0 0 1 0b00111001 0x39 d 0 1 0 1 1 1 1 0 0b01011110 0x5e E 0 1 1 1 1 0 0 1 0b01111001 0x79 F 0 1 1 1 0 0 0 1 0b01110001 0x71 OFF 0 0 0 0 0 0 0 0 0b00000000 0x00 4
  • 5. www.vikipedialabs.com (a) 2-digit, 7-segment display (b) 4-digit, 7-segment display (c) 6-digit, 7-segment display (d) 8-digit, 7-segment display Figure 4: Multi-digit 7 segment displays 5
  • 6. www.vikipedialabs.com used by the microcontroller. 3 4-digit 7-segment displays The internal structure of a 4-digit 7-segment common cathode display is shown in Fig 5. The cathode of each digit are connected together, a LOW voltage on the cathode will light up the corresponding LED if its anode is HIGH while a HIGH voltage on the cathode will turn off the LEDs. a b c d e f g dp D1 D2 D3 D4 Figure 5: Internal structure of 4-digit 7 segment display common cathode display The internal structure of a 4-digit 7-segment common anode display is shown in Fig 6. The anode of each digit are connected together, a HIGH voltage on the anode will light up the corresponding LED if its cathode is LOW while a LOW voltage on the anode will turn off the LEDs of the corresponding digit. The pinout for 1-digit and 4-digit 7-segment displays is shown in Fig. 7. For 1-digit displays (Fig. 7a), pin 3 and 8 are the power pins: in common anode, these pins should be connected to Vcc while for common cathode, they should be connected to GND. 6
  • 7. www.vikipedialabs.com a b c d e f g dp D1 D2 D3 D4 Figure 6: Internal structure of 4-digit 7 segment display common anode display (a) 1-digit display (b) 4-digit display Figure 7: Pinout for 1-digit and 4-digit displays 7