HC-SR04 Ultrasonic Distance Sensor Module 2cm–400cm
Product Overview
The HC-SR04 Ultrasonic Sensor is a reliable distance measurement module that uses sonar technology to detect objects from 2cm to 400cm. Operating at 5V DC with up to 3mm accuracy, it is ideal for Arduino, robotics, automation, and obstacle detection projects.
Description
The HC-SR04 Ultrasonic Distance Sensor Module is one of the most popular distance-measuring sensors used in Arduino, ESP32, Raspberry Pi, robotics, and automation projects. Using ultrasonic sonar technology, the sensor emits high-frequency sound waves and measures the time taken for the echo to return after hitting an object.
With a measurement range of 2cm to 400cm and an accuracy of approximately 3mm, the HC-SR04 provides reliable and precise distance sensing for a wide range of applications.
The module features simple Trigger and Echo interfaces, making integration straightforward with popular microcontrollers and development boards. Its compact design and low cost make it a favorite choice for students, hobbyists, makers, and engineers.
Whether you're building obstacle-avoiding robots, smart parking systems, liquid level monitors, or automation projects, the HC-SR04 delivers dependable performance and easy implementation.
Applications
- Arduino projects
- ESP32 projects
- Raspberry Pi systems
- Obstacle avoidance robots
- Distance measurement systems
- Smart parking systems
- Liquid level monitoring
- Industrial automation prototypes
- Educational STEM projects
- Smart home automation
Key Features
- Accurate ultrasonic distance measurement
- Wide sensing range from 2cm to 400cm
- High accuracy up to 3mm
- Simple Trigger and Echo interface
- Easy integration with Arduino and ESP32
- Reliable non-contact measurement
- Low power operation
- Ideal for robotics and automation projects
Technical Specifications
| Specification | Details |
|---|---|
| Model | HC-SR04 |
| Sensor Type | Ultrasonic Distance Sensor |
| Operating Voltage | 5V DC |
| Measurement Range | 2cm – 400cm |
| Measurement Accuracy | 3mm |
| Technology | Ultrasonic Sonar |
| Interface Pins | VCC, Trig, Echo, GND |
| Number of Pins | 4 |
| PCB Color | Blue |
| Mounting Holes | Available |
How It Works
The HC-SR04 measures distance using ultrasonic sound waves. When a short pulse is applied to the Trig pin, the sensor emits an ultrasonic burst. The sound wave travels through the air, reflects from an object, and returns to the sensor. The Echo pin outputs a pulse whose duration corresponds to the time taken for the sound wave to travel to the object and back. A microcontroller such as Arduino or ESP32 calculates the distance based on this time measurement. This non-contact measurement method makes the sensor ideal for robotics, obstacle detection, and automation applications.