INTERFACING OF SEVEN SEGMENT WITH
ARDUINO IN PROTEUS
MINI PROJECT REPORT
Submitted by
B.Karthikeyan
URK20EC1014
Under the Guidance of
Guide Name
Dr. K. Martin Sagayam
M.E.,Ph.D.,
Assistant Professor
Department of
ECE
Dissertation submitted in partial fulfillment of the requirements
for the award of the degree of
BACHELOR OF TECHNOLOGY
ELECTRONICS AND COMMUNICATION ENGINEERING
SCHOOL OF
ENGINEERING AND TECHNOLOGY
i
KARUNYA INSTITUTE OF TECHNOLOGY AND SCIENCES
(Deemed to be university)
Karunya Nagar, Coimbatore - 641 114. INDIA
October 2021
BONAFIDE CERTIFICATE
This is to certify that the mini project report entitled, “Interfacing of
Seven Segment with Arduino In Proteus” is a bonafide record of work
of the candidate who carried out the project work under my supervision
during the academic year 2021-2022
B.Karthikeyan(URK20EC1014)
Guide Name
Dr.D.Nirmal
Dr.k.MartinSagayam,
Head of the department
M.E.,Ph.D.,
Assistant professor
Dept of ECE
SUPERVISOR
ii
Submitted for the Half Semester Viva Voce examination held on ……February…2022…
………………………. ……………………..
(Internal Examiner) (External Examiner)
iii
ACKNOWLEDGEMENT
First and foremost, I would like to thank Almighty God for all the blessings He has
bestowed upon us to work thus far and finish this project. I are grateful to our most respected
founder (late) Dr. D.G.S. Dhinakaran, C.A.I.I.B, Ph.D., and honorable chancellor Dr. Paul
Dhinakaran, M.B.A, Ph.D., for their grace and blessing.
I express our gratitude to the Vice Chancellor Dr. P. Mannar Jawahar, Ph.D., Pro
Vice Chancellor Dr. Ridling Margarat Waller, Ph.D., Pro Vice Chancellor Dr. E. J. James
and the Registrar Dr. R. Elijah Blessing, Ph.D., Karunya University, for their enduring
leadership.
I extend my thanks to our Dean, School of Engineering and Technology, Dr. Prince
Arul Raj, Ph.D., Karunya University, for his excellent encouragements in course of this
work.
I am very thankful to Dr. D. Nirmal Professor & Head i/c, Department of Electronics
and Communication Engineering for providing his constant readiness in providing help and
encouragement at all stages in my project.
My sincere and special thanks to my guide, Dr.K.Martin Sagayam., .M.E.,Ph.D.,
Assistant Professor Dept of ECE , for her immense help and guidance. I would like to
extend a thankful heart for her constant support through the entire project.
I would take this opportunity to thank our Dr.S .Sreedevi Sathya Priya, ,Assistant professor
Department of ECE, who had been always there for us. I would like to convey gratitude to my
Parents whose prayers and blessings were always there with me. Last but not the least, I would
like to thank my Friends and Others who directly or indirectly helped in successful completion
of this wo
iv
CONTENTS
Chapter Page No
ACKNOWLEDGEMENT 4
ABSTRACT 6
LIST OF FIGURES 7
1. INTRODUCTION 8
2. COMPONENTS REQUIRED 9
3.HARDWARE/SOFTWARE 9
4.WORKING 10-13
5. RSULTS 18
6.CONCLUSION 19
7.REFERENCES 19
Note: If your domain is Image/Signal change the heading as per your guide’s advice
( Eg: Algorithm)
v
ABSTRACT
A Seven-Segment Display (SSD) is a widely used electronic display
device for displaying decimal numbers from 0 to 9. They are most commonly
used in electronic devices like digital clocks, timers and calculators to display
numeric information.
The 7-segment display, also written as “seven segment display”, consists
of seven LEDs (hence its name-A,B,C,D,E,F,G) arranged in a rectangular
fashion as shown. Each of the seven LEDs is called a segment because when
represented the segment forms part of a numerical digit (both Decimal and
Hex) 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
thanten
vi
LIST OF FIGURES
Figure No. Name of the figure page No.
1.1 Interface diagram 8
1.2 Input circuit 17
1.3 Output circuit 18
vii
INTRODUCTION
. a 7-segment device consists of 7 light emitting diodes. These light-emitting
diodes are arranged and packed inside a single display with a specific pattern in
mind. If this pattern is controlled in a specific way by turning on and turning off
LEDs, a seven-segment device will display a unique number. There is also an
extra eighth LED on a seven-segment display which is used to display dots. This
dot is sometimes used as a decimal point when we want to display a fractional
value. The string of eight LEDs on the left side shows the internal connection and
a picture on the right side shows how these LEDs are arranged to make a seven-
segment display. Pin3 and 8 are common pins. These pins are used to provide
either 5 volt or ground in common-anode and common cathode type displays
respectively.
.1.1 Interface diagram
viii
COMPONENTS REQUIRED
Arduino uno R3
Liquid display(LCD)
Common cathode
Common anode
Light emitting diode
Ground
577
SOFTWARE
Arduino IDE
Proteus professional
HARDWARE
1 Bread board
Arduino
Resistors
Connecting wires
ix
WORKING
Depending upon the decimal digit to be displayed, the particular set of LEDs is
illuminated. For instance, to display the numerical digit 4, we will need to light up
four of the LED segments corresponding to b, c, f and g. Thus the various digits
from ‘0 through 9’ and characters from ‘A through F’ can be displayed using a 7-
segment display as shown.
Below truth table shows the individual segments that need to be illuminated in order
to produce digits and characters. that truth table for common anode 7-segment
display is exact opposite to that of common cathode 7-segment display. In the
common cathode display, all the cathode connections of the LED segments are
connected together to ‘logic 0’ / GND. The individual segments are then illuminated
by applying HIGH / ’logic 1’ signal to the individual Anode terminals (a-g).
x
xi
xii
Code 1:
void setup() {
// put your setup code here, to run once:
pinMode(2,OUTPUT);
pinMode(3,OUTPUT);
pinMode(4,OUTPUT);
pinMode(5,OUTPUT);
pinMode(6,OUTPUT);
pinMode(7,OUTPUT);
pinMode(8,OUTPUT);
void loop() {
// put your main code here, to run repeatedly:
zero();
one();
two();
three();
four();
five();
six();
seven();
eight();
nine();
}
void zero() {
digitalWrite(2,HIGH);
digitalWrite(3,HIGH);
digitalWrite(4,HIGH);
digitalWrite(5,HIGH);
digitalWrite(6,HIGH);
digitalWrite(7,HIGH);
digitalWrite(8,LOW);
delay(1000);
}
void one(){
digitalWrite(2,LOW);
digitalWrite(3,HIGH);
digitalWrite(4,HIGH);
digitalWrite(5,LOW);
xiii
digitalWrite(6,LOW);
digitalWrite(7,LOW);
digitalWrite(8,LOW);
delay(1000);
}
void two() {
digitalWrite(2,HIGH);
digitalWrite(3,HIGH);
digitalWrite(4,LOW);
digitalWrite(5,HIGH);
digitalWrite(6,HIGH);
digitalWrite(7,LOW);
digitalWrite(8,HIGH);
delay(1000);
}
void three() {
digitalWrite(2,HIGH);
digitalWrite(3,HIGH);
digitalWrite(4,HIGH);
digitalWrite(5,HIGH);
digitalWrite(6,LOW);
digitalWrite(7,LOW);
digitalWrite(8,HIGH);
delay(1000);
void four() {
digitalWrite(2,LOW);
digitalWrite(3,HIGH);
digitalWrite(4,HIGH);
digitalWrite(5,LOW);
digitalWrite(6,LOW);
digitalWrite(7,HIGH);
digitalWrite(8,HIGH);
delay(1000);
void five() {
digitalWrite(2,HIGH);
digitalWrite(3,LOW);
xiv
digitalWrite(4,HIGH);
digitalWrite(5,HIGH);
digitalWrite(6,LOW);
digitalWrite(7,HIGH);
digitalWrite(8,HIGH);
delay(1000);
void six() {
digitalWrite(2,HIGH);
digitalWrite(3,LOW);
digitalWrite(4,HIGH);
digitalWrite(5,HIGH);
digitalWrite(6,HIGH);
digitalWrite(7,HIGH);
digitalWrite(8,HIGH);
delay(1000);
}
void seven() {
digitalWrite(2,HIGH);
digitalWrite(3,HIGH);
digitalWrite(4,HIGH);
digitalWrite(5,LOW);
digitalWrite(6,LOW);
digitalWrite(7,LOW);
digitalWrite(8,LOW);
delay(1000);
}
void eight() {
digitalWrite(2,HIGH);
digitalWrite(3,HIGH);
digitalWrite(4,HIGH);
digitalWrite(5,HIGH);
digitalWrite(6,HIGH);
digitalWrite(7,HIGH);
digitalWrite(8,HIGH);
delay(1000);
xv
void nine() {
digitalWrite(2,HIGH);
digitalWrite(3,HIGH);
digitalWrite(4,HIGH);
digitalWrite(5,HIGH);
digitalWrite(6,LOW);
digitalWrite(7,HIGH);
digitalWrite(8,HIGH);
delay(1000);
}
xvi
1.2 Input circuit
xvii
RESULT
Thus proteus simulation displaying decimal numbers from 0to9 continually
Using Arduino has been designed .
Fig 1.3 output circuit
xvii
CONCLUSION
It’s a complex form of LED matrix and is normally used in clocks, LCD displays,
calculators etc where there’s a need to display the numeric data. It has total seven
leds in it which you can also count from above image and by turning these LEDs ON
or OFF we can display any numeric on it.
REFERENCES
Oyebola B. O. and Odueso V. T. (2017), interfacing of seven
segment with arduino: A Simple Demonstration. Equatorial Journal
ofComputational and Theoretical Science, 2 (1): 6-15
https://vdocuments.net//interfacing-seven-segment-display-meter-a-simple-
seven-segment with arduino
xix