Skip to content
Arduino example code for the HC-SR04 ultrasonic ranging sensor.
Branch: master
Clone or download
Latest commit 7ba464c Nov 2, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
Firmware/HC-SR04_UltrasonicSensorExample Create HC-SR04_UltrasonicSensorExample.ino Nov 2, 2017
.gitattributes Create .gitattributes Nov 2, 2017
.gitignore Create new file Nov 2, 2017

Ultrasonic Sensor - HC-SR04

Ultrasonic Sensor - HC-SR04


This is the HC-SR04 ultrasonic ranging sensor. This economical sensor provides 2cm to 400cm of non-contact measurement functionality with a ranging accuracy that can reach up to 3mm.

Repository Contents

  • /Firmware - Arduino example code.

License Information

This product is open source!

Please review the file for license information.

If you have any questions or concerns on licensing, please contact

Distributed as-is; no warranty is given.

  • Your friends at SparkFun.

You can’t perform that action at this time.