DIY Smart Power Sockets

by Naran in Circuits > Remote Control

116112 Views, 590 Favorites, 0 Comments

DIY Smart Power Sockets

Smart Plug.gif

Why you should make your own smart sockets?

  • Because it’s fun and you’ll learn something new.
  • Because you’ll be able to automate your home and do lots of cool things with it.
  • Because it’s cheaper than commercial alternatives, especially if you want to own multiple ones. E.g. in our office we use 7 connected sockets. Buying those off the shelf would have cost us from $260 to $350 in total, yet we did it for less than $120 and each additional socket now will cost us $11 instead for $37-$50.

The recipe

1 Raspberry PI ($39)

For example from here.

1 Radio frequency (RF) transceiver for Raspberry PI ($3)

Like this one.

1 Prota OS which will control your switches. ($0*)

Download here.

3 (or more) RF switches. ($29 for 3)

We use Watts Clever in our office, but you have to contact the supplier for smaller quantities.
Some alternatives can be found here (EU plug) and here (US plug). Make sure to match the frequency of your switches and RF module.

Bread board and jumper wires.

Micro SD card to store Prota OS and apps.

Check If You Have Following Items.

DIY 1.jpg

You should have Raspberry Pi, SD card with installed Prota OS, wireless power socket (we used Watts Clever), breadboard, jumper wires, 315 MHz or 433 MHz RF module with antenna (learn how to make antenna yourself here).

Solder Antenna to the RF Module.

DIY 2.JPG
DIY 3.JPG

Connect RF Module to Raspberry PI Using a Bread Board and Jumper Wires.

DIY 4.JPG
GPIO pins.png

Connect as following:

RF module’s power to Raspberry PI pin #2.
VDD -> 5V (#2)

RF module’s ground to Raspberry PI pin #6.
GND -> Ground (#6)

RF modules data to Raspberry PI pin #16.
DATA -> GPIO23 (#16)

Turn Your Raspberry PI on and Connect to Your Wi-Fi Router.

DIY 6.JPG

Install Prota OS and Visit Http://myprota.me.

DIY 7.png

Install ON/OFF App From the App Repository.

DIY 8.png

Just Click the Install Button.

DIY 9.png

Go Back to Shell and Open the ON/OFF App. Then Click to Add Socket.

DIY 10.png

Name Your Socket.

DIY 11.png

To Discover Your Socket Press and Hold on the Button Until the LED Indicator Starts Blinking.

DIY 12.JPG

When the Blinking Stops It Means That Your Socket Has Been Discovered. Click Remember.

DIY socket discovery.png

Now You Can Turn on and Off From Any Browser. Prota OS Supports Remote Access So You Can Control Your Appliances Even When You Are Outside of Your Home Network.

DIY 13.png

We Recommend Making a Shortcut on Your Smartphone’s Home Screen.

DIY 14.PNG

If You Wish You Can Make Advance Automation Stories. E.g. Add a Bluetooth Module and Install RFID App. Then You Can Set Prota to Turn on Your Socket When You Are Present in the Room and Turn It Off When You Leave.

DIY 17.png

Test Your Smart Socket and You Can Always Add More.

DIY 16.JPG

Enjoy!

We hope this was helpful. If you have any questions drop us a line or contact on Facebook or Twitter.

You like our projects? Make your own!

We are currently (and until July 30) running a maker contest. Show us the creative projects you can do with Prota OS and win awesome prizes!

More info here - https://support.prota.info/hc/en-us/community/top...