Seeking Ping distance formula
Involute1344
Posts: 14
Can someone point me to a distance formula for the Ping along the lines of distance = (pulse width in microseconds) x constant? Is it just the speed of sound (which I can look up), or is there more to it? I know there's a temperature conversion that can be applied (it's in the datasheet), but I haven't been able to find the basic formula other than in the code samples which require knowledge of Stamps or Propellers, of which I have none (I'm using an AVR). Thanks.
Comments
-- Gordon
Another good thing to know it that you can not measure distance with more precision than the wavelength of the sound being used.
http://forums.parallax.com/showthread.php?122467-Proving-the-Speed-of-Sound-5th-grade-science-fair-project