Why not use uSteppers feedback capabilities for end stop detection? Using the example code provided on our GitHub you can remove the need for limit switches on your application! uStepper detects limits in a gentle fashion, and records the end position. The absolute encode makes it easy to assure that you never exceed the limits detected during the end stop detection routine!
End stop detection with uStepper
Use the end stop detection on your own application, be it 3D printer, CNC, Robots etc. The end stop detection routines sensitivity can be adjusted to react on the lightest touch!