Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - It is a problem to test the four pins of ultrasonic SRF-04 with arduino.
It is a problem to test the four pins of ultrasonic SRF-04 with arduino.
Using IO trigger ranging to give a high-level signal of at least 10us;

The module automatically sends 8 square waves of 40KHz, and automatically detects whether there is a signal returning;

When a signal returns, a high level is output through IO, and the duration of the high level is the time from ultrasonic emission to return. Test distance = (high horizontal time * sound speed (340 m/s))/2;