You are on page 1of 6

INTERFACING A TEMPERATURE

SENSOR TO THE 8051

Micro-controllers are useful to the extent that they communicate with other devices,
such as sensors, motors, switches, keypads, displays, memory and even other micro-
controllers.

Many interface methods have been developed over the years to solve the complex
problem of balancing circuit design criteria such as features, cost, size, weight,
power consumption, reliability, availability, manufacturability

Many microcontroller designs typically mix multiple interfacing methods. In a


very simplistic form, a microcontroller system can be viewed as a system that
reads from (monitors) inputs, performs processing and writes to ( controls ) outputs
Semiconductor Temperature Sensors

Typically three-pin devices: Power, ground and


output.
LM34: Fahrenheit sensor ( 10
millivolts/Fahrenheit )
LM35: Celsius sensor ( 10 millivolts/Celsius )
LM335: Kelvin sensor ( 10 millivolts/Kelvin )
table shows a thermistor resistance change with temperature, it is
very non-linear, increase the software complexity

many linear temperature sensors are introduced,


such as LM34, LM35
from National Semiconductor Corp.

LM34 & LM35 are precision integrated-circuit


temperature sensors whose output voltage is
Linearly proportional to the temperature

For LM35, it produces 10mV for every degree of temperature change

ADC804 has 8-bit resolution with a maximum of 256 steps

to produce the full-scale Vout of 256x10mV = 2.56 V, we need to set Vref/2 = 1.28
V; thus the Vout (D0-D7) value is directly correspond to the temperature
monitored by LM35
Connection of 8051 with ADC and temperature sensor

You might also like