The HY-SRF05 is an ultrasonic emitter/receiver used to measure distance with a precision of ~0.3cm. It sends out a 40 KHz square wave signal that reflects on objects in front of the sensor. This signal is then read back by the sensor and the duration of the received signal is reflected on the ECHO pin.


  • Supply voltage: 4.5V to 5.5V (VCC)
  • Supply current: 10 to 40mA
  • Trigger pin format: 10 uS digital pulse
  • Sound frequency: 40 KHz
  • Echo pin output: 0V-VCC
  • Echo pin format: digital


  1. Send a 10Us wide pulse (low to high) to the Trigger pin.
  2. Monitor the ECHO pin.
  3. When the ECHO pin goes HIGH, start a timer.
  4. When the ECHO pin goes LOW, stop the timer and save the elapsed time.
  5. Use the elapsed time in the following formula to get the distance in cm:

Distance (in cm) = (elapsed time * sound velocity (340 m/s)) / 100 / 2

 Arduino users

There is a fantastic library for Arduino called NewPing that will do all the required work. More info here:

HY-SRF05 Ultrasonic Sensor

Additional information

Weight 0.010 kg
Dimensions 45 × 15 × 27 mm



Share this Product

HY-SRF05 Ultrasonic Sensor

Ultrasonic sensor for distance measurements.


In stock

Accepting all credit cards and wire transfers
Secure payments with Stripe and PayPal

Need help? Drop a line in our support forum.