120v relay with switch bypass

Hi

I have a:

  • Relay controlling a 120v lightbulb
  • Replay is triggered by a sensor

That is all good. The part I want to confirm is this.

I want to have a switch bypass so I can turn on/off the light regardless of the replay state.

To do that I am thinking about adding a switch at the attachment below circled in yellow.

Is this ok to add a switch there? Will not damage the relay in some way by doing that?

Best Regards,
Vance

Would it not be easier to simply add a pushbutton to a digital I/O pin and have the Arduino use that to turn the relay on/off?

Yes but I was trying to make sure the light keeps working even if the arduino runs out of battery.

vgvgvg:
Yes but I was trying to make sure the light keeps working even if the arduino runs out of battery.

Your switch will work properly the way you have it drawn. Even if the Arduino closes the relay, there is no problem with having two switches in parallel.

But you will wonder why the Arduino does not turn the light off and later discover it is because you turned the switch.

Paul

It can't be done with a single switch, as there are more than 2 states.

Manual on
Manual off
Automatic.

Yeah I understand the physical switch takes precedence over the automatic. First iteration wanted to get the basic scenario somewhat working.

To make the fail-back scenario working (no battery) AND
To be able for the Arduino to turn OFF the light even when the manual switch is ON
... is something I wanted to think about and research ... if there is a straightforward way to do..

Then you'll need a latching relay and arrange for both Arduino and external switches to trigger it in each direction.

Not 100% sure how to wire it so it works 100% as I want it.

If I connect the relay in this way:
NC -> switch -> light
NO -> light

Then if

  • Switch is ON
  • Relay is ON (power flowing through the Normally Open)
    Then if I turn OFF the switch it won't have an effect since the relay is ON
    Wonder if there is a way to write it that will allow the switch to function even if the relay is out of power.

....

Basically if I imagine a normal mechanical switch, like the one you use to run on/off the lights, is there one like that but with 2 electromagnets that can pulse turn the mechanical switch ON or OFF. Something like this will very simply solve the scenario 100% with all edge cases for me. If there is such a device I would love to know. Or maybe there is a type of a relay that can do this (note no power mode) that I don't know about?

  • can work with no power
  • can turn on/off using the mechanical switch
  • arduino can change the switch at the proper times too

Why are you imagining a latching relay - they are standard components.

Yeah have been looking around at latching relays after your initial comment MarkT but unable to find or think of how to write it in a combination with a switch... so that the switch is functional even when the arduino controlling the relay has no power/battery...