What to change in FOC code for lower inertia?
I have a BLDC motor running reliably with FOC code on a STM32G431 MCU. For unrelated mechanical reasons we need to drop our inertia by about 4x from where it is running today. For the speed loop I fully understand lowering inertia raises the loop gain and I'll need to lower the gain in the speed loop.
What I need some guidance on is how to adjust the spin up ramp and whether I need to change the observer gains. Without any changes to the code I am now getting a MC_SPEED_FDBK error.
I cannot run this motor on the profiler because it is using a custom MCU board and driver not supported by the profiler. The motor Rm, Kt, Lm and Kb are exactly the same; we are just removing mechanical inertia.
Any guidance is appreciated.