Using an arduino button as an endstop
-
Hi I am complete noob in electonics and I want to learn by building a printer controlled by Duet. I have a Duet 6HC and I was wondering if I can use a simple button as an endstop (only for testing purposes for now)?
I could not notice of the warning in the docs WARNING: Never connect your endstop wires from +3.3V or +5V to ground. This will create a short circuit and could damage the Duet.
I looked online and it should be possible but I want to avoid damaging my mainboard. Is this wiring ok? Online guides say it is ok, but idk. It seems that the ground and 3.3V connect when the button is pressed.
-
@acnev no, thats incorrect.
You just need to place the button between the io[#].in pin and ground. No need to include 3.3v. -
@jay_s_uk Thanks. What about the resistor. Does it need to be there?
-
@acnev nope, no resistor needed. just i0[#].in -> wire -> button -> wire -> gnd