Not able to make the motor turn

Hello,
I need to use the Odrive for an internship project and I was not able to use it until now… I have tried a lot of things yet and read a lot of topics on this discourse but nothing worked.

  • Odrive is v3.6 (56V)
  • Motor is TSDZ2 Tong Sheng (Hall encoder included)
  • Brake resistor is 3.3 Ohm
  • I am using relays (see picture)

image0

When I launch odrivetool on a Raspberry Pi, I have

ODrive control utility v0.5.4
Connected to ODrive 206F3694424D as odrv0

Then if I try a calib:

In [1]: dump_errors(odrv0)
system: no error
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 [2]: odrv0.axis0.requested_state = AXIS_STATE_FULL_CALIBRATION_SEQUENCE

In [3]: dump_errors(odrv0)
system: no error
axis0
  axis: no error
  motor: Error(s):
    MOTOR_ERROR_PHASE_RESISTANCE_OUT_OF_RANGE
  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

When odrv0.axis0.motor.config.resistance_calib_max_voltage is less or equal to 29.0 I have MOTOR_ERROR_PHASE_RESISTANCE_OUT_OF_RANGE. When it is more or equals to 30.0, I have MOTOR_ERROR_PHASE_INDUCTANCE_OUT_OF_RANGE. Sometimes I have AXIS_ERROR_INVALID_STATE.

Also when reading odrv0.axis0.encoder.shadow_count, I always have 0, even when moving the motor’s axis…

I have tried with three different motors and a precedent intern managed to make this work with the exact same setup (I have just run sudo apt install python3 python3-pip since he left).

If it is a hardware problem could you tell me how can I test it, I looked at the resistances and tensions and nothing seemed wrong.

Thank you very much for your time.

Just sounds like there’s a wiring issue with the motor. Make sure there’s no shorts or open circuits.

You can try updating the firmware, 0.5.5 is out.

pip install --upgrade odrive
odrivetool dfu

Indeed, I had an issue with the relay. I updated the firmware.

Thanks for your advice and your time !

Hello,

I have another question.
I updated the firmware to 0.5.5, however, my odrive.__version__ is 0.6.3.post0. It works but shouldn’t they match ? I can’t find the 0.5.5 version with pip. I have some errors in PyCharm (with the enums for instance).

Thank you !