• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 to ground 1 pin from a garage door opener

Q&A Forum › Category: ESP32 › ESP32 to ground 1 pin from a garage door opener
0 Vote Up Vote Down
C Berry asked 6 years ago

Hi,

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.

Thanks,

CB

5 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Hi Berry.
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.
Regards,
SAra

0 Vote Up Vote Down
C Berry answered 6 years ago

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?
 
Thanks,
CB

0 Vote Up Vote Down
C Berry answered 6 years ago

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?
Regards,
CB

0 Vote Up Vote Down
C Berry answered 6 years ago

Okay, tried another transistor and it all works well.

0 Vote Up Vote Down
Sara Santos Staff answered 6 years ago

Nice!
Glad to hear you’ve solved the issue.
I’ll mark this question as resolved.
If you need further help, you just need to open a new question.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition April 16, 2025
  • [eBook Updated] Learn ESP32 with Arduino IDE eBook – Version 3.2 April 16, 2025

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2025 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.