Smart Power Strip Revived with Raspberry Pi

We’re all for buying broken stuff from eBay to save yourself a few bucks: buy it cheap, fix it, and reap the rewards of being a step ahead of the average consumer. Searching through the “For parts or not working” categories is nearly the official pastime here at the Hackaday Bunker. But buying an eBay find only to have it give up the ghost in a couple weeks? That hurts.

That’s precisely what happened to [idaresiwins] when he bought this beefy looking “Web Power Switch” on the Electronic Bay. After two weeks, the controller board blew and his “smart” power strip became very stupid indeed. But with the addition of a Raspberry Pi, he’s got it back up and running. Not only that, but given the extra horsepower this device now contains, it now doubles as a basic server for the home lab.

This conversion was helped by the fact that the original controller was on a separate board from the relays, and connected with a small ribbon cable. All [idaresiwins] had to do was figure out which wire in the cable went to each of the eight relays, and fire them off with the Pi’s GPIO pins. In an interesting detail, he opened up one of the ends of the ribbon cable and used it as a punch down block of sorts to easily hook the wires up to the Pi’s pins. We might suggest some hot glue to keep everything from moving around, but otherwise it’s a neat tip.

[idaresiwins] found some information online about making a web-based GPIO interface, which he adapted to control the outlets on the power strip. He then wrapped the Pi up in plastic to keep it from shorting out, and tucked it inside the case. Note that he was able to pull 5 VDC from the relay board and run it to the Pi over the ribbon cable, so he didn’t need to bother with hacking a USB adapter in there.

Controlling AC devices over the Interwebs is an extremely popular project, and we’ve even seen a DIY device that looks quite similar to this product. Most of them are now using the ESP8266, but with the Pi onboard this hack is more like a super-sized version of the PowerPwn.

18 thoughts on “Smart Power Strip Revived with Raspberry Pi

    1. Ubiquity mPower does just that, every outlet has current and voltage measurement so you can see on web interface or SSH terminal how much power each outlet uses. Very convenient to check if everyting is plugged properly and working.

      1. I thought the mpower is basically abandoned at this point?
        I started looking into the mfi gear and while it appears to still be sold (kinda) it isnt really supported anymore by Ubiquiti.

        I would be thrilled to be wrong by the way, because I want to buy into the ecosystem. mpower looks like some pretty convenient gear, as well as the mfi power monitoring.

      1. Doh, in my eastern european part of the world eBay is virtually synonymous with cheap stuff from China, but I shouldn’t have assumed that here. My bad, please disregard the “Chinese” from my wise-ass comment.

    1. Definitely not the only one. A few years ago the company I worked for bought 10 USB to 8 port RS-232 adapters. Each needed 12V power but to support this internationally they shipped each device with 4 different wall warts with various AC plug ends. We of course only needed one for each which meant we had 3 wall warts that went from 120-240VAC 50-60Hz to 12VDC for each of the 10 adapters we bought. Electrically they are all the same and just had a different plug molded on. Instead of throwing them out I took them for projects and will likely never need another 12V adapter. 5V on the other hand I’m always short on.

  1. 0. someone else also noted – the MOV es no buenos. At least sleeve that evil little thing in something rated V-0.
    1. ground bond from ac mains cord es muy mal.
    2. ground bounds for the AC receptacles tambien es muy malo.
    3. the CB does not have an adequate rating per the standards that would be in the scope to this equipment (60950-1,62368-1, 60083, 60884-x,61643-x, and UL1363).

    References
    1. IEC/UL60950-1, annex Q
    2. IEC61051-2
    3. UL1449
    4. IEC/UL62368-1, clause 5.5.2.8, annex G
    5. comments on surge protective devices in IEC TC108 interpretation sheet, Doc No 441
    6. NEC (NFPA70) article 250 – look at the expected impedances for a building’s grounding conductors. These impedances are generally worse in the EU, and in particular can be horrendous in the UK and Italy. Which is why the internal connection of the green wire to ac mains-connected equipment is important to do correctly.
    6. 29CFR1910.303(b)(2) – OSHA regulation for workplace stuff that would apply to this.

  2. If you’re into Alexa control – you could use mewo ( a nodejs implementation of Belkin’s wemo protocol) to control the gpios/the connected sockets. I use mewo to do HDMI CEC control on my TV. It’s been very reliable (over 2 years), as long as you pre-configure a port for each device, instead of letting it auto-assign them.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

w

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.