IOT BASED SMART SECURITY AND HOME AUTOMATION Pradeep P.Laturkar 1, Parikshit Solunke 2, Parth Medhi 3, Shaunak Oke 4, Shradha Somani 5 1 Assistant Professor, Department of Computer Engineering 2,3,4,5 Department of Computer Engineering ABSTRACT: Pune Vidyarthi Griha's College of Engineering and Technology, Savitribai Phule Pune University, Pune, India The term Internet of Things refers to a system of computing devices, and mechanical and electrical machines. IoT enables data transfer over the network without any interaction with the computer. So when it comes to our house, this concept can be appropriately incorporated to make it smart, safe and automated. This project focuses on building a security system for the home which will be wireless. This system will send notifications to the user via Internet in case of any trespass and it can also ring an alarm if required. The same concept will be used for home automation by using same set of sensors. By using such a system, the owner will receive alerts on his/her phone irrespective of where they are. The micro-controller used is Raspberry Pi. Using this micro-controller, all electrical appliances inside the house can be controlled and the security will also strengthen. Keywords: Internet of Things (IoT), Home Automation, Smart Security, Intrusion Detection, RaspberryPi. [1] INTRODUCTION Today, there is an increasing demand of automation systems so that human intervention becomes less. With this growing demand, more intelligent and efficient models are introduced to make our lives simpler. This paper focuses on a system that provides features of Home Automation similar to existing systems but in addition to that it includes a camera module and Pradeep P. Laturkar, Parikshit Solunke, Parth Medhi, Shaunak Oke and Shradha Somani 1
IOT BASED SMART SECURITY AND HOME AUTOMATION provides home security. If any human movement is sensed at the entrance of the house, this system will send a notification that contains a photo of the area surrounding the house entrance. This notification will be received by the owner of the house via Internet in the form of a text message and an e-mail message. So owner can raise an alarm in case of any intrusion or he/she can toggle the appliances like opening the door if the person is a guest. The user can make use of automation features for his/her own comfort like switching on lights, fans, AC, etc. without doing so manually [5]. The user can access complete IoT system from anywhere using Internet. But the microcontroller must always have Wi-Fi connectivity [4]. Raspberry Pi is a single board credit card sized computer which is very widely used nowadays. The Raspberry Pi system functions like a computer with a small setup. It contains GPIO pins and USB ports. Using these ports we can control home appliances with the sensors as well as interface the camera for surveillance. Raspberry Pi can be used for various purposes based on our requirement. The project mainly aims to overcome the shortcomings of existing home security systems such as providing information of current situation when the owner is away from the house. It will also enhance the IoT system security using encryption and decryption of the user's data. Further sections of this paper are organised as follows: Section II represents the related work done in the field of Home Automation. Sections III and IV give an idea about system implementation while it also briefs about the working of individual components of the system. The overall functioning is presented with a flowchart that shows working of the system. Some further modifications that help to increase the fidelity and user friendliness of current system are discussed in section V. [2] RELATED WORK In the market, there are already many systems for controlling home appliances using an Android phone. Each system has its unique features. At present, some companies are officially registered and are working on providing better home automation system features. These models describe the work being performed by some of them. The existing infra-red (IR) or Blue-tooth remote controls present in the market are in general, appliance specific, and the same cannot be used interchangeably. Electrical appliances connected through Bluetooth making use of Blue-tooth enabled smart phones cannot be managed from a distant location [1]. Thus, functions such as being able to turn on an air-conditioner while returning home cannot be done with such systems. In contrast, this work gives a cost effective and simple solution for wireless home automation and home security systems [2] [3]. The difficulties faced by existing home security systems is tried to overcome in this project. There has been significant research in the field of home automation with many other communication protocols like Bluetooth, hand gestures, Wi-Fi, etc. Sriskanthan introduced a home automation system in 2002. The system is Bluetooth based. It has a primary controller and some Bluetooth sub-controllers. But this system requires an expensive wired installation and the use of a high end computer. Baudelet at (1993) proposed a novel control network, using hand gestures. Controller uses a glove to relay hand gestures to the system. Ardamet at (1998) also introduced a phone based remote controller for home as well as office automation. This system differs in the way that :all communications occur over a fixed telephone line and not over the internet. Pradeep P. Laturkar, Parikshit Solunke, Parth Medhi, Shaunak Oke and Shradha Somani 2
Andrea Zanella explained the model of comprehensive survey of enabling technologies, protocols and architecture for an urban IOT. Pavithra.D explained the model for efficient implementation of IoT in monitoring and controlling the home appliances via world wide web(www) [8]. Ravi Kishore Kodali, Vishal Jain, Suvadeep Bose and Lakshmi Boppana explained the model for IoT project which includes a smart wireless home security system that sends alerts to house owner through Internet in case of intrusion and raises an alarm if required. The microcontroller used is the TI-CC3200 Launch-Pad board. The status is sent to the user by microcontroller on the mobile phone from anywhere even if the phone has no Internet connectivity.[4]. VamsikrishnaPatchava, HariBabuKandala, P Ravi Babu proposed the system of Smart Home Automation with Raspberry Pi using IoT. It is done by integrating cameras and motion sensors into a web application. Raspberry Pi operates and controls sensors and cameras for sensing and surveillance. For instance, it captures intruder s identity and detects its presence using simple Computer Vision Technique (CVT)[7]. However, this paper looks into the development of an ANDROID application which interprets the message a mobile device receives on possible intrusion and subsequently a reply SMS which triggers an alarm/buzzer in the remote house making others aware of the possible intrusion. They provide several useful features like support for the older people, support for the disabled, home automation and neighbourhood monitoring. [3] PROPOSED SYSTEM The proposed architecture of Home Automation using Internet of Things is shown in [Figure-1]. Following are the main components of the proposed system: Figure: 1.Proposed Architecture for Wireless Home automation using Raspberry Pi. Pradeep P. Laturkar, Parikshit Solunke, Parth Medhi, Shaunak Oke and Shradha Somani 3
IOT BASED SMART SECURITY AND HOME AUTOMATION a) Raspberry Pi : A Raspberry Pi is a small-sized computer. It was introduced by Eben Upton. The goal was to provide a device that would improve hardware and programming skills. Because of its small size and reasonable price, it was quickly adopted by electronic enthusiasts for various projects [6]. Raspberry Pi is a bit slower than a laptop or a desktop computer but it is still a complete Linux computer that provides various capabilities that are expected from a computer. b) Sensors : The PIR motion detection sensor can be used to detect any intruders at the door. It uses infrared rays to detect any movement. On detecting motion, the user is alerted and a picture is captured. MQ-2 module is useful for gas leakage detection (in home and industry). It can detect Hydrogen, Methane, Propane, Carbon Dioxide, Alcohol, Smoke or LPG. For detecting temperature and humidity of home, there are various sensors but, among them DHT22 digital sensor is precise and gives an accurate reading. A camera is attached at home for surveillance activity and for security purpose. c) Relay Module : Relays are electromechanical devices which are used to act as a switch for AC devices. Relays are basically controlled by a low power signal. For a Raspberry pi, a 12 volt relay is used. d) Appliance : The various appliances include lights, fans, electronic door latches and security camera. Our design has its own application to control the various home appliances and also to monitor the security features. User can interact with the application to carry out various functions. The user will receive alerts on the application if there is any attempt to break in to their home. User will also be notified in case of an emergency like fire by text message without using internet. This further adds security to our system. The data is received only by the server at the specified port and gets analysed further. This project proposes a system that is different from existing ones as it has its own software application of providing state-of-the-art security. [4] IMPLEMENTATION DETAILS a) Client-side : This includes an Android application wherein a user can login. This will allow the user to control all home appliances as well as handle security. Buttons are provided as part of UI, using which user can toggle appliances and carry out the necessary actions. b) Server-side : Raspberry Pi acts as the server. It will be installed inside the house. Coding is done in Python. The server will receive requests from client and then processing will be done accordingly. Entire process will be carried out over the Internet. c) Interfacing between Client and Server : Socket Programming is used for interfacing. Java programming is used to create a socket at client side. At the server side, Python is used to create socket and this allows to accept requests from the client side. Pradeep P. Laturkar, Parikshit Solunke, Parth Medhi, Shaunak Oke and Shradha Somani 4
d) Security : AES (Advanced Encryption Standard) algorithm is used for cryptography. Username and Password will be encrypted at the client side. Data will be decrypted at server side. Java is used for encryption and Python is used for decryption. e) Hardware : Camera module, lights, fans, motion sensors, smoke sensors, door latch, etc. are interfaced with GPIO pins of Raspberry Pi. Relays are used for switching high voltage/current for proper interfacing with the microcontroller. [5] CONCLUSION The prime objective of our project is to use a Smartphone to control home appliances effectively and to provide robust home security and safety measures. In future, this system can be made more synchronised by adding a voice call feature.user can then give voice commands in order to manage security and appliances. REFERENCES [1] R.. C. Y.. O. K. Withanage, C., A comparison of the popular home automation technologies, pp. 1 11, may 2014. [2] B. R. Pavithra, D., Iot based monitoring and control system for home automation, pp. 169 173, April 2015. [3] M. J. H. B. T. A. M. K. T. Baig, M.Q., Artificial intelligence, modelling and simulation (aims), 2014 2nd international conference on, pp. 109 114, November 2014. [4] Ravi Kishore Kodali, Vishal Jain, Suvadeep Bose and Lakshmi Boppana"IoT Based Smart Security and Home Automation System",2016: http://ieeexplore.ieee.org/document/7813916/ [5] JasmeetChhabra,Punit Gupta," IoT based Smart Home Design using Power and Security Management",2016: http://ieeexplore.ieee.org/document/7542317/ [6] Stan Kurkovsky, Chad Williams," Raspberry Pi as a Platform for the Internet of Things Projects: Experiences and Lessons ",2017 : http://dl.acm.org/citation.cfm?id=3059028 [7] VamsikrishnaPatchava, HariBabuKandala,P Ravi Babu,"A Smart Home Automation technique with Raspberry Pi using IoT",2015 http://ieeexplore.ieee.org/document/7873584/ [8] B. R. Pavithra, D., Iot based monitoring and control system for home automation, 2015. http://ieeexplore.ieee.org/document/7342646/ [9] Al-Ali, A.R. ; Dept. of Comput. Eng., American Univ., United Arab Emirates ; AL-Rousan, M., "Java-based home automation system"2004 http://ieeexplore.ieee.org/document/1309414/ Pradeep P. Laturkar, Parikshit Solunke, Parth Medhi, Shaunak Oke and Shradha Somani 5