Module for detecting distance using ultrasound. For use with Arduino, Raspberry or other microcontrollers. This board has two ultrasonic capsules, one acting as a transmitter and one as a receiver. It uses only 4 pins to interface: 2 power pins, the Trig pin and the Echo pin. Providing on Trig pin a positive pulse of about 10uS the transmitter will emit an ultrasonic signal that bouncing on the object is picked up by the receiver. On Echo pin will be returned a logic signal "high" with duration proportional to the distance.
The formula to be used to calculate the distance will be: