Relay commanding over a webpage with manual override
Posted: Thu Sep 01, 2016 10:04 am
I was looking at commanding a relay over a webpage for switching some lights on or off. There are many examples ready to make on the internet however in my humble opninion they all lacked something.
Imagine you are at work and want to switch your lights on or off. That is easily being done with the existing examples. However imagine at the same time there is someone at home who does not want the lights switched on or off.
That is why I made such a project with a manual override. In the end the guys at home decide if the lights should be on or off. Not the one in a remote location. However I made the switch so that the guy in the remote location got some feedback on the webpage so he knows if the lights are on or off and at the same time knows if anyone at home is overruling him.
At the same time I develloped a casing and 3D printed it.
Code was written in Lua.
All documentation schematics, breadboard layout and source code as well as STL files for the casing can be found on my weblog in this entry:
http://lucstechblog.blogspot.nl/2016/09/esp-relayserver.html
Have fun
Luc
Imagine you are at work and want to switch your lights on or off. That is easily being done with the existing examples. However imagine at the same time there is someone at home who does not want the lights switched on or off.
That is why I made such a project with a manual override. In the end the guys at home decide if the lights should be on or off. Not the one in a remote location. However I made the switch so that the guy in the remote location got some feedback on the webpage so he knows if the lights are on or off and at the same time knows if anyone at home is overruling him.
At the same time I develloped a casing and 3D printed it.
Code was written in Lua.
All documentation schematics, breadboard layout and source code as well as STL files for the casing can be found on my weblog in this entry:
http://lucstechblog.blogspot.nl/2016/09/esp-relayserver.html
Have fun
Luc