Re: ultrasonic distance measurement using 89c51




"John Fields" <jfields@xxxxxxxxxxxxxxxxxxxxx> wrote in message
news:f9kbs2hk0o3tbsuvu3vgdsr6ojfhk5pte8@xxxxxxxxxx
On 4 Feb 2007 02:37:14 -0800, "chetanthegreat"
<chaudhari.chetan@xxxxxxxxx> wrote:

Hey folks!
I am set out to build an ultrasonic distance
measurement module using 89c51.
The range I hav in my mind is about 1 inch to say 25 inches. Is the
speed 89c51 offers enough for such kind of ventures?

---
The velocity of sound in air is about 1100 feet per second, which is
about 76 microseconds per inch. That means that for a two-way path
of 2 inches you've got 152µs to chop up into slices thin enough to
get the resolution you want.

Assuming that you're going to use one of the internal timers to do
the time measurement, that's going to depend on how fast they can
run and the frequency of your clock source. That data should be
available


Just to be a little clear(maybe for my own benefit than others) is that
speed of sound through air is 344 m/s = 13540 in/s. (it doesn't mater how
far the distance is except for atmospheric effects and such)

Assuming a resolution of x in, one has 13540/x hz. So if you want an
accuracy of 1 micron = 1/1000 in then that is 1.35*10^7 or 13 mhz. There is
going to be a point where its useless to get a faster clock but I have no
idea what this is.

Thats pretty resonable for the accuracy. Ofcourse I doubt one could get that
accuracy but maybe.

I'm not sure how accuracy one can do this using passive components but maybe
its worth a shot? If one can get a precise current source and charge up a
capacitor and then read the voltage precisely then the voltage will be
proportional to the distance(charge rate would depend on C and R which can
be used to keep the voltage in range of an ADC if needed).

Also, since your distances measured is fairly short maybe you can use an
laser? (not sure if it works with your application but I thought I'd mention
it. )








.



Relevant Pages

  • Re: ROBERTS BACKS DOWN!
    ... |> You did say LONG distance MEASUREMENT, right, Roberts? ... Yeah, well, If Roberts wants to be imprecise... ... You relativists are ...
    (sci.physics.relativity)
  • Re: Some Faulty Assumptions of SR
    ... OWLS or TWLS is dependent on the distance of separation between the ... refused to do any direct measurement of TWLS or OWLS. ...
    (sci.physics.relativity)
  • Re: A new theory with two postulates
    ... L is a length within the opposite FoR, not the distance between events. ... mark on some sort of standard ruler. ... comparison of both ends of the object against marks on a standard ruler ... light speed has to do with a length measurement being two simultaneous ...
    (sci.physics)
  • We Went to the Moon on Feet and Inches
    ... The Saturn V Moon Rocket was constructed to the U.S. Common Measurement ... Listen to modern day soldiers talk about "meters" ... But the inch is better than the meter because it is ...
    (sci.space.policy)
  • Re: A new theory with two postulates
    ... L is a length within the opposite FoR, not the distance between events. ... mark on some sort of standard ruler. ... comparison of both ends of the object against marks on a standard ruler ... light speed has to do with a length measurement being two simultaneous ...
    (sci.physics)