The cloud switches are well known, they allow to control the pass or interruption of electric current from your cellphone or anywhere through the internet, but what happens when the local internet (the network in which the switch is connected) fails and the switch can not connect to the internet, then this sometimes can not work well, other than it could lose the current state of the switch (if it was on or off).
It is one of the major drawbacks that came to mind when designing a project using 1 relay and an Arduino connected to WiFi, because if the WiFi failed my device would be obsolete.
Then, I remembered the concept of commutation circuit (learned at school, high school), which is mostly used on stairs (2 floors), where it can be switched on and off, either up or down the ladder, independently.
So I thought it would be better to build a switch with Arduino (and a relay) but in commutation mode, next to a traditional switch, so in case the internet fails (and the Arduino can not communicate) the traditional switch could continue to operate normally.
And when connected you can work both well, for example you can turn on the physical switch, and turn off with the cloud (an Arduino pinout) without needing to know the current state of the switch (to change it). I hope you understand me, today I just got to operate the electronic part (cloud), during the week I will buy the electric part to be able to build my device with a focus at 220v and can be seen working in a real application (in my house).
Stay in touch.
- Arduino MKR1000 Level Conterter (for safe 3.3v use)
- Relay Driver (1 channel)
- Switch (3 way)
- 220v Bulb (and socket)
None, only a Widget for manage a digital output.
Part 1: How a Commutation Circuit works
Part 2: Relay and Arduino in Commutation Circuit
Videos are in Spanish, I'm working in adding English subtitles, please be patient.