How to use URM04 V2.0?

Help!
I have a URM04 V2.0 Ultrasonic sensor. It has an RS485v output.

  1. How to connect it to the arduino (do I need expansion card like DFROBOT IO Expansion - I have one)?

  2. SOmeone have a code or an example patch how to reat it?
    Thanks guys!
    N

I have the same sensor, and a dfrduino io expansion board v4.
However, the sensor is not working yet.

Did you manage to get it to work?

No! It didn't work. I've tried to connect it but got no output...

Having the same issue.

I am sending the commands according to the spec's.
No data seems to be returning.
Tried 19200 and 115200 bps. (usermanual and website state different speeds)

One of my many attempts to feed it some data...

void URM04ReadTemp()
{
//Command:
//Header Addrress Length Cmd SUM
//55 aa ADD 0 03 SUM
//0x55 0xaa 0x11 0x00 0x03 0x13(SUM) <--Example command
int cmdlength=7;
uint8_t cmd[cmdlength];
cmd[0]=header[0];
cmd[1]=header[1];
cmd[2]=DEVICEADDRESS;
cmd[3]=0x00;
cmd[4]=0x03;
byte sum=DEVICEADDRESS+0x00+0x03;
cmd[5]=sum;
cmd[6]=cr;

for(int i=0;i<cmdlength;i++)
{
Serial.print(cmd*,BYTE);*

  • }*
  • delay(30);*
    }
    Did you get the led to blink (besides the 4 times startup blinks)?

How did you do the phisical connection? Using the expansion board?