Bluetooth Home Automation

by Niranjan_Niru in Circuits > Arduino

7016 Views, 35 Favorites, 0 Comments

Bluetooth Home Automation

DSC00038.JPG
Hello guys! Today i'm gonna show you how to control electronic home appliances through your android device. This is nothing but Bluetooth home automation by using relays. Not only can you turn on or off the appliance, but you can also set a timer to switch it off.

In this instructable i'm going to explain each and every step so that everyone including beginners can also feel comfortable.

:)

The past decade has seen significant advancement in the field of consumer electronics.
Various “intelligent” appliances such as cellular phone, air conditioners, home security devices, home theaters, etc., are set to realize the concept of a smart home. where all these appliances can be interconnected and monitored using a single controller. Home automation involves introducing a degree of computerized or automatic control to certain electrical and electronic systems in a building. These include lighting, temperature control, etc.

This instructable demonstrates a simple home automation system which contains a remote mobile host controller(android device) and several client modules (home appliances). The client modules communicate with the host controller through a wireless device such as a Bluetooth enabled mobile phone, in this case, an android based Smart phone.

THINGS REQUIRED

arduino.jpg
printer cable.jpg
relay.jpg
hc 06.jpg
wire.jpg
1) Arduino uno ( for beginners) or Arduino pro mini 5v ( I used a pro mini to make the project cheaper )

2) Hc-06 Bluetooth module

3) USB to serial converter for arduino pro mini (if you have an old adruino uno you don't need this) I had used my old arduino.

4) Relay module of your choice OR if you want to make them on our own you can ( I recommend buying a module instead of making it because we work with high current of 250V )

5) Bread board(optional)

6) Jumper wires ( male to female & female to female based on your requirement )

7) Printer USB cable to program arduino

8) LED's of any color

9) Arduino IDE installed in your computer

10) Electrical wire , tape ,sockets

11) 5V power supply

13) ANDROID BASED SMART PHONE

CODE

download the above code file and open wit arduino ide and upload it

The above code is to control 2 relays only (if u want u can increase them)

Connecting Hc 06 Bluetooth Module to Arduino

687474703a2f2f692e696d6775722e636f6d2f666a4d435856782e706e67.png
download.jpg

Setting up the HC-06 is as easy as ABC. All you need to know is the pin configuration. The HC-06 has 6 pins: wakeup, VCC, GND, TXD, RXD and State. Right now I will only deal with 4 pins, which are VCC, GND, TXD and RXD.

Here is how you should connect the Bluetooth module to your Arduino.

HC-06>>>Arduino

VCC>>>>3.3v

GND>>>>GND

TXD>>>>RXD

RXD>>>>TXD

The HC-06 acts as a serial port through which you can send and receive data. So using a serial terminal or a Bluetooth customized application on your computer or phone, you can control and monitor your project. I used Teraterm as the serial terminal. Before, uploading the code to the Arduino, disconnect the HC-06 module, since it shares the tx/rx pins and will interfere with the upload. Connect it back once the code has been uploaded successfully.

CONNECTING RELAY

relay3.jpg

As You can see

the relay module has

VCC=5V

GND

IN1(DIGITAL INPUT 1)

IN2(DIGITAL INPUT 2)

Connect the vcc ti the vcc of arduino and gnd to gnd

CONNECT IN1 TO ARDUINO DIGITAL PIN4

CONNECT IN2 TO ARDUINO DIGITAL PIN5

WIRING THE RELAY

relay2.jpg
DSC00036.JPG

BE CARE FULL WE ARE NOW DEALING WITH HIGH CURRENT 230V AC

WIRING THE RELAY IS AS ADDING THE SWITCH TO BULB

AS YOU CAN SEE THE RELAY HAS 3 PORTS

1.NC(NORMALLY CONNECTED)

2.COM(COMMON)

3.NO(NORMALLY CLOSED)

AS SHOWN

DONT TOUCH THE RELAY WHEN THE AC POWER SUPPLY IS SWITCHED ON

THE APP

this app works great you you can change the device name and timer setting also

opn the app

connect the bluetooth by pairing it generally the pin is 1234

and connect it

Testing

Bluetooth Home Automation Using Arduino

once you are finished connecting all the connections properly you are done

BUT BE CAREFULL

[Play Video]

TESTING AND WORKING VIDEO

FABRICATION

DSC00035.JPG

i had attached the realys to sockets as shown

.And you are done with this project

for any queries please post a comment

hope you guys like it

THANK YOU :)