2025-04-21 4:34 AM - edited 2025-04-21 4:48 AM
I am working on a project to drive a door using a PMSM motor in position control mode. I am trying to add an emergency brake function. In an emergency, when the operator pushes a button, motor should brake and then return to its starting position without harming anyone.
I know there is PWMC_TurnOnLowSides() function (https://community.st.com/t5/stm32-mcus-motor-control/how-can-i-stop-the-motor-urgently/m-p/597309#M8287 ). But it is just stopping the motor, not braking. I have tried this function.
As far as I know, there is no such API in position control mode.
If I am wrong, is there an API to brake the motor in an emergency? Can anyone help me? Do you have any advice for me?
Any information you provide will be welcomed.
Project:
ST MCW Ver : 6.3.2
STM32CubeIDE Ver : 1.18.1
Driving algorithm : FOC
Control board : Nucleo-G474RE
Power board : STEVAL-IHM023V3
Bridge : X-NUCLEO-IHM09M2