After boot up, this is what happens if I send the following commands by ./odrivetool:
>>> odrv0.axis1.requested_state = AXIS_STATE_CLOSED_LOOP_CONTROL
>>> odrv0.axis1.controller.vel_setpoint = 120 # M1 starts spinning properly after this line
>>> odrv0.axis0.requested_state = AXIS_STATE_CLOSED_LOOP_CONTROL # M1 stops immediately after this line
>>> odrv0.axis0.controller.vel_setpoint = 120 # M0 works completely fine
Motor 1 (M1, axis1) stops working right after I set M0’s requestd_state. After that, M0 works compleltely fine and M1 won’t react to anything (reseting state or giving new vel_setpoint).
At moments like this, I tried printing odrv0.axis1.motor, the error is 0x0000.
After reboot, this whole thing repetitively happens every time.
>>> odrv0.axis0.requested_state = AXIS_STATE_CLOSED_LOOP_CONTROL
>>> odrv0.axis0.controller.vel_setpoint = 120 # M0 spins after this line
>>> odrv0.axis1.requested_state = AXIS_STATE_CLOSED_LOOP_CONTROL
>>> odrv0.axis1.controller.vel_setpoint = 120 # nothing happens, M1 doesn't start spinning, M0 still works after this line
if I set M0’s state and velocity first, then M1 will not respond to anything at all.
I tried print motor status , error code has always been 0x0000
I read that page(trouble shooting) already, it doesn’t produce any error code, not does it fall into any case mentioned on that page.
Thanks for this.
I am having the same issue:
Axis0 works, Axis1 doesn’t.
Reboot: Axis1 works.
Run Axis0: Now Axis1 goes limp and dies
Switch PWM pins to rule out controller malfunction: No resolution.
I ordered some 22nF capacitors, Hope it works!
Maybe it will cure some of the jittery static motor issue too…