Description
The HC-SR04 Ultrasonic Sensor is a popular and highly reliable distance-measuring module used in robotics, automation, and IoT applications.
It uses ultrasonic sound waves to measure distance to an object with excellent precision and stability.
With an easy 2-pin digital interface (TRIG + ECHO), this module is extremely simple to integrate into microcontroller projects, making it ideal for students, beginners, hobbyists, and professional developers.
Common uses:
-
Obstacle detection in robots
-
Smart parking systems
-
Liquid level monitoring
-
Security and object sensing
-
Industrial automation
-
IoT distance monitoring
The HC-SR04 works perfectly with 3.3V and 5V MCUs (with proper level shifting for ECHO), including STM32, Raayan Mini, ESP32, Arduino, Raspberry Pi, and more.
Technical Specifications
| Parameter | Specification |
|---|---|
| Model | HC-SR04 |
| Operating Voltage | 5V DC |
| Operating Current | 15 mA |
| Measurement Range | 2 cm to 400 cm |
| Accuracy | ±3 mm |
| Measuring Angle | < 15° |
| Resolution | 0.3 cm |
| Frequency | 40 kHz ultrasonic |
| Interface | TRIG (Input), ECHO (Output) |
| Echo Output Voltage | 5V (use divider for 3.3V MCUs) |
| Response Time | 10 ms typical |
| Dimensions | 45 mm × 20 mm × 15 mm |
Reference Links
-
📘 Datasheet PDF: https://cdn.sparkfun.com/datasheets/Sensors/Proximity/HCSR04.pdf





Reviews
There are no reviews yet.