I’m working with a TReX Jr motor controller running firmware 1.3.
The Set Motor command is not behaving per the documentation:
0xC0 – 0xC3: set motor 1
0xC8 – 0xCB: set motor 2
This command takes one data byte and returns nothing. It immediately sets the speed of the
specified motor equal to the data byte and the motor direction based on the two least significant
bits of the command byte. The direction bits work as follows:
00 = brake low (command 0xC0/0xC8)
01 = reverse (command 0xC1/0xC9)
10 = forward (command 0xC2/0xCA)
11 = brake low (command 0xC3/0xCB)
When I send the motor controller the 0xC1 or 0xC2 commands there is definitely a response byte being returned. The response byte appears to always be a 0xFF.
Can you please explain this behavior?