I have connected two x SMC G2 24v19 via USB to my Raspberry Pi 4b. I am trying to control them as per the provided instructions, however I always see the error:
Traceback (most recent call last): File "run_motors.py", line 83, in <module> error_status = smc.get_error_status() File "run_motors.py", line 59, in get_error_status return self.get_variable(0) File "run_motors.py", line 40, in get_variable .format(len(result))) RuntimeError: Expected to read 2 bytes, got 0.
It looks like reading from the SMC times out before a response is received.
If I try the example bash script, everything works as expected.