You are on page 1of 15

PRESENTATION

ASSIGNMENT 2
DATA LOGGER- MONITORING POULTRY
PRODUCTION

Group member:
Yap Wei Tao
Tan Wai Yip
Vincent
Siow Shen Cheen

Program Flow

Program Flow

initializing the configuration


LCD screen
Mode 1
- getting temperature reading
- ADC conversion and data stored
- display (temperature) to LCD display
Mode 2
- Transfer the displayed (previous) data into CPU
through the USB port.
- After that, the data inside the EEPROM
will be erased.

SE

O
S
N

35
LM

&

AD

Sensor & ADC

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

Sensor & ADC

ADC-Internal ADC
- Integer format result
- Auto conversion (using lookup table)
- AVDD & AVSS as references

Sensor & ADC

Pass into built-in ADC for conversion


ADC result- converted from 10 bit to 8 bit
Value stored into memory using lookup table

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

8-bit interface mode


Display command and temperature
Used pin (RD0-RD7)
For initialization:
Send the command 0x38, 0x0f, 0x01, 0x06 to
the LCD.
Time delay is needed for each process.
Time delay set more than the LCD process
time.

The command or data can be sent to LCD by


the following step:

Send data to LCD port.


Select command/data register.
Select write operation.
Send enable signal.
Wait for LCD to process the command.

EEPROM

Using internal EEPROMs


Parallel bus systems
To record data over a period of time

You might also like