Microchip Technology

user Occupation hasn't been added

Company Logo Microchip

  • Distance Measurement using Infrared Sensor with ADC0804 & 8051 Microcontroller

  • Created: Dec 02, 2014

    • view6218
    • comment4
    • bookmark2
    • fork8


No description available.


This project primarily consists of four units: Microchip Technology's SST89E54RDA-40-C-PIE, a sensor unit, an ADC0804 ADC component and the LCD module. Along with detecting an obstacle, its exact distance is also calculated and displayed on a 16x2 LCD interfaced to the microcontroller. The IR receiver detects the IR radiations reflected by the object being measured. The output voltage level of this IR sensor depends upon the intensity of IR rays received by the receiver. The intensity, in turn, depends on the distance between the sensor module and the obstacle. When the distance between IR pair and obstacle is lesser, more IR radiations fall on the receiver, and vice versa. The receiver along with a resistor forms a voltage divider whose output is supplied as the input for ADC0804. The calculation of the distance is achieved by processing the output of IR sensor through an ADC0804 analog to digital converter. It is calibrated to get accurate distance measurement.

During power-on reset, the SST89E54RDA-40-C-PIE can be configured as either a slave to an external host for source code storage or a master to an external host for an in-application programming (IAP) operation. The microcontroller is designed to be programmed in-system and in application on the printed circuit board for maximum flexibility. The device is pre-programmed with an example of the bootstrap loader in the memory, demonstrating the initial user program code loading or subsequent user code updating via the IAP operation. The sample bootstrap loader is available for the user's reference and convenience only; SST does not guarantee its functionality or usefulness. Chip-Erase or Block-Erase operations will erase the pre-programmed sample code.

This design using infrared sensor with ADC0804LCN/NOPB and SST89E54RDA-40-C-PIE microcontroller has numerous applications. It can be used for automatic guided vehicles, positioning of robots as well as measuring generic distances, liquid levels in tanks, and the depth of snow banks. Moreover, the device can serve as a motion detector in production lines.



i need code for this circuit

Posted: Oct 27, 2015


hi...there is no mention about the max. distance that can be mesured regards

Posted: Dec 15, 2015


Hi Nabeel, I think the maximum distance depends on the Infrared transmitter you are using.

Posted: Apr 06, 2016


i want to programming code

Posted: Sep 02, 2016