





- Stock:
- Model: C062.HC-SR04
HC-SR04 Ultrasonic Proximity Sensor Module 📡
The HC-SR04 Ultrasonic Proximity Sensor Module is a compact, cost-effective sensor for non-contact distance measurement. Using ultrasonic pulses at 40 kHz, it reliably detects objects from 2 cm to 400 cm with fine 0.3 cm resolution. Ideal for Arduino, Raspberry Pi, and other microcontroller projects, it’s widely used in robotics, obstacle avoidance, smart automation, and DIY electronics.
Key Specifications ✔️
- Operating Voltage: 5 V DC (compatible with most development boards and microcontrollers)
- Measuring Range: 2 cm to 400 cm (approx. 0.79 in to 13 ft)
- Resolution: up to 0.3 cm for precise distance readings
- Ultrasonic Frequency: 40 kHz for robust, low-noise sensing
- Interface: Simple 4-pin header – VCC, TRIG, ECHO, GND
- Power Consumption: Low, suitable for battery-powered modules and portable projects
- Trigger & Echo: Sends a short trigger pulse; measures return time on echo to compute distance
Pinout and Connectivity 🔌
- VCC: 5 V supply
- TRIG: Trigger input (digital output from the microcontroller)
- ECHO: Echo output (pulse width proportional to distance)
- GND: Ground
Note: The ECHO signal is typically 5 V. When interfacing with 3.3 V systems (e.g., Raspberry Pi, some ESP microcontrollers), use a level shifter or resistor divider on the ECHO line for safe operation.
Typical Applications 🚀
- Robotics: Navigation and obstacle avoidance 🤖
- Security Systems: Presence and motion detection 🔒
- Automotive Parking: Proximity and distance assistance 🚗
- Level Measurement: Non-contact liquid level sensing in tanks 🧪
- People Counting: Entry/exit monitoring 👥
How It Works 🧠
The HC-SR04 transmits a short burst of ultrasonic sound at 40 kHz via its transmitter. If an object is within range, the wave reflects back and is detected by the receiver. The module measures the time between the trigger pulse and the returned echo. Knowing the speed of sound, it calculates distance with high precision. This time-of-flight method provides accurate, repeatable distance measurements without physical contact.
Integration Tips for Arduino, Raspberry Pi, and Microcontrollers 🛠️
- Provide a stable 5 V supply to VCC and common GND.
- Send a short trigger pulse (commonly ~10 µs) on TRIG.
- Measure the pulse width on ECHO to compute distance in code.
- Use a logic level shifter or resistor divider on ECHO for 3.3 V hosts (e.g., Raspberry Pi).
- Avoid soft materials or angled surfaces that can diffuse or deflect ultrasound.
Why Choose the HC-SR04 ✅
- Easy integration with Arduino, Raspberry Pi, and popular electronics modules
- Reliable performance from 2 cm to 4 m for a wide range of projects
- Low power design for battery-driven builds
- Excellent value for prototyping and educational use in electronics components labs
Conclusion 📦
The HC-SR04 Ultrasonic Proximity Sensor Module is a proven, affordable solution for distance measurement and object detection. Its simplicity, accuracy, and compatibility with leading platforms make it a top choice for hobbyists, educators, and engineers building microcontroller projects with Arduino, Raspberry Pi, and other embedded systems.
Datasheet 📑
Refer to the official HC-SR04 datasheet for detailed electrical characteristics, timing diagrams, and usage guidelines.