Specifiction:
- Power supply :5V DC
- Quiescent current : <2mA
- Effectual angle: <15°
- Ranging distance : 2cm �500 cm
- Resolution : 0.3 cm
There are 4 pins out of the module : VCC , Trig, Echo, GND.
So it's a very easy interface for controller to use it ranging.
The all process is :
- Pull the Trig pin to high level for more than 10us impulse
- The module start ranging
- Finish ranging
- If you find an object in front
- Echo pin will be high level
- Based on the different distance,it will take the different duration of high level.
Distance = ((Duration of high level)*(Sonic :340m/s))/2