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
-
💬 Battery powered glass touch switch
OpenHardware.io • 31 May 2017, 18:57 • openhardware.io 20 Nov 2018, 07:44 -
💬 Roller Shutter Node
OpenHardware.io • 27 Jan 2016, 08:41 • openhardware.io 21 Feb 2019, 12:06 -
Smart Light Switch 220v
OpenHardware.io • 23 Apr 2016, 01:02 • openhardware.io 3 Mar 2017, 11:20 -
Relay / Motion Multisensor
My Project • 30 Jan 2015, 12:26 • Dalhoj 15 Mar 2017, 11:01 -
Node are not receiving messages from domoticz
Domoticz • 17 May 2016, 20:35 • davy39 19 May 2016, 09:35 -
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
💬 RFM69 - 8 relays board
OpenHardware.io • 24 Jan 2017, 13:33 • openhardware.io 24 Jan 2017, 13:33 -
My first working Switch with Battery and Temperature ..
My Project • 29 Nov 2014, 17:12 • dzairo 30 Nov 2014, 18:43