This article is to make an android controlled Home. It will help you in building an android controlled Home appliances without any experience in android app development by providing you the free android app. This app consists of touch controlling interface of your Home appliances. It is simple to start with downloading the app to your phone/tablet and start building your control circuit by following below steps.
Fig. 1: Prototype of Android based Mobile Controlled Home Automation System
Prerequisites & Equipment:
You are going to need the following:
An Arduino Board or Arduino clone(Here is a guide if you need)
A 5v TTL -UART Bluetooth module.
Relays and its Driving circuits.
Arduino IDE for the programming.
This Project includes two distinct parts, hardware control circuit and the android application. The communication between the Control circuit and the android application is carried over by the Bluetooth link between the phone’s Bluetooth and the Bluetooth device in the control circuit. The ASCII commands are sent from the phone to the Robot which in turn checked by the Arduino for the turning ON or OFF of the particular device.
The Android app developers generally use JAVA language, but this Android app can also build without knowing the Java language. This app was developed in the online Development Environment which is developed by MIT called “App Inventor”. This app inventor is specially designed for Non programmers those who don’t know the JAVA language. The app shown below has buttons and all the buttons gives different bytes in the output that has to be sent to the Arduino using Bluetooth for processing.
Fig. 2: Screenshot of Application Design of Android app for Mobile Controlled Home Automation System on MIT App Inventor
If you want to edit the application according to your use, here project file of the Application. You can upload this project and utilize it.
Make the circuit as is given by the circuit diagram. Make the circuit with your selected parts and connect the motors to the circuit. Optocouplers are used to safeguard the Arduino from High voltage risks.
Fig. 3: Image showing Hardware Assembly of Android Mobile Controlled Home Automation System
Note: RX of Arduino should be connected to TX of Bluetooth module and TX of Arduino should be connected to RX of Bluetooth module.
Loading software for Arduino:
If you are new to Arduino you can start with here. You have to start with the Arduino IDE (Integrated Development Environment) from Arduino . Download the code from below link and upload it to the Arduino board.
PLEASE NOTE : SINCE THE BLUETOOTH MODULE IS CONNECTED TO THE SERIAL PINS OF THE ARDUINO, THE MODULE SHOULD BE REMOVED OR POWERED OFF WHILE UPLOADING THE CODE TO THE ARDUINO. THE MODULE CAN BE CONNECTED ONCE THE UPLOAD IS COMPLETED.
Screenshot of Arduino code :
Fig. 4: Screenshot of Arduino code used for initialization of Mobile Controlled Home Automation System
Downloading the android application and setting up the Bluetooth:
To download the android application to your phone, download the application file from below link and copy the apk file to your phone and then install it. Check whether Allowing installation of non-Market apps in one of the settings tab is checked with tick mark. Once you have installed the application, the next step is to connect with your Bluetooth module from your phone. For this, you need to power the Arduino and Bluetooth module and then turn ON the Bluetooth on your phone and make it visible to other devices. After that, search for new devices in Bluetooth, you can find your Bluetooth module from the list, enter the pairing code which is usually ‘1234’ or ‘0000’when prompted .
Fig. 5: Screenshot of User Interface of the Android App designed for Mobile Controlled Home Automation System
Note the name of your device , in this case it is “HC-06″. After pairing with the robot, go to the “EG-HOME” application and touch the Bluetooth button to select the paired device now the color of the Bluetooth button will be changed for a successful connection. After that the phone will get connected to your control circuit, and by clicking the respective buttons, the lights will be ON respectively