Duet 3 6HC Endstops Will not Read in IO pins
-
@justin-0 said in Duet 3 6HC Endstops Will not Read in IO pins:
M574 X1 S1 P"!io0.in"
How is your endstop connected to the board?
Try turning on the pullup if your endstop switch goes to +3.3
M574 X1 S1 P"!^io0.in"
-
@alankilian
I just tried it but there was no change in the reading. You are correct that I am using the 3.3v for the endstop. I do have the ground connected between the endstop and the board if that matters. -
"You are correct that I am using the 3.3v for the endstop. I do have the ground connected between the endstop and the board"
I'm a little confused on how you are using both 3.3v and ground connected to the switch.
Can you post an image of the connector with wiring and the switch with wiring?
It shouldn't be difficult to connect an endswitch, so it's got to be something simple.
You've done all the hard debugging so far and everything is right.
-
@alankilian
I agree it should be something simple. I tried placing a wire across the 3.3 to the io0 in pin and the board didn't read it. Below are images of the wiring. -
First, I see red/black/white on the switch and red/black/blue on the Duet connector, so that's strange.
Second, let's forget about the switch at this time.
- Connect a jumper from the io_in pin to 3.3V and see what the endstop state is.
- Connect a jumper from the io_in pin to GND and see what the endstop state is.
If we can't get the endstop state to change doing this. it's either something we're missing in the configuration or the board is not working.
-
-
@justin-0 you should connect the switch between IN and GNC, not between IN and +3.3V. Preferably, use the NC contacts of the switch.
-
Thanks for the advice everyone. I'll be able to try it in a bit. I appreciate everyone's help!
-
I got it working thanks to everyone's advice. Using the two wires connected to the ground and io.0in pins, it works perfectly every time. Thanks for the help everyone!
-
AWESOME!!!