Skip to main content
eric239955_stm1
Associate II
February 22, 2022
Solved

STEVAL-PTOOL2V1, STSPIN32F0252, Motor stall setting

  • February 22, 2022
  • 1 reply
  • 728 views

The motor will stall at lower RPM,

We found that the MCU did not detect a high current pull before the rotor stalled.

Stop the motor because of MC_LF_TIMER_FAILURE (RUN_STAY_WHILE_STALL_MS set to 2000, should be enough),

Is there any parameter that can be adjusted so that the current is pulled up before the rotor is blocked?

In addition, should the detected motor current be pulled high after the rotor is locked (maintain RUN_STAY_WHILE_STALL_MS for some time) ?

This topic has been closed for replies.
Best answer by Cristiana SCARAMEL

Hello @Community member​,

to control the current during operation, you should monitor the ADC connected to the ‘Curr_fdbk’ signal on PA5, after having properly configured the gain of the U2A operational amplifier.

To prevent excessive current during rotor stall, you should also dimension the overcurrent protection by changing, if needed, the gain of U2B operational amplifier, which brings the shunt signal on the internal overcurrent comparator (VREF threshold of 460 mV typ. value).

Note that, it is not recommended to maintain energized phases for a longer time when stall is detected, to avoid overheating of the motor coils. 

I hope this post can help you, if so please "Select as Best" button.

1 reply

Cristiana SCARAMEL
ST Employee
February 24, 2022

Hello @Community member​,

to control the current during operation, you should monitor the ADC connected to the ‘Curr_fdbk’ signal on PA5, after having properly configured the gain of the U2A operational amplifier.

To prevent excessive current during rotor stall, you should also dimension the overcurrent protection by changing, if needed, the gain of U2B operational amplifier, which brings the shunt signal on the internal overcurrent comparator (VREF threshold of 460 mV typ. value).

Note that, it is not recommended to maintain energized phases for a longer time when stall is detected, to avoid overheating of the motor coils. 

I hope this post can help you, if so please "Select as Best" button.

"If you feel a post has answered your question, please click ""Accept as Solution"""