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
-
Relay with Actuator issues
Troubleshooting • 16 Sept 2016, 21:03 • Samuel235 17 Sept 2016, 07:16 -
💬 ESP Power Strip
OpenHardware.io • 23 Apr 2017, 17:37 • openhardware.io 23 Apr 2017, 17:37 -
relays
Hardware • 12 Jun 2017, 19:39 • CrankyCoder 13 Jun 2017, 15:54 -
💬 Wall Switch Insertable Node
OpenHardware.io • 22 May 2016, 20:08 • openhardware.io 16 Apr 2018, 19:52 -
Relay / Motion Multisensor
My Project • 30 Jan 2015, 12:26 • Dalhoj 15 Mar 2017, 11:01 -
Home Assistant v 0.13.1
Home Assistant • 13 Feb 2016, 21:36 • martinhjelmare 19 Apr 2016, 22:51 -
Relay actuator sketch - auto off function
Development • 5 Dec 2014, 02:45 • niccodemi 11 Sept 2015, 15:27