Want to get rid of the Limit Switches? Homing using the Encoder Deviation

Limit switches require a lot of wiring, and are subject to wearout. With sensOstep PANdrives or modules using an external encoder the homing you can implement the homing with the following TMCL routine.

Drive the motor with a low current towards a mechanical reference position. As soon as it contacts the reference position, it is stopped. The encoder deviation will go up and trigger an interrupt.

As soon as the drives are stopped the interrupt service routine resets the position counter to zero.

Tested with a PD-1140 with integrated sensOstep Encoder

Leave a Reply

Your email address will not be published. Required fields are marked *