User Manual

13
ii. Ultrasonic Test
Connect the ultrasonic connecting cable to the ultrasonic module, it has an anti-reversing
port.
Here the 4 pins are marked with labels on the modules.
If you receive the ultrasonic module as shown below,
The ultrasonic module as shown below have the same 4 pins of VCC, GND, TRIG, and ECHO
with the above one, the method of utilizing is same. But the text-transform of these pins and
the order are different.
Open Arduino IDE, and click File -> Examples -> Newping -> NewPingExample to open
NewPingExample.ino
Change the code content TRIGGER_PIN 12, ECHO_PIN 11 in line 7 and 8 to TRIGGER_PIN 19,
ECHO_PIN 18.