How To Interface Sensors With 8051 Micro Controller?
How To Interface Sensors With 8051 Micro Controller?
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