I built a small remote control vehicle with Pi 3 and the Crickit Hat. It uses two motors. I have a separate battery powering the Hat.
I'm using code from this page:
https://learn.adafruit.com/adafruit-cri ... -dc-motors
I also have a small GUI built with Flask so I can control Fwd/Back, turn and Stop. This seems to work at first; I can move in reverse (throttle = -0.5) and turn right and left. I can also do Stop from either of those directions.
However, when I go to forward (throttle = 1 on both motors), if I then try to stop (or reverse or turn), the motors stop responding (stuck in forward) and I get this error from my gui;
File "/usr/local/lib/python3.7/dist-packages/Adafruit_PureIO/smbus.py", line 308, in write_bytes
self._device.write(buf)
OSError: [Errno 5] Input/output error
There's a lot more of the error traceback, but those are the last two lines. The only way to stop the motors is to hit the Hat reset button.
I have updated the seesaw firmware. Any clues what could be going on here?
thanks