Hi,
Recently I bought a 2s9v1 motordriver and connected to two motors to M0 and M1 channels.
It seems to work nicely (both reverse and forward) when timeout configuration is not set (timeout = 0x00).
However, if I set the timeout to 0x01 (for the shortest timeout), the reverse mode doesn’t work while the forward mode still works with timeout. I tried 0x0F for the timeout, same result…
I didn’t fix its baudrate using a jumper and I am sending commands at 38400.
a weird part is that it works for the first time I send commands after turning the driver on, but after the timeout occurs to make the motors stop, it doesn’t respond to rotate motors reverse (while it responds to rotate forward properly)
I am using python3 and code looks like:
import serial
s = serial.Serial(port, baudrate=38400)
s.write(bytes([0xAA, 0x09, 0x08, 0x1F])
s.write(bytes([0xAA, 0x09, 0x0C, 0x1F])
then for the reverse mode:
import serial
s = serial.Serial(port, baudrate=38400)
s.write(bytes([0xAA, 0x09, 0x0A, 0x1F])
s.write(bytes([0xAA, 0x09, 0x0E , 0x1F])
I don’t want to use it without timeout, so if you have any idea, please help me…
Thank you