I have a mini projector (powered by usb 5v) which can be powered on using a push button. Since the push button is actually closing an open to turn the projector on/off, My plan was to create a circuit using ESP 12-f to mimic this operation by sending an http command remotely
This is the circuit I'm using:
Using a multimeter, I am measuring the resistance between the yellow and green wires, to see if my http command works, and indeed the resistance is moving between infinite to none as I send the http command to turn high/low the GPIO4 pin.
so i did the following:
1. connected the green/yellow wires to the projector's push button connectors
2. connected both grounds together (my circuit's and the projector one's)
the behavior of the resistance values are now different - it is continously close to 0, and the http command changes from this small resistance to infinite resistance which isn't good.
The problem is that you don't know what the button is connected to. It's most likely an input with a pullup resistor that's grounded when the push button is pressed. What you need to do is measure the voltage on both push button wires when the switch is pressed and not pressed with the projector both on and off. One of the connections probably goes from 5V (or, hopefully 3.3V) to 0V when the button is pressed. Once you know this you can them move forward.
I also used it as part of an exponential ramp of the audio at turn on as well as rapid turn-off of the input to a power amplifier. The leads were useful.