Documente Academic
Documente Profesional
Documente Cultură
DIGITAL CLOCK
Group 17
Name of Member Li Yin Ming 08224080 ee_lymae
Or Wing Ho 09463891 Whor
Contents
1. Introduction
1
Digital Clock ( Group 17)
2. Overall Description
3. Equipment List
4. Set up instruction
5. Limitation
6. Difficulties
7. Detailed Hardware Description
8. Detailed Software Description
9. Summary and Conclusion
1. Intr oduction
Nowadays, there are many high-tech electronic devices. Digital photo viewers,
mobile video players, mp3 players, even the new generation movie player, PMP,
could be found easily in electronic retails. Except for all these devices, I believe that
clocks could also be found in electronic shop. Almost every home has at least one
clock; so, we design a digital clock for our project .We know that the project is very
clock of multiple functions. The display of clock will be change when we press the
different button.
2
Digital Clock ( Group 17)
2) Alarm clock
3) Room temperature
This is the main command of LCD 128X64 dot matrix. Based the following command
setting of the LCD, we can print graphics in the LCD easily.
Use of LM35
Block diagram of LM35DZ
4
Digital Clock ( Group 17)
The LM35 series are precision integrated-circuit temperature sensors, whose output
voltage is linearly proportional to the Celsius (Centigrade) temperature.
It does not require any external calibration or trimming to provide typical accuracies
of ±1⁄4°C at room temperature and ±3⁄4°C over a full −55 to +150°C temperature
range. Low cost is assured by trimming and calibration at the wafer level.
Its low output impedance, linear output, and precise inherent calibration make
interfacing to readout or control circuitry especially easy. It can be used with single
power supplies, or with plus and minus supplies.
As it draws only 60 μA from its supply, it has very low self-heating, less than 0.1°C in
still air. The LM35DZ is rated to operate over a 0° to +100°C temperature range.
Thus, we have decided to use LM35DZ.
5
Digital Clock ( Group 17)
This is the circuit we have used in our device. LM35DZ will generate
an analog voltage to ADC0804, while ADC0804 will give a 8-bits
digital value to 8051.
6
Digital Clock ( Group 17)
Welcome Page
7
Temperature
Digital Clock ( Group 17)
To change the mode of display, we use switches to control display. 3 modes can
be obtained by 3 switches. When all the switches are connected to VCC (111 mode),
welcome page will be displayed.
8
Digital Clock ( Group 17)
For the time mode, we use the internal timer of 8051, the
program will loop and delay for every second. This mode can display
time and weekly. For time, it can shown 12 hours or 24 hours. AM or
PM is displayed if 12 hours format is selected.
For the alarm & Vibrater, we use a buzzer on the PCB board.
We use 2 buttons to set the clock, alarm and weekly display. To set
the alarm, we can point the cursor to the Alarm and then enable
the alarm to turn on the alarm and vibrator function. To set the
time, point the cursor to the Time. Then a box of TIME SETTING
appeared, set the time in 24 hours format and then selected 12
hours or 24 hours format. To set the weekly display, point the
cursor to the Weekly.
9
Digital Clock ( Group 17)
3. Equipment List
Part Quantity
128 x 64 LCD 1
LM35DZ (Temperature 1
Sensor)
ADC0804 1
Vibrator 1
10
Digital Clock ( Group 17)
74HC154N 1
74LS08 1
Buzzer 1
Transistor 1
Capacitor
330pF 1
150pF 1
1μF 1
Resistors
1KΩ 2
16KΩ 1
8.2KΩ 1
100Ω 1
Variable Resistor
50KΩ 1
10KΩ 1
Resistor Network 1
Accessories --
- 8051 Emulator
- Parallel cable
- Power adaptor
- Breadboard
- Wires
4. Set up instruction
5. Limitations
11
Digital Clock ( Group 17)
6. Difficulties
12
LCD 128 x 64 pixel screen
Digital Clock ( Group 17)
Vibrator
8051
Switches
Buzzer
ADC 0804
7.2Schematic:
13
Digital Clock ( Group 17)
Main program A hidden mode, when the switchs given the value is
“111”, then the welcome pages will be shown.
Print the
interface of
temperature
mode
The temperature
will be updated Get all data
every 10 from variables.
seconds. Print the
following
information on
the LCD.
Show the
temperature
given by
ADC0804 and
print it on the Time
LCD
14
Digital Clock ( Group 17)
Setting
Mode
Alarm
Disable
Time setting
Set format
Back to
Setting Mode
Weekly
setting
Set the day
of the
week
Back to
Setting Mode
17