HOW TO INTERFACE SENSORS
WITH 8051 MICRO CONTROLLER?
Introduction:
• Sensors are the electro-mechanical devices
which converts the physical world parameters
(air, wind, speed, light, color..) into its
corresponding electrical signals.
• Using sensors many developments is been
done. Mostly all the micro controllers are
interfaced with sensors for a particular task.
Classifications of Sensors:
Sensors are classified into two types
they are,
Digital sensors.
Analog Sensors.
• Digital sensors:
• This kind of sensors gives the ON/OFF pulses at the output side, which means
0V and 5V. Basically, all the digital sensors are Analog in nature but in the
back end these are interfaced to comparators.
• Examples:
• IR-Sensor.
• Ultrasonic sensor.
• PIR sensor.
• Proximity sensors.
• Metal detectors.
• Analog Sensors:
• These are not like digital sensors that is they could not give ON/OFF signals
as output instead they will produce a sinusoidal wave as output. These signals need
some analog to digital converters (ADC) for interfacing with MCU. Now a days
mostly all the MCUs has its own ADC channels, except for 8051 families there is no
ADC block internally so analog sensors are to be interfaced with ADC for 8051.
• Examples:
• Current sensor.
• MEMS
• Humidity sensor
• Temperature sensor etc..
• While interfacing a sensor to 8051 the power
supply should not exceed the ratings of the
sensor, this may damage the sensor.
TEMPERATURE SENSOR