Ultrasoinc sensor

Hi!
I am making a blind spot detector using a pair of ultrasonic transducers.
On my transmitter part, I use 555 timer and some transistors to generate a 40KHz signal to the transducer
On my receiver part, another transducer receives signal and passes that signal through a couple of amplifiers and filters to a comparator, which then generates a square wave signal
My circuit works well that the receiver can generates a square wave regarding to the transmitter signal

However, when I connect my transmitter and receiver as show in the http://arduino.cc/en/Tutorial/Ping?from=Tutorial.UltrasoundSensor, it cannot measure the distance, is seems like it cannot measure the time interval between the trig and the echo.

Is that because my circuit cannot respond that quick? (scale of microseconds )

Anyone can help?
Thank you!

Speed of sound in air in normal conditions is about 340m/s, and for an echo return that means 58.8us/cm, and 60us is a long time in electronics.

However you have to finish transmitting the pulse, shut down the transmitter, turn on/up the receiver, all in a millisecond or so. Ultrasonic transducers are resonant piezo plates - this means the transmitter will continue to oscillate for a long time if you don't damp it at the end of transmission - you should ensure the transmitter shuts down with the transmitter lines shorted to each other to reduce mechanical ringing.

Then you need to wait a little while before enabling the receiver (or you'll see the tail-end of the transmitting pulse at the receiver). So you basically ignore the received signal for a short delay (perhaps 1ms) and then look for the reflected pulse.

A high-performance sonar will increase the gain of the receiver as time goes by to compensate for the longer reflection path and provide a more constant threshold between signal and noise. Too much gain immediately after the ping goes out will mean the receiver is likely to falsely trigger on the tail-end of the outgoing ping (which will resonate both transmitter and receiver transducers remember). Perhaps you need to short out the receiver transducer till after the end of the transmitted pulse, to reduce its resonance until ready to receive reflected signal.

Separating the receiver from transmitter should reduce the ringing of the receiver during transmission, and the highly directional nature of ultrasound means that mounting them side-by-side some inches apart ought to be best.

To experiment further try placing the transmitter some distance from receiver and observe the transmitted pulse directly - this will mean you can experiment with receiver gain and so forth in a controlled environment

frankmp40:
Hi!
I am making a blind spot detector using a pair of ultrasonic transducers.
On my transmitter part, I use 555 timer and some transistors to generate a 40KHz signal to the transducer
On my receiver part, another transducer receives signal and passes that signal through a couple of amplifiers and filters to a comparator, which then generates a square wave signal
My circuit works well that the receiver can generates a square wave regarding to the transmitter signal

However, when I connect my transmitter and receiver as show in the http://arduino.cc/en/Tutorial/Ping?from=Tutorial.UltrasoundSensor, it cannot measure the distance, is seems like it cannot measure the time interval between the trig and the echo.

Is that because my circuit cannot respond that quick? (scale of microseconds )

Anyone can help?
Thank you!

I'd also like to see your test sketch.

Tim