Ultrasonic Distance Finder Using 8051

Published on . Written by

Ultrasonic Distance Finder Using 8051
Today's world technology ultrasonic response is more needed like in robotics, automation. Here ultrasonic is interfacing with 8051 Microcontroller to find the range of objects. HC-SR04 is an ultrasonic ranging module designed for embedded projects like this.

Read more..
It has a resolution of 0.3cm and the ranging distance is from 2cm to 400cm, this module transmit signal waves up its echo, and it measures the time elapsed between the objects output in the form of the calculated which is proportional to the distance.


Skyfi Labs Projects
It have 40KHz crystal oscillator to generate the ultrasonic waves to transmit.

The time it takes the ultrasonic pulse to travel back and forth to the object is also knows as the speed of the sound. The Formula to calculate the distance is Speed =Distance/Time

Regarding ultrasonic changes to t=s/v

Distance s=t * 0.0034/2

Project Description:

  1. AT89S52: The AT89S52 is a low power, high performance CMOS 8-bit microcontroller with 8k bytes of in-system programmable flash memory. This is a powerful microcontroller which provides high flexibility and cost effective solution to many embedded control applications. It has the following standard features: 8K bytes of flash, 256 bytes of RAM, 32 I/O lines, watchdog timer, 2 data pointers, 3 16-bit timers/counters, on-chip oscillator and clock circuitry.
  2. Ultrasonic Sensor: The trigger signal for starting the transmiision is given so the triggered is applied in high time,the signnal is transmitted and the echo is picked by the echo receiver and consist of 40KHz oscillator from there itself generates the pulses.

  3. LCD : A liquid-crystal display is a flat-panel or the other electronically modulated optical device that the light-modulating properties of liquid crystal.LCDs are available to display present words, digits, and seven-segents display.

Project Implementation:

  1. Connect the 5v, Gnd, Echo and Trigger to the controller board
  2. The entire circuit of both Microcontroller and Ultrasonic sensor powered from 5v DC Supply
  3. Connect the LCD Display to PORT 0 of controller
  4. While Handiling the ultrasonic make an importance to it,its sensitive is more

Software requirements:

  1. Keil Uvision 3: Keil Software makes C compilers, macro assemblers, real-time kernels, debuggers, simulators, integrated environments and evaluation boards for the 8051, 251, ARM and XC16x/C16x/ST10 microcontroller families
  2. Programming language: Embedded C Language
Kit required to develop Ultrasonic Distance Finder Using 8051:
Technologies you will learn by working on Ultrasonic Distance Finder Using 8051:


Any Questions?


Subscribe for more project ideas