16

I have a lot of IoT devices that I am currently working on (read playing with). One of my biggest headaches is turning on the ones I need without climbing under my desk and plugging in a lot of wires. I looked at IoT controlled power switches but that is going to get very expensive very fast for a large number of distributed devices (really, a $20 power switch for a $5 micro computer?). Obviously once they are deployed in large numbers (~100 at a site) the desk climbing will no longer be an option.

I would also like to be able to turn them on (from fully off) from anywhere that there is internet. We can safely assume that most will turn on when power is restored.

Hopefully, someone has a better solution than mine.

  • Rather than buying some electronic component for 20$, you could just employ the stupid simple, yet oddly satisfying power outlet switch with a motor taped to it. – 10 Replies Dec 7 '16 at 13:37
  • @10Replies I had similar thoughts but I am unsure about about 1. Reliability (I have found power strips to be a bit dodgy when you flip the switch on and immediately have a bunch of devices draw power) and 2. Scaling, the motor + power switch works well for a single switch but now imagine a large number of devices spread out. – AstroDan Dec 7 '16 at 13:47
  • 1
    Can you explain why these devices require power up sequencing? Sounds like a software/reliability issue more than anything else - or a made-up question... – Sean Houlihane Dec 7 '16 at 14:00
  • 1
    Why do you need to turn them on? The only reason you need to turn them on is because you have turned them off. So if you don't turn them off you won't need to turn them on. Obviously this means you need to configure them to default to on when power is restored after a failure. – Code Gorilla Dec 7 '16 at 14:51
  • 2
    How about wake-on-LAN? – v7d8dpo4 Dec 8 '16 at 8:41
17

In as much as there is a 'standard' solution I suspect it's going to look like a Wi-Fi enabled microcontroller attached to a relay or MOSFET. Something somewhere has to be on 24/7 if you want round-the-clock control over your outlets.

I've made a bunch of internet controlled sockets using ESP8266 ESP-01S modules (not the ESP-01, which has less memory) and cheap Chinese relay boards. You need one relay per controlled device, but can add dozens of relays to each ESP-01S if you make use of something like the MCP23017 I2S port expander. As you're dealing with mains voltage you also need to factor in the costs of sensible enclosures. The ESP-01S serves up a basic web interface with on/off buttons that toggle the relays, which serve power up to your devices.

If you build them yourself (particularly if you sell them to other people), you are very likely, over time, to rack up production, support and maintenance costs a long way over the $20 per switch you mention in your question. If your only goal is to DIY the whole thing, rather than being cost effective, then this is how I'd approach it.

| improve this answer | |
  • 2
    I rather like this, the answer to any issue in IoT, more IoT! – AstroDan Dec 8 '16 at 12:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.