Relay with switch
-
Hi
Is it possible to connect simple relay to regular on/off wall switch?
Oded
-
You have to change some wiring if you have only a single wire availble in the switch box.
Have you checked the Relay project?
-
In the relay project the button is push button.
Can I use on/off switch with the same sketch?
-
I think you just need to change this line:
if (value != oldValue && value==0) {
to
if (value != oldValue) {
And wire the original switch , in order to short GND and pin 3. The original wires now go to the relay (and not more to the switch).
You need to somehow power arduino + radio + relay , I use cheap phone chargers but the risk of fire is too high. We are testing other alternatives here.
And please be careful when working with AC Mains! It is letal!
-
Thanks for this input, please can you share which kind of relay i have to use ?
Suggested Topics
-
💬 RFM69 2 relay board
OpenHardware.io • 24 Jan 2017, 13:18 • openhardware.io 28 Jan 2018, 12:49 -
💬 Livolo 3 buttons US/AU switch adapter
OpenHardware.io • 18 Mar 2017, 13:24 • openhardware.io 5 May 2018, 05:54 -
💬 RFM69 - 8 relays board
OpenHardware.io • 24 Jan 2017, 13:33 • openhardware.io 24 Jan 2017, 13:33 -
Send RelayActuator state back to gateway
Development • 12 Jan 2017, 19:16 • nicomedia 13 Jan 2017, 13:28 -
💬 MDMSNode "Lighting X2"
OpenHardware.io • 29 May 2017, 07:56 • openhardware.io 27 Apr 2019, 08:23 -
💬 No neutral power supply/relay board for in wall switch
OpenHardware.io • 21 Dec 2019, 12:50 • openhardware.io 7 May 2020, 17:32 -
In wall light switch node - Custom PCB
Hardware • 4 Dec 2015, 09:05 • Samuel235 27 Feb 2017, 21:12