My garage door opener has 2 pins exposed for a manual switch. 1 is ground 2 is output. If I connect output to ground the door opens if closed and closes if open. This is exactly the behavior I need, but I would like to put an ESP32 in place to control this. A single touch is all that is required.
What do I need to do here? I have gone through some of the tutorials and have done the usual weather sensor and LED on off, but I do not know how to approach this.
Please clarify something:
You want to connect the output to one of the ESP32 GPIOs? Is that it?
The problem is that when you connect it, if you touch the wire or something, it activates easily?
If that is the problem you need to connect a transistor to one of the ESP GPIOs that will act as a “button switch” to pull the garage door opener pin to GND.
HI Sara, that is pretty much it. I just need to ground the pin on the opener. I know that I could use a relay between the live pin and the ground pin on the unit , but I thought that there should be a better solution. How should I select and wire the transistor?
Hi Sara, I tried this with a 2N3904 transistor, with 3.3v coming in on the collector with an LED and resistor 1K and the emitter going to ground. Base was connected with 3.3v and 10K resistor. The LED does not light up in this configuration, however if I simply ground the base then it does light up. What is wrong here?