Project showcase
Both Physical & Cloud Cayenne Lights Switch

Both Physical & Cloud Cayenne Lights Switch © MIT

The cloud switches are well known, but what happens when the local internet fails and the switch cannot connect to the internet?

  • 943 views
  • 0 comments
  • 5 respects

Components and supplies

Apps and online services

About this project

Cloud Switches

The cloud switches are well known, they allow you to control the pass or interruption of electric current from your cellphone or anywhere through the internet. What happens when the local internet (the network in which the switch is connected) fails and the switch cannot connect to the internet. This sometimes cannot 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 a commutation circuit (learned at 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.

Switch using Arduino

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 cannot communicate) the traditional switch could continue to operate normally.

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).

What's Connected

  • Arduino MKR1000
  • Level Converter (for safe 3.3v use)
  • Relay Driver (1 channel)
  • Switch (3 way) Cable 220v Bulb (and socket)

Triggers & Alerts

None, only a Widget for managing a digital output.

Dashboard Screenshots

Photos of the Project

Video

Part 1: How a Commutation Circuit Works

Part 2: Relay and Arduino in Commutation Circuit

Schematics

Commutation Diagram
D155039263a56705885829fe7e526fa1 8herz1ukyj

Comments

Similar projects you might like

Both Physical & Cloud Cayenne Switch

Project showcase by laurencehr

  • 538 views
  • 0 comments
  • 4 respects

IoT Smart Socket Arduino And Cayenne

Project tutorial by Giovanni Gentile

  • 1,493 views
  • 0 comments
  • 5 respects

Christmas Tree Water Level via Cayenne and MKR1000

Project showcase by Ian Zahn

  • 2,002 views
  • 0 comments
  • 2 respects

Feel the Heat with Arduino and Cayenne

Project showcase by PauliusPlus

  • 4,802 views
  • 3 comments
  • 22 respects

Dog Treat Dispenser Using Cayenne

Project showcase by Isaac Koczwara

  • 2,887 views
  • 3 comments
  • 12 respects

MKR1000 Christmas IoTree with Cayenne Project Builder

Project tutorial by Benny Estes

  • 2,905 views
  • 3 comments
  • 9 respects
Add projectSign up / Login