MMMM
MMMM
BACHELOR OF ENGINEERING
IN
COMPUTER SCIENCE AND ENGINEERING
Submitted By
Student Name: Poorna Chandra Tejaswi P USN:1SJ22CS118
Student Name:Nayani Lakshmi Sai Thribhuvan USN:1SJ22CS108
Student Name: Nimra Fathima A S USN:1SJ22CS109
Student Name: Komal Kumar B V USN:1SJ22CS078
S.J.C.INSTITUTE OF TECHNOLOGY
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
CHIKKABALLAPUR-562101
2023-2024
||Jai Sri Gurudev||
Sri Adichunchanagiri Shikshana Trust®
CERTIFICATE
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:
#include <LPC214x.h>
#include <stdio.h>
#include “7SEG.H”
Unsigned int thou, hun, ten, single:
Unsigned int x;
Void main(void)
PINSELO 0;
PINSELI 0;
PINSEL2 & 0x0000000C;
IODIRO |= 0x0F << 10; // PO.10 P0.13 Control Lines
IODIR1 |= 0xfF << 16; // P1.16 Pl.23 are Outputs
While(1)
{
if(x ==300)
{
X=0;
single++;
if (single>9)
{
Single=0;
ten++;
if (ten>9)
{
ten=0;
hun++;
if(hun>9)
{
hun=0;
thou++;
if (thou>9)
thou=0;
}
}
xii
i
}
X++;
Segment Disp(&IOPIN1, 16, thou, hun, ten, single);
}
}
Void DelayMs (unsigned int count)
{
Unsigned int i ,j;
for(i=0;i<count;i++)
{
for(j=0;j<3000;j++);
}
}
To compile the above C code you must need the KEIL software. They
must be properly set up and a project with correct settings must be created
in order to compile the code. To compile the above code, the C file must
be added to the project.
In KEIL, you want to develop or debug the project without any hardware
setup. You must compile the code for generating HEX file. In debugging
Mode, you want to check the port output without LPC2148 Slicker Board.
The Flash Magic software is used to download the hex file into your
microcontroller IC LPC2148 through UARTO.
xv
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