0% found this document useful (0 votes)
78 views

Intelligent Smart Home Automation and Security System Using

Uploaded by

Raka Isima
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
78 views

Intelligent Smart Home Automation and Security System Using

Uploaded by

Raka Isima
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

See discussions, stats, and author profiles for this publication at: https://www.researchgate.

net/publication/315648361

Intelligent Smart Home Automation and Security System Using Arduino and
Wi-fi

Article  in  International Journal Of Engineering And Computer Science · March 2017


DOI: 10.18535/ijecs/v6i3.53

CITATIONS READS

77 19,435

6 authors, including:

Nagarajan Ramalingam P.A. Gopinath


Gnanamani College of Technology Gnanamani College of Technology
55 PUBLICATIONS   721 CITATIONS    53 PUBLICATIONS   476 CITATIONS   

SEE PROFILE SEE PROFILE

Some of the authors of this publication are also working on these related projects:

POWER FECTRONICS View project

All content following this page was uploaded by Nagarajan Ramalingam on 29 March 2017.

The user has requested enhancement of the downloaded file.


www.ijecs.in
International Journal Of Engineering And Computer Science ISSN:2319-7242
Volume 6 Issue 3 March 2017, Page No. 20694-20698
Index Copernicus value (2015): 58.10 DOI: 10.18535/ijecs/v6i3.53

Intelligent Smart Home Automation and Security System Using


Arduino and Wi-fi
J.Chandramohan 1 , R.Nagarajan2 , K.Satheeshkumar 3 , N.Ajithkumar 4 , P.A.Gopinath 5 ,
S.Ranjithkumar 6
1
Asst. Professor, Department of Electrical and Electronics Engineering, Gnanamani College of Technology, Namakkal, India.
2
Professor, Department of Electrical and Electronics Engineering, Gnanamani College of Technology, Namakkal, India.
3-6
U.G. Students, Department of Electrical and Electronics Engineering, Gnanamani College of Technology, Namakkal, India.
[email protected]

Abstract: This paper provides a low cost-effective and flexible home control and monitoring system with the aid of an integrated
micro-web server with internet protocol (IP) connectivity for access and to control of equipment and devices remotely using
Android-based smartphone app. The proposed system does not require a dedicated server PC with respect to similar systems
and offers a new communication protocol for monitoring and controlling the home environment with more than just
switching functionality. Smart home interfaces and device definitions to ensure interoperability between Wi-fi devices from
various manufacturers of electrical equipment, meters and smart energy enables products to allow manufactured. In this
project gives the intelligent operation for lamps and fans. Here the system is connected with temperature control and lamp
control. Light dependent resistor (LDR) and Temperature sensor (LM35) are the main components for this automatic control
of lamps and fans. Here the LDR is responsible for lamp control and LM35 is responsible for controlling the operation of fan.
The proposed home energy control systems design intelligent services for users and provides, The proposed system are
implemented with smartphone.

Keywords: Wi-fi, Arduino, Home Automation, Android, Smartphone.


performance can react. The Wi-fi technology an end node,
1. INTRODUCTION the node sends data to the coordinator, and the coordinator
Hub sends the data back to the terminal end of the loop.
The Intelligent management of the power system facilitates
the joint use the current and minimizes power loss during
2. RELATED WORK
transmission and power consumption is highlighted by the
A. general smart home design
global community, academic institutions, and state
Smart Home is applied in order to provide comfort, energy
administration. The idea of a smart grid enabling efficiency and better security. Smart Home System is still rarely
technologies used in recent years for the gain of full utility, used in Indonesia because of the cost and the difficulty of getting
customer protection, attracting a great deal of attention in the device. The objective of this paper is to offer a Small Smart
the energy industry and academia. In continued growth of Home System designed and created by utilizing WLAN network
popularity and functionality by mobile devices, demand based on Arduino microcontroller. The system is able to monitor
advanced mobile applications widespread in human life. and control lights, room temperature, alarms and other
The use of Web Services is an open and interoperable household appliances. Results from testing the system show
method for providing remote access service or applications proper control and control monitoring functions can be performed
can communicate with each other [1], [2]. from a device connected to a network that supports HTML [4].
An attractive market for home automation and network of The proposed system hardware and software are implemented in
busy families and individuals will have physical limitations. this work. The expected work contributes towards the
ARDUINO and Wi-fi shield, and it was the smart home development of ubiquitous home networks. The part of future
micro web server. Arduino is an open source electronics work applied in IEEE 802.15.4 standard technology in our
proto typing platform on the basis of flexible, easy to use home.
hardware and software. The Arduino I board have the
microcontroller with 54 digital input / output pins [3]. Requirements
The Wi-fi interface in Arduino through the serial peripheral Hardware requirements
interface (SPI) pins. The low-voltage switching relays were • Arduino UNO kit
used to integrate devices with Arduino will show the • ESP 8266 node mcu wifi shield
switching functionality. The LM35 temperature
sensor is used to control a smart home environment. The • Optocoupler
supervisory control system Intranet, low cost and high • Power supply

J.Chandramohan, IJECS Volume 6 Issue 3 March, 2017 Page No. 20694-20698 Page 20694
• Driver circuit Figure 2: Proposed system of home automation system
• Relay circuit
• Loads
• Wire
Software requirements
• Arduino IDE
• Fritzing compiler
• Virtual Bread board
• Android apk

Figure 3: Hardware architecture and implementation


Figure 3 shows the hardware architecture and implementation.
Figure 1: Existing system of home automation system Any internet connection via Wi-Fi or 3G/4G network can be used
on the user device [6]. The features that the proposed design
offers are the control of energy management systems such as
An isolated WSN with one coordinator, which is integrated
lightings, power plugs and HVAC (heating, ventilation and air
into the PLC transceiver, is established in each room. The
existing system of home automation system is shown in conditioning) systems.
Figure 1. The coordinator is responsible for transferring
environmental parameters obtained by WSNs to the 3. HOME AUTOMATION DEVICES
management station via PLCs. The control messages for
home appliances are directly transferred using PLCs rather Central controller (Arduino) receiving commands used to
than WSNs [5]. The Figure 2 shows the proposed system of perform. You may connect to the Internet through a Wi-fi shield
home automation system. The Arduino Uno and Wi-fi mounted on the Arduino. On the user side, provides a portable
shield were used to implement the micro Web-server for interface to the system as a whole through an easy-to-use
the Home gateway in figure 2. Home gateway connects to application. Can either be wired mobile device of the central
the Internet. Arduino Uno is an open-source control unit (through the USB cable, for example), or in
microcontroller that uses ATMEGA 328, an Atmel AVR connection with this wirelessly. Within the home, wireless
processor which can be programmed by the computer in C connectivity can be achieved by using the Wi-fi shield on the
language via USB port. Arduino Uno also has on-board 5 central console. This way, you will be able to access the console,
analog pins and 13 digital pins for input and output either locally or remotely through the Internet. In this case,
operations, supporting SPI and I2C which can be used to client/server architecture is the one to choose, because the
interface with other devices. central console as a static entity that responds to requests from
clients.

Figure 4: Whole process smart home automation

Figure 4. shows the whole process Smart home automation


system. Hence need for server (at the application level, any
piece of code that can respond to client requests) is closely
linked to the company. We'll use a simple Web server
application running on Arduino that communicates via HTTP
protocol with Web-based Android app [7].

4. INPUT /OUTPUT BLOCK


Input/output block consists of two pieces of PIR (Passive
Infra-Red) motion sensor and an LM35 temperature sensor
as inputs and some lamps, sockets, relay and buzzer as

J.Chandramohan, IJECS Volume 6 Issue 3 March, 2017 Page No. 20694-20698 Page 20695
outputs.PIR sensor is used to detect the presence of motion. Automatic fan and control circuit connection is shown in
The sensor readings are used to turn off the lights if there isFigure 6. In fan/AC control, the temperature values are previously
no activity and turn on the lights otherwise. In addition, thisset. During daytime, the temperature values are about 35 oC.Then the
sensor is also used for security systems to detect suspiciousmicrocontroller will receive the signal from LM35, and turns ON the
movements. If it detects any suspicious movement an alarmport, which is connected to AC/fan. During winter season
(buzzer) will sound. An LM35 is functioning as temperature temperature reduced as below 20oC.Then there is no need
monitoring. This sensor also serves as an input in order to of fan/AC. Hence the fan/AC will turn off.
execute some sockets. The socket will in on condition when
the temperature exceeds a certain limit. This condition will 5. MAIN COMPONENTS
activate a fan or Air Condition (AC) while connected to the A. Arduino controller
socket. Connection circuit between microcontroller system
In Figure 7 shows the diagram of Arduino uno controller.
with a PIR sensor and an LM35 sensor is Shown in Figure 5
Arduino is a unique Arduino board which features a WIZ
and Figure 6. Output part consists of the relays and buzzer.
net Wi-fi port, a Wi-fi socket, nRF24L01+ module
Buzzer serves as a warning alarm when there is suspicious
interface and an ATMega328. This board will add wireless
movement. Relays connected with lamps and socket [8].
ESP8266 wi-fi shield control as well as internet
A. Automatic Lamp control
connectivity to the project [10].

Figure 5: Connection Circuit with PIR Sensor

In this project gives the intelligent operation for lamps and


fans. Here the system is connected with temperature control
and lamp control. Light dependent resistor (LDR) and
Temperature sensor (LM35) are the main components for
this automatic control of lamps and fans. In Figure 5 shows

Figure 7: Arduino UNO Board

B. Wi-fi Shield
Wi-fi is an open global standard built on the IEEE 802.15.4
MAC/PHY. Wi-fi defines a network layer above the
802.15.4 layers to support advanced mesh routing
capabilities. The Wi-fi specification is developed by a
growing consortium of companies that make up the Wi-fi
connection circuit of arduino with PIR Sensor for lamp
Alliance. The Alliance is made up of over 300 members,
control. Here the LDR is responsible for lamp control and
including semiconductor, module, stack, and software
LM35 is responsible for controlling the operation of fan. In
developers in Figure 12. [11]. Wi-fi Series 2The difference
lamp control, LDR values are previously set. Then the between Series 1 (S1) and Series 2 (S2) is that the latter
darkness falling on the LDR due to sunset. The enhances the power output of the antenna to 2mW [11]. S2
microcontroller receives the resistance value from LDR. also enhances the data protocol of the Wi-fi module.S2 is
When the controller attains the limit, the lamp will glow, or similar to S1 in enabling simple and easy communication
otherwise it will turn off [9]. between microcontrollers and supporting point-to-point and
B. Automatic Fan and AC control point-to-multi point communication [12]. The connection
diagram of esp8266 is shown in Figure 8.

Figure 8: ESP 8266 node mcu Wi-fi shield

C. Power supply

Figure 6: Connection Circuit with LM35 Sensor

J.Chandramohan, IJECS Volume 6 Issue 3 March, 2017 Page No. 20694-20698 Page 20696
Figure 11: System overview
Figure 11 shows the system overview of the home
automation system. It which includes almost everything
you need. However, since Arduino version 0018, because
of the implementation of SPI and because the Arduino Wi-
fi Shield communicates with the Arduino board through
SPI, we have to include something more. The data in the
Figure 9: Power circuit database to transfer on the same web page hosting server to
show the data that is the switching state.
D. Relay circuit The web page on hosting server can read and update data in
database. Writing the Code for the Web Client For the Web-
enabled light switch, we will create a simple Ruby on Rails
+12V
project to manage the user interface interaction first via a
1 3 web browser. We won’t spend a lot of time on the user
D3
4 X 1N4007 IC7805 +5V
interface, though; since that will ultimately be the job of the
- +
2 custom Android application we will create after the web
AC 220V
+ + interface is functionally tested.
1000MFD\50V 0.1MDF 100MFD\25V The Android app was designed to show the switch is the
BRIDGE
same as the web page on hosting server. It can also read
update data on the database by touching the "ON" or "OFF"
12V / 1A
and appears on the button as on the website. This smart
switch device, the lamp in a house controlled manually with
Figure 10: Relay board and control circuit the infrared switches detection system or wirelessly with
first part is the smart switch apparatus that is connected Android App [14].
to the existing wiring of the electrical appliances in the The android platform app
house, such as a ceiling air condition and lamp in order to
get power supply.This unitwill receive supplies from the
lives and neutral of home supply that are connected to the
power module. It is 240 VAC to convert (AC) to (DC) with
5V rectifier type DC power supply Wi-fi adapter. The
relay circuit is shown in Figure 10.
The function of the relay module as normal switch "ON"
and "OFF" will turn a lamp. An infrared detection system
consists of infrared sensor as an input, while the relay
module as starting Arduino Wi-fi adapter. The Wi-fi is a
feature-rich RF module for use on a wireless sensor
network. The IEEE 802.15.4 protocol greatly reduces the
work of the programming ensuring data communications.
The Wi-fi has many other features for use in a WSN
beyond its networking ability [13].

Fig.12 Screen shots of the proposed smart home app

J.Chandramohan, IJECS Volume 6 Issue 3 March, 2017 Page No. 20694-20698 Page 20697
The Figure 12 shows Screen shots of the proposed smart "C Programming for Arduino" Julien Bayle Copyright © 2013 Packet
Publishing
home. There are several platforms for developing smart
"Programming Your Home Automate with Arduino, Android, and Your
phone applications such as Windows Mobile, Symbian, iOS Computer" Mike Riley, Copyright © 2012 The Pragmatic Programmers,
and Android. In the proposed system, the Android platform LLC.
app is developed as most of the phones and handy devices ZigBee Communication Technology in a smart Home Wireless Sensor
Network "Proceedings of Second International Conference on Modern
support Android OS. Java programming language using the Trends in Science, Engineering and Technology 2014"
Android Software Development Kit (SDK) has been used Arduino Technical specs "www.ardui no.cc/en/M ain/arduino board uno"
for the development and implementation of the smart home " Getting Started with XBee RF Modules" Version 1.0 by Martin Hebel and
app [15]-[17]. George Bricker with Daniel Harris
[15]. R.Nagarajan and M,Saravanan. “Performance Analysis of a Novel
• Remote connection (via internet) to the smart home Reduced Switch Cascaded Multilevel Inverter,” Journal of Power
micro web-server; require server real Electronics, Vol.14, No.1, pp. 48-60. 2014.
[16].R.Nagarajan and M,Saravanan “Staircase Multicarrier SPWM
• IP and user authentication. Technique for Nine Level Cascaded Inverter,” Proceedings of the
• Device control and monitoring. International Conference on Power, Energy and Control, IEEE Press,
• Scheduling tasks and setting automatic control of pp-668-675. 2013.
the smart home environment. [17]. " C Programming for Arduino" Julien Bayle Copyright © 2013
Packet-Publishing..
• Password change option.
• Supports voice activation for switching functions.
J.Chandramohan received his B.E. in Electrical
and Electronics Engineering from Bharathiyar
CLUSION University Coimbatore, India, in 2003. He
In this paper presents the new circuit topology for received his M.E. in Power Electronics and
monitoring and control the home electrical devices by using Drives from Anna University, Coimbatore,
the flexible home-based Android smart phone at a India, in 2010. He is currently working toward
his Ph.D. in Power System at Anna University
reasonable price and implemented by wireless transceiver Chennai, India. He is currently working as a
and IBOARD. The Arduino as well as using android app for Assistant Professor of Electrical and Electronics Engineering at
system control configuration. The proposed new circuit Gnanamani College of Technology, Namakkal, Tamilnadu, India.
topology is used in a quiet based web services in an Author’s
His photo
current research interest includes Power System and High
interoperable application layer for communication between Voltage Engineering.
the remote user and the home device. All Android-based
smart phone, the Wi-Fi connection is the support built; the R. Nagarajan received his B.E. in
home access device to control can use the phone, Wi-Fi, 3G Electrical and Electronics Engineering
or 4G to access the Web page on hosting server using from Madurai Kamarajar University,
Madurai, India, in 1997. He received his
Android App.
M.E. in Power Electronics and Drives from
Anna University, Chennai, India, in 2008.
REFERENCES He received his Ph.D in Electrical
Andi Adriansyah, Akhmad Wahyu Dani" Design of Small Smart Home Engineering from Anna University,
Control Systems Based on Wireless Sensor Networks and Power Line Chennai, India, in 2014. He has worked in the industry as an
Communications" 10.1109/TIE .2014 .2379586, IEEE Transactions on Electrical Engineer. He is currently working as Professor of
Industrial Electronics. Author’s photo
Electrical and Electronics Engineering at Gnanamani College
Kim Baraka, Marc Ghobril, Sami Malek, Rouwaida Kanj, Ayman
of Technology, Namakkal, Tamilnadu, India. His current
Kayssi"Low cost Arduino/Android-based Energy-Efficient Home
Automation System with Smart Task Scheduling" 2013 Fifth International
research interest includes Power Electronics, Power System,
Conference on Computational Intelligence, Communication Systems and Soft Computing Techniques and Renewable Energy Sources.
Networks.
Zhenyu Zoua, Ke-Jun Lib*, Ruzhen Lia and Shaofeng Wub " Smart Home
System Based on IPV6 and ZIGBEE Technology" Procedia Engineering 15
(2011) 1529 – 1533
Rajeev Piyare "Internet of Things: Ubiquitous Home Control and
Monitoring System using Android based Smart Phone" International
Journal of Internet of Things 2013, 2(1): 5-11 Yue Li " Design of A Key
Establishment Protocol for Smart Home Energy Management System" 2013
Fifth International Conference on Computational Intelligence,
Communication Systems and Networks.
Shiu Kumar"UBIQUITOUS SMART HOME SYSTEM USING
ANDROID APPLICATION" International Journal of Computer Networks
& Communications (IJCN C) Vol.6, No.1, January 2014 Andi Adriansyah,
Akhmad Wahyu Dani" Design of Small Smart Home System Based on
Arduino" 2014 Electrical Power, Electronics, Communications, Controls,
and Informatics Seminar IBoard datasheet by “www. iteadstudio.com "
Tech Support: [email protected]
XBee datasheet by Digi International, Inc. All rights
reserved"www.digi.com" [email protected]
Nazrul Anuar Nayan, Ili A.M. Ikhsan, Yasuhiro Takahashi " Using ZigBee
Communication Technology in a smart Home Wireless Sensor Network
"Proceedings of Second International Conference on Modern Trends in
Science, Engineering and Technology 2014"
Arduino Technical specs "www.arduino.cc/en/M ain/arduino board uno"
" Getting Started with XBee RF Modules" Version 1.0 by Martin Hebel and
George Bricker with Daniel Harris

J.Chandramohan, IJECS Volume 6 Issue 3 March, 2017 Page No. 20694-20698 Page 20698

View publication stats

You might also like