Electronics

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.

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.

How to build Electronics projects Did you know

Skyfi Labs helps students learn practical skills by building real-world projects.

You can enrol with friends and receive kits at your doorstep

You can learn from experts, build working projects, showcase skills to the world and grab the best jobs.
Get started today!


  1. 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.

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

Latest projects on Electronics

Want to develop practical skills on Electronics? Checkout our latest projects and start learning for free


Kit required to develop Ultrasonic Distance Finder Using 8051:
Technologies you will learn by working on Ultrasonic Distance Finder Using 8051:
Ultrasonic Distance Finder Using 8051
Skyfi Labs Last Updated: 2022-04-18





Join 250,000+ students from 36+ countries & develop practical skills by building projects

Get kits shipped in 24 hours. Build using online tutorials.

More Project Ideas on Electronics

LED VU Meter Circuit
Internet of Things Based Intelligent Transportation System
Wireless Switch Circuit Using CD4027
IoT Based Biometrics Implementation on ECG
Biometric Attendance System with IoT
Wireless Electronic Notice Board using GSM
Three Axis Modern Trailer
Interfacing GPS with 8051 Microcontroller
GPS Ambulance Tracker
GPS and GSM based School bus tracking system
Accident detection system with GPS and GSM
Voice Controlled Wheel Chair
Finger Controlled Wheel chair
GSM Based Door locking and Unlocking system
Automatic Windshield Wiper
Ultrasonic Distance Finder Using 8051
Generating Electricity From Sound Waves
Turning Gravity into Light
Under Ground parking System using RFID
RFID Based Smart Ticketing Card for Local Trains
Sign Language Translator
PIC Controller Based Electronic Lock
Vehicle Tracker
Seven Segment Display Interfacing With PIC16F877A
Hover Board
Smart Wallet
Air Pollution Detector
Remote Control Home Automation Using PIC Controller
Foam Cutting Machine
Smart Headlamp
How to Design a Water Cleaning Boat?
Shower Temperature Sensor
Electromagnetic Shock Absorber
Pneumatic Vulcanizing Machine
HOW TO SELECT ESC FOR DC MOTOR
Double Hacksaw Cutting Machine
GSM Based Weather Report
Rain Sensing Automatic Car Wiper
Night Vision security patroling-robot
Portable variable voltage supply
HOW TO SELECT ESC FOR DC MOTOR
Pneumatic Wall Climbing Machine
Development of LabVIEW based Distribution Control System
GSM based Energy Meter and Load Control
Blood Oxygen Level Monitoring System
Height Measuring Cap
Collision Detector
Power Generation by Piezo-Electric effect
Magnesium doped cobalt ferrite nanoparticles
Attendance system
Wireless Power Transmission via Solar Power Satellite
Smart Horticulture
Cell phone operated Land Rover
PC based wireless appliance control
Anti-collision system for trains
Electronic notepad
Alarm clock radio
Cell phone jammer
Electronic Candle
Mesh enabled iot smart device for athletes with Bluetooth and wifi
Smart wearable Bluetooth fitness tracker
RFID - Classroom identification for blind people
Low cost fire alarm system
RFID based PC locking system
Basic Powerbank for smartphones
Intelligent Vehicle Control (RFID)

Subscribe to receive more project ideas

Stay up-to-date and build projects on latest technologies