38
PRESENTED BY :- Rohit Marathi (201303100710021) Dhaval Patil (201403100720004) Nikhil Jadav (201403100720005) Abhishek Shahi (201403100720018) GUIDED BY :- Prof. Krupa Dave Prof. Nilay Desai IOT: Home Automation Using Android Application

IOT: Home Automation using Android Application

Embed Size (px)

Citation preview

Page 1: IOT: Home Automation using Android Application

PRESENTED BY :-

Rohit Marathi (201303100710021)

Dhaval Patil (201403100720004)

Nikhil Jadav (201403100720005)

Abhishek Shahi (201403100720018)

GUIDED BY :-

Prof. Krupa Dave Prof. Nilay Desai

IOT: Home Automation

Using Android Application

Page 2: IOT: Home Automation using Android Application

Outline

Objective

Motivation

Introduction

Block Diagram (Brief Literature Survey)

Parameter & Hardware

Software

Application

Work done in 7th Semester

Work done in 8th Semester

References

Page 3: IOT: Home Automation using Android Application

Objective

Page 4: IOT: Home Automation using Android Application

Objective

IOT ( internet of things) is an upcoming technology that allows us to

control hardware devices through the internet & simplify use of

technology.

Here we propose to use IOT in order to control home appliances, thus

automating modern homes through the internet.

The internet of things (IoT) is the internetworking of physical devices,

vehicles, buildings and other items—embedded with electronics,

software, sensors, actuators, and network connectivity that enable

these objects to collect and exchange data.

Page 5: IOT: Home Automation using Android Application

Motivation

Page 6: IOT: Home Automation using Android Application

•Nowadays office and building automation systems are used more and more.

On one hand, they provide increased comfort, results in a smarter home and

is used to provide a higher & healthier standard of living.

•On the other hand automation systems installed in commercial buildings

don't only increase comfort, but also allow centralized control of heating,

ventilation, air condition and lighting, having ubiquitous access.

•Hence, they contribute to an overall cost reduction and also to reduction and

also to energy saving while we are not able to access them physically.

Motivation

Page 7: IOT: Home Automation using Android Application

Introduction

Page 8: IOT: Home Automation using Android Application

Introduction

The aim of project is efficient implementation of IoT used for controlling

and monitoring the appliances via User Interface device.

They can communicate with automation network through an internet

gateway by means of low power communication protocol like Wi-Fi.

This project aims at controlling home appliances via smartphone using

Wi-Fi as communication protocol.

Page 9: IOT: Home Automation using Android Application

Literature Survey

Page 10: IOT: Home Automation using Android Application

Literature Survey :

TITLE 1 : Raspberry Pi based advanced scheduling Home Automation System through Email

Publication : International Journal of Advanced Research in Electronics and Communication Engineering

(IJARECE) Volume 4, Issue 9, September 2015

Author : M.P.Sathish, Dr. S.A.K.Jilani, Mr.D.Girish kumar

Description : Advanced method of home automation of Raspberry Pi through reading the subject of the E-mail.

Abstract : In present days, as the technology improves day by day, every one seems to automate most of the

possible things to take advantage in providing ease in life, secure and saving electricity. The main objective of

this paper is to develop an interactive home automation system based on Raspberry Pi through reading the

message body of E-mail which we are send. Here the message body of the received E-mail is read by the

developed algorithm fed into Raspberry Pi and it will resend the acknowledgement to that mail_ id, if it is

successfully sent or not. This algorithm is developed in python language, which is default programming language

provided by Raspberry Pi. Store these results in internet by creating new channel API in thing speak, which is an

IoT application.

Page 11: IOT: Home Automation using Android Application

TITLE 2 : Advanced Control Web Based Home Automation with Raspberry Pi

Publication : International Journal of Advance Research, Ideas and Innovations in Technology.

Author : Prof. Dr. Ashok .J, Chavan J. J, Patil P. V, Naik P. S

Description : This Home automation system provides the user with the webpage of various lights and

appliances within their home with using the raspberry pi model by the webpage.

Abstract : The aim of this project is to develop a system that will provide a control of home appliances

by using web page when the home host not at home. This paper is mainly concerned with the automatic

control of light or any other home appliances using the internet. It is meant to save the electric power

and human energy. This project is made with the help of the raspberry pi. For this paper, of course, you

will need a Raspberry Pi board. In this paper, we used a Raspberry Pi model B with the Wi-Fi dongle.

The Raspberry Pi is a credit-card-sized single-board computer developed in the UK by the Raspberry Pi

Foundation with the intention of promoting the teaching of basic computer science in schools. The

raspberry pi board contains a processor and graphics chip, program memory (RAM) and various

interfaces and connectors for external devices. The raspberry pi can be used for many of the things that

your desktop PC does. However, one key aspect that makes the raspberry pi so brilliant for schools is its

ability to execute “Python” coded programs.

Page 12: IOT: Home Automation using Android Application

Aim of Project : • The technology offers new and exciting opportunities to increase the

connectivity of devices within the Home for the purpose of Home automation.

• Mobile devices are ideal in providing a user interface, they are portable and

their wide range of capabilities. They can communicate with the Home

automation network through an internet gateway, and also it can also

directly, as these devices usually implement low power communication

protocols, such as Wi-Fi.

• It is proposed to control various Home appliances like Tube light, Door Lock,

Switch and Fan using android mobile. This whole system will be controlled by

ESP 8266 Wi-Fi module. Our mobile is connected to ESP 8266 Wi-Fi module

through internet. One will able to select appliances from the mobile, as

command will be given to the ESP 8266. According to that command this Wi-

Fi module will give signal to relay switching circuit to turn ON/OFF particular

Electrical appliance.

Page 13: IOT: Home Automation using Android Application

Block Diagram & Circuit Diagram

Page 14: IOT: Home Automation using Android Application

Block Diagram :

Page 15: IOT: Home Automation using Android Application

Flowchart

StartStatic IP

Address

Establish

connection with

LAN

Connection

successfulIdle Mode

Wait for remote

command from

user

Command

received

Decode

Command string

Measure Data from

sensor

Control Actuator

Execute

command

Yes

No

Sensors and Actuators Control Stage

Take an actionYes

No

Configuration stage

Page 16: IOT: Home Automation using Android Application

Hardware & Software

Page 17: IOT: Home Automation using Android Application

Hardware Components Used :

1.ESP 8266 Wi-Fi Module :

The ESP8266 is a low-cost Wi-Fi chip with full TCP/IP stack

and MCU ( Micro Controller Unit ). This small module allows

microcontrollers to connect to a Wi-Fi network and make simple

TCP/IP connections .

Specifications of ESP 8266 Wi-Fi module :

• 802.11 b/g/n protocol

• Wi-Fi direct ( P2P ), soft-AP

• Integrated TCP / IP protocol stact

• It requires 3.3 V power

• 13 GPIO-PINS

Page 18: IOT: Home Automation using Android Application

2. Router :A router is a networking device that forwards data

packets between computer networks. Routers perform

the traffic directing functions on the Internet. A data

packet is typically forwarded from one router to

another through the networks that constitute

the internetwork until it reaches its destination node.

3. Solid State

Relay :A relay is an electrically operated switch. Many relays use

an electromagnet to mechanically operate a switch, but other

operating principles are also used, such as solid-state relays.

Specification of relay :

• 230 V input supply

• 15 A current capacity

• 50 Hz frequency

Page 19: IOT: Home Automation using Android Application

Software Used :

1. Android : Android is an open source and Linux based operating

system for mobile devices such as smartphones. It offers

a unified approach to application development for

mobile devices which means developers need only for

android and their application should be able to run on

different devices powered by android.

It is a mobile operating system developed by Google,

based on the Linux kernel and designed primarily for

touch screen mobile devices such as smartphones and

tablets.

Android's user interface is mainly based on direct

manipulation, using touch gestures that loosely

correspond to real-world actions, such as swiping,

tapping and pinching, to manipulate on-screen objects,

along with a virtual keyboard for text input.

Page 20: IOT: Home Automation using Android Application

Software Used :

2. Arduino IDE : The open-source Arduino Software (IDE) makes it easy to

write code and upload it to the board. It runs on Windows,

Mac OS X, and Linux. The environment is written in Java

and based on Processing and other open-source software.

A program for Arduino may be written in any

programming language for a compiler that produces binary

machine code for the target processor. Atmel provides a

development environment for their microcontrollers, AVR

Studio and the newer Atmel Studio

A program written with the IDE for Arduino is called a

sketch. Sketches are saved on the development computer as

text files with the file extension .ino. Arduino Software

(IDE) pre-1.0 saved sketches with the extension .pde.

Page 21: IOT: Home Automation using Android Application

Work Schedule

Page 22: IOT: Home Automation using Android Application

Work done in 7th Semester :We studied and compared ESP 8266 with Arduino and Raspberry Pi

Firstly in beginning of our project we observed many sample projects based on Internet of

Things ( IoT ). After finalizing the project we compared different types of modules like

ESP 8266 , Raspberry pi and Arduino . After observing and comparing these three we were

satisfied with ESP 8266 in many aspects and started working on it.

Page 23: IOT: Home Automation using Android Application

Configuring ESP8266 Wi-Fi module with mobile

To activate the inbuilt wi-fi of ESP 8266 we have performed these steps :

• We firstly wrote lua code through which we were able to assign gateway, SSID

(name of wi-fi –“esp_test”), IP address and password (12345678) to ESP8266.

• Then we loaded programmed to ESP8266 with the help of ESplorer.

• After loading programmed in wi-fi module we connected it with mobile wi-fi as

shown in fig below.

• Here ESP8266 finally works as “hotspot” which can be observed in mobile

phone

Page 24: IOT: Home Automation using Android Application

Configurations of wi-fi

Shown below are the configuration of wi-fi module after loading the programme :

• IP address of wi-fi is 192.168.1.2

• Its gateway is 192.168.1.1, Its link speed is 54Mbps and frequency is 2.4GHz

Page 25: IOT: Home Automation using Android Application

Interfacing of Wi-Fi module with web page• We have written programmed for Web Page and loaded it into ESP8266 with the help of ESPlorer.

• To access the web page, one should be connected with ESP8266 through wi-fi.

• Web page can be accessed only when we enter the IP address in the address bar of the web browser.

• The created web page can be used to switch ON / OFF the appliances without any type of physical

connection.

Page 26: IOT: Home Automation using Android Application

Controlling of relay with ESP8266 wi-fi module :

Here we have connected two pins of relay one with ground and another pin is connected to GPIO pin of ESP

8266. We have connected the phase of 230v supply directly to the bulb and one end of neutral is connected to

the common of the relay and the other end is connected to normally open (NO) pin of the relay.

Page 27: IOT: Home Automation using Android Application

Work done in 8th semester :

• We interfaced the NodeMCU ESP8266 with the Router using Static IP.

• We Developed an Android Application for all compatible Android Device.

• We operated the Electronic Appliances with Android Application via Internet.

Page 28: IOT: Home Automation using Android Application

Interfacing of NodeMCU with Router.

Page 29: IOT: Home Automation using Android Application

Static IP at 192.168.2.3

Page 30: IOT: Home Automation using Android Application
Page 31: IOT: Home Automation using Android Application

Somlo Home Automation Android Application

Page 32: IOT: Home Automation using Android Application
Page 33: IOT: Home Automation using Android Application

Controlling Appliances using Application

Page 34: IOT: Home Automation using Android Application

Application

The inefficiency of operation of conventional wall switches can be overwhelmed

using various home automation systems (without using conventional switching

methods)

The loss of power can be reduced and manpower required for home automation is

very less compared to conventional methods.

The android application can control Arduino, Bluetooth, Raspberry Pie etc., based

home automation systems can be more efficient, provides ease of operation.

Page 35: IOT: Home Automation using Android Application

Advantages

Provides safety from electrical power short circuits while using conventional wall

switches to operate loads.

Home automation system with automated door locking and security cameras

facilitates more security.

Save a lot of time to operate from anywhere without wasting time to move from

office to home for just unlocking door for family members to enter the home

Fan, Door Lock, Light, & Switch can be operated

Page 36: IOT: Home Automation using Android Application

Summary :

Hence we prove and conclude that it is possible to connect to a Wi-Fi

module through a remote device like mobile using a web page and

operate upon it. Through a processor it is possible to change the state

of GPIO remotely connected through internet. Using this contact it is

also possible to drive a relay and operate various appliances like

lights, fans etc.

Page 37: IOT: Home Automation using Android Application

References :

• Internet of Things: Converging Technologies for Smart Environments and Integrated

Ecosystems Dr. Ovidiu Vermesan SINTEF, Norway. Dr. Peter Friess EU, Belgium.

• HOME AUTOMATION USING ANDROID APPLICATION Beenish, Syed Uzair

Altaf, Zohaib Ali

• Internet of Things (IoT): A Vision, Architectural Elements, and Future Directions

Author's- Jayavardhana Gubbi, Rajkumar Buyya, Slaven Marusic, Marimuthu

Palaniswamia

• Research Directions for the Internet of Things, John A. Stankovic, Life Fellow, IEEE

Page 38: IOT: Home Automation using Android Application

Thank You