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 :

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 :

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