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
-
Relays and Scene Controller on same Node v1.4
My Project • 28 Aug 2014, 19:30 • Dalhoj 29 Aug 2014, 09:47 -
Relay / Motion Multisensor
My Project • 30 Jan 2015, 12:26 • Dalhoj 15 Mar 2017, 11:01 -
relay actuator ...
Development • 27 Nov 2014, 18:37 • dzairo 30 Nov 2014, 18:29 -
💬 NModule
OpenHardware.io • 23 May 2017, 14:38 • openhardware.io 10 May 2020, 05:43 -
[SOLVED] Multiple devices demonstrating erratic behavior
Troubleshooting • 3 Jan 2015, 21:57 • thermistor1 4 Jan 2015, 20:52 -
32 I2C Relay
My Project • 29 Apr 2016, 15:34 • dzairo 29 Apr 2016, 15:34 -
💬 24V Relay drive board
OpenHardware.io • 5 Jun 2019, 19:24 • openhardware.io 5 Jun 2019, 19:24 -
Home Assistant v 0.12
Home Assistant • 30 Jan 2016, 13:57 • martinhjelmare 30 Jan 2016, 15:05