Iot Based Smart Home Automation System Using Sensor Node
Iot Based Smart Home Automation System Using Sensor Node
Abstract—In recent years, the advancements in Information lighting, ventilation, climate control as well as various other
and Communication Technology (ICT) are mainly focused on
the Internet of Things (IoT). In a real-world scenario, IoT based
embedded system devices that can be connected to the internet.
services improve the domestic environment and are used in Another major characteristic of the present generation of
various applications. Home automation based IoT is versatile and home automation is the remote monitoring and access of the
popular applications. In home automation, all home appliances automated appliances. With the evolution of smartphones and
are networked together and able to operate without human tablets and the development of various communication
involvement. Home automation gives a significant change in
humans life which gives smart operating of home appliances. This
technologies like Wi-Fi, Bluetooth and ZigBee we have gained
motivated us to develop a new solution which controls some home the ability to connect to our home network while we are away
appliances like light, fan, door cartons, energy consumption, and indeed. There are many advantages associated with home
level of the Gas cylinder using various sensors like LM35, IR automation. One of the advantages is the immense potential
sensors, LDR module, Node MCU ESP8266, and Arduino UNO. for energy conservation and cost saving.
The proposed solution uses the sensor and detects the presence or
absence of a human object in the housework accordingly. Our The efficient home automation system is proposed in this
solution also provides information about the energy consumed by paper. The significant contributions of this paper are as
the house owner regularly in the form of message. Also, it checks, follows:
the level of gas in the gas cylinder if it reaches lesser than the 1) Initially, we automate the functioning of some essential
threshold, it automatically books the gas and sends a reference
number as a message to the house owner. The proposed solution
home appliances like fans, lights, air-conditioners and
is deployed and tested for various conditions. Finally, in this water heaters by the readings received by various
paper, the working model of our proposed solution is developed sensors installed at different parts of the house.
as a prototype and explained as a working model. 2) All These sensors will be connected to the Node MCU
Keywords—Smarthome; IoT;Homeautomation; Sensors; ICT; ESP8266 or the Arduino Uno which will process the
I. INTRODUCTION readings received by the sensors and control the relays
connected to the appliances
The Internet of Things [1] is the interconnection of the
3) A CT sensor is used to measure the energy consumed in
various computing devices embedded in the daily appliances
the home regularly and updated in the database. Further,
to the internet, thus enabling them to communicate with each
our solution uses database values and calculates power
other. This enhances the end users quality of life and to
bill and it notifies through the SMS for every 15 days.
improve efficiency and sustainability in the day to day
4) A load sensor has also been connected to the Arduino
activities. In shortly, many of the smart devices will be
which keeps a track on the amount of LPG in the
communicating over IoT [2] The analyst firm Gartner predicts
cylinder. If the weight of the cylinder reaches a certain
that by 2020 there will be more than 20 billion devices
threshold, then a SMS is directly sent to the gas booking
connected to the Internet of Things. As we will approach that
agency and the user is notified about the booking along
value, it is predicted that around $6 billion will flow into the
with the unique booking ID.
various domains of IoT like application development, device
hardware, system integration, data storage, security, and This paper is henceforth is organized as follows. The
connectivity. Nearly $6 Trillion will be spent on IoT solutions existing home automation solutions are explained in Section
by 2025. II. Motivation is described in Section III. Section IV discusses
We are living in a world that is rapidly evolving regarding the proposed work. Finally, the paper is concluded in Section
automation. Automation is the ability to schedule events for V.
the devices connected to the local network or the internet II. RELATED WORK
through time-related or stimulus-triggered programs. From Home Automation has been on the rise in the recent times.
large industries to small offices, everywhere the concept of Starting from agriculture, to the cities having the tallest of the
automation are being implemented to reduce human skyscrapers are inclined towards automation. In this section,
intervention and to improve energy efficiency and productivity. we will discuss the various existing solutions proposed by
Home automation or domestics is the process of automating different research papers.
the various appliances inside a house thus converting it into a In [5] the author uses 433 MHz radio frequency control
smart house [3, 4]. It involves the automation of heating, module to control the home appliances directly. Gadgets like
978-1-5386-3039-6/18/$31.00©2018 IEEE
4th Int’l Conf. on Recent Advances in Information Technology | RAIT-2018
smartphones and tablets can be directly connected to the
central controller using the Wi-Fi interface. The only problem
with radio signals is that they can be easily intercepted and
are prone to distortions due to interference.
In [6] the author uses the Blue tooth 4.0 protocol to establish
communication between the “smart home appliances” and the
user. The user can use cell-phones or tablets to control these
appliances remotely. The only disadvantage of using Blue
tooth technology is that the devices can only be controlled
from short range. As an Example in [7], the author’s proposed
Blue tooth based home automation systems. In this solution,
the home appliances are controlled based on Android
smartphones without the Internet controllability. All the home Fig. 1: Proposed System Configuration
appliances are physically connected to the Blue tooth
controller and it is controlled by using Smartphone. However,
in this solution, the home appliances are not remotely III. MOTIVATION
connected and not able to operate remotely. Home Automation has been on the rise in the past few
IoT based home automation using android phones [8] is years. With ever-evolving technology, there have been
proposed. In this, the authors used two types of home smarter and more advanced solutions in the domain of home
automation, i.e., Blue tooth and Ethernet-based. Also, the automation. To enhance the standard of living, the appliances
customized Android-based mobile application was used to need to be wholly automated without any user intervention in
control the home applications like Fan, TV, AC, etc. any form whatsoever. This enables the end user hassle-free
Nonetheless, data sources in the prototype is not clear and it interaction with the appliances as the appliances learn and
leads deadlock situation when multiple Android phones try to react as per the user's requirements without him physically
access same web portal. pressing a button. Wired sensor systems are more difficult to
handle and also require much amount of wiring the sensors at
In [9] a smart data acquisition system and energy
different locations. Thus, the importance of wireless sensor
management system has been created which displays the
node has been on the rise and is a critical factor for efficient
necessary data on a web page with the help of SMS, GPRS
implementation of home automation. Energy saving is one of
and email alerts. The ARM microcontroller has been used for
the significant advantages of automating home appliances.
controlling the devices and for wireless communication. The
Thus, the user must be kept aware of the energy consumption
system was designed based on the IEEE1451 protocol which
of the automated appliances. In a developing country like
focuses on defining transducer electronic data sheet for all the
India, where people have busy life schedules, providing
transducers used.
efficient energy saving and comfort at low prices and higher
The low cost, flexible and ubiquitous smart home system is efficiency is of utmost importance.
presented [10]. In this, Arduino Ethernet is used to
communicate over the Internet with the customized IV. PROPOSED SYSTEM
application installed in on Android mobile. The Arduino The proposed system configuration and prototype is shown
device is integrated with various sensors like humidity in Fig. 1 and 2. The following sections explain about the
sensors, temperature sensors, smoke/gas sensors. All these working modules, involved in the proposed solution.
sensors are controlled by the mobile application used by the
user. The proposed prototype is tested and has analyzed the A. System Design
efficiency. However, the proposed system generated alerts in Our proposed prototype mainly consists of three layers of
the form e-mail messages, when the particular home implementation, namely:
application reaches the given threshold.
• Sensor Node Layer
In [11] an Ethernet-based smart home automation and • Sensor Data and Database Interface Layer
energy management system has been proposed based on the • Server and Notification Layer
Intel Galileo development board. Various sensors have been 1) Sensor Node Layer: The sensors, namely, light sensor,
used to control the home appliances as well as to maintain the IR sensor and temperature sensor are connected to the
security of the house. NodeMCU ESP8266. The CT sensor, HX711 ADC
In [12] a TI Wi-Fi CC3200 Launchpad has been integrated module and the load cell are connected to the Arduino
with a PIR sensor to detect motion and send a voice call to the coupled with Ethernet shield. The sensors acquire the
owner of the house. The owner can then decide whether to data of the variables of the home environment and send
disable the security system or not. He can also remotely the data to the NodeMCU. The NodeMCU then
control the home appliances. This implementation also does
very little regarding automation.
978-1-5386-3039-6/18/$31.00©2018 IEEE
4th Int’l Conf. on Recent Advances in Information Technology | RAIT-2018 |
978-1-5386-3039-6/18/$31.00©2018 IEEE
4th Int’l Conf. on Recent Advances in Information Technology | RAIT-2018 |
Fig. 4: User notification messages about Electricity bill and Gas Booking reference No.
978-1-5386-3039-6/18/$31.00©2018 IEEE
4th Int’l Conf. on Recent Advances in Information Technology | RAIT-2018
Algorithm 1 Node MCU ESP8266 V. C ONCLUSION
Require: Inputs from various sensors In this paper, the home automation is improved by
Ensure: Relay ON/OF F considering a Wireless sensor node. A smart home integrates
Notions LS: Light Sensor Data, IR: IR Sensor Data; SM: various electrical appliances in the home and automates them
Servo Motor (Curtains), LIT: Lights; FN: Fan with no or minimum user intervention. The smart home keeps
(val)כ: +ve Value-OPEN; íve Value-CLOSE track of different environment variables present and guides the
appliances to work according to the needs of the user. Not
1: while (T RU E) do only automating the home appliances of daily usage but also
2: Read(LS); notifying the user about the price of his electric bill in regular
3: if (var LS == 1) && (var IR == 1) then interval and automatically booking the gas cylinder, if the level
4: SM = (1);כ of the gas reaches lower than the threshold. By considering,
5: LIT = 0; the above features, we have developed the prototype and
6: F N = 1; tested. We achieved the development of Smart Home by using
7: else if (var LS == 0) && (var IR == 1) then the Internet of Things technologies. From the experiment, it
8: SM = ( 1)í;כ was found that we can manage to make low cost, flexible and
9: LIT = 1; energy efficient smart home for the better and greener
10: F N = 1; future.
11: else if (var LS == 1) && (var IR == 0) then
REFERENCES
12: SM = (1);כ
13: LIT = 0; [1] Luigi Atzori, Antonio Iera, and Giacomo Morabito, The internet of things:
A survey, Computer Networks, vol. 54, no. 15, pp. 27872805, 2010.
14: F N = 0; [2] Somayya Madakam, R Ramaswamy, and Siddharth Tripathi, Internet of
15: else if (var LS == 0) && (var IR == 0) then things (iot): A literature review, Journal of Computer and
16: SM = ( 1)í;כ Communications, vol. 3, no. 05, pp. 164, 2015.
[3] Bing, Kang, Liu Fu, Yun Zhuo, and Liang Yanlei. ”Design of an
17: LIT = 1; Internet of things-based Smart Home System.” In Intelligent Control and
18: F N = 0; Information Processing (ICICIP), 2011 2nd International Conference on,
19: end if vol. 2, pp. 921-924. IEEE, 2011.
[4] Kamal, Md Sarwar, Sazia Parvin, Kashif Saleem, Hussam Al-Hamadi, and
20: end while Amjad Gawanmeh. ”Efficient low cost supervisory system for Internet
of Things enabled smart home.” In Communications Workshops (ICC
Workshops), 2017 IEEE International Conference on, pp. 864-869. IEEE,
Algorithm 2 Arduino Programming 2017.
[5] Wang, Ming, Guiqing Zhang, Chenghui Zhang, Jianbin Zhang, and
Require: Input from Loadcell and CT sensor Chengdong Li. ”An IoT-based appliance control system for smart homes.”
Ensure: SMS notification In Intelligent Control and Information Processing (ICICIP), 2013 Fourth
Notions CT: CT Sensor Data International Conference on, pp. 744-747.
[6] Kazi, Riyaj, and Gaurav Tiwari. ”IoT based Interactive Industrial Home
(Irms) wireless system, Energy management system and embedded data acqui-
sition system to display on web page using GPRS, SMS & E-mail alert.”
PWR: Calculated Power from CT In Energy Systems and Applications, 2015 International Conference on,
UC: Units Consumed pp. 290-295. IEEE, 2015.
COST: Electricity Bill [7] Piyare, R., Tazil, M.: Bluetooth based home automation system using cell
phone. In Consumer Electronics (ISCE), 2011 IEEE 15th International
LC: Load Cell Data; CNT: Count for CT Symposium on, pp. 192-195.(2011).
CNCT: Ethernet Connection [8] Kumar Mandula, Ramu Parupalli, CH AS Murty, E Magesh, and Rutul
Lunagariya, Mobile based home automation using internet of things
1: SET CNT = 0; (iot), in Control, Instrumentation, Communication and Computational
Technologies, International Conference on. IEEE, 2015, pp. 340343.
2: SET UC = 0; [9] Gupta, Punit, and Jasmeet Chhabra. ”IoT based Smart Home design using
3: COST = 0; power and security management.” In Innovation and Challenges in Cyber
4: while (T RU E) do Security (ICICCS-INBUSH), 2016 International Conference on, pp. 6-10.
IEEE, 2016.
5: CN T = CN T + 1; [10] Shiu Kumar, Ubiquitous smart home system using android application,
6: Read(CT ); arXiv preprint arXiv:1402.2114, 2014.
7: Read(LC); [11] Kodali, Ravi Kishore, Vishal Jain, Suvadeep Bose, and Lakshmi Bop-
pana. ”IoT based smart security and home automation system.” In Com-
8: P W R = CT × 230/1000; puting, Communication and Automation (ICCCA), 2016 International
9: U C = U C + (CT × 230/180000); Conference on, pp. 1286-1289. IEEE, 2016.
10: COST = COST + (7 × U C); [12] Madakam, Somayya, and R. Ramaswamy. ”Smart Homes (Conceptual
Views).” In Computational and Business Intelligence (ISCBI), 2014 2nd
11: if (CNCT) then International Symposium on, pp. 63-66. IEEE, 2014.
12: GET REQ(P W R, U C, COST, LC) t>Database;
13: else
14: Print(“Connection Failed”);
15: end if
16: end while
978-1-5386-3039-6/18/$31.00©2018 IEEE