Endstop questions

Hello, I am just getting all of the wiring set up on my 3D printer. I am having a few problems with the endstop wiring. I am using an unedited config file. I got a set of mechanical endstops V1.2. I believe they are a makerbot design. Mine are made by Geetech. I believe the Pinout is 1-VCC 2-GND 3-GND 4-SIG. The smoothie board has 1-SIG 2-GND 3-VCC. I connected to Y-Min to test. I connected SIG to SIG and GND-2 to GND. I later switched pin 2-GND to 3-GND with the same result. M119 reports all six endstops as 1. I get 0 on y-Min when I close the switch. So that means that both GND pins are on a NO circuit and close when I hit the switch.

It look like the switch has both an NO and NC pin but ends up has four pins at on the board. I am just not sure how to wire it. I was afraid to hook up the VCC as the guide says I can destroy the board if I connect it to the other pins. Since Im not confident on the wiring of the endstop board that is a good possibility. The guide page makes no mention of connecting anything to the VCC so I figured a two wire setup should be fine as it just needs to check resistance over the line anyway. Any Ideas on how to wire this endstop for NC? Do I wire the VCC to VCC? Should I just pull the 3 pin switch off the board and try that alone?

Imported from wikidot

I just bypassed the whole board and soldered the leads on to the switches themselves. Normally closed now works great with no need for the VCC. I left the switches on the boards because I had already figured out a mounting solution for them. Anyway, If anyone else uses these generic endstops and doesn’t need the LEDs on the board, it is easy to bypass and just use the switch.

You could have just inverted the logic state of the endstop pins in the Smoothieware configuration file. The relevant lines are commented as saying adding a “!” inverts it for NO switches.

Here’s an example of how it would look for the alpha axis:

alpha_min_endstop 1.24^! # add a ! to invert if endstop is NO connected to ground