Bluetooth Controlled Power Outlets ( Using Arduino )

7,538

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

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

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

Be the First to Share

    Recommendations

    • Made with Math Contest

      Made with Math Contest
    • Multi-Discipline Contest

      Multi-Discipline Contest
    • Robotics Contest

      Robotics Contest

    2 Discussions

    0
    None
    SachinK21

    3 years ago

    what are the specifications of all components used in the project

    0
    None
    AniketR2

    4 years ago on Introduction

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