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
-
💬 MDMSNode "Power"
OpenHardware.io • 22 Mar 2017, 20:15 • openhardware.io 5 Oct 2017, 16:07 -
[SOLVED] Multiple devices demonstrating erratic behavior
Troubleshooting • 3 Jan 2015, 21:57 • thermistor1 4 Jan 2015, 20:52 -
Home Assistant v 0.11.1 with switch support
Home Assistant • 17 Jan 2016, 06:22 • martinhjelmare 29 Jan 2016, 04:11 -
💬 MDMSNode "Lighting X3" (based on ESP8266)
OpenHardware.io • 4 Jun 2020, 12:20 • openhardware.io 20 Jul 2020, 16:03 -
💬 Wall Socket Insertable Node
OpenHardware.io • 22 May 2016, 20:08 • openhardware.io 28 Jan 2018, 14:54 -
Send RelayActuator state back to gateway
Development • 12 Jan 2017, 19:16 • nicomedia 13 Jan 2017, 13:28 -
💬 Wireless Touch Switch: Triac Model - (For Livolo crystals)
OpenHardware.io • 30 Jan 2018, 21:04 • openhardware.io 3 Mar 2018, 17:03 -
relays
Hardware • 12 Jun 2017, 19:39 • CrankyCoder 13 Jun 2017, 15:54