Hi-- I've been using Arduino since 2006 on the humble Atmega8. More recently I bought an off-grid cabin in the Adirondacks with internet access via the cellphone network. I needed a way to monitor it remotely -- and then, because I couldn't drive 100 miles when things were going badly, I needed remote control. So I built a system in PHP and Arduino to allow me to turn things on and off remotely at the cabin. An ESP8266 polls the server to see what values its pins should take. Those pins are run through a ULN2003A to 12volt (coil) relays. This allows me to turn circuits on and off without having to travel. Today I added automation, which will allow the server to decide to turn some circuits on and off. All my code is in Github, so check it out. Other than some egregious SQL injection possibilities, the code is pretty strong. See it here:
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.