Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
AbstractThe notion of a smart home with integrated sensors, Home Automation is the introduction of technology within
actuators, wireless network and a graphical user interface is very the home to enhance the quality of life of its occupants,
enticing. This paper presents the design and implementation through the provision of different services such as telehealth,
of reliable, flexible, secure and economical sensor network for
transforming traditional home into a smart home. The heteroge- multimedia entertainment and energy conservation [2]. In
neous sensor and actuator nodes based on wireless networking a Home Automation System, several home appliances are
technologies are deployed in the home environment. These nodes connected to each other in an existing or dedicated network
communicate to a middleware which runs home automation and can be controlled, monitored and automated through a
server and which operates as broker to facilitate the MQTT central application.
connectivity protocol. The middleware facilitates controlling of
wireless nodes over local as well as remote network. The proposed
system is designed to be low cost and scalable to accommodate B. Proposed System
variety of devices to be controlled. The popular notion that retro-fitting (adding smart home
Index TermsHome Automation, WiFi, OpenHAB, IOT, Rasp-
berry Pi, ESP8266 technologies to an existing property) a house to make it a
smart home is significantly costly, is no more acceptable in
I. I NTRODUCTION the modern era. The development and innovations in wire-
less technologies has certainly brought reduction in cost of
T WENTY First century is an era of digital revolution.
A revolution which introduced human society with ad-
vancement in technologies. With this advent in technology,
Wireless Systems. The wireless technologies have evolved and
its progress can be observed in latest technologies being not
only cost-effective but also reliable and power efficient. These
cost effective and reliable wireless technologies came into
technologies can be deployed in a traditional home environ-
existence. The improvements offered by the wireless tech-
ment and the regular home appliances can be digitized after
nologies now significantly reduces the complexity of harness-
which they can be controlled and monitored effectively using
ing wired transmission and facilitates the communication for
the Smart Home concept. The proposed system essentially
internet-of-things (IOT). Utilization of such low cost wireless
converts traditional homes into smart homes.
technologies can be made to introduce digitization in tradi-
tional homes and effectively build a Smart Home System. Features of Proposed System:
The system can be integrated in traditional homes.
A. Home Automation The system has scalable architecture. Any number of
A Smart Home is usually a freshly constructed home/build- home appliances can be controlled and monitored with
ing that is furnished with special structured wired or wireless the proposed system.
system that enables inhabitants to operate home appliances The system proposes cost-effective home automation
remotely. Smart home incorporates home automation tech- solution.
nologies to provide occupants with information and intelligent The system can integrate existing wireless home appli-
feedback by monitoring various aspects of home. ances to effectively present a single interface to the user
The concept of IOT is closely integrated with the popu- to control and monitor almost all home appliances.
larization of home automation. By employing the network The system can efficiently utilize existing wireless net-
infrastructure of IOT and utilizing standard IOT protocols, work architecture for communication.
the household appliances can be monitored and controlled The system can be customized to automate only user
remotely over internet. A home that is equipped with such picked appliances; in which case rest of the appliances
a wireless system can be called Smart Home in context of will work with their inherent functionality.
IOT. The Smart Home concept fundamentally brings several The system handles and manages all home resources
new features to a regular home like interoperability, remote through a central server, which makes debugging and
access and flexibility of expansion [1]. reconfiguration of system easy for user.
978-1-4673-6725-2
2016
c IEEE
II. H OME AUTOMATION S YSTEM A RCHITECTURE
System Architecture provides a conceptual idea about the
implementation of Home Automation System. The architecture
that was planned for the proposed system is described next.
The system architecture is comprised of three main parts:
1) Wireless Nodes: A node is an electronic module that
is capable of processing some information, gathering sensory
information and communicating with other connected nodes
and middleware in the network. Nodes can be attached with
either sensors or actuators or a combination of both. Nodes
are analogous to switchboards in a regular home.
2) Middleware: A middleware behaves as a central server,
which facilitates communication between all the connected
nodes in the network and hosts the automation software.
Further it provides user the facility to access home appliances
over local or remote network.
3) User Interface: An intuitive and customizable graphical
interface which can be accessed either through smartphone
application or through browser interface. The application in-
terface can support major platforms like Android, iOS and
Windows.
Consider the architecture diagram as shown in the Fig. 1.
The architecture is comprised of several wireless nodes, a
middleware and user interface. All the wireless nodes com- Fig. 1: System Architecture
municate over a dedicated or existing network with the mid-
dleware. This communication is based on Message Queue
Telemetry Transport (MQTT) connectivity protocol which is A. Hardware Part
designed for internet-of-things [3]. The MQTT protocol uses In a home automation system, the monitoring subsystem
Publish/Subscribe based messaging on the top of TCP/IP requires input readings acquired from several sensors like
Protocol. light, temperature, pressure, humidity, motion, fire alarm, dust
In the MQTT mechanism, a client needing data (known as air sensors, etc. And based on the input from UI, or based
subscriber) registers its interests with a server (also known on the automation script, the controlling subsystem needs
as broker). The client producing data (known as publisher) to operate several actuators like door locks, linear actuators,
sends the data to a server and this server forwards the fresh motors, etc. These sensors and actuators are attached with the
data to the subscriber. In that context, the nodes subscribe and WiFi module.
publish messages on a specific topic.The Middleware makes
1) Raspberry Pi: Raspberry Pi is a series of small, rela-
the provision to relay messages between nodes and works as
tively cheap, single-board computers. It is about the size of a
MQTT Broker with which all nodes are connected. The nodes
credit card, has a 32-bit ARM processor and uses a Debian
attached to sensors generally use the publish mechanism,
distribution of Linux for its default Operating System (OS).
whereas the nodes attached to actuators generally use the
It can be programmed with python or any other language that
subscribe mechanism. If a wireless node is connected to
will compile for ARMv7. The experimental system utilizes
both actuators and sensors, it will use publish as well as
Raspberry Pi 2 Model B loaded with Raspbian Jessie image.
subscribe mechanism. Apart from hosting a MQTT Broker, the
It is essentially a system-on-chip (SoC) with connection ports
Middleware runs a home automation server based on HTTP,
like USB, Ethernet, etc. The Raspberry Pi can be connected to
from which the User Interface (UI) can be accessed.
the network by either a USB WiFi Modem or by an Ethernet
User can use either a Smartphone Application or a Web
Cable.
Browser to access the UI of Home Automation. The user is
presented with a graphical menu containing all the actuators Raspberry Pi is the heart of the system. It operates as a
available in the system. For example, for a particular room, the Middleware, as mentioned in the System Architecture. The
menu shows the switches for Ceiling Light, Fan, Plugs. When automation software OpenHAB along with the MQTT broker
user touches a switch the corresponding item will turn On/Off. is installed in the Raspbian OS. For the Home Automation
system to remain functional, it is necessary that Raspberry Pi
III. S YSTEM I MPLEMENTATION must be powered on and connected to network all the time.
The system was developed using Raspberry Pi and ESP8266 However, it is possible that Raspberry Pi might loose power
as the hardware part and the OpenHAB platform and because of intermediate power outages which will stop the
Mosquitto Broker as the software part. automation server. To make automation system robust, once
Fig. 3: Node Interaction Diagram
S w i t c h g p i o 0 n 1 C e i l i n g ( node1 , l i g h t s )
{ m q t t =>[ p i b r o k e r : node1 / 0 : command :ON: d e f a u l t ] , >[
p i b r o k e r : node1 / 0 : command : OFF : d e f a u l t ] , <[ p i b r o k e r
: node1 / s t a t e / 0 : s t a t e : d e f a u l t ] }