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
- Stage 3. Motors, drivers and sensors
Our lab: how your first robot’s sensor measures distance.
On the same topic

Robotics Bench
13 real boards you assemble like in a factory, power up and break
@0xMovezMade with Claude


Smoke alarm: a sensor that sees in the dark
A light and a sensor that only see each other when there is smoke
@elvar_officialMade with Claude