Skip to content
RobotVisual

RobotVisual lab

HC-SR04 sensor: how it measures distance

By RobotVisual. The trip of the ultrasonic echo and the time math, in 3D.

Made with ClaudeSpanish, English and PortugueseFreeNo account

Loading the 3D scene

What it is

An HC-SR04 wired to an Arduino, in 3D. You see the Trig pulse, the ultrasonic burst, the bounce and the Echo width, and you do the math: centimeters = microseconds / 58. And you can break it with a cushion or an angled surface.

  • Trig and Echo pulses like on an oscilloscope
  • Distance from 2 to 450 cm
  • A mode to break it: soft or angled object

Use it on the roadmap

On the same topic