You are on page 1of 21

Real time digital clock

with alarm, temperature


sensor and LCD display
By:
Abhinav Gupta(12108030)
Ankit Saini

(12107067)

Introduction
Major Components

AT89C51 Microcontroller
DS 1307 IC
ADC 0804 IC
Piezoelectric buzzer
LM 35 temperature sensor
16*2 LCD

Introduction continued
Minor components

7805 IC
10k resistors
10k Potentiometers
32.760 kHz Crystal
Jumper cables
9 V battery
3 V battery
Switches
Capacitors 150 pF, 10 F

Previous work done


Dr. Bose Mathew Jose, Ammu Catherine Treesa, Anand M, Arjun S, Aswathy
Ramachandran, Design

and Implementation of Digital Alarm


Clock with Thermometer, International Journal of Advanced
Research in Electrical, Electronics and Instrumentation Engineering

Developed a digital clock with


ATMEGA 328 microcontroller
LCD display
LM 35 temperature sensor
Limitations
No alarm feature
Time would need to be set again upon restart
No calendar functionality

Previous work done


Design and
Development of Microcontroller Based Digital Bangla
Clock, International Journal of Computer Theory and Engineering
Developed a digital clock with
ATMEGA 32 microcontroller
10 segment LED display
Bangla language support
Alarm functionality
Limitations
Time would need to be set again upon restart
No calendar functionality
Costly microcontroller
Victor Kathan Sarker, M. Ataur Rahman, and M. A. Matin ,

Novelty
Modularity: Whole set-up rendered plug
and play to facilitate interchangeability
and re-use
DS1307:
Provides time, day and date with
adjustment for leap years
Detects power failures and automatically
switches to Battery supply
High accuracy

Objectives
Primary objectives:
To develop a digital clock using the 8051
microprocessor
To add alarm functionality to the clock
To eliminate the need for setting time every
time upon restart
To display the date along with the day on the
clock
To display the ambient temperature on the
clock

Objectives continued..
Secondary objectives:
To learn interfacing of the microcontroller
with LCD display
To learn interfacing of microcontroller with
ADC chip
To learn interfacing of microcontroller with a
real time clock (RTC) using I2C protocol

Implementation
Circuit diagram

LCD
An electronic
display
module
A16x2
LCDmeans
it can display
16
characters
per line and
there are 2
such lines

ADC 0804 IC
A very commonly
used 8-bit analog
to digital
convertor.
A single channel
IC,i.e., it can take
only one analog
signal as input.
Has an in-built
clock though
external clocks can
also be used

Pin description ADC0804

DS1307 RTC IC

X1 X2: Crystal of frequency


32.768 MHz
VBAT: Back-up batter (3 Volts)
Vcc: 5 Volts
SCL/SDA: Serial data pins

DS1307 RTC IC
2-wire bi-directional serial interface
Values received as BCD
Receive 7 bytes: Seconds, minutes, hours,
day, date, month, year
Convert bytes to decimal before storing in
microcontroller memory
Handshaking signal: Send 0xD1H to start
reading, carry is set to 1 if acknowledged

DS1307 RTC IC

Address chart

Flow chart

Flow Chart

Future work
Soldering of some minor components i.e.
resistors, capacitors etc. is to be done.
Code is to be tested and compiled.
Enclosure for the project is to be
fabricated.

References
1. Dr. Bose Mathew Jose, Ammu Catherine Treesa, Anand M,
Arjun
S,
Aswathy
Ramachandran,
Design
and
Implementation of Digital Alarm Clock with Thermometer,
International Journal of Advanced Research in Electrical,
Electronics and Instrumentation Engineering
2. Victor Kathan Sarker, M. Ataur Rahman, and M. A. Matin,
Design and Development of Microcontroller Based Digital
Bangla Clock, International Journal of Computer Theory and
Engineering
3. Saddam Khan, Real Time Clock with Alarm Option using
AT89S52 and DS1307 IC, Engineersgarage.com
4. Muhammad Ali Mazidi, Janice Gillipsie Mazidi, Rolin D.
McKinlay, The 8051 Microcontroller and Embedded
Systems, Pearson Publishers

THANK
YOU