Distance Measurement using Infrared Sensor with ADC0804 & 8051 Microcontroller

Summary of Distance Measurement using Infrared Sensor with ADC0804 & 8051 Microcontroller


This project measures obstacle presence and exact distance using an IR sensor, ADC0804, an SST89E54RDA-40-C-PIE microcontroller, and a 16x2 LCD. The IR receiver and resistor form a voltage divider whose output, varying with received IR intensity (hence distance), is digitized by the ADC0804. The microcontroller processes calibrated ADC values to compute distance and displays results on the LCD. The SST89E54RDA supports in-system and in-application programming and can act as slave or master during power-on reset for flexible code storage and IAP.

Parts used in the Distance Measurement using Infrared Sensor with ADC0804 & 8051 Microcontroller:

  • SST89E54RDA-40-C-PIE microcontroller
  • IR receiver (sensor unit)
  • Resistor (for voltage divider with IR receiver)
  • ADC0804 analog-to-digital converter
  • 16x2 LCD module
  • Printed circuit board for in-system mounting

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 16×2 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.

Distance Measurement using Infrared Sensor with ADC0804 & 8051 Microcontroller

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.

For more detail:Distance Measurement using Infrared Sensor with ADC0804 & 8051 Microcontroller

Quick Solutions to Questions related to Distance Measurement using Infrared Sensor with ADC0804 & 8051 Microcontroller:

  • What does the project measure?
    It detects an obstacle and calculates its exact distance, displaying it on a 16x2 LCD.
  • How is the IR sensor output conditioned before ADC?
    The IR receiver and a resistor form a voltage divider whose output is sent to the ADC0804.
  • How does the output of the IR receiver relate to distance?
    The output voltage depends on IR intensity received, which decreases as the distance to the obstacle increases.
  • Which ADC is used to digitize the sensor signal?
    The ADC0804 analog-to-digital converter is used.
  • Which microcontroller is used in the project?
    The SST89E54RDA-40-C-PIE microcontroller is used.
  • How is distance calculated?
    The microcontroller processes calibrated ADC0804 output values to compute the distance.
  • Where are the measured distances displayed?
    Distances are displayed on a 16x2 LCD interfaced to the microcontroller.
  • Can the microcontroller be programmed on the board?
    Yes, the microcontroller supports in-system and in-application programming on the printed circuit board.
  • What programming modes does the SST89E54RDA support at power-on reset?
    At power-on reset it can be configured as a slave to an external host for source code storage or as a master for in-application programming (IAP).

About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter