Smart Home System Using Internet of Thin
Smart Home System Using Internet of Thin
Abstract- Internet of Things (IoT) is a system of interconnection We can control all loads at the same time from remote
any physical objects around us that has an on and off switch to location without connecting any physical wire between the
the Internet. IoT covers a wide area and includes variety of loads and user. Hence the proposed Smart Home system is
devices like smart phones, PDAs, sensors, actuators and digital more scalable and flexible than the commercially available
cameras. All these devices can be connected to each other to
home automation systems [2].
enable smart processes and services that support our basic needs,
environment and health. One such service that supports basic
need is making our home a Smart Home. The main objective of II. RELATED WORK
the project is to develop a low cost and flexible Smart Home
Home automation System (HAS) can be described as
System using an embedded web server, with IP connectivity that
will provide remote control of home appliances and also provide introduction of technology within the home environment to
security against any problems by using Android based Smart provide convenience, comfort, security and energy efficiency
phone application when the home host is not at home. This to its occupants [3].
proposed work is concerned with the controlling of different
There has been a significant increase in home automation in
home appliances automatically using internet which is meant to
save the electric power and human energy. The various recent years due to higher affordability and advancement in
appliances connected to the microcontroller and sensors are Smart phones and tablets which allows vast connectivity.
connected using wireless network. With the introduction of the Internet of Things, the research
and implementation of home automation are getting more
Key Words: Internet of Things (IoT), Wi-Fi network,
popular [4]. Various wireless technologies that can support
Microcontroller, Home Automation System (HAS), Smart Home
System some form of remote data transfer, sensing and control such as
Bluetooth, WiFi, RFID, and cellular networks have been
utilized to embed various levels of intelligence in the home
I. INTRODUCTION
[5].
circuit as shown in the block diagram in Figure 1. The GSM malfunction of the device is also monitored and informed by
modem provides the communication medium between the the installed system to the user who is remotely located. The
homeowner and the system by means of SMS messages [8] construction of this system is easy, cheap and versatile, and
over the GSM network. can be used in any process industry with a little modification.
But in GSM based HAS, there should be the user intervention
for controlling home appliances wherein the user has to send
some commands like “#A.light on*”, “#A.light off*” and so
on. After receiving these commands by the GSM module, the
microcontroller send signal to relays, to switch ON or OFF the
home appliances using a relay driver. This user intervention
can be avoided and the automation process can be still
maximized by connecting objects like smart-phones, Internet
TVs, sensors and actuators to the Internet where the devices
are intelligently linked together enabling new forms of
communication between things and people, and between
things themselves using IOT technology resulting into a Smart
Home.
This section describes the proposed architecture and design of
flexible and low cost home controlling and monitoring system
Figure 1 Block Diagram of the GSM based Home Automation System using IoT. The architecture is divided into three layers: Home
SMS technology used in the system is easy to use, learn and Environment, IoT Gateway and Remote Environment as
can be accessed easily when needed. A microcontroller can be shown in the figure 2.
controlled and monitored from any GSM phone that supports Remote Environment consists of authorized users who can
SMS. The system is universal as most of the GSM phones access the system on their Smart phone application using the
support SMS i.e. the remote to this system can be any basic Internet using Wi-Fi or 3G/4G network. Home Environment
GSM phone. The range of GSM is global so the user can use consists of IoT Gateway and a hardware interface module.
the system from any corner of the world. User and/or system The primary function of the IoT Gateway is to provide data
administrators are more likely to have their phones with them translation services between the Internets. The main
at all times than they are likely to physically be in front of component of the IoT Gateway is a micro Web-server based
their computers. After the desired operation of the system is module that manages, controls and monitors system
performed the system provides the user with an components, that enables hardware interface modules to
acknowledgement. SMS is used as the main communication successfully execute their assigned task using actuators and to
medium. Abnormal conditions like power failure or the report server with triggered events using sensors.
REMOTE ENVIRONMENT
HOME ENVIRONMENT
The hardware interface modules are interfaced with sensors frequently mentioned to as PIR, "Passive Infrared", "Pyro
and actuators through wires. It has capabilities to control the electric", or "IR motion" sensors.
following components in users home and monitor the
following alarms: Temperature and humidity, Gas leakage
detection, and control the following appliances: Lights
on/off/dim, Fan ON/OFF, ON/OFF of different HVAC Figure 4 Wireless Sensor Unit of Smart Home System
appliances (heating, ventilation, and air conditioning),
Leakage of gas. The next important module is ESP8266EX WiFi module. It
offers a complete Wi-Fi networking solution and can be used
IV. METHODOLOGY to host the application or to offload Wi-Fi networking
functions from another application processor. When
A. Hardware Description ESP8266EX hosts the application, it boots up directly from an
external flash. Alternately, serving as a Wi-Fi adapter,
The methodology of this work design can be divided into two wireless internet access can be added to any microcontroller-
sections: hardware and software implementations. The based design with simple connectivity using SPI/SDIO or
hardware implementation consists of the development of the I2C/UART interface. ESP8266EX is among the most
main controller, sensor networks and the smart home as integrated Wi-Fi chip in the industry as it integrates the
shown in the figure 3. While the software implementation antenna switches, RF balun, power amplifier, low noise
focuses on the programming of the microcontroller using receive amplifier, filters, power management modules.
Embedded C. ESP8266EX is often integrated with external sensors and
other application specific devices through its GPIOs.
The software part consists of programming AT89C52
microcontroller using Embedded C using Keil μVision. The
Graphical User Interface is designed by using PHP. The
gateway flowchart for the establishment of connection to the
internet is shown in figure 4.
Main controller is the most important part of the system that Read the load
parameter (p1, p2, p3)
provides interface between the user and the system. AT89C52
microcontroller is used as the brain of the main controller. It is Send Data to
Webserver
a low-voltage, high-performance CMOS 8-bit microcomputer
with 4K bytes of Flash programmable memory. It has 32
general I/O port and the clock speed can be up to 24 MHz. In If
p1>thres
If
p2>thres
If
p3>thres
addition, it is designed with static logic for operation down to hold t1 hold t2 hold t3
saving modes. The Idle Mode stops the CPU while allowing
the RAM, timer/counters, serial port and interrupt system to Activate the
Load 1
continue functioning. The power-down mode saves the RAM
contents but freezes the oscillator disabling all other chip
functions until the next hardware reset. In order to program
the device, preload tool is been used to burn the program onto Figure 6 IoT Gateway f low chart for the connection establishment with the
this microcontroller. Internet
IR sensors allow to sense motion, and detect whether an The sequence of activities in the Smart Home System is as
object has moved in or out of the range. They are inexpensive, follows:
low-power, small and easy to use. They are normally found in When the connection is established it will start reading
appliances and devices used in households. They are the parameters of loads like p1, p2, p3 etc.
The threshold levels for the required loads are set as t1, Figure 7: Screenshot of Web Server Page of Smart Home System