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
-
💬 Wall Switch Insertable Node
OpenHardware.io • 22 May 2016, 20:08 • openhardware.io 16 Apr 2018, 19:52 -
💬 24V Relay drive board
OpenHardware.io • 5 Jun 2019, 19:24 • openhardware.io 5 Jun 2019, 19:24 -
Relays and Scene Controller on same Node v1.4
My Project • 28 Aug 2014, 19:30 • Dalhoj 29 Aug 2014, 09:47 -
In wall LCD Switch/Scene controller for MySensors
OpenHardware.io • 30 Jan 2016, 10:37 • openhardware.io 28 Feb 2017, 15:17 -
💬 Universal Inputs Modbus Module
OpenHardware.io • 23 Feb 2021, 00:30 • openhardware.io 23 Feb 2021, 13:51 -
Smart Light Switch 220v
OpenHardware.io • 23 Apr 2016, 01:02 • openhardware.io 3 Mar 2017, 11:20 -
💬 SPDT 12VDC 10A Relay Module
OpenHardware.io • 21 Mar 2020, 08:02 • openhardware.io 21 Mar 2020, 08:02 -
💬 NModule Two buttons capacitive touch switch shield
OpenHardware.io • 29 May 2017, 18:33 • openhardware.io 7 Jun 2017, 13:07