Hi, I purchased the Rover 5 w/encoders and the Trex Jr to work on a robot project but I’m having a few issues.
- When I send a command to the Trex Jr (from my Arduino) I get a weird high pitch sound coming from the motors.
- When I send a command to move both motors, one moves and the other doesn’t do anything - the high pitch sound in still present.
- When the motor does move, it’s not constant - it accelerates a little then decelerates but never stays constant.
I’ve got the Trex and RX/TX lines connect to SO/SI per the instruction manual. currently I’ve got the Rover on a stand so the motors don’t have to deal with any friction for the moment. Power is coming from my power supply 15V/3A max.
Here’s a code snippet:
char command = 0x80;
char byte1 = command | M1 | direct;
mySerial.write(byte1);
mySerial.write(0x20);
M1 is a define I use in the code and is set to 0xC0.
Any ideas what I’m doing wrong?
Thanks.