HC-SR04 Ultrasonic Distance Sensor Module
Accurate • Affordable • Ideal for Educational Robotics Projects
Precise Measurement
Measures from ~2 cm to 400 cm with typical ±3 mm repeatability for classroom experiments and prototyping.
Simple Interface
4-pin connection (VCC, GND, TRIG, ECHO). Works with Arduino, Raspberry Pi, ESP32, STM32, micro:bit in educational kits.
Great for Learning Projects
Explore obstacle avoidance, distance logging, and autonomous navigation in STEM activities.
Technical Specifications
| Parameter |
Value |
| Operating Voltage |
5 V DC |
| Operating Current |
~15 mA |
| Sensing Range |
~2 cm – 400 cm (surface-dependent) |
| Typical Accuracy |
±3 mm (under ideal conditions) |
| Trigger Input |
≥10 µs TTL pulse |
| Echo Output |
TTL pulse width proportional to distance |
| Module Dimensions |
~45 × 20 × 15 mm |
| Recommended Use |
Educational or hobbyist environments only |
Why Choose the HC-SR04?
The HC-SR04 ultrasonic sensor lets learners investigate time-of-flight, signal timing, and environmental sensing while building practical Arduino, Raspberry Pi, ESP32, and micro:bit projects.
Its combination of accessibility and repeatability makes it a favorite for STEM classrooms, robotics clubs, and maker workshops. Use it to prototype obstacle avoidance, distance logging, or interactive installations.
Quick Wiring
-
VCC → 5 V
-
GND → Ground
-
TRIG → Digital output pin (send ≥10 µs HIGH pulse)
-
ECHO → Digital input pin (measure pulse width)
Tip: The ECHO pin outputs 5 V logic. When using 3.3 V controllers (e.g., Raspberry Pi, some ESP32 boards), use a voltage divider or level shifter on ECHO. For best results, avoid soft/absorbent targets and angle the sensor perpendicular to the target surface.