0% found this document useful (0 votes)
17 views11 pages

IoT Report

Reaserch on IoT

Uploaded by

shakthiraj400
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views11 pages

IoT Report

Reaserch on IoT

Uploaded by

shakthiraj400
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11

CHAPTER 1:

INTRODUCTION
1.1 Introduction
Home automation has made it possible to have what is often referred to as a "Smart Home",
a home that can detect and identify you, automatically adjust the lighting to your predefined
taste, open doors automatically, play your favorite music, water your flower in the
morning, switch on the security lights at night and switch them off in the morning, heat
water for bathe and tea, stream to you anywhere in the world via internet a live video of
what is happening in and around your premises. It make it possible to link lighting,
entertainment, security, telecommunications, heating, and air conditioning into one
centrally controlled system. This allows you to your house an active partner in managing
your busy life and assist you with efficient living. Nowadays, you can hardly find a house
without a home automation system which can range from the remote for the television,
burglar alarm and hi-tech security surveillance, to an automated air condition system that
maintain the temperature at a predefined value.
This project wants to add new devices to home which can progress towards fully automated home
and make life easier and productive.

1.2 Objectives of the Project


The objective of this project is to design and build new IoT hardware which can be control
using mobile application from anywhere around the world and that can installed at every
home and office at lowest possible cost.

1.3 Project Focus


Project has focus on two main area of home which are electricity and security, and come up
with two hardware solution:-
1. Smart Switch.
2. IP-based Surveillance Cam.
CHAPTER 2:

BACKGROUND MATERIAL

2.2 Conceptual Overview:

Project developed two devices:-


• Smart-Switch
• IP-based Surveillance Camera
2.1.1 Conceptual view of Smart-Switch

Fig 2.1 Smart-Switch overview

Smart switch is operated by ESP8266 with Wi-Fi-module hardware which control and connect
switch to internet though local Wi-Fi network.
Mobile app can connect to smart-switch using local Wi-Fi network and also using GSM internet
or other Wi-Fi network.
Cloud provide accessible to control switch though internet.
Smart-Switch can be operated using manual switch and also through mobile app. Live status of
switch can be monitor from mobile app even if switch get used using manually.

2.1.2 Conceptual view of IP-based Surveillance Camera:

Surveillance camera is operated on raspberry pi zero hardware and serially connect with
Sony IMX219 image sensor with night vision capacity which allow to capture 1080p
motion sense video.
Surveillance camera has its on video storage on-board can record up to 24 hours video with re-
writable over a loop and can also add long storage capacity by using cloud.
Live video can be stream using mobile app through internet.

Surveillance camera can be used as plug and use, module required only power supply though
micro-usb, so it can be moved anywhere as per need within Wi-Fi range. .

Fig 2.2 IP-based surveillance cam.

2.1.3 Programming Language Used During Project

Project has used three different programming languages for our project.

Java: java is a set of several computer software products and specifications from oracle
corporation that provides a system for developing application software and deploying it in
a cross-platform computing environment.

Python: python is an interpreter, interactive, object-oriented programming language.


It incorporates modules, exceptions, dynamic typing, very high level dynamic data
types, and classes.

C: for embedded programming of nodemcu for smart switch using arduino ide. It is a nonobject-
oriented high-level programming language.

Raspbian os: raspbian is a free operating system based on debian optimized for the
raspberry pi hardware. Raspbian comes with more than 35000 packages; pre-combined
software bundled in a nice format for easy installation on raspberry pi.
CHAPTER 3:

IMPLEMENTATION
3.1 Modules
Project is divided into two development modules :-

1) Smart Switch development


1. Hardware circuit development
2. Different possible test case.
3. Embedad sudo program.
4. Web sevice format and data storage format.
5. Mobile application flow and development.

2) IP-based Surveillance Camera development.

1. Hardware circuit development


2. Different test parameters.
3. Embedad sudo program.
4. Web sevice format and data storage format.
5. Mobile application flow and development

3.2 Smart Switch development

Fig 4.1 - Switch circuit diagram


Except bulb connect, all device and circuit with be packed in switch board. Circuit
diagram represent accurate layout of connection inside switch board. Where individual
switch are connected with NodeMCU board and operate at 5 volt and electromagnetic
trigger relay is also control by NodeMCU board. When switch is on board trigger relay to
complete 240 volt circuit of bulb, result to light in bulb.
So in Smart-Switch, NodeMCU board take decision when to turn on light, when switch
is pressed manually or receive request from mobile app through Wi-Fi network over
internet.

void start()
{
get wifi credentials ()
get web server
credentials ()
connect to wifi()
if(no connect)
{
Start wifi AP mode to get connected()
}
get switch status()
Start loop()
}
void loop() { if(connected ){
check web server
status() check mobile
app status() check manual
switch status()
}
update relay status()
check
status of switch()
delay()
continue loop()
}

Web sevice format and data storage format.


GET and POST request and response from switch and mobile app to web server.

Check request from mobile app to web server

Request URL: https://smart-fox.info?key=wasdhlkhasdd&switchid=14920


Request Method: GET
Status Code: 200
Remote Address: 128.30.52.100:443
Referrer Policy: origin

Responce = 14920:true

Update request from mobile app to web server

Request URL: https://smart-fox.info


Request Method: POST
Status Code: 200
Remote Address: 128.30.52.100:443
Referrer Policy: origin
Date: key=wasdhlkhasdd & id=14920 & stutus=true

Update request from mobile app to smart switch.

Request URL: https://192.168.43.121:5000 // local ip of smart switch


Request Method: POST
Status Code: 200
Remote Address: 128.30.52.100:443
Referrer Policy: origin
Date: key=wasdhlkhasdd & id=14920 & stutus=true
Update request from switch to web server

Request URL: https://smart-fox.info


Request Method: POST
Status Code: 200
Remote Address: 128.30.52.100:443
Referrer Policy: origin
Date: key=wasdhlkhasdd & id=14920 & stutus=true & deviceid = A400006

check request from switch to web server for all switch

Request URL: https://smart-fox.info


Request Method: POST
Status Code: 200
Remote Address: 128.30.52.100:443
Referrer Policy: origin
Date: key=wasdhlkhasdd & deviceid = A400006

Responce = 1:true, 2:false, 3:true, 4: false

Fig 4.8 Flow chart of mobile application


Start Screen - Inital load all the data from room SQLite database from mobile and
check varify login credentials and sync data with web server.

Login Screen - Check login credentials and redirect to Wi-Fi configuration screen.

Signup Screen - Submit new user login detail with email opt varification.

Wifi Screen - Save Wi-Fi creadentials localy, which help to device cofiguration to
connect device to local Wi-Fi network.

Home Screen - where user can control all configure switch. When connected to
network.

Device Config. - Configure new switch device to app and connect switch to local Wi-
Fi network, when switch is in Wi-Fi AP mode.

Switch Config. - When new switch device is configure to app it automatically add
all device switch to app and configure at default mode. Which can edit my user as per
need.

Switch Power usage - Shows to detail utilization of power for each switch and device
in Kilo-watts hours over a time of year.

Fig 4.13 Smart switch mobile application


Web sevice format and data storage format.

Video data flow processing

Fig 4.11 block processes on video

IP-based Surveillance Camera development.

1) Hardware circuit development

Fig 4.9 Camara Setup


CONCLUSION
The prime objective of our project is to use the Smartphone to control the home
appliances effectively. The switch mode are used to control the home appliances. The
video feedback is received in the android app which streams the video of IP- Camera.
This project is based on the Raspberry pi, Android platform Java, NodeMCU and Python.
These platforms are Free Open Source Software. So the overall implementation cost is
low and can be easily configured. User can easily interact with the android phone/tablet.
The user can send commands via the mobile application. The data are being analyzed by
the application and are sent over a network. The Raspberry pi and NodeMCU acts as a
hardware, analyses the data and activates the GPIO (General Purpose Input Output)
Pins. The GPIO Pins are connected to the relays switch which activated the required
home appliances. In this way, automation process is carried out.
Both device are cost low extremely low.

Device Price

Smart-Switch 550 Rs (4 switch)

3,000 Rs
IP-Based Surveillance
(per unit with 24 hours video storage)
REFERENCES
[1] , “Home Automation”, Energy Efficient Smart Home Automation System volume
no 1, publication year 2015, Total pages 11.

[1] About ESP8266, www.espressif.com


[2] Raspberry Pi Zero W, www.raspberrypi.org
[3] Camera Sensor, www.sony-semicon.co.jp
[4] Software development cycle, www.upedu.org
[5], NodeMCU, www.nodemcu.com
[6], Raspberry Pi Zero W setup, www.developer.ibm.com
[7], Implementation of OpenCV using python, docs.opencv.org
[8], Motion detection in video using python, www.technicdynamic.com
[9], Video quality enhancement using OpenCV, www.opencv-
pythontutroals.readthedocs.io/
[10], Video storage in H.264, www.learnopencv.com

You might also like