Ultrasonic ranging module HC - SR04 provides 2cm - 400cm non contact measurement function, the ranging accuracy can reach to 3mm. The modules includes ultrasonic transmitters, receiver and control circuit. The basic principle of work:

(1) Using IO trigger for at least 10us high level signal,

(2) The Module automatically sends eight 40 kHz and detect whether there is a

pulse signal back.

(3) IF the signal back, through high level , time of high output IO duration is the time from sending ultrasonic to returning.

Intro visual Source: http://bit.ly/2iJ1vAI

---------------------------------------------------------------------------------------------------

Links :

Java Application on Pi Playlist: http://bit.ly/2eB1O2K

Schematic : http://bit.ly/2ihvK5F

Pi4J GPIO Numbering : http://bit.ly/2ja20av

Download Pi4J Library : http://bit.ly/2j32blF

Code : http://bit.ly/2j95Osp

Buy Sensor : http://amzn.to/2iJ3Z24 (India)

Buy Raspberry Pi : http://amzn.to/2jlIOUH (India)

********************************************************************

Subscribe YouTube : https://goo.gl/FhfdL7

Guys Subscribe to my channel for latest contents into your inbox.

Support me to keep going.

Support me on Patreon : http://bit.ly/2jcjTSo

___________________________________________

Website : http://www.weargenius.in

Twitter : https://twitter.com/geekybikash

YouTube : https://www.youtube.com/weargenius

Instagram : https://www.instagram.com/weargenius/

GIT : https://github.com/oksbwn

Facebook: http://www.facebook.com/geekybikash