Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 14

Home

Automation
Using
Arduino
and
Bluetooth Control
ABOUT THE PROJECT
In today's era, technology can enhance human life.
Technology is evolving decade by decade. Automation was a science
fiction earlier but not today. By combining latest technology with home,
we can build an awesome home. With the Arduino uno and Windows
10, we can build a home automation system that is capable of operating
home devices automatically.

Home automation is use for controlling home appliances with you


smart phone. Instead of using mechanical switches, you can now conveniently
control all the devices in your home from your fingertips. The core hardware is
rather simple and only consists of an Arduino microcontroller kit, a Bluetooth
wireless module, and a relay.
COMPONENTS REQUIRED
ARDUINO UNO
RELAY MODULE
HC-05 BLUETOOTH MODULE
LAMP
BREADBOARD
JUMPER WIRE
ARDUINO BLUECONTROL APP
FANS
LIGHT HOLDERS
SUCKETS
Arduino uno

An Arduino is actually a microcontroller


based kit which can be either used directly by
purchasing from the vendor or can be made at home
using the components, owing to its open source
hardware feature. It is basically used in
communications and in controlling or operating many
devices. It was founded by Massimo Banzi and David
Cuartielles in 2005
Arduino’s processor basically uses the Harvard
architecture where the program code and program
data have separate memory. It consists of two
memories- Program memory and the data
memory.The code is stored in the flash program
memory, whereas the data is stored in the data
memory. The Atmega328 has 32 KB of flash memory
for storing code (of which 0.5 KB is used for the
5V Relay Module Working
Relay is one kind of
The relay uses the current
electro-mechanical com supply for opening or closing
ponent switch contacts. Usually, this
that functions as a can be done through a coil to
switch. The relay coil is magnetize the switch contacts
energized by DC so that & drags them jointly once
contact switches can be activated. A spring drives them
separately once the coil is not
opened or closed. A strengthened.
single channel 5V relay By using this system, there are
module generally mainly two benefits, the first
includes a coil, and two one is, the required current for
contacts like normally activating the relay is less as
compared to the current used
open (NO) and by relay contacts for switching.
normally closed (NC). The other benefit is, both the
This article discusses an contacts & the coil are isolated
overview of the 5V galvanically, which means there
relay module & its is no electrical connection
HC-05 Bluetooth module
The HC-05 is a popular module which can add two-way
(full-duplex) wireless functionality to your projects. You
can use this module to communicate between two
microcontrollers like Arduino or communicate with any
device with Bluetooth functionality like a Phone or Laptop.
There are many android applications that are already
available which makes this process a lot easier. The module
communicates with the help of USART at 9600 baud rate
hence it is easy to interface with any microcontroller that
supports USART. We can also configure the default values
of the module by using the command mode. So if you
looking for a Wireless module that could transfer data from
your computer or mobile phone to microcontroller or vice
versa then this module might be the right choice for you.
However do not expect this module to transfer multimedia
like photos or songs; you might have to look into the
CSR8645 module for that.
Connection Diagram of Bluetooth Controlled Home Automation
Project
CODE FOR HOME AUTOMATION :
lcd.clear();
#include <LiquidCrystal.h> lcd.setCursor(0,0);
char val; lcd.print(" D1 D2 D3 ");
String voice; lcd.setCursor(0,1);
LiquidCrystal lcd(8, 9, 10, 11, 12, 13); lcd.print(“ OFF OFF OFF ");
}
void setup() { void loop() {

Serial.begin(9600); if(Serial.available()){
pinMode(3,OUTPUT); //SOCKET val = Serial.read();
pinMode(4,OUTPUT); //FAN Serial.println(val);
pinMode(5,OUTPUT); //LIGHT }
lcd.begin(16, 2); if(val=='1'){
lcd.setCursor(0,0); digitalWrite(3,HIGH);
lcd.print("WELCOME TO"); lcd.setCursor(0,1);
lcd.setCursor(0,1); lcd.print(“ ON ");
lcd.print("HOME AUTOMATION"); delay(200);
delay(10000); }
else if(val=='2’)
{
if(val=='5’)
digitalWrite(3,LOW);
{
lcd.setCursor(0,1);
digitalWrite(5,HIGH);
lcd.print("OFF");
lcd.setCursor(9,1);
delay(200);
lcd.print("ON");
delay(200);
}
if(val=='3'){
}
digitalWrite(4,HIGH);
else if(val=='6’)
lcd.setCursor(4,1);
{
lcd.print("ON ");
digitalWrite(5,LOW);
delay(200);
lcd.setCursor(9,1);
lcd.print("OFF");
}
delay(200);
else if(val=='4’)
{
}
digitalWrite(4,LOW);
lcd.setCursor(4,1);
lcd.print("OFF");
delay(100);
delay(200);
}
}
Demonstration
Make sure you choose the correct board and COM port before uploading your code to the
board. Go to Tools > Board and select Arduino UNO. Next, go to Tools > Port and select the
appropriate port through which your board is connected.

Click on the upload button to upload


the code to the board.
After you have uploaded your code to
the development board, open the
Bluetooth application and secure a
connection between the devices.
Now type an appropriate command and
the bulbs will light up in response.
The LCD will also display the current
state of the three bulbs.
THANK YOU
PRESENTED BY ;)
MANIKANTA GS
NITHIN KUMAR BV
AHMED
RAZAKHAN
KUSHAL GN
HEMANTH KUMAR
CN

You might also like