FREE Shipping on all orders over $99 & LIMITED TIME USE CODE "NEW" FOR 10% OFF

Sonoff Basic R2 DIY Smart Plug

Sonoff Basic R2 DIY Smart Plug

Demo: 

VIDEO NOTES:
The Sonoff Basic Smart Plug is a Cheap DIY Smart Home device that I show you how to make which means there will be 4 videos, Demo, Hardware, Software, and Deploy.
This is the first video the Demo Video where I am going to:
- Explain what this Sonoff Basic Smart Plug is 
- How the device works and details about it
- Different Use cases for the device
- Show every possible way you can control the device, there are a lot
The Sonoff Basic Smart Plug is basically a device where you can turn on and off anything you plug into it. 
Alexa, turn on christmas light 1 
But, what is good about this device is that I have made it water resistant so it is perfect for the outdoors. I am going to use this device to control the christmas lights in front of my house.
But you can use it indoors as well, it all depends on what extension cord/ cable you use, if outdoor can use outdoor
Another useful feature of this device is you can choose any male and female end you want. 
Show How one has 3 plugs and another just one
So what are some use cases for the device:
Outdoor Christmas Lights
Indoor Christmas Lights
Christmas tree
Outdoor lights
Indoor lights/ lamps
Tv power
Certain coffee machines
Charging Stations
Possibilities are endless
Tour around the device show all the different parts
For your convenience at mksmarthouse.com/shop you can pick up a kit with everything you need to make this device except for the extension cord part. I will leave a link in the description to different extension cord options to use with it.
 I don’t include the extension cord for 2 reasons: 
I ship world wide
So you can choose any type of end you want
You can pick up a kit at mksmarthouse.com/shop link is in description
I don’t have to many available so if you want one do not wait because they could be gone.
I also have an assembled option where I put everything together for you all you have to do is connect your extension cord ends
There is also an option regardless of assembled or not where I can flash it with tasmota for you.
If you pick up a kit you can follow along with the videos. Again go to mksmarthouse.com/shop oh yea I have fast USA shipping.
Speaking of links follow @mksmarthouse
Let me show you the device in action and every way you can control it. But the ways you control it depend on the firmware you have on the device.
You can either keep the stock firmware that comes with the Sonoff Basic or you can do my favorite which is flash it with tasmota.
With either firmware you can control the device with:
Amazon echo
Google home
If you keep the stock firmware you can also control it with the:
eWelink app
If you flash with Tasmota Firmware you can also control the device with:
Home Assistant
OpenHAB
Homekit/Siri
As you can see can control from the most with Tasmota Firmware.
Tasmota connects to Home Assistant and OpenHAB using MQTT
If you want to make this device pick up a kit at mksmarthouse.com/shop
This device uses high voltage proceed with caution, also be mindful of what you plug into the device because there is a maximum of how much power it can handle. Read the sonoff box it comes with for more information.

Sonoff Basic R2 DIY Smart Plug

Hardware:

The Sonoff Basic Smart Plug is a Cheap DIY Smart Home device that I show you how to make which means there will be 4 videos, Demo, Hardware, Software, and Deploy.
 
This is the second video the Hardware Video where I am going to show you all the parts need to make this and how to assemble it together.
 
But basically if you didn’t know, the Sonoff Basic Smart Plug is a device where you can turn on and off anything you plug into it. It works with Home Assistant, OpenHAB, Siri, Amazon Echo, and google home. For more info and to see it in action check out the demo video, in the card in the top right.
 
The brains of this device is a sonoff basic R2, which is a very popular device in the smart home community.
 
Another popular company in the diy smart home electronics community is PCBWAY.
 
So, what parts does this device use?
 
1 Sonoff Basic R2 / which is the main core of the device, 
 
a 4 Pin Female Header / so we can flash it with tasmota firmware,
 
2 Cable Wire Gland with nuts / securely hold cable and waterproof 
 
2 Cable Wire Gland O-Ring / water proof in between case
 
1 Waterproof Enclosure / so no water gets in 
 
1 Blue LED Button with O-ring / manually turn on and off relay
 
6 inches of BRGB Wire / connect button to sonoff
 
1 Wire Connector / bridge the 2 ground wires
 
Optional: Fuse 
What tools are we going to use?
Drill
7/16 and 11/16 spade bits or 12mm and 18mm for you all metric people
3 - 4mm drill bit
Tape
Black Permanent Marker
Solder
Solder Iron
Helping Hands
PCB Holder
Ruler
Razor or deburring tool
 
Links to all parts and tools are on my website link in description, but For your convenience at mksmarthouse.com/shop you can pick up a kit with everything you need to make this device except for the extension cord part. I will leave a link in the description to different extension cord options to use with it.
 
 I don’t include the extension cord for 2 reasons: 
I ship worldwide yes i ship to your country
So you can choose any type of end you want
 
I don’t have to many available so if you want one do not wait because they could be gone.
 
I also have an assembled option where I basically do everything I show you in this video, so you can skip this whole process all you have to do is connect your extension cord ends and can start using it
 
There is also an option regardless of assembled or not where I can flash it with tasmota for you.
 
If you pick up a kit you can follow along with the videos. Again go to mksmarthouse.com/shop oh yea I have fast USA shipping.
 
Speaking of links follow @mksmarthouse
 
Alright let's get into assembly
 
Remove 2 screws and empty enclosure
Insert gasket and cut to length
Tape both sides of box
Tape Lid
On the enclosure Draw a line 26 mm from the side on both sides
On the enclosure Draw a dot 17mm from the bottom on both sides
On the lid Draw a line 19mm from side
On the lid Draw dot 49mm from bottom
Drill 3-4mm pilot holes on intersection of both lid and bottom
Use 11/16 spade bit on sides (Drill on reverse and slow)
Use 7/16 spade bit on top (Drill on reverse and slow)
Remove Tape
Use a razor or deburing tool and clean up the holes
Put O-Rings on the cable glands
Put in cable glands and secure with nut
Solder Wires to button Red -> + Black -> - and the other 2 don’t matter
Put o ring on button and put in lid and secure with nut
Take apart the sonoff to just the top part and drill two holes to make one big one
Thread wires in sonoff case
Solder 4 pin header
Solder Blue and green to button, Black to pin next to relay or GND, Red to pin next to header or 3.3v
If not flash sonoff then Close sonoff case and make sure button is pressable otherwise move the wires around if not
 
That's it the device is assembled. In the next video we will talk about the software.

Sonoff Basic R2 DIY Smart Plug

Deploy: 

 

Sonoff Basic R2 DIY Smart Plug

Links: 

Product Links:
Sonoff Basic R2: https://amzn.to/2E2xn1x
Cable Wire Gland O-Ring: https://amzn.to/2E2UERc
 
Tool Links:
Soldering Iron: http://amzn.to/2qwmYk7
ST7 Soldering Tip: http://amzn.to/2qpxjz5
Helping Hands: http://amzn.to/2pATfcy
Wire Strippers: http://amzn.to/2po3XCv
Wire Cutters: http://amzn.to/2oYsXN7
Small Flat Screw Driver: http://amzn.to/2pAHrXG
Spade Drill Bits: https://amzn.to/2RngHVu
PyFlasher:
If you are on mac click the latest dmg file and on windows click the latest exe file