Ultrasonic

An ultrasonic distance sensor sends a sound pulse and measures the delay before its echo returns. For a pulse travelling to the target and back, distance = speed of sound × round-trip time ÷ 2. In dry air at 20°C, using 343 m/s and a 2 ms round trip gives about 0.343 m.

A piezoelectric transducer converts an electrical pulse into sound. The same transducer or a separate receiver detects the echo, and electronics estimate its arrival time. The frequency, burst length, processing and electrical interface depend on the sensor; an Echo pin is not universal.

In plain terms

A bat's echolocation in a chip: the transmitter cries out in ultrasound and the receiver listens for the wall's reply; the time between cry and echo converts directly to distance.

Why designers use it

Best for

Key specifications

When not to use it

Common mistakes

Where you will find it

A short history

An ultrasonic distance sensor sends a sound pulse and measures the delay before its echo returns. The round-trip time and the speed of sound are used to calculate the target distance. This contactless approach is useful for obstacle detection, parking assistance and level sensing.

Good to know

Related