XDC2460 with Teensy

1 year 3 months ago #29535875 by bikram
XDC2460 with Teensy was created by bikram
Hi All,
I am trying to control and read data from an XDC2460 controller. I connected the RS232 to a TTL converter and then to the Serial1 of teensy. 
I thought a simple sketch like the one below would work:
void setup() {
Serial1.begin(115200);
Serial1.println("^rwd 1 0"); //disable motor controller serial watchdog
}
void loop() {
  // put your main code here, to run repeatedly:
  delay(5000); //hold 5 sec
  Serial1.println("!G 1 500"); //forward
  delay(5000); //run for 5 sec
  Serial1.println("!G 1 0"); //stop
}

I do not see any movement. I am not sure what am I doing wrong. 
I have tried different baud rates.
Any ideas? 
Thanks
Bikram

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.048 seconds