WYPH Ultrasonic Module HC-SR04 Distance Measuring Ranging Sensor for Arduino UNO for Mega R3 Duemilanove Nano Robot Pack of 10pcs
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. <br /> The all process is: pull the Trig pin to high level for more than 10us impulse, the module start ranging; <br /> Finish ranging, If you find an object in front, Echo pin will be high level, and based on the different distance, it will take the different duration of high level. <br /> So we can calculated the distance easily: Distance = ((Duration of high level)*(Sonic :340m/s))/2<br />