Temperature Sensors
to 8051
Presenters: Aqsa Aziz
Sakina Hassan
Outline
Introduction
What are Sensors
Temperature Sensors
Interfacing Temperature Sensors
Simple record and display
Controlling switches
Example
Conclusion
Introduction
Temperature Sensors
RTDs, Thermistors, Thermocouples.
RTDs
and
Thermistors
change
their
resistances in response to a change in
temperature.
For thermocouples voltage is generated, in
a junction between two metals, which is
proportional to the temperature.
sensors mentioned above do not show a
linear change in response to temperature.
Interfacing Temperature
Sensors
1.
.
Controlling switches:
1. The temperature sensor is connected to one
I/O pin while another I/O pin is connected to a
switch that may control a heating or cooling
unit or an alarm in the form of a buzzed or an
LED.
2. The
microcontroller is programmed to
increment or decrement a register for every
preset change in voltage.
3. The temperature register is compared at
regular intervals (timed by the system clock)
with stored values in other registers.
4. If the two values match than a signal is sent to
the switch to turn it on or off.
Example:
Suppose we wish for an electronic heater to
turn on once the room temperature drops
below
a
certain
value
(minimum
temperature) and to turn off once the room
temperature rises above a certain value
(maximum temperature). The sensor is
LM34 and the microcontroller is 8051.
Conclusion
Though this presentation discusses only
temperature sensors, others such as those
that can measure light, pH or chemical
concentration may be interfaced in a similar
manner with microcontrollers to perform a
multitude of tasks. Multiple sensors may be
connected along with a keypad or switches
for a more varied operation.