So I tried to simplify it further and my code now looks like this:
Code:
void setup(){
Serial.begin(38400);
Serial1.begin(38400);
delay(10000);
Serial.println("Send Data.");
}
void loop() {
Serial.println("Sending Packet...");
Serial1.write(0xff);
Serial1.write(0x0);
Serial1.write(0x0);
Serial1.write(0x0);
Serial1.write(0x0);
Serial1.write(0x0);
Serial1.write(0x0);
Serial1.write(0x0);
Serial1.write(0x0);
Serial1.write(0x0);
Serial1.write(0x0);
Serial1.write(0x0);
Serial1.write(0x0);
Serial1.write(0x0);
Serial1.write(0x0);
Serial1.write(0x30);
Serial1.write(0xcf);
delay(10000);
}
It says it is sending the packets and the TX light is flashing but there is no response from the robot. I am really at a loss as to how to send these packets...
Any help would be a life saver
Bookmarks