Download the sample code to the Arduino board, then wire as shown modules and Arduino
connected on ultrasonic distance measurement can be achieved.
Note
:download first before connect
the Arduino TX/RX, or download will failed.
Demo Code
1 //Put your code here
2
3 // # Editor :Zrh from DFRobot
4 // # Data :29.08.2014
5 // # Product name:ultrasonic scanner
6 // # Product SKU:SEN0001
7 // # Version : 1.0
8
9 // # Description:
10 // # The sketch for using the URM37 autonomous mode from DFRobot
11 // # and writes the values to the serialport