2021-08-18 01:54 AM
Hello,
I have big troubles driving a motor with the STEVAL-SPIN3201 using FOC-Algorithms.
The motor is connected to the board and the code is generated using the MC workbench.
The motor always starts turning but then suddenly stops. I think it is the moment, when the final value of the speed ramp is reached. The motor pilot then shows speed feedback or start-up failure. I already tried different parameter settings.
Do you have an idea about the cause of this problem?
It would be great if you could help me.
Best regards,
Florian
2021-08-20 06:25 AM
Added STM32 Motor control topic
2021-08-21 05:39 AM
Your PWM frequency maybe too high. Anything above 15-16kHz caused problems as the PWM frequency is also what's used to trigger FOC calculation, and if the calculation takes longer than the period of the frequency you will get FOC error.