Internet Controlled Power Outlet

3,713

109

1

Posted

Introduction: Internet Controlled Power Outlet

In this instructable, I will show you how to make an internet connected powerbar.

*Warning:* This instructable deals with high voltage, I will not be held responsible for any potential injuries. Only do this project if you know what you are doing. Furthermore, Do not Plug any appliances that draw more that 5A, even if the relay is rated for 20A.

Step 1: Parts and Tools

Here are the parts and tools needed to make this project:

Parts:

5v relay

NPN transistor (I'm using a 2n2222)

Linkit ONE board with WiFi antenna (included with board)

Wire

1.5k Resistor (Brown Green Red Gold)

Diode

Extension cable

Male headers

Tools:

Soldering iron and solder

Computer with latest version of Arduino IDE and linkit one drivers

Step 2: Wiring

Here is the circuit diagram for the wiring.

You will also have to plug in the WiFi antenna into the uFL connector that says "WiFi/BT ant".

Step 3: Upload Test Code

Here is the test code. Download it, double click to open, then press upload. Open the serial monitor, and copy the first IP address, then paste it into an internet browser. Keep the IP address copied.

Step 4: Upload Final Code

Here is the final code. Double click to open, then press upload.

Step 5: Test...

To test the project, plug the board into your computer, and paste the IP address into a web browser. If it has Three buttons, everything is working. Thanks for viewing this project!

Share

    Recommendations

    • Microcontroller Contest

      Microcontroller Contest
    • Science of Cooking

      Science of Cooking
    • Spotless Contest

      Spotless Contest
    user

    We have a be nice policy.
    Please be positive and constructive.

    Tips

    Questions

    Comments

    Good project. I was with you until I saw the price of the linkit.. yikes..