Because of the Thanksgiving holiday in the U.S., TI E2E™ design support forum responses may be delayed the week of November 23.

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.

MSPM0G3519-Q1: Sensored FOC

Part Number: MSPM0G3519-Q1
Other Parts Discussed in Thread: MSPM0G3519, DRV8316

Hi,

I'd like to use the TI MSPM0 SDK FOC examples to drive a motor with closed-loop speed control and an absolute optical encoder.  I have this example from the latest SDK running the motor:

examples/nortos/LP_MSPM0G3519/motor_control_universal_foc/universal-foc_DRV8316

Since my application requires a very low speed, there isn't enough BEMF to close the speed loop.  On the other hand, running the example open-loop (and with a closed current loop) and setting the maximum speed to a tiny value does run the motor.  That would be fine if there were no variations in the motor's load, but there are.  Now I would like to close the speed loop using my absolute encoder.

I noticed this example that might show me how to provide an angle estimator:

examples/nortos/LP_MSPM0G3519/motor_control_pmsm_sensored_foc/hall_sensored-foc_DRV8316

Am I missing another way to introduce angle information to the universal FOC speed control loop?  What do you recommend for a next step?

Thank you!

  • Hello Michael,

    Please give me some time to discuss with our motor control expert after he come back office this week.

    BR,

    Janz Bai

  • Thanks!

    While you have access to the expert, here is another question that would be very helpful for me and maybe others on the forum:

    Using examples/nortos/LP_MSPM0G3519/motor_control_universal_foc/universal-foc_DRV8316 in open loop voltage control mode (algoDebugCtrl1.b.closeLoopDis = 1 and algoDebugCtrl2.b.currLoopDis = 1) we have an easy way to test the motor with a high current (set by algoDebugCtrl2.b.forceVQCurrLoopDis). The current in this mode also depends on the power supply motor voltage.

    When turning on the current control loop (algoDebugCtrl1.b.closeLoopDis = 1 and algoDebugCtrl2.b.currLoopDis = 0) the current is regulated to a value that doesn't depend on the power supply, and that's great.  I would like to set that current.  Where is the variable or register to set the motor current in this mode?

  • Hi Janz, Did the expert return to the office last week?  We hope you can help us.  Thanks!

  • Hi Michael,

    Sorry I somehow missed this thread.

    Please see my feedback below:

    Am I missing another way to introduce angle information to the universal FOC speed control loop?  What do you recommend for a next step?

    This demo is used for hall sensor rather than absolute optical encoder.

    We right now has no support for the encoder based FOC, we have added it into future development plan in 2H26 (maybe 4Q).

    When turning on the current control loop (algoDebugCtrl1.b.closeLoopDis = 1 and algoDebugCtrl2.b.currLoopDis = 0) the current is regulated to a value that doesn't depend on the power supply, and that's great.  I would like to set that current.  Where is the variable or register to set the motor current in this mode?

    In this scenatio, you can use MOTOR_STARTUP2->OL_ILIMIT

    B.R.

    Sal