I'm trying to work on a project to "wifi enable" an RF remote I have. The remote's button has a button that appears to have a PULLUP resistor. There are 3V across the pins when the button is not pressed and 0 when pressed.
I'm trying to simulate that with a breadboard and my ESP. I am trying to use an N-Channel MOSFET to basically simulate the button being pressed.
Looking at this diagram, http://imgur.com/a/Nwi4f when the yellow and black wires connected to the button are removed from the picture the button behaves as expected (showing high when not pressed and low when pressed). When I connect it as it appears here the button shows low all the time regardless of if D2 is HIGH or LOW.
It also appears that this setup is causing some type of power issue as the board reboots a bunch (this stops when I remove the yellow and black wires from the button).
Thoughts?