ODrive controlled by Paspberry Pi - one motor spin

Hey All,

As a part of self balancig robot project based on Raspberry Pi and ODrive 56V 3.6v motor controller and after execution of the hover board guide for the motor configuration.
while im tried to control the 2 hoverboard motor together only one motor start to spin independently.

Velocity Mode:

odrv0.axis0.controller.config.control_mode = CONTROL_MODE_VELOCITY_CONTROL

im execute this commands to spin the motors:

In [1]: odrv0.axis0.controller.input_pos = 2

In [2]: odrv0.axis1.controller.input_pos = 2

Has anyone else had this problem and could suggest for further steps?

Thanks.
Raz.

Please check your errors dump_errors(odrv0)

Hey @Wetmelon ,

On the last check that i did before for errors ( dump_errors(odrv0)) i encountered on ERROR_ILLEGAL_HALL_STATE error, so as i see in other question in this blog
i added a 47nF capacitor between each of the three signals and ground of M1(only on one side) and then the problem was solved with no error.

But know i got this error while im try to spin the motor together and one motor stopped after a few seconds and reboot required.

In [2]: dump_errors(odrv0)
axis0
axis: Error(s):
AXIS_ERROR_MOTOR_FAILED
motor: Error(s):
MOTOR_ERROR_CURRENT_LIMIT_VIOLATION
fet_thermistor: no error
motor_thermistor: no error
encoder: no error
controller: no error
axis1
axis: no error
motor: no error
fet_thermistor: no error
motor_thermistor: no error
encoder: no error
controller: no error

Did you or anyone know something on this issue?

Thanks,
Raz.

try these:

1 Like

Were you able to solve your error with ferrite rings?