I have an external circuit board that is powered by 3v. It has a physical push button that I would like to push/activate logically. One side of this button has ground, when the button is pressed the other side is connected to ground and the circuit completes.
Now using an arduino, I know it might be easier to do this using a relay, transistor or optocoupler but I am trying to do this without any other components - is it possible?
I can connect one of the Arduino GPIO5 pin to the button and then do
pinMode(5, OUTPUT);
digitalWrite(5, LOW);
The above will work but the big question is when I do digitalWrite(5, HIGH) which essentially would be the rest state of the GPIO5 denoting that the button is not pressed, wouldn't this send a +3v causing a short circuit?