Hi,
I have been experimenting with dual hoverboard motors. I get Motor Current Unstable errors quite frequently after a while - both on M0 and M1.
I have connected to motors via external termainal blocks and the connections appear to be very tight.
Can someone give hints regarding calibration parameters or other calibration/initialization steps to overcome this problem?
My calibration parameters for both motors are:
odrv0.axis0.motor.config.resistance_calib_max_voltage = 4
odrv0.axis0.motor.config.pole_pairs = 10
odrv0.axis0.motor.config.requested_current_range = 25
odrv0.axis0.motor.config.current_control_bandwidth = 100
odrv0.axis0.encoder.config.mode = ENCODER_MODE_HALL
odrv0.axis0.encoder.config.cpr = 60
odrv0.axis0.encoder.config.bandwidth = 100
odrv0.axis0.encoder.config.ignore_illegal_hall_state = True
odrv0.axis0.controller.config.vel_gain = 0.02
odrv0.axis0.controller.config.pos_gain = 1
odrv0.axis0.controller.config.vel_integrator_gain = 0
odrv0.axis0.controller.config. vel_limit = 1000
odrv0.axis0.controller.config.control_mode = CTRL_MODE_VELOCITY_CONTROL odrv0.axis0.motor.config.resistance_calib_max_voltage = 4
odrv0.axis0.motor.config.pole_pairs = 10
odrv0.axis0.motor.config.requested_current_range = 25
odrv0.axis0.motor.config.current_control_bandwidth = 100
odrv0.axis0.encoder.config.mode = ENCODER_MODE_HALL
odrv0.axis0.encoder.config.cpr = 60
odrv0.axis0.encoder.config.bandwidth = 100
odrv0.axis0.encoder.config.ignore_illegal_hall_state = True
odrv0.axis0.controller.config.vel_gain = 0.02
odrv0.axis0.controller.config.pos_gain = 1
odrv0.axis0.controller.config.vel_integrator_gain = 0
odrv0.axis0.controller.config. vel_limit = 1000
odrv0.axis0.controller.config.control_mode = CTRL_MODE_VELOCITY_CONTROL
I am using a joystick to control the velocity for both the motors.
Thanks for your help.
Anil Sawe