loading
So happy that this project got completed finally. I had been working on this for a long time.
Think how cool it would be if you are able to control your AC appliances just with a touch of your Android smartphone. All you need to tap on your phone and you can easily switch ON/OFF your lights, fans and other home appliances. AVR micro-controllers provide a great platform to build such interesting projects and I have used ATMEGA8 micro-controller which is based on AVR.
Why prefer Bluetooth??
It is preferable to use bluetooth because nowadays people have their smartphones with them all the time, since the smartphones have bluetooth facility in them, thus it's better to use bluetooth rather than using RF remotes or IR remotes.Have you ever seen people carrying remotes???

Using bluetooth has many of its own advantages :
1.It's secure.
2.Easy to use.
3.It works in short distance range(i.e. upto 10mtrs.)
4.Anyone can find free bluetooth apps on android and many more.

If you ask me, why I made this project?? My answer would be simple because I am way too lazy and want to control things sitting at one place. Don't want always to get up to the switch boards just to switch things ON and OFF.

Step 1: Parts & Components Required

Parts and components required as per the schematic provided:
1. ATmega8 micro-controller 1nos.
2. ULN2803 1nos.
3. SPDT 5v Relay 3nos.
4. V-reg 7805 & LM317 1nos. each
5. Terminal blocks 6nos.
6. Breadboard 1nos.
7. 5v Regulated Power Supply 1nos.
8. HC-05 Bluetooth module 1nos.
9. Resistors, capacitors, diodes, etc.
10. 16MHz crystal oscillator 1nos.
11. Some wires and jumper wires
12. Most importantly an Android phone with BluControl v1.0 or above installed on it.

Step 2: Bluetooth Module

The Bluetooth module used in this project is HC-05 Linvor Bluetooth module. It is an easy- to-use Bluetooth serial port protocol (SPP) module, designed for a transparent wireless serial connection set-up. The module has 34 PINS for configuration/interfacing of Bluetooth module with microcontrollers.
For setting up a bluetooth module, an i'ble can be found here. For creating 3.3v output for the bluetooth module, I have used LM317 IC v-reg with a 10k potentiometer.

Step 3: ULN2803A : What N Why???

To drive a relay, we need the ULN2803A IC which is a high-voltage, high-current Darlington transistor array. The device consists of eight NPN-Darlington pairs that feature high-voltage outputs for switching inductive loads. The collector-current rating of each Darlington pair is 500 mA.
Applications of ULN2803a include relay drivers, lamp drivers, etc. And that's what we need, relay driver. The ULN2803A has a 2.7-kΩ series base resistor for each Darlington pair which makes it operable directly with TTL or 5-V CMOS devices.

Step 4: Building the Circuit

Construct your circuit as per the schematic provided. I have developed my own PCB at home, to make yours you can refer here.
Bluetooth module works on 3.3v only for which another power supply section has to be made. For this I have used LM317 voltage regulator which can provide output ranging from 1.2v to 36v. The potentiometer is used to vary the output voltage.
Remember to use a potential divider circuit which steps down the 5v serial output(Tx) from the micro-controller to 3.3v for the bluetooth module.
Always make sure to connect Rx of your bluetooth module to Tx of the micro-controller and vice-versa.

Step 5: ALGORITHM

I won't be sharing my code but would love to tell about the algorithm used.
What the system does is it simply receives the instructions in ASCII format from the bluetooth enabled Android smartphone using the bluetooth module and pass it on to the micro-controller. The micro-controller does the main processing part and for that purpose we need the code, please make your own.
What happens when the controller receives a particular ASCII value it switches ON or OFF a relay. And the relay acts as a switch for AC appliances. I have used some flag variables which check whether a particular relay is ON or OFF. A particular ASCII value is assigned for one and only one relay.
When an ASCII value is passed for the first time, it switches ON the relay and if the same value is passed again, the relay gets switched OFF.

Step 6: Android Cellphone

Any smartphone with any version of Android installed on it will do the task.
We are using an Android application named “Bluetooth Terminal” which can be easily found on Google Play Store and installed on the phone.
Bluetooth Terminal is an Android application that is a VT-100 terminal emulator for communicating with serial devices using a Bluetooth module.
One can download this application from here https://play.google.com/store/apps/details?id=es.pymasde.blueterm&hl=en

All you need to do is just open up the bluetooth manager in your Android smartphone and connect to the Linvor bluetooth module. You may require a password to connect to the module, the default password is 1234.
When the pairing is done and the module gets connected, press the any key that you have set for switching the relays.

Step 7: Thanks

Thanks and hope you like it.
<p>sir, can you please send me the code?<br>elzanix3@gmail.com<br>thank you</p>
<p>i want connections from our switch board to the relay</p>
<p>sir,pls send me coding part..</p>
Sir, can u please forward me the coding?<br>ramanipranay@gmail.com<br>Thanking You.<br>
<p>hi,</p><p>i been on this project but im prefer wana details on this project regarding on the materials of the product..............i would like to use arduino and bluetooth hc-06 and relay module 8 channel</p>
<p>hi,</p><p>i been on this project but im prefer wana details on this project regarding on the materials of the product..............i would like to use arduino and bluetooth hc-06 and relay module 8 channel</p>
<p>hi,</p><p>i been on this project but im prefer wana details on this project regarding on the materials of the product..............i would like to use arduino and bluetooth hc-06 and relay module 8 channel</p>
<p>hi,</p><p>i been on this project but im prefer wana details on this project regarding on the materials of the product..............i would like to use arduino and bluetooth hc-06 and relay module 8 channel</p>
<p>hi sir</p><p>can share with me the coding..</p><p>lorongkubur@gmail.com</p>
<p>can i have the code for this project</p><p>fertu_cristian@yahoo.com</p>
<p>hello, </p><p>I am new on programing field.</p><p>can u send the code of this project?</p><p>I hope will work with ble2 board.</p><p>thanls</p>
can i have the code for this project
<p>sir i had done with hardware would u like to help us by providing code</p><p>please mail me at ayadav41@gmail.com</p>
Good.. please file HEX &amp; fusebits seting, i'm from indonesia, send to my mail, olidfu@gmail.com thnks..
<p>Is it possible to use PIC microcontroller ? is it like as long as the pic has RX and Tx then its good to go? For coding, how can i know the ASCII code the program was sending? Thanks!</p>
<p>Yeah, it's possible.<br>The app will contain the information regarding the ASCII character which are being transmitted.</p>
<p>can we use gsm instead of bluetooth and what the differnce in coding in android instead of bluetooth</p>
<p>If you want to use GSM module instead of Bluetooth, there won't be any need for an Android App. Any mobile phone with SMS facility will do the job. And to work with GSM, AT commands shall be used, which have to programmed in the micro-controller.</p>
<p>is possible to avoid using a microcontroller ... if i am only aiming for 2 commands , on and off ?</p>
<p>Yes, it's definitely possible. You can make an edge triggered mono-stable circuit using 555 timer whose output can be provided to the relay. The trigger signal comes from the bluetooth module. Whenever you send a signal over bluetooth, it triggers the circuit and toggles the relay, thereby toggling whatever is connected to the relay.</p>
<p>can you send me schematic of proteus please???</p>
<p>I've already included the schematic here. (See pic in step 1).</p>
<p>hi all, Recently I have developed the Smart Home Automation in android app.</p><p>Apps Features: </p><p>1. Light Control</p><p>2. Fan Control and can regulate fan Speed</p><p>3. Gas sensor also available</p><p>4. Fire alarm also avaialable</p><p>if you want write this mail to me guruannamalai@gmail.com</p>
<p>Good to hear about that!<br>Have you interfaced your app with actual hardware?</p><p>Please share screenshots of your app.</p>
How it Is better than the gsm and wifi
<p>For GSM, you need to have SIM card with SMS facility which incurs cost.</p><p>WiFi modules such as ESP8266 can be used in place of Bluetooth module, but WiFi consumes more power. Bluetooth low energy (BLE) modules should be used for such a purpose. I haven't used a BLE because it wasn't available at that time.</p>
How many user can interface at a time
<p>Only one user can connect to this module at a time.</p>
How many user can interface at a time
<p>Hi, </p><p>Can you please send me the code. I urgently need it for a project.</p>
<p>Hi, </p><p>Can you please send me the code. I urgently need it for a project.</p>
<p>Hi, </p><p>Can you please send me the code. I urgently need it for a project.PLease.</p>
<p>Please send me the coding....All other process i hv done....PLEASE..</p><p>My E-mail is - machanicalbaccha@gmail.com</p>
I am having a problem in supplying power to the bluetooth module can you please help me<br>
<p>Yeah sure I can help.<br>What sort of problem are you experiencing, can you explain?</p>
<p>can u sent coding at my email : nrlnajwa.rusli@gmail.com</p>
I want the code for it.. Plz provide it
<p>is keil software used in programming microcontroller</p>
<p>No, I had used AVR STudio4</p>
How can we use android and laptop for interfacing in connection<br> also how can we can we improve yhis project fot voice input??
<p>Yes this can be used by using voice input, for this I have found an android app called, AMR_Voice.</p>
thanks for your reply,I have a doubt how to use both pc and mobile phone at same project and how connection can be made between them for information interchange?
<p>Every laptop nowadays have bluetooth capabilities, and so does the mobile phones. So pairing can be done between laptop/mobile phone and the bluetooth module connected to the microcontroller. Normal UART/Serial connections can be used.</p>
<p>hi! can i use an iphone app instead?</p><p>if yes, then what necessary changes do i need to make?</p>
<p>Yes you can use iphone based apps, but you'll need to change the ASCII characters being received depending upon the transmitted characters by the app.</p>
<p>Really cool stuff but using a separate 5V supply is a bit boring for me. Do you know any small 110/220AC=&gt;5V circuit we could use, secured and with a small transformer. i.e small circuit we can find in led bulb.</p>
<p>You can use any USB charger instead. Be sure about it's ratings, minimum 5V @ 1A.</p>
<p>plz provied code for this project</p>
<p>Could you please tell me it is possible to develop the above Program in Proteus 8 Professional,for micro controller(AT89C51)programming here i'm be use Atmel software Tell me it is possible or not do you have any information regarding Atmel software please provide for us.</p>

About This Instructable

106,903views

166favorites

License:

Bio: An electronics enthusiast... #Complexity simplified
More by apoorveinstein:Interfacing 20x4 LCD with Arduino Home Automation using Bluetooth Interfacing ADXL335 with ARDUINO 
Add instructable to: