yanic
Posts: 2
Joined: Tue Aug 21, 2018 8:49 am

RPi Gate opener bypass switch (how is best?)

Tue Aug 21, 2018 8:59 am

Image
Image

This is my setup running Hassio 0.76.1

The 2x LEDs and push switch work perfectly, now I need to start transmitting by pressing buttons.

I have a gate opener that I have disassembled and want to bypass a switch using a "hassio cover" which I have the state set to GPIO pin 23.

How do I go about wiring up something to bypass a switch? Do I need to use a relay, a transistor? I am happy to solder in the garage remote to the pi but don't know how to connect it.

wh7qq
Posts: 1450
Joined: Thu Oct 09, 2014 2:50 am

Re: RPi Gate opener bypass switch (how is best?)

Tue Aug 21, 2018 8:02 pm

I hate snarky responses to requests for help but you should stop making assumptions about what we know and how we can magically solve your problems by mental telepathy. It was necessary to search to find what hassio is, in the first place. More importantly, we have no knowledge of the innards of your gate opener. What are you trying to "bypass"? Are you speaking of an on/off switch or a push button that you press to activate or a power switch? What is the output of the RPi doing? Is it just a momentary output or are you changing the level and allowing it to stay until changed by you? There are a number of ways to bypass a switch but which is best for what you are trying to accomplish is in question.

yanic
Posts: 2
Joined: Tue Aug 21, 2018 8:49 am

Re: RPi Gate opener bypass switch (how is best?)

Wed Aug 22, 2018 11:10 am

It is a push button.

The Hassio setup makes the pin high for a time period that I define. Currently this is 0.3s.

I want to make it so that the high output from pin 23 ensures that the push button on the gate remote is closed or bypassed.

Essentially I wish to know the hardware to wire this as I do not know much about electronics. Am I talking a transistor or a relay or is it likely that I can connect the remote button directly to the output from the Pi. If so, how does one connect this? I have a Multi meter I can use to measure the potential drop on the push button if that helps.

The remote uses a 27A 12V battery.

Brandon92
Posts: 870
Joined: Wed Jul 25, 2018 9:29 pm
Location: The Netherlands

Re: RPi Gate opener bypass switch (how is best?)

Wed Aug 22, 2018 2:21 pm

I assume that through you push buttom, doesn't flow a large amount of current.
In that case you could use a optocoupler or a relay to by pass your switch. I think a optocoupler is a better option than a relay, (if the wire's are not that long). Because, with a optocoupler you doesn't have the "debounce " issue. If you don't know how the other hardware is responding to that.

Return to “Interfacing (DSI, CSI, I2C, etc.)”