Intro: Bluetooth Based Home Automation Using Arduino
Dear friends this is my first project i am publishing in instructable. I build it with two microcontrollers one is arduino and other is at89s52. And i also developed android app for home automation control.
Step 1: Components Required
Dear inscrutable's here i am posting a Bluetooth based home automation like on/off home appliance with android phone may this post is posted earlier but i tried my self so i want to share my diy project.
I am new to android programming so i used some post as references.so any body feel that i copied it please comment it.
Components you will need
1.Arduino board or at89s52 i used
2.Bluetooth module hc-05 i used
4.Relay 12v 1c/0-3
8. Connecting wires
1.Android studio and sdk tools
3.keil studio ide for atmelat89s52
Step 2: Android Programming
In my diy project crucial part is android app which can on/off a device using bluetooth and for that apps are available but i want to try it so that i can learn android programming.In this programming i used toggle buttons for less space in app so that on and off can be done
seek bar is used to control fan speed but i am working on it.
i used list view as bluetooth devices can be appear so that when we press it it should connect and a socket can be done for programming.i used five appliances.
Step 3: Programming Bluetooth in Android
I referred so many sites and programming books on android so that i can make my own android app i want to know know about how android app works.
Bluetooth is connected when app is on and when we exit app bluetooth is off. when pair button is pressed all paired devices will be shown in list view for that i used bluetooth layout.
Permission for bluetooth in manifest file.
when we touched the paired device it create socket with bluetooth module and we can communicate with our module
Step 4: Hardware Part
Now hardware part is arduino or at89s52 both i used but i preferred at89s52 so that arduino can be used for other applications
Step 5: Attachments
i uploaded the code. A demo video and some images of my project. i am working on fan speed control. I will update it soon
aparnasekhar made it!