• 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

Controlling a relay from outputs from two sources

Q&A Forum › Category: Arduino › Controlling a relay from outputs from two sources
0 Vote Up Vote Down
Anthony asked 4 years ago

I have an application that requires a relay that can be triggered by an output pin from two Arduino.  How can I ‘OR’ the two output signals?

11 Answers
0 Vote Up Vote Down
Sara Santos Staff answered 4 years ago

Hi.
Can you try to elaborate a bit more? I’m not sure I understood your question.
Regards,
Sara

0 Vote Up Vote Down
Anthony answered 4 years ago

I have a relay that needs to be controlled from two sources.  How can I connect the output from each of these sources to control the relay?

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

So, you want to connect the same relay to two Arduino boards?
Two Arduino boards control the same relay?

0 Vote Up Vote Down
Anthony answered 4 years ago

Yes.

0 Vote Up Vote Down
Anthony answered 4 years ago

Yes.

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

Hi again.
I’m not sure if that’s possible or the right way to do it.
I’ve found these discussions about that topic that might help:

  • https://forum.arduino.cc/index.php?topic=495208.0
  • https://stackoverflow.com/questions/34438225/how-to-control-one-relay-with-two-arduino-boards
  • https://arduino.stackexchange.com/questions/55074/can-multiple-arduinos-be-connected-to-a-single-relay

Regards,
Sara

0 Vote Up Vote Down
Anthony answered 4 years ago

Yes, this is what I am looking for.  It really helps.  Many thanks.

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

Great!

0 Vote Up Vote Down
Jose M. Escrich answered 4 years ago

Put a diode on each output and connect together both cathodes, this connection goes to one terminal of the coil, the other coil terminal goes to the negative common to both Arduinos

0 Vote Up Vote Down
Anthony answered 4 years ago

Thanks. Yes, that will work.

0 Vote Up Vote Down
Anthony answered 4 years ago

Thanks. Yes, that will work.

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

  • [eBook Updated] Learn Raspberry Pi Pico/Pico W with MicroPython eBook – Version 1.2 May 26, 2025
  • [New Edition] Build ESP32-CAM Projects eBook – 2nd Edition 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.