URM04V2.0(SKU:SEN0002)
URM04 V2.0
Figure 1: URM04 Beam Width 60 degree
Contents
1 Introduction
2 Specification
3 Dimension and Pin definition
4 Communication Protocols
4.1 Set Device Address
4.2 Trigger measurement
4.3 Read Distance
4.4 Read tempeature
5 Sensor Connection Diagram
6 Sensor Networking
7 Arduino sketch for driving one URM04 sensor
Introduction
A. Please read this mannual carefully before power on the device.
B. Do not use this device for military or medical purpose as they are not designed to.
URM04 is developed based upon our popular URM37 ultrasonic sensor. The RS485 interface allows
a number of sensors working together. Up to 32 URM04 may be connected together in a network.
Specification
Power: +5V
Current: <20mA
Working temperature: -10+70
Detecting range: 4cm-500cm
Resolution: 1cm
Frequency: 40KHz
Interface: RS485
Units: Range reported in cm
Temperature sensor: 12 bits reading from serial port
Size: 34mm × 51 mm
Weight: 30g
Default Address:0x11
Default Baudrate:19200
DimensionandPindefinition
URM4 V2 Front view
URM4 V2 Back view
RS485 InterfaceTwo connectors
+: +5V DC Power +5V
-: GND Ground
A: A RS485 A(+)
B: B RS485 B(-)
ISP Pin: For factory firmware uploading
Communication LED: As the device is powered up, this LED will flash four times which indicates
that the sensor is working properly. This LED will also flash when it is communcating with other
devices.
Jumper A: Not in use
Jumper B: When the sensor is working under a network, only the Jumper B for the first Device and
the last Device need to be bridged.
CommunicationProtocols
The device is fixed at 19200 bps Baud Rate,8/N/1.
Note:The previous version has 115200 bps Baud Rate,8/N/1.
Set Device Address
Command:
Return Value
PS: The address of each device can be changed when multiple devices are connected. The new
A
ddress must be between 0x11 and 0x80. If the address is set sucessfully, the flag will be set to
0x01 in the return data. If unsucessful, there is no return data. (The default address for the sensor is
0x12)
Note:The previous default address is 0x11.
Header Cmd Length Cmd Set Address SUM
55 aa AB 1 55 ADD SUM
Header Address Length Cmd Flag SUM
55 aa ADD 1 55 S SUM

SEN0002

Mfr. #:
Manufacturer:
DFRobot
Description:
Distance Sensor Modules URM04 v2.0 Ultrasonic Sensor
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet