Finalreportofdigitalclock
Finalreportofdigitalclock
net/publication/350895340
Design and Construction of a Digital Clock with Alarm and LED Display
CITATIONS READS
0 4,076
5 authors, including:
All content following this page was uploaded by Dipak Aryal on 16 April 2021.
Design and Construction of a Digital Clock with Alarm and LED Display
By:
Dipak Aryal (22001)
Submitted to:
Om Nath Acharya
July 2019
ABSTRACT
The aim of the project is to design a twelve hour Digital Clock that displays the
time digitally, in contrast to an analog clock, where the time is indicated by the positions
of rotating hands. With the help of counters and decoders, a digital clock to display time
in hours, minutes and seconds can be constructed. Digital clock has a counter that
receives a clock signal from any source and increases the number according to the clock
signal. The main clock signal having 1 Hertz frequency is given to the decade counter
which provides binary output to the decoder driver. This driver decodes the binary input
to decimal and sends it to the seven segment display. The counter triggers the counter
next to it when it resets. The remaining counters work in a similar fashion by receiving
a clock signal from the previous counter and giving a clock signal to the next counter
when it resets. Seven-segment display is a very common and efficient option for
displaying a decimal value. The project focuses on building a digital clock with simple
gates, flip-flops and counters with sequential logic rather than any programming based
element.
i
TABLE OF CONTENTS
ABSTRACT ................................................................................................................... i
CHAPTER-1 ................................................................................................................. 1
INTRODUCTION.................................................................................................... 1
CHAPTER-2 ................................................................................................................. 5
CHAPTER-3 ................................................................................................................. 6
CONCLUSION .......................................................................................................... 10
ii
CHAPTER-1
INTRODUCTION
In today’s modern world, it has become an absolute necessity to keep count of time in offices,
schools and every possible area. A clock in general is used to display the current time. There
are two types of clocks namely: analog and digital.
A digital clock is a type of clock that displays the time digitally (i.e. in numerals or other
symbols), as opposed to an analog clock, where the time is indicated by the positions of rotating
hands. The ‘Digital’ description here only refers to the display not the drive. Now a day’s a
manufactured digital clock comes with alarm and also sometimes with day and temperature
display, but this project involves building only a clock from basic digital logic ideas.
1.1 Background
One of the past century’s revolutionary changes in the time of timepieces was the coming of
digital clocks. The earliest patent for a digital alarm clock was registered by D.E Protzmann
and others on October 23, 1956, in the United States. In 1970, the first digital wristwatch with
an LED display was mass-produced by the early 1980s; the BBC notes that Japan began
concentration on further development of digital timepieces. [1] Over the years, many different
types of digital alarm clocks have been developed.
1.2 Objectives
To gain the knowledge and familiarize with different ICs, gates, flip-flops and counters.
To apply the knowledge gained from digital logic into practice.
To involve ourselves in the best way possible in this project by having practical
knowledge and by becoming more resourceful and efficient.
1
to 1 second.
Source: http://www.designcabana.com/knowledge/electrical/electronics/digital/clock/
Figure 1: Clock Signal
1.3.2 Counters
A counter is basically a system that advances each time a clock signal is given to it. Build with
flip flops, a counter is probably one of the most useful and versatile subsystems in a digital
system. Since the clock pulses occur at known intervals the counter can be used as an
instrument for measuring time and therefore period or frequency. These counters are used in
the digital clock to count the clock cycle and with the number of cycle changing uniformly
with respect to the time it can be converted to its respective decimal number and be displayed.
A number of flip-flops can be embedded in an IC and can be used as a counter. A 7490 IC
counter will be used for this project.
Source: http://projectshopbd.com/product/ic-7490-i9/
Figure 2: IC 7490
1.3.3 Decoders
Decoders convert the information in one format to another. In the project a BCD to seven
segment display decoder takes the output from the counter and decodes it to the format that is
given to a seven segment display. A 7447 IC will be used as a decoder driver for this project.
Source: http://foto-basa.com/image1data-74ls47-ic.htm
Figure 3: IC 7447
2
1.3.4 Seven-Segment display
A seven segment display uses LED’s on segments to display decimal numbers. The seven
segments can be displayed in various combinations in order to display different numbers. This
provides a very convenient way of displaying information or digital data in the form of
numbers, letters or even alpha-numerical characters. The output from decoders is given to these
units so they can display the output in the format that a person can understand. Seven segment
displays are of two types, common cathode and common anode.
Source: https://developer.mbed.org/users/amos/notebook/dual-digit-7-segment-display/
Figure 4: Seven Segment Display
A DIP switch is a set of small on-off electromechanical switch arranged in a row that are
commonly used to change the operation mode of the device. DIP stands for dual-in-line
package which means the electrically conductive pins are in two rows. In this project, it is
used to set the time for the alarm.
Source: https://potentiallabs.com/cart/dip-switch-8-pin
3
Source: https://www.robodocbd.com/product/detail/IC-7485
Figure 6: IC 7485
4
CHAPTER-2
TECHNOLOGY AND LITERATURE SURVEY
The project digital clock is not a new concept. We’ve been somehow familiar with logic circuits
in this semester but prior to this, it was and still is a little more advanced and complex topic for
us. In our first year, we already learnt the basic components involving these circuits. But this
time, it’s a bigger challenge for us as this system involves more complex circuits and more
logic gates and ICs.
To know further on this topic, we have gained much knowledge from the internet. Also, our
digital logic course (EEEG 202) helps us mainly for the literature survey. We knew much about
counters, flipflops, sequential circuits and other essential things from our course only. The
scope of digital circuits and sequential logic gates is much high in electronics and computer
science. Digital clocks have already been invented before and several enthusiasts in this field
have contributed in many ways using the same concept. We are simply researchers and learners
trying to involve ourselves and innovate in the best way we can. Our main motive and research
therefore, is to implement this circuit from our own knowledge and put it into action by
properly understanding the behavior of individual components and how they are connected to
each other.
We are well known about the fact that various projects like these are simpler to build using
microcontrollers. Most of the circuits in the internet are based in the same way. Similarly, we
found out that we could use IC 4026 for this project. But since we are to build a digital clock
that displays time in 12 hrs. format, we couldn’t use this IC as it couldn’t be used in this fashion.
So accordingly, we have used IC 7490 as decade counter and IC 7447 as decoder driver with
seven segment displays for the output counter display.
The only issue is that the final circuit is highly complex therefore we need to be highly sensitive
while soldering and implementing on PCB and building it on breadboard as well. So, we are
trying our best to design this successfully.
5
CHAPTER-3
DETAILS OF PROJECT ACTIVITY
3.1 Block Diagram
Alarm
A/P
6
3.2Working principle
7
counter receives its signal from S1 counter every time it resets and the M0 counter counts from
0-9, resets and sends its clock signal to M1 counter. When the counters M1 and M0 together
reach 59 the M1 counter sends its clock signal to the hour counter. The H0 counter counts from
0-9, resets and sends the signal to the H1 counter. This H1 counter counts from 0-1. When the
H1H0 counters reaches 12, it resets and shows 01 on the counters. We’ve used another seven
segment display to show the A.M. and P.M. indication. We’ve used a D flipflop as a T flipflop
and as soon as the clock reaches 12, the toggling occurs and A.M to P.M or vice-versa transition
occurs.
Again, for the alarm segment, we’ve used DIP switches by which we can set the time for the
alarm setting. The inputs from the alarm and the clocks of the counter are compared in the
magnitude comparator. As soon as they are equal, a high output goes on the buzzer and it
blows.Thus, we’ve got our alarm facility.
8
GANTT CHART
Months Sep Nov Dec Jan March April May June July
Task
Literature
Survey
Prototype
Designing
Circuit design
and software
simulation
Mid-term
presentation
Circuit
implementation
on matrix
Customization
of mechanical
design
Final Report
Task
Completed
9
CONCLUSION
Thus, this is how our main system has been built up. More and more knowledge involving the
whole system has been gained with time and through more research. We have completed this
project successfully and have successfully made a 12 hour digital clock with an alarm and a
A.M./P.M. display.
10
BIBLIOGRAPHY
11
APPENDICES:
1. IC 7490 Datasheet
Pin Description:
Pin
Function Name
No
1 Clock input 2 Input2
2 Reset1 R1
3 Reset2 R2
4 Not connected NC
5 Supply voltage; 5V (4.75V – 5.25V) Vcc
6 Reset3 R3
7 Reset4 R4
8 Output 3, BCD Output bit 2
QC
9 Output 2, BCD Output bit 1
QB
10 Ground (0V) Ground
12
2. IC 7447 Datasheet
Pin Description:
13
3. NE555 Timer Datasheet
Pin Description:
5 Provides access to the internal voltage divider; default 2/3 Vcc Control Voltage
6 The pulse ends when the voltage is greater than Control Threshold
14
4.4-Bit Magnitude Comparator(IC 7485)
Pin Description:
15
5. D-Flip flop(IC 7474)
Pin Description:
1 Clear 1 Input
2 D1 Input
3 Clock 1 Input
4 Preset 1 Input
5 Q1 Output
6 Complement Q1 Output
7 Ground
8 Complement Q2 Output
9 Q2 Output
10 Preset 2 Input
11 Clock 2 Input
12 D2 Input
13 Clear 2 Input
14 Positive Supply
16
6. DIP Switch
17