0
\$\begingroup\$

Just a side-note, I am a complete beginner when it comes to circuitry.

I am attempting to control a garage door controller with a relay powered and controlled by a Raspberry Pi. The garage door already is controlled by a button with some simple 2-core wire.

How can I get both the button and the relay to trigger a signal to my garage door?

I guess what I am trying to create here is an OR gate.

Anyways, I hope this is enough information.

\$\endgroup\$
6
  • \$\begingroup\$ You can wire the relay N.O. contact across the switch, and program it to momentarily close only. However the RPi is just a little SBC and cannot inspect to make sure it is safe to operate the garage door so it may not be a good idea. \$\endgroup\$ Apr 1, 2021 at 13:24
  • \$\begingroup\$ pubmed.ncbi.nlm.nih.gov/8885959 cpsc.gov/content/… \$\endgroup\$ Apr 1, 2021 at 13:27
  • \$\begingroup\$ In my case, that wouldn't be ideal as the button is quite far away from where I would like to install my Raspberry Pi (there is no power socket close to the button) \$\endgroup\$
    – Shawn-Ross
    Apr 1, 2021 at 13:28
  • \$\begingroup\$ @SpehroPefhany luckily we do not have children :) We want to be able to open/close the garage door via our phones. \$\endgroup\$
    – Shawn-Ross
    Apr 1, 2021 at 13:29
  • \$\begingroup\$ I recently had to remove the desiccated corpse of a bunny rabbit from our garage where it was entrapped until it perished, so not just children are at risk. \$\endgroup\$ Apr 1, 2021 at 13:31

2 Answers 2

0
\$\begingroup\$

When the button is pressed, it allows electricity to flow through it, between its two connections.

You can wire the relay's N.O. and C. (not N.C.) connections in parallel with the button (i.e. wire one to each terminal of the button). It doesn't matter which one goes to which wire on the button. When the relay is activated, electricity can flow between N.O. and C. just like a switch.

So electricity can either flow through the button, or around the button and through the relay. Or both at once, if you happen to press the button and activate the relay at the same time.


Just to help your understanding of circuits a bit (you garage door won't actually be wired like this): if the button worked the other way - if it blocked the flow of electricity when you pressed it - how could you wire the relay?

In that case you could wire the N.C. and C. connections of the relay in series with the button, so the electricity has to flow through both. Then, pressing the button would block the flow of electricity, and activating the relay would also block the flow of electricity, since the relay only allows electricity to flow between C. and N.C. when it's not activated.


By the way, when I talk about "the flow of electricity", it's not the electricity going to the garage door motor - it's a separate, very small trickle of electricity, which the control circuit tries to put out in order to sense whether the button is pressed.

\$\endgroup\$
2
  • \$\begingroup\$ So I would just add on to the existing pair of wires going from my button to the garage controller? \$\endgroup\$
    – Shawn-Ross
    Apr 1, 2021 at 13:53
  • \$\begingroup\$ @Shawn-Ross yep. Or you could see where those wires are connected to, and wire more in parallel \$\endgroup\$
    – user253751
    Apr 1, 2021 at 14:35
0
\$\begingroup\$

My youngest garage door opener dates back to the 80's, so things might be different now. But back in my day ...

Except for the motor, the control system in an opener runs on 24-28 Vac relays. The button closure connects the relay coil to the 28 V source, and one set of the relay contacts keeps the relay closed after you release the button. When the door hits the end of its travel, it trips a switch that opens the circuit and sets it up to run in the reverse direction the next time. There are variations on exactly how things work internally, but that is the basic concept.

Somewhere on the motor housing should be a 2-terminal strip where the button wires are attached. Measure across these terminals with a battery-powered meter in both AC and DC modes. If your system is like mine, you should read almost 0 Vdc and 24-28 Vac - ish.

The normally-open contacts of a relay driven by the pi can be connected at the button, the motor head, or you can run another wire pair from the head to just about anywhere you want. The current being switched in my systems is 0.7 A (700 mA), but newer systems probably have a lower coil current. Still, use a relay with contacts rated for 2 amps AC or more. Switching a highly inductive load is hard on relay contacts; overrating is good.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.