cancel
Showing results for 
Search instead for 
Did you mean: 

Motor Control PID parameter tuning using STM32CubeMonitor.

EDokm
Associate III

I am trying to control a 24V PMSM type motor using ST Motor Control Workbench version 6.3.1 with the FOC. I use the position control method as the control method. Tuning PID parameter is given in AN5464.

Although i tried to tune the PID parameters manually in accordance with demonstration code given in AN5464, par. 5.8, motor starting to oscillate when i try to rotate motor in multi-turn (for example 4-turn, 8 * PI radian). So i am trying to use a software tool like STM32CubeMonitor in order to tune PID parameters.

I have the following questions:

  1. Is there any application note/document which describes PID parameter tuning using STM32CubeMonitor? If yes, can you share with me?
  1. If the answer of first question is no, which variables/structure elements should be paid most attention in STM32CubeMonitor for a good PID tuning? For example, ENCODER_M1._super.hMecAngle. Dou you have any recommendation for me?
  1. If STM32CubeMonitor is not suitable for PID tuning, do you have any advice for me? For example, can i use Motor Pilot for this purpose? If yes, is there any document that describes it and which variables should be monitored for a good PID tuning?

Any information you can provide will be appreciated.

1 REPLY 1
GMA
ST Employee

Hello @EDokm,

Firstly, we would like to apologize for the delay in replying to your post.

Refer to User Manual documentation available through "Workbench tool">About>Documentations>Documentation>"User manual" tab, "PID regulator theoretical background" and "A priori determination of flux and torque current PI gains".
PID tuning could be done directly with MC Motor Pilot by clicking on the "Advanced Configuration" button.

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA