Professional Documents
Culture Documents
ASSIGNMENT 2
DATA LOGGER- MONITORING POULTRY
PRODUCTION
Group member:
Yap Wei Tao
Tan Wai Yip
Vincent
Siow Shen Cheen
Program Flow
Program Flow
SE
O
S
N
35
LM
&
AD
Sensor-LM35
Calibrated directly in Celsius
Without optimisation: temperature range
-55 ~ +150C
Operates from 4 to 30 volts: 5V chosen
has a resolution of 10.0 mV per degree
ADC-Internal ADC
- Integer format result
- Auto conversion (using lookup table)
- AVDD & AVSS as references
4
4X
KE
D
A
P
Y
Keypad
4x4 keypad
Function keypad_scan() to detect keypress
Keypad debouncing delay- avoid several
responses for single input
Function of each keypress are displayed on
LCD.
Using ADC to convert and voltage divider
rules
Button Pressed
Resistance passed
through the switch
ADC value
4k
293
3k
236
2k
9k
8k
7k
422
14k
597
13k
579
12k
559
18k
658
1k
93
6k
384
11k
536
16k
630
17k
645
19k
671
171
485
455
D
C
L
P
S
I
Y
A
L
LCD
EEPROM