Motor unable to reach desired velocity

Hello,

I am currently working with this motor (the bigger one) : https://www.trinamic.com/fileadmin/assets/Products/Motors_Documents/QBL4208_manual_Rev1.05.pdf

I want to run this motor at the rated speed of 4000RPM and I am unable to reach it. It will always stop going up at 1800 RPM (40 when I read it with the encoder). I increased the limits of current and velocity a lot and it doesn’t change anything. My max current is set at 8A but only 0.7A is being sent from the power supply (30A max). I use this odrv0.axis0.encoder.vel_estimate and the motor starts making noise at 30 but doesn’t shake. It goes to 43 and then stabilize at 40.

Any idea or recommandation I should try to fix this problem?
Thank you

What voltage are you using? Are you running loaded or unloaded?

1800 RPM (40 when I read it with the encoder)

40 * 60 is 2400rpm

I have no load attached to it and I measure 1800 rpm with a tachometer but the encoder reads 40. My power supply is set to 24V but I used 12V for resistance_calibration_max_voltage because I would get 2 errors every single time if I try to do 24V (modulation magnitude and inductance out of range). Not sure if it caused by this

Hi, it’s me again. I got some new numbers to share :


0 is Id setpoint
1 is Iq setpoint
2 is v integral d
3 is v integral q

I did a mistake when I set up my pole pairs so I have 4 pole pairs so I read a velocity of 76 and it can’t go higher. My tachometer still reads 1800rpm. I suspect my power supply to not show the proper values for current because it shows 0.9A when I reach the maximum speed of 1800rpm

You still have something wrong. 76 rev/s is 4560 rpm, not 1800. What are you reading with the tach?

What’s your encoder cpr and your pole_pairs value?

Under the following assumptions:

  • 40rps (2400rpm)
  • Id_measured = Id_setpoint, Iq_measured = Iq_setpoint
  • feedforward terms disabled in ODrive config (they are disabled by default)
  • motor parameters from datasheet

we can do the following calculations:

  • v_{backemf} = 2/3 * 0.036 * 40*2*pi = 6.0318578948924015 V
  • I \cdot R = 10.4 * 0.28/2 = 1.456 V
  • v_q = v_{backemf} + I \cdot R = 7.487857894892402 V
  • v_d = I \cdot \omega \cdot L = 10.4 * 40*2*pi * 0.54e-3/2 = 0.7057273737024111 V

These numbers would match your plot if you factor in a bit of additional resistance in the motor wires.
(Note that under the stated assumptions, the P terms of the PI current controller would be 0 and the integral terms describe the actual output voltage)

However we need some additional info to verify this:

  • cpr and pole_pairs as requested by @Wetmelon
  • velocity setpoint (controller.input_vel) and current limit (motor.config.current_lim)
  • odrv0.axis0.motor.current_control.Id_measured (plot)
  • odrv0.axis0.motor.current_control.Iq_setpoint (plot)
  • odrv0.vbus_voltage (plot)
2 Likes