/ THE IDEA
The device records a start time when it sends the pulse and a later time when a reflection returns. This elapsed interval is the time of flight. If the outward and return paths cover the same distance in the same material, the pulse travels twice the sensor-to-object distance. Dividing by two is therefore essential. A second conversion is equally important: the sound speed must match the material. The same echo delay corresponds to a different distance in water than in air because the disturbance covers more metres each second in water. Frequency affects other performance choices, but it is not the missing factor of two.
THE FORMAL IDEA
d = vt/2
| d is the one-way distance in metres; v is sound speed in metres per second. | | t is the round-trip delay in seconds. One millisecond, ms, is 0.001 seconds. Assume a straight path and a stationary reflector. |
|
RUN THE TINY EXAMPLE
Change one thing. Predict what happens.
Toy air sensor: v = 340 m/s; echo delay t = 10 ms = 0.010 s. Total travelled distance = 340 × 0.010 = 3.4 m; object distance d = 1.7 m. Move the reflector so the delay becomes 20 ms = 0.020 s. d = 340 × 0.020/2 = 3.4 m: doubling echo delay doubles estimated distance.
|
The return covers both legs. Calling the first result 3.4 m would put the wall twice as far away as it is in this model. The sensor measures elapsed time directly and infers distance using assumptions about the path.
/ SO WHAT?
A distance display can therefore change even when the object stays still if the assumed sound speed is wrong. Temperature changes air sound speed, so a sensor may compensate. An angled surface can also reflect the pulse away, leaving a weak echo. These observations distinguish “no clear return” from “the object must be extremely far away”. The calculation only applies once the relevant echo has been correctly identified.
ONE CAVEAT |
| Multiple reflections, material changes and processing delays can distort the estimate. The numbers describe an illustrative air sensor, not a medical imaging calibration or a guarantee of measurement resolution. |
KEEP THIS
An echo delay measures an out-and-back journey, so one-way distance is half the distance sound covers in that time.
|
NEXT: Why a sender should not wait after every packet
|