Bluetooth Controlled Power Outlets ( Using Arduino )

7,077

54

2

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

Share

    Recommendations

    • Make it Glow Contest 2018

      Make it Glow Contest 2018
    • Plastics Contest

      Plastics Contest
    • Optics Contest

      Optics Contest

    2 Discussions

    0
    None
    SachinK21

    2 years ago

    what are the specifications of all components used in the project

    0
    None
    AniketR2

    3 years ago on Introduction

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