Introduction: Bluetooth Controlled Power Outlets ( Using Arduino )

You can control power outlets with your phone with the help of Arduino.

simply plug whatever you want to control in one of the outlets and use your smartphone to turn it ON/OFF

Step 1: You Need :

Picture of You Need :

1- Arduino

2- Bluetooth Module

3- Relay Module

4- Power Adapter (For Arduino)

5- ON/OFF Switch (Optional)

6- Wires

7- Outlets

Step 2: Schematic :

Picture of Schematic :

Follow the schematics above to make the connections

Step 3: Code :

char val;

#define RELAY1 8

#define RELAY2 9

void setup()

{

pinMode(RELAY1, OUTPUT);

pinMode(RELAY2, OUTPUT);

Serial.begin(9600);

}

void loop() {

if( Serial.available() )

{

val = Serial.read();

}

switch (val) {

case 'F':

digitalWrite(RELAY1,LOW);

break;

case 'B':

digitalWrite(RELAY1,HIGH);

break;

case 'L':

digitalWrite(RELAY2,LOW);

break;

case 'R':

digitalWrite(RELAY2,HIGH);

break;

}

}

Step 4: Test

The code was written specifically for this app

https://play.google.com/store/apps/details?id=brau...

If you use another app make sure to change the values in the code to meet the app values

If you have any questions leave a comment below :D

Comments

SachinK21 (author)2016-01-25

what are the specifications of all components used in the project

AniketR2 (author)2015-09-29

i want to use 6 power outlets and AdruDroid aap...plz help me out what changes i had to make?

About This Instructable

6,385views

55favorites

License:

Bio: I'm just a guy that LOVES to make stuff and turn any broken thing into something useful :D
More by Mr-DIY:Arduino Robot ( Kinda :D )Teabag RocketBluetooth Controlled Lock
Add instructable to: