Bluetooth Controlled Power Outlets ( Using Arduino )

by Mr-DIY in Circuits > Arduino

9430 Views, 53 Favorites, 0 Comments

Bluetooth Controlled Power Outlets ( Using Arduino )

Bluetooth Controlled Power Outlets
3.jpg

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

You Need :

11021b-00.jpg
sku_265936_2.jpg
VUPN5926-1.jpg
13175electric_wires.jpg
electric-outlet-hi.png

1- Arduino

2- Bluetooth Module

3- Relay Module

4- Power Adapter (For Arduino)

5- ON/OFF Switch (Optional)

6- Wires

7- Outlets

Schematic :

2-chnnel-arduino.jpg
Untitled.png

Follow the schematics above to make the connections

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;

}

}

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