Hi everyone, Im currently building my printer and have a small problem.

Hi everyone, Im currently building my printer and have a small problem.
the endstop that i bought have 4 pins and my ramps board have 3 pins, can you help me sort out which one to connect to? thank you

Test the endstop to find ther right pins , "push open circuit " in the ramps use S and - … or you can find the endstop diagram

@Not_Null ​ im sorry but i cannot fully grasp your answer

One is +, another is-
Third one is open contact and fourth one is is close contact.

Antonio meant that you should press the switch to find out what contact is what.

jejeje. sorry for my english, you can test the endstop pins with a multimeter, to find what of them you can use. ex: A,B and push …A and C and push … in the ramps tu have 6 groups of 3 (S) () (+) , use (S) and () in X- , in Y- , in Z-


Use this in the ramps or the (+) is yout end stops is MAX

I managed to get this solved, thanks!
but i think i have another problem in marlin, whenever i want to move motor forward it doesnt move, just a slight nudge but it can move backward well and also respond to endstop to stop. This happen to all my motor.
Any idea? Im so confused :s

@Nathan_Walkner ​ i think the culprit is that max endstop, where can i edit those in marlin? Mine is prusa type of printer

Just disable software endstops and install 8 endstops

@Nathan_Walkner has the right idea. Make sure the “inverting” is correct for the switch type. Use M119 to test the state of your endstops as you trigger them with your finger, and if you have no max endstops uncomment the DISABLE_MAX_ENDSTOPS option.

It works now! Thank you @Nathan_Walkner ​!