Engineers Garage

  • Projects and Tutorials
    • Circuit Design
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • EE Design News
    • DIY Reviews
    • Guest Post
    • Sponsored Content
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • Video
    • White Papers
    • Webinars
  • EE Learning Center
  • Women in Engineering

ANDROID BASED HOME AUTOMATION SYSTEM

April 25, 2016 By Prabakaran P.M

Summary:

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.

Prototype of Android based Mobile Controlled Home Automation System

Fig. 1: Prototype of Android based Mobile Controlled Home Automation System

Description:

Prerequisites & Equipment:

You are going to need the following:

  1. An Arduino Board or Arduino clone(Here is a guide if you need)

  2. A 5v TTL -UART Bluetooth module.

  3. Relays and its Driving circuits.

  4. Arduino IDE for the programming.

Working Principle:

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.

Application Design:

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. 

Screenshot of Application Design of Android app for  Mobile Controlled Home Automation System on MIT App Inventor

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.

EG_Home.aia.

Hardware assembly:

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.

Image showing Hardware Assembly of Android Mobile Controlled Home Automation System

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 :

Screenshot of Arduino code used for initialization of Mobile Controlled Home Automation System

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 .

Application Download

Screenshot of User Interface of the Android App designed for Mobile Controlled Home Automation System

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

Circuit Diagrams

Circuit-Diagram-Android-Mobile-Controlled-Home-Automation-System

Project Video

Related Articles Read More >

Arduino-based automatic car windows for protection from dust and pollution
Raspberry Pi Server based Hotel/Restaurant Order Management System on IoT – IOT Part 46
Servo Control using Brain Wave (Part 12/13)
Raspberry Pi camera QR-code scanning

Featured Tutorials

  • Remote Controlling Multiple Loads Using RF Module (Part 2/23)
  • Increasing Range of RF Module by Increasing Transmission Power (Part 3/23)
  • Increasing range of RF module by using antenna (Part 4/23)
  • Increasing the Range of RF Module by Using Antenna and Increasing Transmission Power (Part 5/23)
  • Controlling Multiple RF Receivers by Universal RF Transmitter (Part 6/23)
  • Multiple RF Receivers Controlled by a Universal RF transmitter based on Address Pin Configuration (Part 7/23)

Stay Up To Date

Newsletter Signup

EE Training Center Classrooms

“ee

“ee

“ee

“ee

“ee

Recent Articles

  • IAR Systems announces IEC and ISO certifications of its RISC-V development tools
  • Mathematical equations executed by an MCU
  • Infineon’s new Wi-Fi 6 brings reliable connectivity to smart homes
  • Toshiba releases compact LDO regulators for stabilizing DC power lines
  • Clap sensor using STM32 MCU
...

RSS EDABOARD.com Discussions

  • Stumped with buck converter simulation Pspice
  • CMCON0 and ANSEL registers
  • Smart high side switch is a 200mA current clamp device?
  • Finding Difficulty in Selection LED MATRIX
  • MCLR as digital input is resetting the device

RSS Electro-Tech-Online.com Discussions

  • Identify Crystal on Ford Immobilizer antenna board
  • GPU price, lol
  • Diode that only allows continuity at 13.5v?
  • ZVS driver circuit
  • Cutting D-shaped and double flat holes
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • About Us
  • Contact Us
  • Advertise

Copyright © 2021 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Projects and Tutorials
    • Circuit Design
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • EE Design News
    • DIY Reviews
    • Guest Post
    • Sponsored Content
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • Video
    • White Papers
    • Webinars
  • EE Learning Center
  • Women in Engineering