Stall Detection

This implementation employs three methods of stall detection:

The most sensitive part of stall detection is at start-up. When the motor is accelerated in Open Loop mode and switching to Closed Loop, the system might get a false response that the zero cross is valid, even though the BEMF is a result of the magnetic coupling between the driven and the undriven coils, and not the voltage induced in the coils by the moving magnet.