If you find yourself laying out a new revision, can you add support for powered end stops, these are very common on 3D printers and can be had for pennies, they include all the filters at the switch end and have an LED for confirming operation.
see: http://marlinfw.org/assets/images/docs/hardware/endstops/makerbot_endstop.png
The only requirement, is to add an extra +5v pin on the end-stop pin-outs, so that each end-stop row has
[Signal] - [Grnd] - [Vcc] as per the RAMPS cards
Typical prices are very very low.
here is a listing from my region, but these devices can be found everywhere
https://www.lazada.com.ph/products/6pcs-mechanical-endstop-limit-switch-press-switch-module-for-3d-printer-makerbot-prusa-mendel-reprap-cnc-arduino-mega-2560-1280-ramps-14-lkb01-i303860525-s555784736.html?spm=a2o4l.searchlist.list.29.6aa439896l4hTo&search=1
the price here for 6 pre-wired end-stops is about $3
If you find yourself laying out a new revision, can you add support for powered end stops, these are very common on 3D printers and can be had for pennies, they include all the filters at the switch end and have an LED for confirming operation.
see: http://marlinfw.org/assets/images/docs/hardware/endstops/makerbot_endstop.png
The only requirement, is to add an extra +5v pin on the end-stop pin-outs, so that each end-stop row has
[Signal] - [Grnd] - [Vcc] as per the RAMPS cards
Typical prices are very very low.
here is a listing from my region, but these devices can be found everywhere
https://www.lazada.com.ph/products/6pcs-mechanical-endstop-limit-switch-press-switch-module-for-3d-printer-makerbot-prusa-mendel-reprap-cnc-arduino-mega-2560-1280-ramps-14-lkb01-i303860525-s555784736.html?spm=a2o4l.searchlist.list.29.6aa439896l4hTo&search=1
the price here for 6 pre-wired end-stops is about $3