Introduction: Smart Power Socket Control From Your Smartphone Via Bluetooth

Picture of Smart Power Socket Control From Your Smartphone Via Bluetooth

Smart power socket via Arduino, what could be easier. This power socket controll via Bluetooth, smartphone or tablet used.

Step 1:

Picture of

To implement the project, we used the following components:

- Arduino UNO or compatible board.

- Relay module 2 channels with 5V.

- AC-DC power supply miniature 12V, 0.15A.

- Bluetooth module HC-05.

- Power sockets 2 pcs. (external installation)

- Power plug with a wire.

All the components we have placed on the platform of the plate wooden board size 155x135 mm.

Step 2:

Picture of

Fixing all the components to the platform performed with screws and pre-drilled holes in the platform. Accommodation option parts you can see in the picture. Arduino board placed in such a way that would have easy access to a USB port for programming.

Step 3:

Picture of

The figure shows the connection diagram components. Bluetooth module is connected to pins 2 and 3 Arduino. For controlling of relay module used pins 4 and 5. The entire setup is powered from input high voltage through the power supply - a miniature AC-DC converter output 12V supply voltage. This voltage is supplied to the Arduino on pin Vin.

All high-voltage wiring is aluminum wire conductor diameter 1.2 mm. Be very cautious and careful when installing high-voltage wires!

Step 4:

Picture of

Use online editor RemoteXY for create graphical user interface. At the interface set two large switch. In the properties of the switch for one of them, select the property "pin connected" pin 4 for another pin 5. This will automatically receive a source code to manage pins with these switches. In the project settings, select the type of connection via Bluetooth module via SoftwareSerial.

Generate a project source code and upload it to the Arduino.

You can download the Arduino sketch.

RemoteXY library by link

Step 5:

Now you can use RemoteXY application for Android for connect to your device and control power sockets.


LampI1 (author)2015-12-03

i love this project thc :)

MuhammadB10 (author)2015-11-18

I try make this using arduino leonardo, HC-06 & 1 ch relay, but i have problem with the code..i had follow all the instruction but when i verify the code, it said error compiling " C:\Users\asdfghjkl\Documents\Arduino\libraries\REMOTEXY/RemoteXY_Serial.h:22: error: expected class-name before '{' token "

TioH (author)2015-09-19

How do i find the ac-dc like you using? i cant find it on the market

manip1 (author)2015-09-12

the relay is working properly but my fan is not switching on

ezinnor (author)2015-04-22

Nice project..I uploaded the project source code to my Arduino UNO but its showing error during compiling...what may be the problem, please guide...thanks

shevauto (author)ezinnor2015-04-23

Install RemoteXY library in your Arduino IDE

Patel Trushang (author)2015-04-16

your project is looking cool looks great but

RemoteXY library link this link is can not connected. give other link to download full sketch

diy_bloke (author)2015-03-27

looks great.
What you could consider is to not use relays, but a 433 MHz transmitter with some dirt cheap remote switches. That way you can add a number of switched outlets that dont have to be next to eachother.
Nevertheless a great project

shevauto (author)diy_bloke2015-03-27

You can use several such smart power sockets via Bluetooth in different parts of house, and control it via smartphone.

diy_bloke (author)shevauto2015-03-28

indeed u can, but then need an arduino per socket, but yes is possible

wewnamansaki26 (author)2015-03-28

nice.good job. ^_^ more.more.more

gada888 (author)2015-03-26

The AC-DC converter output 12V supply voltage connected through VIN of UNO.How much current is from 12V source.too much current may break the limitation of UNO.There is a AC-DC 220-5V,is it also OK?

shevauto (author)gada8882015-03-26

For Arduino UNO (by link

Input Voltage (recommended): 7-12V

Input Voltage (limits): 6-20V

ibenkos (author)2015-03-26

This is awesome! Nice idea, thanks for sharing :)

mistaproper (author)2015-03-26

очень круто

fcfelix (author)2015-03-26

Very nice. Was planning something like this. You saved me all the trouble with finding the documentation.

About This Instructable




More by shevauto:Smart power socket control from your smartphone via BluetoothTemperature sensor output values on Android smartphoneArduino cardboard robot is controlled from smartphone via bluetooth
Add instructable to: