Home Automation Using Arduino
Home Automation Using Arduino
ABSTRACT phone or via the internet. This paper presents an innovative low cost
design and implementation of automated ambience control using
This paper presents a low cost and flexible home control and user mood or based on weather conditions, interactive voice based
environmental monitoring system. It employs an embedded micro – response, appliance control, and, home security together with the
web server in Arduino Mega 2560 microcontroller, with IP design of android application to enable the cell phone to send
connectivity for accessing and controlling devices and appliances commands and receive alerts through the server.
remotely. These devices can be controlled through a web application
or via Bluetooth Android based Smart phone app. The proposed In the present day, security systems play an important role in the
system does not require a dedicated server PC with respect to similar protection of lives and investment. This is achieved by the
systems and offers a novel communication protocol to monitor and incorporation of various subsystems into the security system with a
control the home environment with more than just the switching single control unit such as surveillance, intruder control, access
functionality. To demonstrate the feasibility and effectiveness of this control, fire detection, etc. A smart home is one that is equipped with
system, devices such as light switches, power plug, temperature lighting, heating, and electronic devices that can be Today’s world is
sensor, gas sensor and motion sensors have been integrated with the digitized. Starting from our handheld devices to computers to smart
proposed home control system. appliances, our world is digitized. Thus a smart home would be the
next step for a better future. The system efficiently controls the lights
The rapidly advancing mobile communication technology and the and appliances, thus minimizing power consumption.
decrease in costs make it possible to incorporate mobile technology
into home automation systems. We propose a mobile and internet The system makes use of the internet to control the house appliances
based home automation system that consists of a mobile phone with and the lights. Apart from merely switching off and switching on the
android capabilities, an internet based application, and a home lights, the system can control it efficiently using ambient light
server. The home appliances are controlled by the Arduino which sensors and can adjust the lights setting of the home. It enables the
receives commands from the server computer, which operates user to control various aspects of their appliances from a remote
according to the commands received from the mobile application via location through a hand held device. It hence makes a versatile
the wireless network or the internet. In our proposed system the system which expands the mobility of the user. The system
home server is built upon a Wi-Fi technology which receives emphasizes on controlling lights based on human mood, weather or
commands from the client and the command is processed via lighting conditions which gives the user a diverse range of
Arduino, which allows a user to control and monitor any parameters controlling options. Controlled remotely by smartphone or via the
related to the home by using any Java capable cell phone or via the internet.
internet.
LITERATURE REVIEW
Wi-Fi’s technology in home automation has been used primarily due 7) Place and weld the components in the model.
to the networked nature of deployed electronics where electronic
devices such as TVs, mobile devices, etc are usually supported by 8) Test and debug the application.
Wi-Fi. Wi-Fi have started becoming part of the home IP network and
due the increasing rate of adoption of mobile computing devices like
smart phones, tablets, etc. For example a networking to provide
online streaming services or network at homes, may provide a mean
to control of the device functionality over the network. At the same
time mobile devices ensure that consumers have access to a portable
‘controller’ for the electronics connected to the network. Both types
of devices can be used as gateways for IoT applications. By the
concept of the internet of things, homes and buildings may operate
many devices and objects smartly, of the most interesting application
of IoT in smart homes and buildings are smart lighting, smart
environmental and media, air control and central heating, energy
management and security. many more digital appliances are
populated in our homes, it is necessary that all of them have to be
networked in such fashion that they can be monitored and controlled
from anywhere, at any time, by an authenticated person, this is called
Smart Home Automation System (SHAS). Dhawan S. Thakur and
Aditi Sharma, This paper proposes a Voice control and Zigbee based
Home Automation System, in this system user has to give a voice
command to control the in-home appliances. Here Zigbee is used to
communicate between base station and remote station. Both base
station and remote station are placed in such a range that the Zigbee
communication is possible. This system cannot be used outside the
range of Zigbeecommunication. Akanksha Singh, Arijit Pal, Bijay
Rai, This paper proposes a GSM based Home Automation System
where user can control the in-home appliances by sending the SMS
to an HAS placed in home environment. In this system user sends In hardware terms the most important part is the local controller, an
the message to the GSM modem which is interfaced with the Arduino board, which will be the core of the application, the one that
microcontroller. Microcontroller in-turn turns on the required will be communicated with the mobile application and where the
devices through the switching module. A GSM and ZigBee based sensors and actuators will be connected. The sensors needed to
communication and control for home appliances has been presented capture desired environmental variables are temperature, lighting,
by many of researchers the drawback of these systems is that in movement and water level sensors and to control these variables a
ZigBee, range plays important role and in GSM, at remote places fan, some LED, an acoustic warning and a water pump are required.
there should be proper coverage of GSM mobile signal. The above Finally, to make effective the necessary communication between the
mentioned systems have made momentous endowment to the design board and the mobile will be needed a Bluetooth device.
and development of home automation systems. Rajeev Piyare, This
As for software, one of the advantages of using an Arduino board as
paper proposes an Arduino based Home Automation System, in this
a local controller is that it has its own development environment or
system various sensors are used to sense the data and this data is
IDE (Integrated Development Environment) that provides facilities
updated on a webpage through the Arduino processor and even user
for software development. For the other programming part, will be
can control the device through internet. Drawback of this system is
necessary another software to program the mobile application.
Through android application authorized user can access the system
using Internet, by using router and hardware interface module. The
primary function of the router for the proposed architecture is to
provide data translation services between the Internet through
sending and receiving requests and responses respectively. The main
component is a web server based on Ethernet embedded with
METHODOLOGY
microcontroller. The main task of the server is to get the request,
Proposed model of Home automation system process it and then provide response back to the user. Hardware
interface modules are directly connected with sensors and actuators
through cables. It has the capabilities to control power management
systems like lightings and security systems such as home door locks,
and gate. PIC microcontrollers (Programmable Interface Controllers)
are electronic circuits that can be programmedto carry out a vast
range of tasks. They can be programmed to be timers or to control a
production line and many more. They are found in most electronic
devices such as alarm systems, computer control systems, phones, in
fact almost any electronic device.
• Control appliances
• Lights on/off/dim
Fig: Proposed model of Home automation system
• Fan on/off
The end user can use their mobile phone to log into the system. An
initial check is performed for whether the hardware device is ON or • On/off different appliance
not. Only if the Hardware is authorized and ON then the user is
Authenticated. Once the authentication is done successfully the user • Leakage of gas
is able to send the control signals to the Hardware machine. At the
hardware machine the SL driver program will continuously track for Hardware Description
the change in the status & will accordingly send the signals to the
Circuit. When a user select a change in the status for any of the This hardware implementation contains 4 different parts.
device [ i. e .. ON or Off], the data from the handheld is sent to the
Web Server in a string format, where the Web – site is hosted. On (i)A 16X2 LCD display for displaying status of the system and IP
the server the status is stored in the database in their respective address of the local Wi-Fi network
device field. At the Hardware end, the circuit drive program a web
(ii) Relay for switching the load automatically,
page is [retrieve.aspx] is used to retrieve the status of the devices in a
timely pattern [every 10sec]. These changes come in to form of (iii) Arduino as decision maker and
cookies [ temporary internet files] from the webserver & are stored
on the computer in the name of the web site. Hence every 10 sec as (iv) esp8266 version 1 for connecting to local Wi-Fi.
the page refreshes the new cookie values are updated. The cookie
values are read from the program using the VB component
GETINERNETCOOKIE after a fixed delay. As the program
receives any change in the Device values it send the control signal (i) Arduino UNO
[binary data] accordingly to the required data pin of the parallel port.
The UNO proves to be Arduino’s flagship board for beginner and
An “IOT based ICMS for Home Automation” is a low cost and also for advanced users. The system needs a micro-controller to
flexible system which provides various services for remotely process data and connects different modules for control. This
accessing and operating on home appliances such as lights and fan purpose was solved by Arduino Uno which has ATMEGA328p
on/off automatically as well as manually through android application processor. It has 6 analog input pins and 14 digital input/output
on smart phones, monitoring room temperature , LPG gas leakage, pins[13]. It can operate with either 5V from USB plug or 12V from
gate and door open/close . external power supply. In Arduino Uno pin 1 and 0 are used as
default transmission and receiving pin (Figure).
The similar kind of project can be deployed for other real life
applications hospitals and schools also. The components are
connected to embedded micro-web server, with IP connectivity
either through LAN or Wi-Fi module for accessing, controlling and
monitoring devices and appliances remotely using Android based
Smart phone application. This system receives commands from
remote devices that are manipulated by user. The system in turn
dispatch commands to respective appliances that will perform the
actions. This system also keeps track of the status of the devices.
through web browser or computer for real time notification ESPlorer
is used.
Implementation
Software Description
All the required data is stored in the cloud (Gmail). The stored data
can be analyzed at anytime and anywhere. The figure 5 shows the
Advantages of Home automation systems: temperature in degree Celsius stored at different time intervals. And
also it shows the state of the motion detector along with the time. It
In recent years, wireless systems like Wi-Fi have become more and also provides information about time of motion detected and how
more common in home networking. Also in home and building many times as well. All this information is stored in the cloud which
automation systems, the use of wireless technologies gives can be checked by the user any time when away from home.
several advantages that could not be achieved using a wired network
only.
For low cost and flexible home control and monitoring system
using Android based Smart phone is proposed and implemented. The
proposed architecture utilizes a micro web server and Bluetooth
communication as an interoperable application layer for
communicating between the remote user and the home devices. Any
Android based Smart phone with built in support for Wi-Fi can be
CONCLUSIONS used to access and control the devices at home. When a Wi-Fi
connection is not available, mobile cellular networks such as 3G or
In this paper, a novel architecture for low cost and flexible home 4G can be used to access the system. The system also uses the
control and monitoring system using Android based Smart phone is Google speech recognition engine thus eliminating the need for an
proposed and implemented. The proposed architecture utilizes a external voice recognition module. Prospective future works include
micro web server and Bluetooth communication as an interoperable incorporating SMS and call alerts, and reducing the wiring changes
application layer for communicating between the remote user and the for installing the proposed system in pre-existing houses by creating
home devices. Any Android based Smart phone with built in support a wireless network within the home environment for controlling and
for Wi-Fi can be used to access and control the devices at home. monitoring the smart home environment.
When a Wi-Fi connection is not available, mobile cellular networks
such as 3G or 4G can be used to access the system. The system also
uses the Google speech recognition engine thus eliminating the need
for an external voice recognition module. Prospective future works
include incorporating SMS and call alerts, and reducing thewiring
changes for installing the proposed system in pre-existing houses by
[19] Violino, B, The 'Internet of things' will mean really, really big
data, InfoWorld, 2013.
http://www.infoworld.com/article/2611319/computer-hardware/the--
internet-of-things-will-mean-really--really-big-data.html
REFERENCES
[1] Jinsoo Han; Chang-sic Choi; Wan-Ki Park; Ilwoo Lee; Sang-Ha
Kim, "Smart home energy management system including renewable
energy based on ZigBee and PLC,"
[2] Baraka, K.; Ghobril, M.; Malek, S.; Kanj, R.; Kayssi, A., "Low
Cost Arduino/Android-Based Energy-Efficient Home Automation
System with Smart Task Scheduling," Tavel, P. 2007 Modeling and
Simulation Design. AK Peters Ltd.
[5] Gupta, A.; Mudgal, A.; Jayaraj, C.; Kulkarni, J.; Jain, K.;
Murarka, P.; Gujar, S., "Smart home device and energy management
systems,".