ArduinoGeneral

URM07 V1.0 Troubles with your wiki code

userHead jose.e.torres 2019-05-07 21:46:51 4680 Views5 Replies
Greetings

I just have adquired an URM07 and i need to use it for a comunication with "ArduinoUNO".

I can't use your code for "DFRduino" because "ArduinoUNO" can't use the serial1 function, and i have only available the myserial function as a virtual serial communication port.

Could you provide any guidance with the adaptation of your code to "ArduinoUNO"?
2019-05-29 18:11:40 Like this:

#include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3); // RX, TX

void setup()
{
Serial.begin(115200);
while (!Serial) {
}

Serial.println("Goodnight moon!");

mySerial.begin(9600);
mySerial.println("Hello, world?");
}

void loop()
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());
}
userHeadPic techsupport
2019-05-19 08:03:21
techsupport wrote:
Fri May 17, 2019 9:22 am
You can try use the soft serial, and the arduino IDE has a sample soft serial port to refer.
I'm trying to post the code but some reason i can't do so
userHeadPic jose.e.torres
2019-05-19 02:20:48 Hello i have modified you code to work with arduino UNO but it doesn´t. It prints values on the serial monitor at 19200 but the values doesn´t make any sense. userHeadPic jose.e.torres
2019-05-18 22:03:42 Yeah i had already figure that out but your URM07 sometimes use 6 data instructions and other use 7 data instructions that doesn´t make sense for me. He should use always the same size of data instructions comands so i guess the other needs to be fill with some void data instructions i´m i right or how could this work? userHeadPic jose.e.torres
2019-05-17 17:22:06 You can try use the soft serial, and the arduino IDE has a sample soft serial port to refer. userHeadPic techsupport