Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Help regarding ultrasonic sensors for distance measurement

Status
Not open for further replies.

Ron1024

Newbie level 2
Joined
Apr 3, 2011
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,293
I want to use ultrasonic sensor for distance measurement but I don't know how it actually works.
can we connect US sensor directly to 8051 or we have to build some oscillator circuitry.
I want that the transmitter goes ON as soon as one of the pin of 8051 is made high.
Is it possible?
 
Last edited:

yes! it is and you don't need any additional oscillator circuitry you can generate some kHz frequency by timer 0 and count the pules via timer 1 set a counter, do some maths and you get the elapsed time then use the following relation to find the distance travelled:
distance travelled = (speed of sound * time elapsed) /2

happy programming!
 
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top