Tunning the gains of FOC loop in the ACIM implementation
Hello everyone,
I'm working on a proposal for an STM32 MC SDK AC Induction Motor using the STEVAL-IHM023V3, NUCLEO-G431RB, and NUCLEO-IHM09M1 boards in the development environment. I've encountered some challenges while setting up the project and testing.
Setting Up LSO Gains
While creating the project in MC Workbench (MC WB), I came across some variables whose values I'm unsure about, such as the KP and Ki gains for the LSO observer. The ST documentation mentions a general gain range of 1-1.5 for the observer, but it doesn't provide information about the controller bandwidth or how to manually edit KP and Ki.

Current and Speed Controller Gains
Based on my understanding of FOC loop theory, I estimated the KP and Ki values for the speed and current controllers. However, during testing with Motor Pilot, it seems the values have specific units, and I'm unsure how to adapt my values to them (see attached image).

Experimental Issues
Using some estimated values, I was able to build the project. However, in most cases, I've encountered stability issues when the current and speed Ki values are non-zero. Additionally, the observed speed doesn't match the actual speed. Furthermore, if the motor attempts to reach its nominal speed (around 1700 rpm), instability occurs upon reaching that speed, with errors like "speed feedback error" or "overcurrent error" appearing in Motor Pilot.
NOTE: I understand that some of these problems might be related to the motor's electrical parameters. However, it's important to note that these parameters weren't obtainable through the profiler because it's unavailable for these boards. I had to rely on experimental testing and estimations to obtain them.
Finally, I would greatly appreciate any information or suggestions you might have to help me troubleshoot these issues.
More details about my setup :
[VERSION]: MCSDK 6.2.1
[TOOL]: MC WB & Motor Pilot
