Interfacing of Seven Segment With Arduino in Proteus: Mini Project Report
Interfacing of Seven Segment With Arduino in Proteus: Mini Project Report
ARDUINO IN PROTEUS
MINI PROJECT REPORT
Submitted by
B.Karthikeyan
URK20EC1014
Guide Name
Dr. K. Martin Sagayam
M.E.,Ph.D.,
Assistant Professor
Department of
ECE
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
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.
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
vi
LIST OF FIGURES
vii
INTRODUCTION
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
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
https://vdocuments.net//interfacing-seven-segment-display-meter-a-simple-
seven-segment with arduino
xix