Mini Project Report
Mini Project Report
On
“IoT-Home Automation using Arduino UNO”
Submitted for partial fulfillment of the requirement for the award of Degree of
Bachelor of Engineering
in
Electronics and Communication Engineering
Submitted by
of
VI Semester
Under the guidance of
Dr. Madhu Chandra G
Associate Professor
CERTIFICATE
Examiner 1
Examiner 2
DECLARATION
We [Hajee Arshiya], [Kandukuri Ahalya Reddy],[Lingala Aravinda Reddy] and [Ummadi
Lakshmi Narasimha Reddy] hereby declare that the project work entitled “IoT- Home
i
ACKNOWLEDGEMENT
The completion of Mini Project work brings with a sense of satisfaction, but it
is never complete without thanking the person responsible for its successful completion.
We express our heartfelt sincere gratitude to our beloved HOD, Dr. Anil Kumar
C, Associate Professor, Department of Electronics and Communication
Engineering, R. L. Jalappa Institute of Technology, Doddaballapura, for his valuable
suggestions and support.
Finally, we would like to thank to All the Teaching and Non-Teaching staff of
the Department of Electronics and Communication Engineering, R. L. Jalappa
Institute of Technology, Doddaballapur, for their support.
ii
ABSTRACT
This project presents a design and prototype implementation of new home
automation system that uses Wi-Fi technology as a network infrastructure
connecting its parts. The proposed system consists of two main components;
the first part is the server (web server), which presents system core that
manages, controls, and monitors users’ home.
Users and system administrator can locally (LAN) or remotely (internet)
manage and control system code. Second part is hardware interface module,
which provides appropriate interface to sensors and actuator of home
automation system.
Unlike most of available home automation system in the market the
proposed system is scalable that one server can manage many hardware
interface modules as long as it exists on Wi-Fi network coverage. System
supports a wide range of home automation devices like power management
components, and security components. The proposed system is better from the
scalability and flexibility point of view than the commercially available home
automation systems.
iii
CONTENTS
Description Page No.
Declaration i
Acknowledgement ii
Abstract iii
5.2. DESIGN
5.3. DEVELOPMENT
REFERENCES 36-37
LIST OF FIGURES
Figure No Description Page No.
1 Smart Home 5
of Things)
3 13
Methodology
4 Arduino UNO 16
out
4.12 ESP8266 Wi-Fi 19
Module
4.13 Arduino IDE 23
Application
4.15 IFTTT 26
5 Wi-Fi Controlled 29
Lights
6 Flow Chart 31
LIST OF TABLES
Table No Description Page No.
1 Technical 17
Specifications
2 Comparison of 21
Communication
Models
LIST OF ABBREVATIONS
Chapter-1
INTRODUCTION
Human beings are very lazy creatures, we want to do all of our work by just sitting at
a one place and not bothering to go out and socialize. Emerging technology has on the
other hand is trying its best to fulfil our demand by everyday introducing something
new. One of the emerging and interesting field is Internet of Things.
Under Internet of Things, we have a small domain called home automation in which
focus is on automating almost every device of our homes. We can make our own
security system just by using sensors and doing some code. We can control the devices
wirelessly by using Bluetooth or Wi-Fi module. It is all about connecting out devices
with the network so that we can control almost anything from anywhere. Unlimited
amount of sensors are available in the market and our task is only to deeply understand
their functioning and implement them in various areas of concern. One of the examples
is of water level sensor, we can use it in our water tanks to measure the level of water
and automatically the motor will be turned off when the level exceeds some threshold
value.
Need to automate the device can come to any of us but we do not have enough of the
knowledge of how to do the things. So, the need to study the basic concepts of Internet
of Things are important. We can get various ideas related to the innovation by
constantly surveying the people by emails or SMS etc.
Major issue now a days is the issue of privacy. With recent events like Facebook
Cambridge analytics case, privacy of users is becoming of great concern to the state
authorities in position. Data from several websites and the data stored on various
clouds also has an issue of privacy due to increasing number of cyber-attacks and
increasing cases of data being stolen without the consent of the user. Data from several
servers is being stolen and sold to big corporate so that they could easily target their
audience and make money out of it.
Recently the Supreme Court of India in Justice K S Puttuswamy vs Union of India &
Others stated that privacy is one of the fundamental duties of the citizen of India thus
protecting privacy is also a major issue in Internet of Things and in the internet world.
Major economies of the world like Europe, United States of America, China and many
other countries have very strict data protection laws like Europe has General Data
Protection Regulation (GDPR) under which user has the choice with whom he/she
wants to share its information and also has the right to be forgotten.
There are several types of devices controlled through home automation which are:
Distributed Control Systems: In this method, the best part is emergency shut down
which becomes very useful when it comes to fire detection or any other such danger
event.
Centrally Controlled Systems: In these systems, the devices are programmed via computer
so that it could handle all kinds of functionality required by the user such as Air Conditioners,
heaters, doors, windows, security systems, car parking etc.
• Automated home: As earlier discussed this refers to automating most of the devices
of you home for example switching off the lights when nobody needs to use it or
turning on and off other appliances in the home. Or controlling the lights with your
own voice or by mobile.
• Internet of Things: Smart homes are made by using Internet of Things. We use
various sensors at different places and make them connected to the network so they
can communicate with each other and there is no need of asking for the inputs and
other details from the user.
Department of E&CE , RLJIT Page|3
“IOT-HOME AUTOMATION USING ARDUINO UNO”
• Connected devices: These are the intelligent devices which have the ability to
connect to the internet and start communicating with the user by use of programming.
For example, we can use it in our water tanks to measure the level of water and
automatically the motor will be turned off when the level exceeds some threshold
value.
Control: We can easily control all the network connected devices almost everywhere
around the world, for example we did not turn off the lights but our light system is
connected to the network via some sensors and constantly monitoring the status of the
lights and giving us the report via sms or any other means. By seeing the status of the
lights we can turn it off by sending some command.
Security: This can be achieved by using Wi-Fi enabled cameras, motion sensor which
will sense the motion or any activity of any object and by using this in collaboration
of alarm we can easily monitor what is going on in the house.
Safety: It can be achieved by using sensors like water sensor which can detect any
leakage in the water tank, smoke sensors which can detect fire etc. Using these sensors
and connecting them to the network can prevent many tragedies from encountering.
IoT is the network of devices (that are mainly various types of sensors attached to
many devices) which permits these sensors to collect and communicate with user and
transmit over the network. Due to this we can remotely access or control any of our
devices and in interaction between the computer world and the physical world is
merging as the new innovation which is helping in increasing efficiency economic
benefits and accuracy. We can see how it is efficient, economically beneficial by
taking this simple example of turning off the lights automatically or automated taps
from which water comes only when hands or any other object is beneath the tap, this
way our electricity and water which are very crucial resources are not wasted at all.
IoT can be used in the following fields:
• Home automation
• Business automation
• Security systems
Chapter-2
LITERATURE REVIEW
Home Automation through IOT: Vinay Sagar, KN. Kusuma,
SM. (2013)
Today the automated home systems face four primarily four challenges; challenges
include: elevated possession worth, inflexibility, poor flexibility, what is more as issue
in achieving security. The foremost aim of this project is to vogue and make an
automated home system mistreatment IoT technology that is apt of dominating and
automating the appliances or devices inside the home through a straight forward and
controllable web interface. The kind of the system talked about throughout this paper,
encompasses a pleasant flexibility of mistreatment Wi-Fi technology to interconnect
the distributed sensors to home automation system server.
Another major issue nowadays is the issue of privacy. With recent events like
Facebooks Cambridge Analytica case, privacy of users is becoming of great concern
to the state authorities in position. Data from several websites and the data stored on
various clouds also have an issue of privacy due to increasing number of cyber- attacks
and increasing cases of data being stolen without the consent of the user. Data from
several servers is being stolen and sold to big corporate so that they could easily target
their audience and make money out of it.
“The most profound technologies area unit those who disappear. They weave
themselves into the material of daily life till they are indistinguishable from it” was
Mark Weiser’s central statement in his seminal paper in scientific Yankee in 1991.
After the arrival of this new technology many new changes are seen in day today’s
life. This concept is becoming popular with times as there are several applications of
this. Internet of Things need is increasing everyday due to the large automation
demands by the large firms, as everything becomes super easy if the concept of
Internet of things is implemented in industries. The ability to do every task that can be
automated with great precision, high speed and minimum errors has allowed various
industries to be more productive and efficient. So it can be seen that Internet of Things
is the technological revolution which has made everyday life very easy with
knowledge of sensors, programming etc.
There are several examples of how an automated machine has made our lives much
easier and comfortable. Some examples of home automation includes:
Switching off the lights or fans even if a person is away from his/her house
Switching on AC so that when a person reaches he/she has the required room
temperature
Improving the security of the home by providing real time feed of the house
Helping especially abled people as well as old people since a machine can do a task as
many times as asked since it is programmed to do so while on other hand a person may
get frustrated by same demands
The paper pacts with the automated home systems based on visual authentication. It
allows the owner to grant entry to any of the visitors to his home after viewing his or
her image. Arduino Uno has been used as a system processor. The whole system was
the wireless. A webcam would constantly monitor who’s entering the house and would
capture the picture of the visitor and would send to the owner. As the traveller arrives
and desires to enter the house, the digital camera unceasingly keeps on looking for any
changes in its read and it takes the image of the traveller.
There will a message sent to the user’s phone asking regarding he needs to look at the
image or not, once the owner gives the confirmation, it will receive the image
from IP address of the digital camera via Bluetooth pairing. After about five
milliseconds of delay a message is going to be presented to the owner to ask to open
the door or not. If owner desires to open the door a sign are going to be sent to
electronic lock via Arduino. If owner answers negatively the complete program are
going to be terminated there itself. Like this manner our system can work.
CHAPTER-3
• To implement services such as switching on/off lights via mobile, smart car
parking etc
CHAPTER-4
METHODOLOGY
In this smart home automation, we would have a system which can identify the owner
of the house. When someone is at the door it sends the picture of the person to the
owner and door automatically opens or closes on the command of the owner. When
you enter the room the lightning of the room goes as specified by the user according
to his mood.
Fig.3: Methodology
To achieve all of the above we will build an html page accessible from every device
which will all the functionalities needed to automate the home. Using esp8266 module
we will create a web server and http requests will be send to perform a particular task.
It will look like this:
We will use relay here to connect to the appliances working on high voltage. Relay is kind of
switch which will switch from 5v to the high voltage.
CHAPTER-5
SYSTEM DEVELOPMENT
5.1 Tools and Technologies used
1. Arduino Uno
The Arduino Uno may be an ATmega328P microcontroller. It includes of fourteen digital
Output/Input pins out of that six square measure used for PWM output, 6 square measure
analog output pins, 16 MHz quartz, a USB association, further power jack, alongside ICSP
header and push. It is everything that is needed to regulate a microcontroller. The Uno board
and one. 0 version square measure nothing however reference, which square measure currently
evolved to newer versions and capabilities. Furthermore, The Uno Board is 1st asynchronous
of USB Arduino board and additionally a reference model for the platform
Microcontroller ATmega328P
Operating Voltage 5V
Input Voltage 7-12V
Digital pins 14
PWM Digital Pins 6
Analog I/P Pins 6
SRAM 2KB
EEPROM 2KB
Clock speed 16MHz
Length 68.6mm
Width 53.4mm
Weight 25g
Power
VIN.
5V
3.3 volt
GND
IOERF
The ATmega238P has a memory of 32KB and comprises of 2KB of SRAM and
1KB of EEPROM.
Input/output
Every 14 digital pins of UNO can be used for input as well as output using various
modes like-
Pin Mode ()
Digital Write ()
Digital Read ()
All these operate at 5 volts. Every pin can handle 20mA in operating condition which
has inside resistance of 50k ohm. Maximum value is 40mAto avoid damage to the
controller.
VCC (3.3V)
GND (0V)
CH_PID
RST
GPIO 0
GPIO 2
ESP8266-01
The ESP8266-01 is a highly compact board, used as a peripheral for any board
through serial (RX/TX) and also as a standalone board. The board requires 3.3 V and
can be programmed with any FTDI operating at 3.3 V. The pins include power (+3.3
V and GROUND), RX / TX, CH_PD to enable the chip and 2 General Purpose Input
Output (GPIO) [14].
From table 1, it is observed that Esp8266-01 works on 802.11 b/g/n protocol whereas
Zigbee uses 802.14.5 protocol. Zigbee consumes least power as 3mW whereas Wi-
Fi and Bluetooth consume nearly 100mW. But if we compare speed of Esp8266 has
maximum speed up to 11mbps but Zigbee has only 250kbps. Clearly esp8266 defeat
Zigbee and Bluetooth not only in cost but also in speed [8,9]. Fig.1 is giving a brief
idea about the interconnection of microcontroller, peripheral devices as well as
sensors and what is the architecture behind it [10-12].
4-Channel Relay
4-Channel relay is connected to the Arduino Uno and its output is connected to the home
appliances in a sequence as (i) fan (ii) light (iii) room-heater and (iv) TV set. Relay
takes low current and voltage and triggers the switch which is connected to a high
voltage. 4 input pins of relay are connected to Arduino which takes5V supply from it
and can trigger up to 10A, 250V supply (Figure.4).
WIFI
Wi-Fi(wireless fidelity) is a wireless communication technology which is used here to
provide a hotspot through which ESP8266-01 module can connect. The router will
assign a unique IP address to the module for establishing a connection between smart
phone and ESP8266-01.
Fig 5.1.5 . Network Architecture of Figure Fig. 5.1.6 . Home automation system IoT devices
5.2 DESIGN
1. Arduino Integrated Development Environment (IDE)
Arduino Integrated Development Environment (IDE) is the software where the code
is written and uploaded to the Arduino board or any other board that is being used in
the project. The software comes with some of the default libraries which can be used
while writing the code. Other than the default libraries we can include other libraries
according to our requirement. The project file is stored with. ino extension. It also
provides a serial monitor where the output of the code can be seen. The code written
is first compiled and then uploaded to the board, if any error occurs than those are
notified so that we can look over them and rectify the same.
2. Blynk Application
Blynk is a Platform with IOS and Android apps to control Arduino the likes over
the Internet. It is a digital dashboard where you can build a graphic interface for
your project by simply dragging and dropping widgets.
4. IFTTT
If This Then That, also known as IFTTT, is a free web-based service to create
chains of simple conditional statements, called applets.
5.3 DEVELOPMENT
CHAPTER-6
CONCLUSION
People with special needs can use google assistant for switching on or off several
appliances and people who cannot speak can use Bluetooth enabled application to
switch on or off their home appliances.
FUTURE SCOPE
By using the current system, in future it will be further developed and modified to
include other home security options like capturing the photo of a person who enters
the home and sending it to the owner through WhatsApp, email or any other
platform. This will not only increase the security but also enable the user to keep a
check on his home from anyplace at any given time. This kind of a system with
required changes can be implemented in the hospitals for disable people or in
industries where human invasion is quite impossible or fatal to life. Thus, resulting
in a complete automated and easy to use system.
REFERNCES
2. S. Prasad, P. Mahalakshmi” Smart Surveillance Monitoring System Using Arduino and PIR
Sensor, “International Journal of Computer Science and Information Technologies, pp 45-65,
Vol. 5, issue 1, 2014.
3. Pyarie, R. Tyarize,” Bluetooth based home automation system using Iot”, International
Journal of Computer Science and Information Technologies, pp 103-130, Vol 2, issue1, 2013.
4. V Sagar, KN. Kusuma, “Home Automation through IOT”, International Research Journal of
Engineering and Technology, pp 117-128, vol 2, issue 3, 2015.
Available:http://www.instructables.com/id/Simple-IR-proximity-sensor-with-Arduino/