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
-
Openhab 2 Mysensors smart chicken coop
My Project • 1 Mar 2017, 02:08 • Ticupolu 8 Mar 2017, 15:48 -
Home Assistant v 0.11.1 with switch support
Home Assistant • 17 Jan 2016, 06:22 • martinhjelmare 29 Jan 2016, 04:11 -
Smart Light Switch 220v
OpenHardware.io • 23 Apr 2016, 01:02 • openhardware.io 3 Mar 2017, 11:20 -
Itead RBoard and RMini Example Sketch
Development • 21 Nov 2015, 13:08 • Alphalove 21 Nov 2015, 15:03 -
💬 Roller Shutter Node
OpenHardware.io • 27 Jan 2016, 08:41 • openhardware.io 21 Feb 2019, 12:06 -
💬 Wireless Touch Switch: Triac Model - (For Livolo crystals)
OpenHardware.io • 30 Jan 2018, 21:04 • openhardware.io 3 Mar 2018, 17:03 -
Relay with Actuator issues
Troubleshooting • 16 Sept 2016, 21:03 • Samuel235 17 Sept 2016, 07:16