Ultrasonic Module HC-SRF05 Distance Measuring Transducer Sensor
Shipping calculated at checkout.
Buy Ultrasonic Module HC-SRF05 Distance Measuring Transducer Sensor Online in India
Buy the Ultrasonic Module HC-SRF05 Distance Measuring Transducer Sensor online at Tech Depot India with secure Razorpay checkout.
The HC-SRF05 ultrasonic distance sensor (also sold as HY-SRF05) measures distance without contact by sending a 40 kHz ultrasonic burst and timing how long the echo takes to return. It is the 5-pin, higher-precision sibling of the popular HC-SR04 and works with the same Arduino code, so it is a drop-in upgrade for obstacle-avoiding robots, parking sensors, water-tank level meters and distance-measuring projects.
This listing is the blue HC-SRF05 module with two ultrasonic transducers (T for transmit and R for receive) and a 5-pin header marked VCC, Trig, Echo, OUT and GND.
HC-SRF05 Specifications
| Parameter | Value |
|---|---|
| Operating voltage | 4.5 V to 5.5 V DC (5 V typical) |
| Current | 40 mA maximum |
| Measuring range | 2 cm to 450 cm |
| Resolution | About 2 mm |
| Detection angle | Under 15° |
| Ultrasonic frequency | 40 kHz |
| Trigger input | HIGH pulse of 10 µs or longer |
| Echo output | HIGH pulse, width proportional to distance |
| PCB size | Approx. 45 x 21 mm; transducers 16 mm diameter |
HC-SRF05 Pinout
- VCC: 5 V supply
- Trig: trigger input from the microcontroller
- Echo: echo output to the microcontroller
- OUT: not used in the standard Trig/Echo mode; leave it unconnected
- GND: ground, shared with the microcontroller
How to Use the HC-SRF05 with Arduino
- Connect VCC to 5V, GND to GND, Trig to digital pin 9 and Echo to digital pin 10. Leave OUT unconnected.
- In
loop(), set Trig LOW for 2 µs, HIGH for 10 µs, then LOW again. - Measure the echo with
duration = pulseIn(10, HIGH); - Calculate distance:
distance_cm = duration * 0.0343 / 2;(sound travels about 343 m/s; divide by two for the round trip). - Print the result to the Serial Monitor, or use it to steer a robot or drive an LCD. The NewPing library also works with this module.
- Wait at least 50 to 60 ms between readings so old echoes do not confuse the next measurement.
The module is rated for 5 V. On an ESP32 or Raspberry Pi, power it from 5 V and reduce the Echo signal to 3.3 V with a resistor divider (for example 1 kΩ and 2 kΩ).
Tips for Accurate Distance
- Hard, flat targets facing the sensor give the strongest echo. Soft cloth, foam and angled surfaces reflect poorly.
- Mount the sensor so the beam does not hit the floor or the robot chassis.
- For water-tank level, mount it at the top pointing straight down and keep it away from condensation.
- Speed of sound changes with air temperature; add a temperature sensor if you need better accuracy over a wide range.
HC-SRF05 vs HC-SR04
Both use the same Trig/Echo timing and the same code. The HC-SRF05 is described as a higher-precision version with a stated range up to 450 cm and an extra OUT pin, while the HC-SR04 is the 4-pin basic version. If your project already works with the HC-SR04, you can swap in the HC-SRF05 without changing the sketch.
Common Applications
- Obstacle-avoiding and wall-following robots
- Water-tank and bin level indicators
- Car parking assist and distance alarms
- Touchless counters and presence detection
- School science and college robotics projects
Frequently Asked Questions
Is the HC-SRF05 code the same as the HC-SR04?
Yes. Use the same Trig and Echo pins and the same pulseIn or NewPing code.
What is the OUT pin for?
It is not needed for normal distance measurement. Leave it unconnected.
Why do I get 0 or random readings?
Check that GND is shared, the Trig pulse is at least 10 µs, the target is within 2 to 450 cm, and readings are spaced at least 50 ms apart.
Do you provide a GST invoice and bulk pricing?
Yes, a GST invoice is included with every order. For robotics clubs and bulk quantities, WhatsApp us at +91 78285 34155.
100% authentic. Technical help for wiring and code is available on WhatsApp and at techdepotindia@gmail.com.
Related: see more distance and motion sensors, browse robotics parts, or pair it with an Arduino board.