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?

  • 1,066 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

Author

564184 3865556917397 1862217604 n
Laurence Daxes
  • 2 projects
  • 25 followers

Additional contributors

  • Send me the arduino mkr 100 by Cayenne Staff

Published on

May 23, 2017

Members who respect this project

Adambenz1061999De69a62a2b35333cd5fa834c6f202b80 qq25e5259b25be25e72589258720160323205203 uugfypsuzu

and 2 others

See similar projects
you might like

Similar projects you might like

Both Physical & Cloud Cayenne Switch

Project showcase by laurencehr

  • 647 views
  • 0 comments
  • 4 respects

IoT Smart Socket Arduino And Cayenne

Project tutorial by Giovanni Gentile

  • 1,676 views
  • 0 comments
  • 5 respects

Christmas Tree Water Level via Cayenne and MKR1000

Project showcase by Ian Zahn

  • 2,304 views
  • 0 comments
  • 4 respects

Control Lights with your Phone from Anywhere in the World!

Project showcase by Kaustubh Agarwal

  • 18,802 views
  • 4 comments
  • 40 respects

Huge LED Christmas Lights

Project showcase by Savva Osipov

  • 12,765 views
  • 2 comments
  • 36 respects

Traffic Lights Controlled by Arduino

Project showcase by lmsousa

  • 6,663 views
  • 2 comments
  • 19 respects
Add projectSign up / Login