So the switch itself has 4 wires? I think you have the wrong kind - those are probably optical end stops. You need simpler mechanical ones that are normally open. When you push on the tiny metal bar it should short out like a light switch turning on.
The one in this picture has 3 connections - usually the middle one is common (connects to the outer 2) and one of the outer connections is "normally open" meaning it is open when switch isn't engaged. The other one is "normally closed" meaning it is closed, or shorted, or connected when switch isn't touched/engaged. You want "normally open" one. Check with ohmmeter.
Recommended Posts
tommyph1208 55
AFAIK, if the endstops are mechanical ones you only need the ground and signal pins, the + is for eg. optical endstops that require power to operate
Link to post
Share on other sites