I have a microcontroller (teensy 2.0++) that is powered and communicated to by my computer via USB.
I have a small board that has a 3V coin cell and a push button that you can press and LED goes on.
I have used a voltmeter to check find that one side of the push button is ground, and also that when you press the button the two different sides of the push button go from not-connected to connected.
I would like to use GPIOs from my microcontroller to "push" the button somehow
I will solder male dupont connectors to the two different sides of the push button. I can connect these to ground, and GPIOs and build whatever circuit is required on a breadboard.
How can I design a circuit that will let a GPIO pin from my microcontroller 'bridge' the two terminals of the push button?
The aspects of this that I am unsure about are the fact that I have two separate power sources involved. It doesn't look like I can easily remove the coin cell and power the button board from USB. I also am sure that I cannot power the secondary board from a GPIO pin, as that may pull too much current and damage that GPIO pin. I think that I should be connecting my microcrontroller's ground to the ground of the button board. I have been thinking that pull-up and pull-down resistors may be useful in designing a circuit for this. I am also wondering if a transistor is required.
To help make it easier to answer this question. I've made a rough diagram of the pins I think are relevant to this, my problem is what to put in the middle.