Skip to content

shubhamtrivedi95/UltraDistSensor

Repository files navigation

UltraDistSensor is library designed to Interface HC-SR04 Ultrasonics sensor to Arduino microcontrollers.

Designed and developed by

Shubham Trivedi on Oct 2017

No license required to access this library it is release into open source license for any query you can write me at shubhamtrivedi95@gmail.com follow me on facebook https://www.facebook.com/shubhamtrivedi95 on github https://www.github.com/shubhamtrivedi95 for latest updates subscribe at http://electro-passionindia.blogspot.in

attach() This function configure sensor with arduino

distanceInCm() This function produce distance in centimeter

distanceInInch() This function produce distance in Inches

ChangeTimeout() This functionis used to change echo timeout of receiveing pulse by default the timeout is 20000 microseconds Please note that you will get Approximated distance from HC-SR04 module which will be having plus or minus 1cm or 1 inch tolernace.

About

The library designed for HC-SR04 module

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages