4
International Journal of Research In Science & Engineering e-ISSN: 2394-8299 Volume: 1 Issue: 1 IJRISE| www.ijrise.org|[email protected] HOME AUTOMATION SYSTEM VIA INTERNET USING ANDROID PHONE Mayur Ramkrushna Bhoyar 1 CSE Department, JDIET, Yavatmal, [email protected] __________________________________________________________________________________________ ABSTRACT This paper presents a low cost, flexible and standalone home devices control and monitoring system using an embedded arduino micro-web server, with real IP connectivity for accessing and controlling devices and appliances remotely using Android based Smart phone app running on android platform. The proposed system does not require a dedicated server PC with respect to similar systems and offers a novel communication protocol to monitor and control the home environment. Devices such as light switches, temperature sensors, humidity sensors, current sensors, smoke/gas sensors and sirens have been integrated in the system to demonstrate the feasibility and effectiveness of the proposed smart home system. Keywords- Internet of Things(IoT), Smart Home, Home Automation, Arduino --------------------------------------------------------------------------------------------------------------------------------------- 1. INTRODUCTION Home automation is automation of the home or household activity. Home automation may include control of lighting, fans, appliances, and other systems, to provide more convenience, comfort, power saving and security. The concept of home automation has been evolved trough decades and products have been on the market for long, though no one solution has broken through to the mainstream yet. Home automation also helps for the elderly and disable persons that are at home as they don’t have to move from one place to another place just for switching on or off the appliances, opening the door, etc. It can also provide a remote interface to home appliances or the automation system , via the internet, to provide control and monitoring via a smart phone or web browser. This paper will describe system which we are implementing to control various home appliances with arduino Ethernet web server and android smart phone. 2. RELATED LITERATURE Smart home is not a new term for science society ,it is been used from decades. As electronic technologies are advancing, the field of home automation is expanding fastly. There were various smart systems have been proposed where the control is via Bluetooth[3][6], internet [5]etc. Bluetooth capabilities are good and most of current laptop/desktops, tablets, notebooks and cell phones have built-in adaptor that will indirectly reduce the cost of the system. But it limits the control to within the Bluetooth range of the environment while most other systems are not so feasible to be implemented as low cost solution. In [8], Wi-Fi based home automation system is presented. It uses a PC (with built in Wi-Fi card) based web server that manages the connected home devices. The system supports a wide range of home automation devices like fans,lights,other home appliances. A similar architecture is proposed in [4] where the actions are coordinated by the home agent running on a PC. Other papers such as [8] also presented internet controlled systems consisting of a web server, database and a web page of websites for interconnecting and handling the devices. These systems utilize a PC which leads to a direct increase in cost and power consumption. On the other side, the development and hosting of the web page will also costs high. Lately few researchers have also presented use of Web services, Simple Object Access Protocol (SOAP) and Representational State Transfer (REST) as an interoperable application layer to remotely access home automation systems introduced a smart home management scheme over the Ethernet network based on XML SOAP standards. The disadvantage of using SOAP based Web a service is that it is hard to handle and adds overhead to the client and server when parsing the message, resulting in slow operation and higher Bandwidth. REST has been represented as a Web-based interaction for controlling household devices using Web techniques such as HTTP(Hyper Text Transfer Protocol) caching and push messaging technique. Also a Web-based graphical user interface has been developed to manage the home devices. Home automation using Cloud computing that has also been proposed by where users were able to control various lights and appliances within their home.All above mentioned systems has made tremendous contributions in home

HOME AUTOMATION SYSTEM VIA INTERNET USING ANDROID PHONE

Embed Size (px)

Citation preview

Page 1: HOME AUTOMATION SYSTEM VIA INTERNET USING ANDROID PHONE

International Journal of Research In Science & Engineering e-ISSN: 2394-8299Volume: 1 Issue: 1

IJRISE| www.ijrise.org|[email protected]

HOME AUTOMATIONSYSTEM VIA INTERNET USING ANDROIDPHONE

Mayur Ramkrushna Bhoyar1CSE Department, JDIET, Yavatmal, [email protected]

__________________________________________________________________________________________ABSTRACT

This paper presents a low cost, flexible and standalone home devices control and monitoring system using anembedded arduino micro-web server, with real IP connectivity for accessing and controlling devices andappliances remotely using Android based Smart phone app running on android platform. The proposedsystem does not require a dedicated server PC with respect to similar systems and offers a novelcommunication protocol to monitor and control the home environment. Devices such as light switches,temperature sensors, humidity sensors, current sensors, smoke/gas sensors and sirens have been integrated inthe system to demonstrate the feasibility and effectiveness of the proposed smart home system.

Keywords- Internet of Things(IoT), Smart Home, Home Automation, Arduino---------------------------------------------------------------------------------------------------------------------------------------

1. INTRODUCTION

Home automation is automation of the home or household activity. Home automation may include controlof lighting, fans, appliances, and other systems, to provide more convenience, comfort, power saving andsecurity. The concept of home automation has been evolved trough decades and products have been on themarket for long, though no one solution has broken through to the mainstream yet. Home automation also helpsfor the elderly and disable persons that are at home as they don’t have to move from one place to another placejust for switching on or off the appliances, opening the door, etc. It can also provide a remote interface to homeappliances or the automation system , via the internet, to provide control and monitoring via a smart phone orweb browser. This paper will describe system which we are implementing to control various home applianceswith arduino Ethernet web server and android smart phone.

2. RELATED LITERATURE

Smart home is not a new term for science society ,it is been used from decades. As electronic technologiesare advancing, the field of home automation is expanding fastly. There were various smart systems have beenproposed where the control is via Bluetooth[3][6], internet [5]etc. Bluetooth capabilities are good and most ofcurrent laptop/desktops, tablets, notebooks and cell phones have built-in adaptor that will indirectly reduce thecost of the system. But it limits the control to within the Bluetooth range of the environment while most othersystems are not so feasible to be implemented as low cost solution. In [8], Wi-Fi based home automation systemis presented. It uses a PC (with built in Wi-Fi card) based web server that manages the connected home devices.The system supports a wide range of home automation devices like fans,lights,other home appliances. A similararchitecture is proposed in [4] where the actions are coordinated by the home agent running on a PC. Otherpapers such as [8] also presented internet controlled systems consisting of a web server, database and a webpage of websites for interconnecting and handling the devices. These systems utilize a PC which leads to adirect increase in cost and power consumption. On the other side, the development and hosting of the web pagewill also costs high. Lately few researchers have also presented use of Web services, Simple Object AccessProtocol (SOAP) and Representational State Transfer (REST) as an interoperable application layer to remotelyaccess home automation systems introduced a smart home management scheme over the Ethernet networkbased on XML SOAP standards. The disadvantage of using SOAP based Web a service is that it is hard tohandle and adds overhead to the client and server when parsing the message, resulting in slow operation andhigher Bandwidth. REST has been represented as a Web-based interaction for controlling household devicesusing Web techniques such as HTTP(Hyper Text Transfer Protocol) caching and push messaging technique.Also a Web-based graphical user interface has been developed to manage the home devices. Home automationusing Cloud computing that has also been proposed by where users were able to control various lights andappliances within their home.All above mentioned systems has made tremendous contributions in home

Page 2: HOME AUTOMATION SYSTEM VIA INTERNET USING ANDROID PHONE

International Journal of Research In Science & Engineering e-ISSN: 2394-8299Volume: 1 Issue: 1

IJRISE| www.ijrise.org|[email protected]

automation system. However, a PC is used as a server that increases the cost and power consumption whileothers require web page hosting that adds up the extra cost.

3. PROPOSED SYSTEM AND ARCHITECTURE

A. Features of the Proposed SystemIn order to address the mentioned issues of flexibility and functionality in the existing system, we have

designed and implemented a novel, standalone and low cost home controlling and monitoring system usingRESTful based Web services as an interoperable application layer. The system consists of a micro Web - serverbased on Arduino Ethernet kit, hardware interface modules and the Android compatible Smart phone apprunning on android platform. The architecture presented can be customized in different ways in order toaccommodate different application scenarios with minimum recoding and design which says that each time anew device is added to the micro Web-server, a new thread(task) dedicated to the device is automaticallycreated in the Smart phone app. Therefore, the aim of the proposed work is not to incorporate expensivecomponents such as high end personal computers which directly leads to high cost. This proposed system allowsauthorized home owners to remotely control and monitor connected devices at home using any Wi-Fi or 3G/4Genabled Smart phone which supports Java. The smart phone application provides a graphical user interface(GUI) for accessing and controlling the devices at home through server real IP.

B. Description of Proposed ArchitectureThe architecture is divided into three layers: Home Environment, Home Gateway and Remote Environment

(see Figure 1). Remote Environment represents authorized users who can access the system on their Smartphone app using the Internet via Wi-Fi, data connection connected to 3G/4G network. Home Environmentconsists of Home router and a hardware interface module. The primary function of the Home router(gateway)for the proposed architecture is to provide data translation services between the Internets through sending andreceiving requests and responses respectively. The main component of the Home Gateway is a micro webserverbased on Arduino Ethernet embedded with microcontroller. The main task of the server is to managing,controlling and monitoring system parts that enables hardware interface modules to execute their assigned taskusing actuators and to report server with triggered events via sensors such as smoke detecting sensors,etc.Hardware interface modules are directly connected with sensors and actuators through cables. It has thecapabilities to control power management systems like lightings, power plugs and security systems such ashome door locks, and gate. For monitoring, controlling Home Environment the system supports sensors such astemperature, smoke,humidity and current.

Page 3: HOME AUTOMATION SYSTEM VIA INTERNET USING ANDROID PHONE

International Journal of Research In Science & Engineering e-ISSN: 2394-8299Volume: 1 Issue: 1

IJRISE| www.ijrise.org|[email protected]

Fig 1. A Overview of Conceptual architecture

In order to successfully connect and access the smart home micro web-server, the end user has to enter thecorrect real IP address and password. If the android web-server grants permission to access to the smart homeapp running on android platform, response packet containing response code 200 will be received. Theapplication processes the response packet to determine the micro web-server’s response. Response Packetcontaining response code 200 indicates the password is correct, and the application will move to the maincontrol page and synchronize using the data from the response packet sent from web server to reflect the realtime statuses of the smart home devices. If the password is incorrect, response packet containing response code404 will be received. The general response packet layout. The response code and devices with their statuses areseparated by a space while the device and its status is separated by a colon (:). For example when user wantsfrom the app to turn on Fan 1 is successful, the response packet will be “200 Fan:1” where Fan is deviceconnected to the Ethernet web sever kit. 0 indicates off state while a 1 indicates on state.

4. SOFTWARE DEVELOPMENT FOR GATEWAY

Fig 2. Home Gateway flow chart for the connection establishment with the Internet

Software of the web server is composed of two parts: server application software and microcontrollerfirmware. To successfully communicate between home automation application and the Home Gateway,configuration stage and sensor control stage layers have been implemented on the Arduino Uno. The

Page 4: HOME AUTOMATION SYSTEM VIA INTERNET USING ANDROID PHONE

International Journal of Research In Science & Engineering e-ISSN: 2394-8299Volume: 1 Issue: 1

IJRISE| www.ijrise.org|[email protected]

<Ethernet.h> libraries are used to receive data on Arduino and creates output messages in JavaScript ObjectNotation (JSON) format. Figure 2 shows the flowchart of connection establishment between the Arduino kit andthe Internet(not the smart phone app). The Home Gateway is connected to Internet over TCP/IP protocol. SinceArduino Ethernet shield already supports a TCP/IP stack, the design focused on implementing software toconnect it to the remote user. At the initial phase,the Home Gateway once started enters the configuration stage.In the next phase,the configuration stage the Ethernet module establishes connection with Local Area Network(LAN) using a static IP address. In order to optimize the process of connection, this design uses static IP addressrather than acquiring an IP via Dynamic Host Configuration Protocol (DHCP). Once the Home Gateway hasbeen initialized, it enters into an idle state until any command is received from the remote application. Oncesuccessful reception of commands as strings from the Smart phone app is given, appropriate control action istaken.

CONCLUSION

This is an ongoing project. Our prime objective is to assist handicapped/old aged people. This papergives basic idea of controlling various home appliances and provide a security using Android phone or tablet.This paper is based on Android and Arduino platform both of which are FOSS(Free Open Source Software).Therefore the overall implementation cost is very cheap and it is affordable by a common person. Because oftremendous increase in android enabled phone, here we are using android application. The design consists ofAndroid phone with home automation application, Arduino Mega ADK embedded with microcontroller. Usercan interact with the android phone and send control signal to the Arduino ADK which in turn will control otherembedded devices/sensors.

REFERENCES

[1] Shiu Kumar “Ubiquitous smart home system using android application” International Journal of ComputerNetworks & Communications (IJCNC) Vol.6,No.1, January 2014.

[2] D. Javale, M. Mohsin, S. Nandanwar, and M. Shingate, "Home Automation and Security System UsingAndroid ADK," International Journal of Electronics Communication and Computer Technology (IJECCT),vol. 3, pp. 382-385, March 2013.

[3] R. A. Ramlee, M. H. Leong, R. S. S. Singh, M. M. Ismail, M. A. Othman, H. A. Sulaiman, et al.,"Bluetooth Remote Home Automation System Using Android Application," The International Journal ofEngineering And Science, vol. 2, pp. 149-153, 11, January 2013.

[4] A. ElShafee and K. A. Hamed, "Design and Implementation of a WiFi Based Home Automation System,"World Academy of Science, Engineering and Technology, vol. 68, pp. 2177-2180, 2012.

[5] R. Piyare and M. Tazil, "Bluetooth Based Home Automation System Using Cell phone," in IEEE 15thInternational Symposium on Consumer Electronics, Singapore 2011, pp. 192 - 195.

.