Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

edge detection using ultrasonic sensor

Status
Not open for further replies.

mic5

Member
i have transmitter and receiver of ultrasonic sensor. but i have no circuits and ideas how to use it to find collision of moving car on an object...

i am using 89c51 microcontroller to control the car movements...
 
ultrasonics use sound waves. Sound waves travel through air at a specific rate. The closer an object is, the faster you'll get a return.

you transmit, you start a timer, you listen, you hear return, you stop timer. distance (meters) = rate (meters/sec) * time (sec)

Direction is a whole 'nother animal.
 
i don't want to calculate manually... i just need to stop the car when it reaches the object at 5cm. Is that it need any calculation for this ? I am now implemented the transmitter and receiver but can not used it to avoid collision. I need brief explanation pleas!!!
 
He's just told you, how to do it.

You need to keep sending out bursts of ultrasound and monitoring the delay of the return pulse until the result of the calculation is 5cm.
 
No, there's no need for the PIC to do the calculation if you want a fixed distance. Do the calculation on paper and then pre-load the timer. If the signal return happens before the timer expires then: object <= your distance.
 
i don't want to calculate manually... i just need to stop the car when it reaches the object at 5cm. Is that it need any calculation for this ? I am now implemented the transmitter and receiver but can not used it to avoid collision. I need brief explanation pleas!!!

no no no... when I say 'you', I mean you set up your electronics to do it. you couldn't time it with a stop watch if you wanted to.

Leonardo DaVinci tried to measure the speed of light, manually, and quite cleverly also. He had two towers a known distance apart. He started counting when the first guy opened his lantarn. The person in the second tower opened his lantarn when he saw the light from the first lantarn. He stopped timing when he saw the light from the second lantarn. His conclusion: The speed of light was too fast to measure by hand, too much human error entered the calculations.

In the 60s, our astronauts left 'porro-prisms' on the moon. These are special mirrors that bounce light back in the exact same direction it comes in from. Then we could bounce lasers off of them and measure the distance to the moon. In the 70's this was accuarate to a couple of hundred yards (meters), mainly because of the accuracy of our timebases, our clocks. In the 80's - 90's this was refined down to a couple of inches. No telling how accurately they can measure it now.

Point is, *you* can't measure it, your electronic device does. How accurately depends on the accuracy of your time base. I would say the easiest way to measure it is to trigger a s/s (single shot - 555 or 74xx123) when you transmit. Set the pulse width for '10 cm' of sound travel (pulse has to go out and come back). If you get a return before the s/s times out - STOP THE CAR - If not, you are farther away. If that's all you want to do, you don't need to 'decode' the time and display it, although, after going through all this work getting the signal, it'd be a shame not to :eek:)
 
thank you ! you given a brief explanation... i understood the thing. do you have any circuit to implement this and interface with micro controller...

i have a transmitter circuit with 555 timer and receiver with 741 op-amp and need to verify it.. give your suggestion... please...
thanks !
 

Attachments

  • ultrasonic trans&#10.JPG
    ultrasonic trans&#10.JPG
    17.2 KB · Views: 1,029
  • ultrasonic_recei&#11.jpg
    ultrasonic_recei&#11.jpg
    28.6 KB · Views: 2,383
i need to convert the voltage from ultrasonic sensor into digital data so that to detect the obstacle distance.. what type of ADC can be used here which is easy ?

please give response...
 
That circuit won't work for a couple of reasons:

1) The 741 won't work at audible frequencies, let alone ultrasonic.

2) it doesn't measure the timing of the return signal, just the intensity, so you'll get a different result, if the object is made of something absorbent than if it's made of a reflective material.
 
That circuit won't work for a couple of reasons:

1) The 741 won't work at audible frequencies, let alone ultrasonic.

2) it doesn't measure the timing of the return signal, just the intensity, so you'll get a different result, if the object is made of something absorbent than if it's made of a reflective material.

ok. is there any alternate circuit to receive the ultrasonic waves?
 
**broken link removed**
 
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top