SetAddressCommand
The module default address is “0x11”. And the broadcast address is “0xAB”. If you don’t know the
current address, but you want to set its address, you could use broadcast address to set the target
address.
For example:
Send Command: 0x55 0xAA 0xAB 0x01 0x55 0x11 0x11
Instruction:
Header-----------------------0x55
Header-----------------------0xAA
Broadcast Address---------0xAB
Length------------------------0x01
Address Setting CMD-----0x55
Target Address---------------0x11
Check Sum--------------------0x11
Return Command:0x55 0xAA 0x11 0x01 0x55 0xCC 0x32
The address of each device can be changed when multiple devices are connected. The new
address must be between “0x11” and “0x80”. If you change it successfully, the module will return
“0xCC”. If you fail, it will return “0xEE”.
SettheDetectingRangeoftheUltrasonicModule
You could set the detecting range through UART interface. The proper range will increase sonar
frequency and improve its accuracy.
For example:
If the module address is “0x11”, the range limit is 3840mm
Send Command: 0x55 0xAA 0x11 0x02 0x04 0x0F 0x00 0x25 //3840=0xF00
Instruction:
Header-----------------------0x55
Header-----------------------0xAA