I am using the InstaSpin Trapezoidal Drive software to drive a small BLDC motor. When I force the motor to stop by applying excessive load torque, the motor stalls and the software sits in a state of high current and the motor stays stalled even after the load is remove. Is there a typical method to use to check for this condition and stop and try to restart the motor. One method I will implement is an over current detection, but I was also going to implement some other methods as redundant checks. I did notice that the mod_dir1.counter variable stops incrementing in this condition and figured I could check for this in software and if I this counter does not increment for a period of time, I would shut off the motor.
I am just wondering what methods are typicaly used in this scenario and looking for other ideas of how to avoid this issue. This stall condition will eventually burn up the motor and I just want to do everything possible to prevent it.