You are on page 1of 44

NETTUR TECHNICAL TRAINING

FOUNDATION

WELCOM
E
Bluetooth controller home automation Page 1
VI SEMESTER
MAIN PROJECT
PRESENTATION

Bluetooth controller home automation Page 2


PROJECT TITLE:

BLUETOOTH
CONTROLLED
HOME AUTOMATON

Bluetooth controller home automation Page 3


PROJECT CO-ORDINATOR:
Mrs. Shwetha

PROJECT GUIDE:
Mr. Veera Raghavan

Bluetooth controller home automation Page 4


NETTUR TECHNICAL TRAINING FOUNDATION
DIPLOMA IN ELECTRONICS
NEC, BANGALORE
40/40A, ELECTRONIC CITY,HOSUR ROAD,BANGALORE
BONAFIDE CERTIFICATE

This is the certify that K Dhileep Kumar


(NEC0414044), N Narendra Gopi(NEC0414055),
L. Pavan Kalyan(NEC0414046), M Tirumala
Tejaswi(NEC0414052), P Avinash (NEC0414060)
has successfully completed the project “BLUETOOTH
CONTROLLER HOME AUTOMATION” towards partial
fulfillment of course DIPLOMA IN ELECTRONICS VI
SEM during January 2017-June 2017 at NTTF INDIA
PVT.LTD, BANGALORE.

Signature Signature
(Project Guide) (Project coordinator)

Signature Signature
(Academic In charge) (Principal)

Bluetooth controller home automation Page 5


Signature
(Examiner)

TEAM
GROUP-19

MEMBE
RS

LEADE
K. DHILEEP
R KUMAR
NEC0414044

Bluetooth controller home automation Page 6

L. PAVAN KALYAN M. T . TE
ACKNOWLEDGEME
NT
At the outset we express our deep gratitude to
NTTF training center Bangalore and its
management and also to those who have helped
us through the academic career and in completion
of our project successfully .
First and foremost we would like express our
sincere thanks to our beloved principal Mr.
GIRIDHARAN, Mr. SATTAR ACADEMIC
INCHARGE (CP04), for providing us to the
academic environment , which nurtured our
practical skills contributing to the success of our
project .
We express our sincere thanks to Mr . PALANI
KUMAR (Asst . Manager) who helped us in PCB
design and making chassis for the project and has
become one of motive force .
We are expressing our sincere thanks to
Mr.VEERA RAGHAVAN, the project guide of the
Bluetooth controller home automation Page 7
project “Bluetooth Controller Home Automation”,
Mrs. .SHEWTHA, the project coordinator us to
complete our project successfully .
Finally our sincere thanks to all teaching and non-
teaching staff of NEC-CENTRE for all the facilities
provided without which , we could not have been
progressed with our project work .

Bluetooth controller home automation Page 8


CONTENTS
 Acknowledgement
 Objective
 Introduction
 Block Diagram
 Explanation
 Circuit Diagram
 Description
 Bill Of Material
 PCB Layouts
 Applications
 Advantages &
Disadvantages
 Conclusion
Bluetooth controller home automation Page 9
OBJECTIVES :
 To design an efficient
Bluetooth control home
appliances . So it can be easy
to switch ON or switch OFF
any electronic appliances like
fan, lamp etc..

Bluetooth controller home automation Page 10


INTRODUCTI
ON
Although home
automation today is
not new thing but
most advanced home
automation systems
in existence today
require a big and
expensive change of
infrastructure .This
means that it often
is not feasible to
Bluetooth controller home automation Page 11
install a home
automation system in
an existing building
.HOMATIC is a
wireless home
automation
application
it can be
implemented in
existing home
environments,
without any changes
in the existing
infrastructure. It
Bluetooth controller home automation Page 12
can control
from his or her
android mobile
phone.

BLOCK
DIAGRAM
POWER SUPPLY

LCD
BLUETOOTH DISPLAY
MODULE
8051
MICRO_CO RELAY LOAD
Bluetooth controller home automation Page 13
NTROLLER
CRYSTAL
CIRCUIT

RELAY LOAD

Bluetooth controller home automation Page 14


POWER
SUPPLY CIRCUIT

Bluetooth controller home automation Page 15


DESCRIPTION :
TRANSFORMER
Transformer is static electromagnetic device
which transfer electrical energy from one circuit
to another circuit without change in frequency. A
Step-down transformer is one whose secondary
voltage is less than its primary voltage.
RECTIFIER
A rectifier is an electrical device that converts
alternating current (AC), to direct current (DC),
which flows in only one direction. The process is
known as rectification.
FILTERS
The output of a rectifier contains DC
components as well as AC component. Filters are
used to minimize the undesirable AC, i.e. ripple
leaving only the DC component to appear at the
output.

Bluetooth controller home automation Page 16


REGULATOR
A Voltage Regulator is an electronic circuit
that provides a stable DC voltage independent of
load current, temperature & AC line voltage
variations. It contains LM7812 fixed positive 12V
DC regulator. 78XX series are 3 terminal,
positive fixed voltage regulators. There are 7
output voltage options available such as 5, 6, 8,
12, 15, 18, 24V. In 78XX, the last two numbers
(XX) indicate the output voltage.

MODULE - 1

BLUETOOTH MODULE
Bluetooth is a wireless technology standard
for exchanging data over short distances (using
short-wavelength UHF radio waves in the ISM
band from 2.4 to 2.485 GHz[4]) from fixed and
mobile devices, and building personal area
networks (PANs). Invented by telecom
Bluetooth controller home automation Page 17
vendor Ericsson in 1994,[5] it was
originally conceived as a wireless alternative
toRS-232 data cables. It can connect several
devices, overcoming problems of
synchronization.
Bluetooth is managed by the Bluetooth
Special Interest Group (SIG), which has more
than 25,000 member companies in the areas of
telecommunication, computing, networking, and
consumer electronics.[6] The IEEE standardized
Bluetooth as IEEE 802.15.1, but no longer
maintains the standard. The Bluetooth SIG
oversees development of the specification,
manages the qualification program, and protects
the trademarks.[7] A manufacturer must make a
device meet Bluetooth SIG standards to market
it as a Bluetooth device.[8] A network
of patents apply to the technology, which are
licensed to individual qualifying devices

RELAY :
Bluetooth controller home automation Page 18
 A relay is an electrically operated switch.
 Relays are used where it is necessary to
control a circuit by a low power signal.
 Relays protect electrical circuits from
overload or faults.

CRYSTAL CIRCUIT :

A Crystal oscillator is an electronic oscillator


circuit that uses the mechanical resonance of a
crystal of pie-zo electric material to create an
electric signal with a precise frequency. This
frequency is commonly used to keep track of
time, as in quartz wrist watches, to provide a
stable clock signal for digital integrated circuits,
and to stabilize frequencies for radio transmitters
and receivers .

Bluetooth controller home automation Page 19


CIRCUIT DIAGRAM

Bluetooth controller home automation Page 20


Bluetooth controller home automation Page 21
DESCRIPTION

Bluetooth controller home automation Page 22


This project consists of a micro controller,16 x 2 alphanumeric
LCD ,two 5v relays ,a lamp , and Bluetooth module . Here
AT89c51 microcontroller is used . It is an 8-bit microcontroller
and it requires supply voltage of 5v DC . Use 7805 power
supply circuit to provide 5v DC to the micro controller . We
can use 9v DC battery or 12v,1A adapter to provide the power
supply to the circuit . For the above circuit additionally you
need to connect reset circuit and crystal circuit to the
controller to work properly .

In the above circuit LCD is used to indicate the status of


electrical loads and also used to display received data from
Bluetooth . Here LCD is interfaced to the PORT of the
microcontroller in 4 bit mode .

Bluetooth mode TX and RX pins are connected to the RXD


and TXD pins of controller . VCC pin is connected to the 5v
and GND is connected to ground . Controller communicates
with Bluetooth module using serial communication(UART
protocol) . Use a baud rate of 9600 to communicates with
Bluetooth . If you to change the Bluetooth name and
password then you to change Bluetooth AT command .

Bluetooth controller home automation Page 23


STEPS OF
WORKING:
• Write the program to the project in KEIL software
and create. hex file.
• Burn program to the controller with help of flash
magic.
• Now the connections as per the circuit diagram.
• While making the connections , ensure that there
is no any common connection between DC and AC
supplies.
• Use 5v power supply circuit to provide regulated
5v –dc to the microcontroller.
• Switch ON the both AC and DC supply.
• Now relay output pins gets 230v so do not touch
the load connected pins.
• Install Bluetooth APK file in android module.
• Send data to switch on the electrical loads.

Bluetooth controller home automation Page 24


PROGRAM :
#include <reg51.h> //Define 8051 Registers
#include<string.h>
#include <stdio.h> //Define I/O Functions
#define DATA P1 //Define DATA to Port2
sbit RS = P2^0; //Register Select
sbit RW = P2^1; //LCD Read/Write
sbit lcd_e = P2^2; //LCD Enable code
sbit fan = P0^3;
sbit light = P0^4;
void lcd_init(void);
void lcd_cmd(unsigned char);
void lcd_display(unsigned char );
void DelayMs(int );
void DelayMs(int k)
{

Bluetooth controller home automation Page 25


unsigned int a,i;
for(i=0;i<k;i++)
{
for(a=0;a<=1200;a++);
}
}
void lcd_init(void)
{
// unsigned char i;
lcd_cmd(0x38); //2x16 Character 5x7
DelayMs(15); //matrix LCD,4-bit format
lcd_cmd(0x0E);
DelayMs(15);
lcd_cmd(0x01); //Shift
DelayMs(15);
lcd_cmd(0x06);
DelayMs(15);
lcd_cmd(0x80);
DelayMs(15);
}
Bluetooth controller home automation Page 26
void lcd_cmd(unsigned char cmnd)
{
DATA = cmnd;//Masking lower 4 Bits
RS = 0;
RW = 0;
lcd_e = 1;
DelayMs(35);
lcd_e = 0;
}
void lcd_display(unsigned char dat)
{
DATA = dat; //Masking lower 4
RS = 1;
RW = 0;
lcd_e = 1;
DelayMs(35);
lcd_e = 0;
}
void main(void)
{
Bluetooth controller home automation Page 27
unsigned char mybyte;
int g;
unsigned char a[20]= "Bluetooth Controler";
unsigned char a1[20]= "Light_ON ";
unsigned char a2[20]= "Light_OFF ";
unsigned char b1[20]= "FAN_ON ";
unsigned char b2[20]= "FAN_OFF ";
TMOD=0X20;
TH1=0xFD;
SCON=0x50;
TR1=1;
fan = 0;
lcd_init(); //LCD Initialization
for(g = 0;g <=strlen(a);g++)
{
lcd_display(a[g]);
}

while(1)
{
Bluetooth controller home automation Page 28
while(RI==0);
mybyte=SBUF;
RI=0;

if(mybyte == '@')
{
while(RI == 0);
mybyte = SBUF;
RI = 0;
switch(mybyte)
{
case '0': light = 0;
DelayMs(15);
lcd_cmd(0xC0); //Shift
DelayMs(15);
for(g = 0;g <=strlen(a1);g++)
{
lcd_display(a1[g]);
}
// lcd_display('f');
Bluetooth controller home automation Page 29
break;
case '1': light = 1;
DelayMs(15);
lcd_cmd(0xC0); //Shift
DelayMs(15);
for(g = 0;g <=strlen(a2);g++)
{
lcd_display(a2[g]);
}
// lcd_display('F');
break;
case '3': fan = 0;
DelayMs(15);
lcd_cmd(0xC0); //Shift
DelayMs(15);
for(g = 0;g <=strlen(b2);g++)
{
lcd_display(b2[g]);
}
// lcd_display('f');
Bluetooth controller home automation Page 30
break;
case '4': fan = 1;
DelayMs(15);
lcd_cmd(0xC0); //Shift
DelayMs(15);
for(g = 0;g <=strlen(b1);g++)
{
lcd_display(b1[g]);
}
// lcd_display('F');
break;
}
}
}

Bluetooth controller home automation Page 31


CIRCUIT SFOTWARE
REQUIREMENTS :
a.KEIL compiler.
b. Proteus.
c. Android application file.

Below are the few Bluetooth


AT commands :

AT — Responds OK. (Used to test the


Bluetooth module)
AT+RESET — Responds OK. (Used to reset the
module)
AT+NAME? — Responds with the module
name.
AT+NAME = <name> — Responds OK. Name
should be less than or equal to 20 characters.
Bluetooth controller home automation Page 32
AT+PSWD? — Responds with the
existing password.
AT+PSWD =<password> — Sets module
pairing password .
Remote Password
Operated Home
Appliances Control
Project Algorithm :

1. Initialize the LCD and UART


protocol.
2. Now read the data from Bluetooth
module.
3. Display the received data on LCD.
4. Compare the received string with
predefined strings and accordingly
switch the electrical loads.
5. Display the status of electrical loads
on LCD .

Bluetooth controller home automation Page 33


PCB DESIGN

Bluetooth controller home automation Page 34


Bluetooth controller home automation Page 35
LEGEND PRINTING

Bluetooth controller home automation Page 36


TOP LAYER

Bluetooth controller home automation Page 37


BILL OF MATERIAL:
 At89c51 controller.
 8051 programming board.
 Programming cable.

 16×2 LCD.
 Bluetooth module.
 Lamp.
 BC 547 Transistors – 2.
 330 ohm resistors (1/4 watt) – 2.
 Reset circuit.
 Crystal circuit.
 5V DC power supply circuit.
 Connecting wires.

Bluetooth controller home automation Page 38


Project output

Bluetooth controller home automation Page 39


Bluetooth controller home automation Page 40
APPLICATIONS:
A. To overcome situations where
normal cabling where short distance
communication is required.
B. Suitable for physically impaired
people to operate the devices within
the room .

Limitations of circuits:
In this project the distance between
control unit and android device is
limited up to 10 or 20 meters .

Bluetooth controller home automation Page 41


Advantages:
A)Low power requirement.
B) Simple circuitry as it does not require special
hardware.
C) Higher security as directionality of the beam
helps ensure that data isn't leaked or spilled to
nearby devices as it is transmitted.
D) Devices can be controlled more comfortably.

Disadvantages:
A) It has distance limit in controlling devices.
B) Line of sight communication as transmitters
and receivers must be almost directly
aligned (i.e. able to see each other) to
communicate.
C) Speed: data rate transmission is lower than
typical wired transmission

Bluetooth controller home automation Page 42


BIBLOGRAPHY
1. www.electronicshub.com
2. www.google.com
3. www.alldatasheet.com

Bluetooth controller home automation Page 43


Bluetooth controller home automation Page 44

You might also like