CONTROL YOUR HOME LIGHTING WITH ANDROID

8,500

39

6

Introduction: CONTROL YOUR HOME LIGHTING WITH ANDROID

Tecnology progressing is so fast. Now smartphone not just used as a communication, but smartphone can be used to control your home lighting. In this intruction we will see how to use Arduino control lights of your home.

To make this project, we will need :

Hardware

1. Arduino UNO

2. Relay Module

3. Bluetooth Module

4. Smarthphone

5. LED

6. Cable

7. Plug

8. Fitting Lamp

Software

1. Arduino IDE

2. Bluetooth Controller

How to work?

Step 1: Connecting Module Bluetooth With Arduino

1. Connect VCC with 3.3 volt of Arduino

2. Connect GND with GND of Arduino

3. Connect Rx pin with Tx of Arduino

4. Connect Tx pin with Rx of Arduino

Step 2: Connecting Relay With Arduino

1. Connect VCC with VCC 5V of Arduino

2. Connect GND with GND of Arduino

3. Connect port in with pin 10 of Arduino

Step 3: Connecting Relay With Lamp

1. Connect port Common of Relay with AC Voltage source

2. Connect port NO of Relay with lamp

Step 4: Control Lamp (On/Off) Used Arduino Serial Monitor

#include <Bluetooth_HC05.h>

int state;

int flag=0;

int stateStop=0;

void setup() {

pinMode(10, OUTPUT);

Serial.begin(9600);

}

void loop() {

if(Serial.available() > 0)

{

state = Serial.read();

flag=0; if (state == 'A')

{

digitalWrite(10, LOW);

}

if (state == '1')

{

digitalWrite(10, HIGH);

}

if (state == '2')

{

digitalWrite(10, LOW);

}

}

}

Step 5: Connecting HC-05 Bluetooth Module With Smartphone

1. Arduino must be On condition

2. Download “Bluetooth Controller” app from Play Store

3. Open “Bluetooth Controller” app

4. Choose “HC-05” and enter code ”1234/0000”

5. After connected tap “set keys” and content keyname

Example : Lamp ON / Lamp OFF

Then content of key data as the program

Step 6: ON / OFF Lamp With Smartphone

If we want to ON tap key Lamp ON and if we want OFF we can tap Lamp OFF smartphone.

1 Person Made This Project!

Recommendations

  • Make it Glow Contest

    Make it Glow Contest
  • First Time Author Contest

    First Time Author Contest
  • PCB Challenge

    PCB Challenge

6 Discussions

0
Yeboah Bismark
Yeboah Bismark

5 months ago

Please how do I modify a ROOMLIGHT CONTROLLER with person counter and phone or remote control

0
eshwar_m
eshwar_m

3 years ago

Kindly share the link for the Bluetooth Controller app

0
rmtorres26
rmtorres26

3 years ago

Nice design! That would very helpful to control lights, motor etc remotely.

0
aballest
aballest

3 years ago

this could be used to open a garage door from the car with the mobile!

great idea, thanks!

0
Swansong
Swansong

3 years ago

That would be really convenient, then I could turn the lights off after I go to bed instead of going through the dark. :)