HC-SR04 (community library)


Name Value
Name HC-SR04
Version 1.0.1
Installs 31134
License GPL3
Author rnash
Repository https://github.com/rvnash/HC-SR04.git
Download .tar.gz
All Versions 1.0.1, 1.0.0

Class to drive the HC-SR04 range finder.

Example Build Testing

Device OS Version:

This table is generated from an automated build. Success only indicates that the code compiled successfully.

Library Read Me

This content is provided by the library maintainer and has not been validated or approved.


Class to operate to the HC-SR04 range finder.


Instantiate this class specifying which pins the Trig and Echo pins are connected to. And call the function to range find the distance.

Please see the src/HC-SR04.h file as well as examples/usage/usage.ino for an example of how to use this library.



Browse Library Files