Design and Implementation of IoT based Smart Surveillance

The Internet of Things is the collection of objects on the internet or network that humans rely on to make their lives easier. This project proposes an efficient implementation for IoT (Internet of Things) used for monitoring and controlling the home appliances via cloud. This project aims at monitoring environmental parameter of home and controlling home appliances using various sensors via internet using Wi-Fi as communication protocol and raspberry pi as server system. The main advantage of this project is small device can be part of internet so it is easy to communicate, manage and control without human interferences. Also it provides high degree of security, safety, comfort and energy saving. Proposed implementation of home automation includes Raspberry Pi which is small, inexpensive, portable credit-size single board computer with support for a large number of peripherals and network communication like Ethernet port, USB port, HDMI port, SD card slot. This work proposes an approach to connect number of nodes to Raspberry pi through wireless channel. Each node capable to sensed environmental parameter and taking controlling action through relay i.e. ON/OFF fan, light, TV, AC accordingly as well as transmit all the data to Raspberry Pi. Cloud based platforms help to connect to the things around us so that we can access anything at any time and any place in a user friendly manner using customized portals and in built applications. Hence, cloud acts as a front end to access Keywords— IoT; Raspberry Pi; home automation; sensors; cloud.


INTRODUCTION
The internet of things is a new era of intelligence computing and it is providing a privilege to communicate around the world. The objective of IOT is anything, anyone, anytime, anyplace, any service and any network [12] Internet-of-Things: The internet where the existing network of internet to the computer systems will connect to the real world objects or things. Things may include any objects, home appliances, devices, vehicles, etc. And when these things connect to the internet in specific infrastructure via standard protocols then the whole system is said to be Internet of Things (loT). In other term Internet-of-Things can be defined as sensors and actuators embedded in physical objects are linked through wired and wireless networks, often using the same Internet Protocol (IP) that connects the Internet.
Internet of things coverage is very wide and includes variety of objects like smart phones, digital cameras, sensors, etc. Once all these devices are connected to each other, they enable more and more smart processes and services that support our basic needs, economies, environment, health etc. Such large number of devices connected to internet provides many kinds of services and produce huge amount of data and information [11]. There are several application domains that will be impacted by the emerging internet of things. The development of the Internet of Things will revolutionize a number of sectors, from automation, transportation, energy, healthcare, financial services to nanotechnology. Here we focus on "smart home'', offering more security and energy efficiency. Home automation system required for, • This project aims at controlling home appliances via Smartphone using Wi-Fi as communication protocol and raspberry pi as server system. The server will be interfaced with relay hardware circuits that control the appliances running at home. The communication with server allows the user to select the appropriate device. It employs IR, PIR and fire detection sensor which can detect light, presence of human being and any fire accidents respectively. This sensor sends a signal to raspberry pi. From the raspberry pi, by means of wifi configuration and IoT concept user can turn ON/OFF the light or fan or sent alert message along with the image and video taken in camera to mobile phone and an automatic phone call is made to nearby fire station as IR, PIR and fire detection sensor is triggered accordingly.
[4] Vinay sagar K N, Kusuma S M proposes a Home Automation system using Intel Galileo that employs the integration of cloud networking, wireless communication, to provide the user with remote control of various lights, fans, and appliances within their home and storing the data in the cloud. The Intel Galileo development board, with built in Wi-Fi card port to which the card is inserted, acts as web server. Automation system can be accessed from the web browser of any local PC in the same LAN using server IP, or remotely from any PC or mobile handheld device connected to the internet with appropriate web browser through server real IP. The model consists of different sensors like temperature, gas, motion and LDR. The designed system not only monitors the sensor data but also actuates a process according to the requirement. It also stores the sensor parameters in the cloud (Gmail) in a timely manner. This will help the user to analyze the condition of various parameters in the home anytime anywhere.
[6] Aishwarya pandey presents a brief introduction of Internet of Things (IoT) with its vision and motivation. It briefly describes its element such as RFID and WSN and puts light towards the integration of cloud and IoT. The paper even highlights the technological challenges and future directions in order to make IoT a reality. The paper also focuses on wide ranging applications of IoT.

III. PROBLEM DEFINATION
The main objective of this project is to design a home automation system using IoT that is capable of monitoring and controlling most of the house appliances through an internet.
The proposed system has a great flexibility by using wireless technology to interconnect its distributed sensors to home automation server [4]. This in turn reduces the deployment cost; will add to the flexibility of advancement, and system reconfiguration. This project aims at monitoring environmental parameter of home and controlling home appliances using various sensors via internet using Wi-Fi as communication protocol and raspberry pi as server system. This work proposes an approach to connect number of nodes to Raspberry pi through wireless channel. Each node capable to sensed environmental parameter and taking controlling action through relay i.e. ON/OFF fan, light, TV, AC accordingly as well as transmit all the data to Raspberry Pi. Here we implement surveillance system using camera. If any suspicious moment near home is detected then camera will captures those image and update those pictures on authorized person's email automatically.

A. Proposed Methodology
The proposed model of the home automation system is a combination of number of nodes that are transmitted sensor data to Raspberry Pi using wireless channel. In the proposed model the temperature, humidity, gas leakage and presence of human being in the house is monitored. If the sensors value goes up above the threshold value then it will controlled through relay circuit. Relay will be connected with the PIC Microcontroller which will do the work of controlling. If the temperature exceeds the threshold level then the fan will turn ON automatically and it will OFF when the temperature comes in control range. Similarly when there is a leakage of gas in the house, buzzer will raised giving the alert sound to persons inside the home. When person enter into the home PIR sensor senses this motion and light and fan will be turn ON automatically. If any suspicious moment near home is detected by IR sensor then camera will captures those image and update those pictures on authorized persons email automatically. Here Raspberry Pi will be connected to the Wi-Fi which will send this data over the Internet by which the user will be able to see the data and can keep a watch on proper functioning of his system.
The project motto is to achieve two main applications:

B. Hardware Requirements
The proposed home automation system has the following requirements

1) Raspberry Pi 3 Model B
The Raspberry Pi is a series of small single-board computers developed in the United King-dom by the Raspberry Pi Foundation. Several generations of Raspberry Pi's have been released; Raspberry Pi 3 Model B is the newest mainline Raspberry Pi. All models feature a Broadcom system on a chip (SoC), which includes an ARM compatible central processing unit (CPU) and an on-chip graphics processing unit (GPU, a Video Core IV). CPU speed ranges from 700 MHz to 1.2 GHz for the Pi 3 and on board memory range from 256 MB to 1 GB RAM. Secure Digital (SD) cards are used to store the operating system and program memory in either the SDHC or Micro SDHC sizes. Most boards have between one and four USB slots, HDMI and composite video output, and a 3.5 mm phone jack for audio. Lower level output is provided by a number of GPIO pins which support common protocols like IC. The Bmodels have an 8P8C Ethernet port and the Pi 3 and Pi Zero W have on board Wi-Fi 802.11n and Bluetooth.

2) PIC Microcontroller 16F877
The PIC microcontroller is based on RISC architecture. Its memory architecture follows the Harvard pattern of separate memories for program and data, with separate buses. PIC 16F877 is one of the most advanced microcontroller from Microchip. This controller is widely used for experimental and modern applications because of its low price, wide range of applications, high quality and ease of availability. It is used in remote sensors, security and safety devices, home automation and in many industrial instruments The LM 35 series are precision integrated-circuit temperature devices with an output voltage linearly proportional to the Centigrade temperature. The LM 35 device has an advantage over linear temperature sensors calibrated in Kelvin, as the user is not required to subtract a large constant voltage from the output to obtain convenient centigrade scaling. The low-output impedance, linear output, and precise inherent calibration of the LM 35 device makes interfacing to readout or control circuitry especially easy. As the LM 35 device draws only 60 A from the supply, it has very low selfheating of less than 0.1C in still air. The LM 35 device is rated to operate over a 55C to 150C temperature range.

b) Humidity Sensor SY-HS
A humidity sensor also called a hygrometer, measures and regularly reports the relative humidity in the air. A humidity sensor senses relative humidity. SY-HS 220 series module consists of a SYH-2 sensor and an integrated circuit to provide a linear DC voltage output for 20-95 percentage RH. They are specifically designed for use in appliances and controllers.  A passive infrared sensor (PIR sensor) is an electronic sensor that measures infrared (IR) light radiating from objects in its field of view. The term passive in this instance refers to the fact that PIR devices do not generate or radiate any energy for detection purposes. They work entirely by detecting the energy given by other objects. PIR sensor detects a human being moving around within approximately 10m from the sensor. An infrared sensor is an electronic device that emits in order to sense some aspects of the surroundings. These types of radiations are invisible to our eyes that can be detected by an infrared sensor. The emitter is simply an IR LED (Light Emitting Diode) and the detector is simply an IR photodiode which is sensitive to IR light of the same wavelength as that emitted by the IR LED. When IR light falls on the photodiode, its resistance and correspondingly, its output voltage, change in proportion to the magnitude of the IR light received.   The proposed home automation system is not only monitor the environmental parameters of home but also control most of the house appliances through an internet it uses RF Module to interconnect its distributed sensors to home automation server.
The RPI monitor all the sensor value and transmit all the data via Wi-Fi to cloud where it gives graphical representation of the sensor data as shown in fig. 14 The controlling action is taken by PIC itself as follows. 3) When there is a leakage of gas in the house, buzzer will raised giving the alert sound to persons inside the home. 4) When person enter into the home PIR sensor senses this motion and light and fan will be turn ON automatically.

5)
If any suspicious moment near home is detected by IR sensor then camera will captures those image and RPI will update those pictures on authorized persons email automatically as shown in fig 15. In this project, we have introduced a smart home concept using Raspberry pi and wireless sensors which provides many advantages including, safety, security, improved comfort, energy and cost savings. The system allows the user to monitor various home appliances remotely anywhere in the world through an internet connection. The designed system not only monitors the sensor data, like temperature, gas, motion, but also actuates a process according to the requirement to control the parameter through relay. It also stores the sensor parameters in the cloud. This will help the user to analyze the condition of various parameters in the home anytime anywhere.
By changing the sensors this kind of system may be employed in many places like banks, labs etc. that dramatically cut back the hazard of unauthorized entry or can be implemented in the hospitals for disable people ACKNOWLEDGMENT It gives me a great pleasure to submit this project report on "Design and implementation of IoT based smart surveillance". This is only page where I have the opportunity to express my emotions and gratitude from the bottom of my heart. Behind every success, there is a hidden resource, the power of which is beyond compare. I am very much thankful to the most respected Prof. Ajay Lahane who contributed his valuable guidance and helped to solve every problem that arise. I am very much thankful to HOD Prof. Shikha Nema, department of E&TC for her persistent inspiration. I would like to extend my special thanks to Principal Dr. Sanjay Pawar for spending his valuable time to go through my report and providing many helpful suggestions. Also I thank to all professors and other staff of the department for their support