I am using a TMCM-6110 to control a 3 axis (x, y, z) machine. On the x and y axis we use a belt drive, on the z axis a rack/pinion.
We would like to use StallGuard to detect when the machine has hit an obstacle and therefore has lost steps. But I am encountering some problems in successfully configuring the StallGuard. So far I have tried different speeds, with different threshold and velocity limit values, but I can not get it to work reliable: either the stall is only detected sometimes (or not detected at all), or the threshold is so low that the motor also stops during normal operation.
Additionally, I found that stall detection works better when the motor hits a "soft" obstacle (which "slowly" increases the load angle of the motor, for example slowing down the moving part by hand). When hitting a "hard" mechanical limit/obstacle stall detection in most cases does not work at all, the motor keeps running after hitting the obstacle, and when I read the stall value it is even higher than in normal operation.
What could I be doing wrong? Could it be that changing the motors improves the behavior? What are the criteria for a motor to be suitable for stall detection?
