HC-SR04 Ultrasonic Object/Range Finder


The HC-SR04 is a very popular option in autonomous robots for both object detection and range finding.  


  • 5v level operation
  • Digital input and output
  • Detection range between 3/4 to 197 in. (2 to 500 cm)
  • Resolution of detection is 1/10 in. (.3 cm)
  • Angle of detection is 15 degrees
  • About 20 samples per second

How to use:

  • To start detecting you must first supply a 20 μs pulse to the trigger pin
  • The module then sends out 8 ultrasonic bursts
  • It then pulses the echo pin depending on how far away the object is
    • To measure the distance in inches you take the average of the pulse widths in μs / 148
    • To measure the distance in centimeters you take the average of the pulse widths in μs / 58
    • If no object was detected you will get a single pulse width of approximately 38μs

Example code: https://code.google.com/p/arduino-new-ping/

  • Shipping Weight: 0.0375lbs
  • 6 Units in Stock
  • Manufactured by: HK Tech

Be the first to write a review.  Write a Review.

This product was added to our catalog on Saturday 23 March, 2013.