2022-05-17 12:16 AM
Hi Community
I'm using the following setup:
The motor starts and ramps up to 200rpm.
It can now happen that when there is a load change, the rotor suddenly turns at full speed in the opposite direction. The speed is displayed in the Motor Pilot. In this case, however, the phase current looks distorted.
What can be the cause?
2022-05-17 12:21 AM
This looks a lot like the set speed functions expect a signed variable, and youre passing an unsigned variable.
2022-05-17 12:38 AM
I just press the button on the board which starts the motor with MC_StartMotor1() and no further action. Then this seems to be a problem in the SDK ?
2022-05-17 12:40 AM
Maybe , check this out https://wiki.st.com/stm32mcu/wiki/STM32StepByStep:STM32_Advance_MotorControl
2022-05-17 12:51 AM
yes..already done
2022-05-17 12:51 AM
...this doesn't happen with "CORDIC"