This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Motor stucked in lab12b

Other Parts Discussed in Thread: DRV8312

Hi everyone,

I am working with the DRV8312 kit, the f28069 control card, the motor which comes with the kit and I am looking for a sensored control with an encoder.

I was able to make the lab work once but never again, I did not change anything apparently.

Now, the motor gets stuck very hard after spinning fast for a few seconds. When it happens, gMotorVars.SpinTAC.VelCtlStatus = BUSY, instead of IDLE, does it mean enything?

Could anyone help and provide some ideas on why is this happening?

Thank you very much

  • Armand,

    Lab 12b only works with a motor that features a quadrature encoder.  The motor included with the DRV8312 kit does not have an encoder.  Did you purchase an additional motor with an encoder?

    If so, my guess is that the motor phase order or the encoder phase order is incorrect.  The instructions for lab 12a include help for determining the correct motor and encoder phase order.

  • Sorry, I am using a motor with an encoder, I verified all the connections are well.

    I have discovered that, to make it spin, I have to be forcing the rotor with my hand. After that, it works pretty good between -2000 rpm and 2000rpm.

    So, I have to solve two issues:

    1: What is the matter with the motor start?

    2: Why 2000 rpm is the speed limit? (I tried to change the PID kp and ki gains but, although it seems it wants to reach higher speeds, it becomes noisier and does not work as well.

    Thank you!
  • Armand,

    Armand M.G. said:
    1: What is the matter with the motor start?

    Lab 12b relies on the RsRecalc in order to align the motor and encoder electrically before beginning motion.  Have you disabled this in your startup?

    Armand M.G. said:
    2: Why 2000 rpm is the speed limit? (I tried to change the PID kp and ki gains but, although it seems it wants to reach higher speeds, it becomes noisier and does not work as well.

    Lab 12b does not feature a PID controller to control the speed.  It uses the SpinTAC Velocity Controller.  Is the maximum speed of your motor 2000 rpm?  If you can post your user.h file and more information about your motor this could help determine why the speed seems to be limited to 2000 rpm.