Hi
So earlier I had some very naive questions about the JRK. Eventually that all worked but now I need help with the RoboClaw. I see the SimpleSerial example and it looks perfect for my purpose but I understand it is meant for an arduino. Is there a way to adapt this code for the USB control?
//Roboclaw simple serial example. Set mode to 6. Option to 4(38400 bps)
#include <SoftwareSerial.h>
//See limitations of Arduino SoftwareSerial
SoftwareSerial mySerial(10,11);
void setup() {
mySerial.begin(38400);
}
void loop() {
mySerial.write(1);
mySerial.write(-127);
delay(2000);
mySerial.write(64);
delay(1000);
mySerial.write(127);
mySerial.write(-1);
delay(2000);
mySerial.write(-64);
delay(1000);
mySerial.write(1);
mySerial.write(-1);
delay(2000);
mySerial.write(0);
delay(1000);
mySerial.write(127);
mySerial.write(-127);
delay(2000);
mySerial.write(0);
delay(1000);
}
This code should do everything I need but I simply need to run these commands while connected to the USB port. If this isn’t possible then I am simply wondering how to run a motor when the RoboClaw is connected via USB. I do not think there is an SDK for this product so there is no file I can run with parameters like the JRK.
As always any help would be greatly appreciated, thank you for your time.