HC-SR04 sonar header file with auto calibration with Arduino Mega 2560


Sonar (HC-SR04) with Arduino 2560
In this header file I tried to use the available resources of the Arduino mega as efficiently as possible while keeping every thing at very beginners level (if you want to learn about the principal of sonar please read this http://www.ldeo.columbia.edu/res/pi/MB-System/sonarfunction/SeaBeamMultibeamTheoryOperation.pdf

Read more