Errors after getting started

Hi everyone !
i have a little issue here, i have flowed the getting started guide but when i try to run odrv0.axis0.requested_state = AXIS_STATE_CLOSED_LOOP_CONTROL
nothing happens, and when i dump the errors i get :
In [1]: dump_errors(odrv0)
system: not found
axis0
axis: Error(s):
UNKNOWN ERROR: 0x00000010
UNKNOWN ERROR: 0x00000020
motor: Error(s):
UNKNOWN ERROR: 0x00004000
sensorless_estimator: no error
encoder: no error
controller: no error
axis1
axis: Error(s):
UNKNOWN ERROR: 0x00000010
motor: Error(s):
UNKNOWN ERROR: 0x00004000
sensorless_estimator: no error
encoder: no error
controller: no error

i am only using axis0
I have the latest version of Odrivetool, and a freshly received 3.6 odrive board

This is all i typed during the getting started guide:

In [2]: dump_errors(odrv0)
system: not found
axis0
axis: no error
motor: no error
sensorless_estimator: no error
encoder: no error
controller: no error
axis1
axis: no error
motor: no error
sensorless_estimator: no error
encoder: no error
controller: no error

In [3]: odrv0.axis0.motor.config.current_lim = 20

In [4]: odrv0.axis0.controller.config.vel_limit = 16.6

In [5]: odrv0.axis0.motor.config.calibration_current = 10

In [6]: odrv0.config.brake_resistance = 2.2

In [7]: odrv0.config.dc_max_negative_current = 0.01

In [8]: odrv0.axis0.motor.config.pole_pairs = 7

In [9]: odrv0.axis0.motor.config.torque_constant =0.0306297

In [10]: odrv0.axis0.motor.config.motor_type
Out[10]: 0

In [11]: odrv0.axis0.motor.config.motor_type = MOTOR_TYPE_HIGH_CURRENT

In [12]: odrv0.axis0.encoder.config.cpr = 8182

In [13]: odrv0.save_configuration()

In [14]: dump_errors(odrv0)
system: not found
axis0
axis: Error(s):
UNKNOWN ERROR: 0x00000010
motor: Error(s):
UNKNOWN ERROR: 0x00004000
sensorless_estimator: no error
encoder: no error
controller: no error
axis1
axis: Error(s):
UNKNOWN ERROR: 0x00000010
motor: Error(s):
UNKNOWN ERROR: 0x00004000
sensorless_estimator: no error
encoder: no error
controller: no error

I think you will have to update the firmware before fixing this.

pip install --upgrade odrive
odrivetool dfu

Yep that worked !
but now i am getting these errors

In [29]: dump_errors(odrv0)
system: Error(s):
ODRIVE_ERROR_DC_BUS_OVER_REGEN_CURRENT
axis0
axis: no error
motor: Error(s):
MOTOR_ERROR_SYSTEM_LEVEL
sensorless_estimator: no error
encoder: no error
controller: no error
axis1
axis: no error
motor: Error(s):
MOTOR_ERROR_SYSTEM_LEVEL
sensorless_estimator: no error
encoder: no error
controller: no error

Update ALL GREEN YAY !!!
Turns out i forgot to put a β€˜-’ before the value of odrv0.config.dc_max_negative_current
now it’s good
Thx

1 Like

You may also need to enable your brake resistor if you are using one. That fixed this same error for me.

1 Like