Limit switches on Ramps1,4

Good day, Is there a setting I need to configure in grbl to have limit switches for my CNC using a Ramps and Mega 2560? It's like they are not connected. Tks for any input,
Doug

Which version of GRBL?

Tks for replying
It is the grbl-mega. V 1.1f

Doug

After a very quick Google search:

Set $21 to 1.

Regards

Done and much more. Tks, though

Doug

Did it ever have limit switches? If so, are they connected? Did you "fix it" and "check everything" recently? Humans are the sole cause of malfunctions.

I am testing the Mega and Ramps to see if it can be used on an existing CNC. I figure a switch should work on its own. All I have is one stepper attached. The UGS software acts strangely when I configure the switches but not as it should. They light up in red but do not stop the motor.
Doug

Verify the switches needed are N.C. or N.O.

The standard is NC but I have tried both ways

Doug

Switches acting funny on Arduinos could mean a floating pin or keybounce issue. If you do not have access to the code, can you add a pull-up (pull-down?) resistor, or a hardware-debounced switch? (or a $3 debounce IC)

I'll look into those. It feels like a single setting may be maladjusted.

Doug

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.