This document describes a system for controlling home appliances remotely over the internet using power over ethernet. The system uses Arduino boards with an ENC28J60 ethernet controller chip to implement a web server. Appliances like lights, fans and motors can be controlled through the web server interface by sending commands via HTTP requests. Ethernet provides both data connectivity and power delivery to devices using power over ethernet technology. The system was implemented and tested successfully for monitoring and switching home appliances remotely.
Restful Webserver Based Domotic Home Using Power over Ethernet
1. IJSRD - International Journal for Scientific Research & Development| Vol. 2, Issue 07, 2014 | ISSN (online): 2321-0613
All rights reserved by www.ijsrd.com 558
Restful Web server Based Domotic Home Using Power over Ethernet
Mr. M. M. Sonakatale1
Prof. A. S. Gundale 2
Mr. P. D. R. Patnaik3
1,2,3
Department of Electronics Engineering
1,2,3
Walchand Institute of Technology, Solapur University, Solapur, Maharashtra, India.
Abstract— This paper presents the way to provide Ethernet
internet connectivity and power to microcontroller based
embedded systems. This system uses arduino board to store
the main application source code, web pages and TCP/IP
stack which is a vital element of the system software. An
Ethernet controller chip, ENC28J60 is used to handle the
Ethernet communications and it is interfaced with the
microcontroller using SPI protocol. The site can be viewed
on any system with Internet/LAN connection by configuring
the specific IP address. There are several I/O pins available
at the microcontrollers which are used to interface with
lights, fans, curtains, Motors and relays for monitoring and
controlling DC appliances. Nowadays, Internet has spread
worldwide and most of the internet connections use Ethernet
as media for data transfer. In industries or in home
appliances, most of the time we need to monitor and control
using microcontrollers. Once we enable Ethernet interface to
such systems, we can communicate with them remotely over
the internet. At the same time power which require to run
the device is provided by using power over Ethernet
technology which minimize the cable requirement and
wastages of copper conductors. The concept of the "Internet
of Things" has tied in closely with the popularization of
home automation. Ethernet provides inexpensive, relatively
high speed network access to individual users and low delay
that can support many applications. This implementation is
an attempt to connect an embedded device to an Ethernet
Using Ethernet based system we can control various home
appliances from anywhere across the world.
Keywords: Arduino, Powerover Ethernet, Web server
I. INTRODUCTION
The main aim of our project is to implement IoT Home
automation solace that can be easily accessible from distant
places through a simple web server running inside the home.
The basic functionalities in this domotic home system
includes the power which is required to run the devices is
provided through Ethernet cable using Power Ethernet
technique and user defined control of Lights and other
electrical /electronic appliances. A real web server can be
implemented in a device in your is connected to a local area
network. This will allow you to do things like display
current status of devices and switch light/fan and controlling
their brightness/ speed remotely from any web browser in
the house.
II. SYSTEM ARCHITECTURE
The system design is a low cost domotic home for remotely
controlling and monitoring home appliances. The system
mainly consist of Arduino controller with power over
Ethernet power injector which sends data to the end
powered device along with injected power. The system
architecture is shown in below Fig.1
Fig. 1: System Architecture of Restful web server based
domotic home using power over Ethernet
This project comprises of two sub-parts. The first
part consists designing a power injector section in which
Cat 5 cable which is comes from switch is splitted and
power is inserted into the spare pair of Ethernet cable the
output at the end of power injector we get power plus data.
Power injector also consist of main Arduino controller with
ENC 28j60 webserver which control the power at output
port by activating particular relay. The second part also
consist of Arduino with ENC28j60 which control the device
connected to output port. Microcontrollers communicate
with each other via Ethernet a wired communication.
Because these systems use hard-wired Ethernet,
communication between components is reliable and fast.
III. DOMOTIC HOME DEVICES
The Arduino uno and the ENC28J60 have been used to
implement the Domotic home web-server. Arduino is an
open-source electronics prototyping platform based on
flexible, easy-to-use hardware and software. The Arduino
uno microcontroller board is based on the ATmega328
having 14 digital input/output pins. The Ethernet is
interfaced to the Arduino via the Arduino SPI pins.
Low voltage switching relays were used to integrate the
devices with the Arduino for demonstrating the switching
functionality.
IV. SOFTWARE DEVELOPMENT
The main controller hosting the ENC28J60 web-server
acts as the heart of the system consisting of the web
server application and the Arduino microcontroller
firmware. The server application software is the library
implementation of the web-server running on the Arduino
uno using the ENC28J60 connected to the internet over
TCP/IP, which can act as both the server and client. The
Ethernet library “"EtherShield.h" is used to send and
receive data in conjunction with the microcontroller. The
output messages sent to the domotic home application is in
JavaScript Object Notation (JSON) format. When sketch
loaded into the Arduino then modify MAC address and IP
address of Ethernet board. To turn on the fan attached to pin
9 we use http://192.168.43.2/9/1 shown in screenshot in
figure 3d. This will set the pin to the HIGH state and the fan
should ON. For checking pin status returns a tiny chunk of
JSON containing the pin requested and its current value
2. Restful Web server Based Domotic Home Using Power over Ethernet
(IJSRD/Vol. 2/Issue 07/2014/126)
All rights reserved by www.ijsrd.com 559
looks like figure 3b {"3":"LOW"},Similarly for checkout
analog value of analog pin a0 in which I have used current
sensor reading looks like this http://192.168.43.2/a0 and return
the same JSON formatted result as {"a0":"539"}shown in
figure 3a. Similarly for controlling stepper motor reading
looks like this shown in fig 3c.
Utilizing Web services is the most open and
interoperable way of providing access to remote services
or for enabling applications to communicate amongst each
other. There are two different classes such as Simple Object
Access Protocol (SOAP) and Representative State Transfer
(REST) are the two classes are available. However,
RESTful based Web service has been employed due to its
light-weight compared to the SOAP based Web service
offering similar functionalities. Standard GET and POST
request operations have been utilized for communication
between the domotic home app and the web-server. For
example, if the user action on the domotic home
application is to activate the fan then the message
exchange taking place is illustrated in Figure2
Fig. 2: Message exchange between Domotic home
application and webserver
In order to successfully connect and access the
Domotic home web-server, the user has to enter the
correct real IP address (see Figure 2). If the web-server
grants access to the Domotic home app, response packet
containing response code 200 will be received. The
application processes the response packet to determine the
web-server’s response. Response code 200 indicates the
Connection IP is correct, and the app will switch to the main
controller page and synchronize using the data from the
response packet to reflect the real time statuses of the
Domotic home devices (see Figure 3b main sceenshot
192.168.43.2).If the IP is incorrect , response code 404 will
be received. The response code and devices with their
statuses are separated by a slash (/) while the device and its
status is separated by a colon (:). For example when the
action requested by the user from the application to turn on
fan HIGH (192.168.43.2/9/1) is successful,, the response
packet will be “200 FAN_9:HIGH”. A LOW indicates off
state while a one indicates on state for the status for
switching functions.
Fig. 3a : screenshot of analog values of current sensor
Fig. 3b: screen shot of status of pin3
Fig. 3c : screen shot of stepper motor for step1
Fig. 3d: screenshot of Fan for step1
V. FLOW CHART FOR THE MAIN CONTROLLER
Figure 4 shows the general flowchart for the main
controller. Upon initializing, the system establishes the
connection with LAN. when connection is established then
it enters into the idle mode and waits for user command
.when commands are received controller decode this
command and take particular action according to
command.
Fig. 4: Home Gateway flow chart for the connection
establishment with the Internet
VI. RESULTS
The performance of our power injector is shown below table
1 .Though the results shows some power loss for every feet
increase in length of the POE cable to over- come this
problem we have to add more voltage at input stage.
t
Table 1: performance of POE Injector
3. Restful Web server Based Domotic Home Using Power over Ethernet
(IJSRD/Vol. 2/Issue 07/2014/126)
All rights reserved by www.ijsrd.com 560
VII. CONCLUSION
In this paper, an Restful web server based internet
controlled domotic home automation using power over
Ethernet implemented. All types of DC applications are
possible to control with the help of smart phones. The
implemented system uses standardized protocols for its
control. Implemented system can be integrated in already
installed Ethernet network. Though the results indicate some
power loss for every feet increase in length of the POE
cable, the benefits of the system are attractive.
REFERENCES
[1] G. Kortuem, F. Kawsar, D. Fitton, and V.
Sundramoorthy, "Smart objects as building blocks
for the internet of things," Internet Computing, IEEE,
vol. 14, pp. 44-51, 2010.
[2] R. J. C. Nunes and J. C. M. Delgado, "An Internet
application for home automation," in 10th
Mediterranean Electrotechnical Conference
(MELECON 2000), Lemesos, 2000, pp. 298-301.
[3] F. Kausar, E. A. Eisa, and I. Bakhsh, "Intelligent
Home Monitoring Using RSSI in Wireless Sensor
Networks," International Journal of Computer
Networks & Communications, vol. 4, pp. 33-46,
2012.
[4] R. Piyare and M. Tazil, "Bluetooth Based Home
Automation System Using Cell phone," in IEEE 15th
International Symposium on Consumer Electronics,
Singapore 2011, pp. 192 - 195.
[5] S. Anwaarullah and S. V. Altaf, "RTOS based
Home Automation System using Android,“
International Journal of Advanced Trends in
Computer Science and Engineering, vol. 2, pp. 480-
484, January 2013 2013.
[6] C. Chiu-Chiao, H. C. Yuan, W. Shiau-Chin, and
L. Cheng-Min, "Bluetooth-Based Android
Interactive Applications for Smart Living," in 2nd
International Conferenceon Innovations in Bio-
inspired Computing and Appplications (IBICA 2011),
2011, pp. 309-312.
[7] D. Javale, M. Mohsin, S. Nandanwar, and M.
Shingate, "Home Automation and Security System
Using Android ADK," International Journal of
Electronics Communication and Computer
Technology (IJECCT), vol. 3, pp. 382-385, March
2013 2013.
[8] J. Potts and S. Sukittanon, "Exploiting Bluetooth on
Android mobile devices for home security
applications," in Southeastcon, 2012 Proceedings of
IEEE Orlando, FL 2012.
[9] Al-Ali, A.R. ; AL-Rousan, M., “ Java-based
home automation system” Consumer Electronics,
IEEE Transactions volume: 50 , Issue: 2 , Page: 498
– 504, 2004.
[10]Adam Dunkels, "Design and Implementation of the l
wIP TCP/IP Stack", Swedish Institute of Computer
Science, 2001.
[11]Fahim A. Ahmed Ghanem and Vilas M. Thakare,
“Optimization of Ipv6 Packet’s Headers Over
Ethernet Frame”, International Journal of Electronics
and Communication Engineering & Technology
(IJECET), Volume 4, Issue 1, 2012, pp. 99 - 111,
ISSN Print: 0976- 6464, ISSN Online: 0976 –6472.
[12]S.K. Muthusundar and Dr. Paul Rodrigues,
“Automation Testing of Web Application Based on
the Navigation using Json”, International Journal of
Computer Engineering & Technology (IJCET),
Volume 3, Issue 1, 2012, pp. 191 - 197, ISSN Print:
0976 – 6367, ISSN Online: 0976 – 6375,
[13]R. Kavitha, Dr. G. M. Nasira and Dr. N. Nachamai,
“Smart Home Systems using Wireless Sensor
Network – A Comparative Analysis”, International
Journal of Computer Engineering & Technology
(IJCET), Volume 3, Issue 3, 2012, pp. 94 - 103,
ISSN Print: 0976 – 6367, ISSN Online: 0976 –
6375.