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.

ultrasonic distance meter

Status
Not open for further replies.

nicsjasani

Newbie level 5
Joined
Jul 15, 2013
Messages
9
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
58
hi all,
nirav jasani here
currently i am working on project of ultrasonic distance meter with given sensor below and pic16f887.
actually i have confused on how this sensor works.??
link of sensor is given here

Assembled-Ultrasonic-Sensor.jpg


please help me to interface it with pic and distance measurement...

thanks
 

hi
Working principal of ultrasonic sensor: you send a sound wave @ 40kHz and note it's transmission time. When this sound wave hits some obstacle, it (or some part of it) reflects back. Now you sense this reflected wave and measure the time between transmission and reflection. This is rtt (round trip time). Divide it by 2 to get the time taken by sound wave to reach the obstacle. Now you can change this time into distance using d = v * t (v = velocity of sound, t = rtt/2)

In practice, an interface circuit is used between US sensor and micro controller.
Inside the interface circuit:
Transmitter: when it receives a high logic level from MCU, it starts sending sound wave
Receiver: it usually has a hardware integrator.

Operation:
MCU sends some pulses (4 or 6) to the transmitter circuit which then transmits 4 or 6 bursts of sound waves
When the receiver receives the reflected wave bursts, it integrates them. When the output of integrator crosses a certain threshold, it sends a signal to MCU.
MCU calculates the time between transmission and reflection and then calculates the distance as described above.
 

hi
Working principal of ultrasonic sensor: you send a sound wave @ 40kHz and note it's transmission time. When this sound wave hits some obstacle, it (or some part of it) reflects back. Now you sense this reflected wave and measure the time between transmission and reflection. This is rtt (round trip time). Divide it by 2 to get the time taken by sound wave to reach the obstacle. Now you can change this time into distance using d = v * t (v = velocity of sound, t = rtt/2)

In practice, an interface circuit is used between US sensor and micro controller.
Inside the interface circuit:
Transmitter: when it receives a high logic level from MCU, it starts sending sound wave
Receiver: it usually has a hardware integrator.

Operation:
MCU sends some pulses (4 or 6) to the transmitter circuit which then transmits 4 or 6 bursts of sound waves
When the receiver receives the reflected wave bursts, it integrates them. When the output of integrator crosses a certain threshold, it sends a signal to MCU.
MCU calculates the time between transmission and reflection and then calculates the distance as described above.





hi,
thanks for reply , but i have specific sensor that is given below and it has two pins perhaps it is for transmitter and receiver.
And most imp thing is that i have to continue transmit signal and receive it in any movable position of sensor. In short i would like to measure distance dynamically without considering on-off of transmitter . in this much condition how can i measure distance.?


sensor pic is:
Assembled-Ultrasonic-Sensor.jpg

thanks,

nirav jasani
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top