Upload
others
View
0
Download
0
Embed Size (px)
Citation preview
The 3rd International Conference on Engineering of Tarumanagara (ICET) 2017 Faculty of Engineering, Tarumanagara University, Jakarta-Indonesia, October 4-5
th, 2017
ISBN: 00-00-00-00-00
DESIGN AND IMPLEMENTATION OF WEB SERVER
APPLICATION FOR MANAGING THE SMART HOME ARDUINO
BASED
Ermi Media’s1)
, Muhammad Rif’an2)
, Syufrijal3)
1) 2) 3)Universitas Negeri Jakarta, Rawamangun, Jakarta13220, Indonesia
e-mail:[email protected]
Abstract
In this paper, we propose server application design to manage home appliances in smart homes based on
arduino as controllers. The system is assembled using one server and many arduino. Servers are used to
communicate with homeowners interactively when users and arduino are used to control home appliances
based on user requests via the server. This paper describes the system overview, implementation and
evaluation of prototype systems.
Keywords: Smart Home, Arduino, Web Server
1. INTRODUCTION Currently, one of the most popular applications of the Internet of Things (IoT)
paradigms is the smart and automation home. Smart home as a home which is smart enough to assist the inhabitants to live independently and comfortably with the help of technology is termed as smart home. In a smart home, all the mechanical and digital devices are interconnected to form a network, which can communicate with each other and with the user to create an interactive space [1]. With the rapid development of technology and price reductions of devices and sensors make smart home more easily and inexpensively obtained and implemented in a real home.
In [2] presented about the current state and future challenges about smart homes. Even in a few years earlier, [2] said that smart home is just a dream. Smart home applications have been developed by [3-4] that use surveillance cameras to regulate the heating system, control the lights in the room, and control the television channels.
The development of internet technology has caused smart homes to shift from
local networks into the Internet network. By using Internet network, homeowners can
monitor their home state anywhere as long as they have internet access. Some
researchers have developed smart homes using HTTP technology, REST API and Web
2.0 [5, 6]. In Service-Oriented Architecture and Internet of Things technology, object
interconnects are used to create smart home in [7,8].
In this paper, the design and implementation of web applications for arduino-
based smart home management is proposed. The large number of smart home users
leads to the IP specific need to access privately between homeowners with smart home
devices and the need for a capable smart home device such as a server. For that, it
takes a web application that will set permissions and data collectors so that the IP can
be used together and smart home devices using only cheap arduino. In order to ensure
the security of communication between users, servers, and smart homes, designed
three layers of structure ie client (arduino), server, and client (user). By using a web-
based application, users can access the system with all devices connected to the
internet and have a web browser.
This paper is organized as follows: after this brief Introduction, in Section II,
The 3rd International Conference on Engineering of Tarumanagara (ICET) 2017 Faculty of Engineering, Tarumanagara University, Jakarta-Indonesia, October 4-5
th, 2017
ISBN: 00-00-00-00-00
smart home controller and web server application are described in detail. Sections III
presents the experimental results. Finally, the conclusions are given in Section IV.
2. RESEARCH METHOD
The proposed framework consists of smart home devices and web server
applications on a centralized server. Centralized servers will monitor and instruct arduino-
based smart home devices according to user demand. Intelligent home devices connect
current and voltage sensors as well as lights and other electronic devices that will function
according to the response of the server. The functions of each component as described
below:
2.1.Smart Home Controller
To achieve a smart home capable of monitoring and controlling household
appliances, we propose the use of arduino uno as a controller that is connected with
current sensors, voltage sensors, and relays. Arduino uno is also added with network
module, ethernet module connected to internet network. The size of this module is 80mm
long, 60mm wide and 20mm high as shown in Figure 1. In this arduino internet network
configuration it acts as a client that will access the web server with unique identity code as
the smart home id and will send data periodically to the server . As a client, this arduino
will also receive a response from the server. This response is an encoding of a command
sent by the home owner or user. The Arduino algorithm as a smart home controller is
presented in Figure 2.
Fig. 1. Smart Home Controller
Fig. 2. Smart Home Controller Algorithm
The 3rd International Conference on Engineering of Tarumanagara (ICET) 2017 Faculty of Engineering, Tarumanagara University, Jakarta-Indonesia, October 4-5
th, 2017
ISBN: 00-00-00-00-00
2.2.Web Server Application
To connect users or homeowners with smart home devices, web-based applications
embedded in centralized servers are built. The application framework is presented in
Figure 3. Each arduino as a smart home connects to the internet, as well as a centralized
server. Arduino accesses the server address and sends the id unique data as well as the
state of the house. The data transmission format given to the server is shown in figure 4.
Based on the data sent by each arduino, the server receives the data and records it in the
database according to each id.
Fig. 3. Application Framework
Fig. 4. Arduino Send Data Format to Server
On the other hand, users need authentication to be able to access the data on the
server. The initial view of this page is the login page. After obtaining authority, users can
monitor and control the electrical equipment that has been connected with smart home
appliances. If the user performs control then the server will respond to the arduino request
with the response format like figure 5.
Fig. 5. Arduino Receive Data Format from Server
The 3rd International Conference on Engineering of Tarumanagara (ICET) 2017 Faculty of Engineering, Tarumanagara University, Jakarta-Indonesia, October 4-5
th, 2017
ISBN: 00-00-00-00-00
The overall algorithm of the server application is presented in Figure 6.
Fig. 6. Web Server Algorithm
3. RESULTS AND DISCUSSION
The web-server interface for Smart Home is shown in Figure 7. It can be seen that
the main page containing user information, light control, air conditioner control,
temperature monitoring, water level and meter information. From the Web-Server
interface, users can know the detail real-time information of their home and do what they
can to control home appliances, for example, users can turn on or turn off the light and
switch off the air conditioner.
Fig. 7. The Application web-server Smart Home interface (a) desktop (b) smartphone
Whenever and wherever homeowners or users want to control lights, air
conditioning, and so on, as long as there is internet access and web browser on laptops,
pads or phones, users can access the system, which provides great convenience and
flexibility for them.
However, before you can use the system, the web server application requests
authentication by entering a username and password. The authentication page is shown in
Figure 8. After successful login, the user will be taken on the first page as shown in Figure
7. Furthermore the user can control the device that has connected with smart home device.
The 3rd International Conference on Engineering of Tarumanagara (ICET) 2017 Faculty of Engineering, Tarumanagara University, Jakarta-Indonesia, October 4-5
th, 2017
ISBN: 00-00-00-00-00
For example to set the lights, the user can choose the lights menu and the choice and the
status of the lights to be turned off or dinked is presented as shown in Figure 9.
Fig. 8. Login Page Smart Home interface (a) desktop (b) smartphone
Fig. 9. Control Light Smart Home interface (a) desktop (b) smartphone
Experiments to turn off and turn on the lights in a room done and obtained the
results of a satisfactory test and in accordance with want. The experiment setup is shown in
Figure 10.
The advantage of using this web server application is its ability in terms of
adjusting the display to the actual condition of the house. Household appliances can be
added or removed depending on the equipment installation with arduino. As long as I / O
arduino is sufficient then household electronic appliances can be added in the web server
application.
The 3rd International Conference on Engineering of Tarumanagara (ICET) 2017 Faculty of Engineering, Tarumanagara University, Jakarta-Indonesia, October 4-5
th, 2017
ISBN: 00-00-00-00-00
Fig. 10. Experiment Setup
3. CONCLUSIONS
In this paper, web-server applications for smart homes are introduced. To be able
to access and control the smart house the user must login. Applications can be accessed
anywhere and anytime as long as the internet is available. The structure of data
transmission and reception is used to maintain security during transfer and transmit data
between arduino and server. The advantage of this application is its ability to adapt to
different home conditions for each home or user.
REFERENCES
[1] Satpathy, L. Smart Housing: Technology to Aid Aging in Place. New Opportunities
and Challenges. Master’s Thesis, Mississippi State University, Starkville, MS, USA,
2006.
[2] M. Chan, D. Esteve, C. Escriba and E. Campo, ―A review of smart homes—Present
state and future challenges,‖ Computer Methods and Programs in Biomedicine, vol.
91, no. 1, pp. 55-81, Jul 2008.
[3] M. G. Golzar, H.Tajozzakerin, ―A New Intelligent Remote Control System for Home
Automation and Reduce Energy Consumption,‖ 2010 Fourth Asia International
Conference on Mathematical/Analytical Modelling and Computer Simulation, pp.174-
180, 2010.
[4] A.E.Nikolaidis,S.S.Papastefanos,G.I.Stassinopoulos,M.-P.D rakos,andG.A.Doumenis,
―Automating remote configuration mechanisms for home devices,‖ IEEE Trans. on
Consumer Electronics,vol.52,no. 2, pp. 407-413, May. 2006.
[5] A. Kamilaris, V. Trifa, and A. Pitsillides, ―Homeweb: An application framework for
web-based smart homes,‖ in Telecommunications (ICT), 2011 18th International
Conference on, pp. 134 –139, may 2011.
[6] K. Bing, L. Fu, Y. Zhuo, and L. Yanlei, ―Design of an internet of things-based smart
home system,‖ in Intelligent Control and Information Processing (ICICIP), 2011 2nd
International Conference on, vol. 2, pp. 921 –924, july 2011.
[7] M. Vega-Barbas, D. Casado-Mansilla, M. Valero, D. Lopez-de Ipina, J. Bravo, and F.
Florez, ―Smart spaces and smart objects interoperability architecture (s3oia),‖ in
Innovative Mobile and Internet Services in Ubiquitous Computing (IMIS), 2012 Sixth
International Conference on, pp. 725 –730, july 2012.
[8] G. Chong, L. Zhihao, and Y. Yifeng, ―The research and implement of smart home
system based on internet of things,‖ in Electronics, Communications and Control
(ICECC), 2011 International Conference on, pp. 2944 –2947, sept. 2011.