Ultrasonic Rangefinder Using 8051
Ultrasonic Rangefinder Using 8051
Ultrasonic Rangefinder Using 8051
ELECTRONICS HUB
P R O J E C T S | T U T O R I A L S
HOME FREE PROJECT CIRCUITS EMBEDDED 8051 MICROCONTROLLER ULTRASONIC RANGEFINDER USING 8051
Contents [hide]
1 Output Video
2 Principle of Ultrasonic Rangefinder
3 Circuit Diagram of Ultrasonic Rangefinder using 8051
4 Components Required for Ultrasonic Rangefinder
5 Circuit Design of Ultrasonic Rangefinder
6 How Ultrasonic Rangefinder using 8051 Circuit works?
6.1 Download Project Code
7 Algorithm for Program
8 How to Operate?
9 Ultrasonic Rangefinder Project Applications
9.1 Limitations of the Circuit
10 Related Articles
In this project, we have built an Ultrasonic Rangefinder using 8051 Microcontroller and
Ultrasonic Sensor. We have different ways to measure the distance. One way is to use Ultra
Sonic Sensor or Module for distance measurement. This article explains you how to measure
the distance using 8051 microcontroller. This Ultrasonic Range Finder system measures the
distance up to 4 meters with an accuracy of 3 mm.
Output Video
Principle of Ultrasonic Rangefinder
Generally, the distance can be measured using pulse echo and phase measurement method.
Here, the distance can be measured using pulse echo method. The ultrasonic module
transmits a signal to the object, then receives echo signal from the object and produces
output signal whose time period is proportional to the distance of the object. The mechanism
of the ultra sonic sensor is similar to the RADAR (Radio Detection and Ranging).
RADAR Concept
This circuit calculates the distance of the object based on the speed of the sound wave at
normal temperature and displays the distance on LCD.
Also Get an Idea about How to Interface 162 LCD with 8051 Microcontroller
HC SR04 Ultrasonic Module works on the principle of SONAR and is designed to measure
the range of the object in small embedded projects. It offers excellent range detection with
high accuracy and stable readings. The operation of the module is not affected by the sunlight
or black material.
Features
Pin Configuration
Related Post: Non Contact Digital Tachometer Circuit Design using 8051
Microcontroller
Distance can also be calculated using speed of the ultrasonic wave 340m/s
Download Project Code
Initially P3.1 = 0;
P3.1 = 1;
delay_ms (10);
P3.1 = 0;
2. Wait until the module transmits 40 KHz pulses. When 8thpulse is transmitted echo pin
becomes HIGH, TIMER0 starts counting, when input INT0 goes LOW and timer counts
the time
3. TIMER0 value is equal to the time taken by the signal to go forward and comeback so we
need to take only half time.
4. The speed of the ultrasonic pulse is nothing but the speed of sound which is 340.29 m/s
or 34029 cm/s
5. Distance = speed * time = 34029 * (TIMER0) / 2
6. At 11.0592 MHz, TIMER0 gets incremented for 1s.
How to Operate?
1. Initially burn the program to the microcontroller
2. Now give the connections as per the circuit diagram
3. While giving the connections make sure that Vcc of ultrasonic module is connected to
5V DC
4. Switch on the board supply
5. Place the obstacle in front the ultrasonic module, now you can observe the distance on
LCD.
6. Switch off the board supply.
Related Articles
LC Meter Circuit using Water Level Controller Interfacing 7 Segment Interfacing GPS with
555 Timer using 8051 Display to 8051 8051 Microcontroller
Microcontroller
5 Channel IR Remote Interfacing 162 LCD Digital Voltmeter using Random Number
Control System using with 8051 8051 Microcontroller Generator using 8051
Microcontroller
FILED UNDER: 8051 MICROCONTROLLER, ELECTRONICS, EMBEDDED, FREE PROJECT CIRCUITS, MINI PROJECTS
Comments
MARIMUTHU.V says
JULY 23, 2014 AT 7:26 AM
NICE CONCEPT
Reply
disha says
SEPTEMBER 18, 2014 AT 2:13 PM
Reply
DD says
OCTOBER 10, 2014 AT 8:56 PM
HC SR04 and AT89s51 are not available on proteusplz tell me how to get these
parts???????
Reply
Rishabh says
JANUARY 26, 2016 AT 9:01 AM
Reply
XSUYOG says
FEBRUARY 11, 2016 AT 1:40 PM
Reply
engine says
NOVEMBER 9, 2014 AT 1:33 PM
i cant find the sensor module in the proteus library please help
Reply
Rajdeep says
DECEMBER 29, 2015 AT 8:27 AM
U can connect any 2 switch because this sensor is 2 bit sensor so u can use switch for
protious
Reply
m.mahdi says
NOVEMBER 14, 2015 AT 6:11 PM
Reply
kelly says
NOVEMBER 29, 2015 AT 9:55 AM
i need this project code to create different project but still using the same concept as
yours. my project is about to detect hazard in long distance for a smart car. can you send
me the code by email?
Reply
Need a project code im trying to make a similar one for my hobby so please share project
code to my id is also fine..
thank you
Nikhil Shetty
Reply
I am an electronic engineer and electronic hobbyist .I want to make same project . send me
source code..
Reply
Ojakgyo says
DECEMBER 3, 2015 AT 12:20 AM
I hope you can consider our reasons and help us for our project. ^_^
Reply
Anusha says
JANUARY 2, 2016 AT 6:42 AM
Reply
Reply
Reply
Rashmi says
JANUARY 24, 2016 AT 1:20 AM
I want to do this project using PIC..So please can you help me with the project code?
Thanks In Advance..!
Reply
I need to make a ultrasonic distance finder project for my third year engineering mini
project. kindly help.
please email the code.
will really appreciate the help.
Reply
Reply
Tanvi Kinkhabwala says
JANUARY 28, 2016 AT 3:48 AM
Reply
basavaraj says
FEBRUARY 2, 2016 AT 4:38 AM
hi..
i want to do this as my mini project in engineering..
plz send the code
Reply
Sir , Thank u for giving such amazing knowlege about this project. I am interested to make
this project .I am making the same project for exploring my skill.and I also required code for
this one.
Thank you once again.
Reply
Reply
I need the code for this project Ultrasonic Range FInder. I am a 4th year Electronics &
Communication engineering student and making this project for my Final Year Major
Project. My email is abhi.sgh11593@gmail.com Thanks
Reply
Anusha says
FEBRUARY 23, 2016 AT 3:36 AM
Reply
Somnath says
FEBRUARY 21, 2016 AT 4:06 AM
Reply
Anusha says
FEBRUARY 23, 2016 AT 3:41 AM
Reply
tk says
FEBRUARY 28, 2016 AT 4:26 AM
hi just i want to make an obstacle follower robo using two ultrasonic sensor with
89s52 and 162 lcd
can i use both interrupt pin at atime for both ultrasonic sensor (one for left and
other for right .)pls,,,suggest me .
.using ur code already i run which work fine ..
Reply
Admin says
MARCH 1, 2016 AT 2:36 AM
Reply
Somnath says
FEBRUARY 21, 2016 AT 4:09 AM
Reply
Sanjay says
FEBRUARY 24, 2016 AT 2:20 AM
After completing all the connections and turning on the power supply the lcd display only
shows Range finder and it does not show the distance ..what could be the problem..??
Please help..
Reply
Anusha says
MARCH 2, 2016 AT 5:10 AM
Reply
I am trying ultrasonic sensor based distance meter. Also i will display the distance in LCD.
This is what i am intended to do for my academic project.
Reply
sanu says
FEBRUARY 29, 2016 AT 3:43 AM
Reply
Admin says
MARCH 2, 2016 AT 4:54 AM
lavanya says
MARCH 15, 2016 AT 12:07 AM
Kindly send us the programming code. not able to get the code
Reply
Reply
osm says
APRIL 2, 2016 AT 6:31 AM
Reply
ronaldo says
APRIL 19, 2016 AT 9:54 AM
HC SR04 library for AT89s51 are not available on proteusplz tell me from where can i
download these parts
Reply
abubakar says
JUNE 18, 2016 AT 1:17 PM
Reply
varsha says
JULY 17, 2016 AT 6:12 AM
will u please help me for the code of my other project just related to ultrasonic sensor and
microcontroller actually i want recoznize shape and size of object detected by ultrasonic
sensor.
Reply
varsha says
JULY 17, 2016 AT 6:17 AM
please help me to write a code of my project different from this but related to it , i want to
recognize the shape and size of the object detected by the utlrasonic sensor.
Reply
AMAL says
JULY 19, 2016 AT 9:09 AM
Reply
durgesh says
JULY 29, 2016 AT 12:49 PM
Reply
Reply
Anusha says
JUNE 30, 2017 AT 1:30 AM
Hi, Yes. We do not have a Proteus library for Ultrasonic Sensor. Try to build the circuit
with a physical module.
Reply
Shaurabh says
MARCH 26, 2017 AT 6:49 PM
I want to make a speed checker and overspeed detector but there are some problems like
how to sense 2 vehicles running side by side and differentiate between them and another
problem is how to read the speed of all the vehicles passing through the fixed points
Reply
Anusha says
JUNE 30, 2017 AT 1:30 AM
Hi, You should probably go with a laser type speed gun design. Ultrasonic Sensor
wouldnt be useful in your case.
Reply
Vinith says
APRIL 12, 2017 AT 5:46 PM
Hello everyone.The Ultrasonic Sensor has a Test Pin .What should I do with that?Please i
need a reply ASAP
Reply
Anusha says
JUNE 30, 2017 AT 1:30 AM
Hi, There are usually 4 pins on HC-SR04 Ultrasonic Sensor (VCC, GND, Trigger and
Echo). There is nothing as Test Pin. Can you provide a link to the particular module you
are using?
Reply
hi guys
Is there anyone to send me a code for(r Range finder by using at89c51
) in assembly language
Reply
Akash says
JULY 12, 2017 AT 3:30 AM
Hi,
Im interfacing HC-SR04 sensor with lpc2148 microcontroller & checked the above 8051
code
for reference, but the o/p Im getting as 0 cm on lcd
The operating voltage of lpc2148 controller is 3.3v, I have connected to same voltage only,
instead of 5v, will it work?
Reply
can this hex file be used with other 8051 based controller like p89v51rd2 from nxp. ??
Reply
If I Buy This @399 From Your Site. Do I Get a Components For The Same Or Just a Online
Guide..??
Reply
Leave a Reply
Your email address will not be published. Required fields are marked *
Comment
Name *
Email *
Website
reCAPTCHA
POST COMMENT
ads by media.net
Ultrasonic Equipment
Electronics Hub
YouTube 18K
Electronics Hub
Follow On
Electronics Hub
Suivre
SUBSCRIBE
Delivered by FeedBurner
Electronics Hub
667,246 likes
Ultrasonic Equipment
Digital Tachometers
PROJECTS BY CATEGORY
GENERAL
Tutorials
Symbols
Courses
Calculator
Contact
PROJECTS
Electrical
Electronics
Embedded
Power
Robotics
ARM
IOT
PROJECTS
Mini projects
Microcontroller
Aurdino
Solar
Free circuits
Home Automation
TUTORIALS
Capcitors
Resitors
Filters
Diodes
Transistors
TUTORIALS
Amplifiers
IO Devices
Thyristors
DC Circuits
Nummber System
FOLLOW US
Youtube
Google Plus
Twitter