International Journal of Trend in Research and Development, Volume 5(2), ISSN: 2394-9333 www.ijtrd.com
MELPLAT System with Security Based Domotic Integrated Devices and GPS 1
Maurizio Melluso, 2Agostino Basile and 3Camilla Vargas, 1 Automation and Systems Engineering, Degree course of Cybernetic Engineering, University of Palermo (Italy) 2 Professor at Platone S.r.L., Palermo (Italy), 3 Student at Platone S.r.L., Applied Sciences, Palermo (Italy) Abstract— The MELPLAT project consists of a single control unit for security, domotic systems and Global Position System (GPS). It tenses to make our home safer. There is a security function based on anti-intrusion system which sends automatically SMS alert to a remote smartphone via cellular network in case of intrusion. The system can be used also by disabled people to send easily an emergency SMS via cellular network pressing the button of an Infrared (IR) remote control. MELPLAT is also equipped of a domotic system for detection of water leaks, where a SMS is sent to the smartphone of the owner with the information of the leak. Also the GPS has been integrated to allow the correct location of the intervention site from the police or emergency services. The human intrusion is detected by a Passive Infrared (PIR) sensor. A water sensor is designed for water detection, which can be widely used in sensing water level and leakage. The system uses a password to allow access of the authorized user only. A local host Android device is connected to the microcontroller ATMEGA328P via wireless HC-06 interface and communicates with the remote mobile devices via available cellular network. Line communication via internet between remote device and local host is available for GPS function. All the sensors and the other devices are labeled to recognize where the alert SMS comes from.
this system consists of the Arduino BT board and a cell phone, where the communication is wirelessly using Bluetooth. Home appliances are connected to the Arduino BT via relay, while the cell phone uses a software application which allows the user to control the home appliances. The disadvantage of this method is that the mobile phone works with Symbian. Symbian is an old operating system that does not exist anymore in commercial device. In [8] a home automation system using infrared sensor and Arduino-Nano single board microcontroller has been developed. A wireless communication technology between IR sensor and microcontroller has been projected to allow control over the electrical home appliances to the remote user. In home security systems where alert SMS must be sent automatically to remote users or emergency service, the GPS has very important role. In this case there is the necessity of knowledge about the location of disabled or home to reach the location as soon as possible. The work developed in [9] mainly focuses on the security of the home and industries when the user is away from the place and industrial areas from cities if fire occurs during night this system sends the location details by means of sending longitude and latitude angles by using GPS and sends messages to fire station, police station and predefined numbers.
Keywords— Security System, Domotic Systems, ATMEGA328P Microcontroller, Android systems, Gui (Graphical user interface), PlatformIO Control Software, Passive Infrared Sensors, Water Sensor, Infrared Remote Control, Cellular Network, GPS.
In this paper an extension of the MELPLAT security system presented in [10] and [11] is developed. For greater clarity, the main concepts presented in [11] are rewritten. Hardware and software of the new version of MELPLAT consists of microcontroller ATMEGA328P, android local host, PIR sensor for intrusion detection, IR transmitter and receiver for disabled people, water sensor to detect water leakage, android application to connect the local host and the remote smartphone for ensuring the functionality of the GPS and access of the user only, android application for graphical interface of the local host, software written in C++ language for microcontroller ATMEGA328P to manage the functionality of the sensors connected to the microcontroller. The graphical interface of the device is very simple and intuitive and can be used to choose the various functions, i.e. deactivate and activate sound alarm, activation or deactivation of the text messages, setting cellular numbers. The software of the microcontroller has been written using the next generation integrated development environment for Internet of Things (IoT), PlatformIO [11], [12]. MELPLAT is connected to the user’s smartphone, it has a direct connection to the police and in case of a disabled person also serves for emergency
I. INTRODUCTION Home Automation provides home security and emergency system to be activated. ABI research estimates that 204,000 home automation systems were shipped globally in 2009 [1]. The main objective of the home automation and security systems is to control home appliances by using different techniques like android applications, Global System for Mobile communication (GSM) when a person is away from home [2]. Home automation systems are used recently to provide ease to disabled peoples [3]. Home automation using Bluetooth has described in [4]. A home automation system that allows the user to control home appliances through wireless, where the controlling and monitoring the home appliances use smartphone based on android application, has been developed in [5]. In [6] a smart home automation system implemented by using GSM has been presented. The hardware architecture of the system consists of GSM Modem, PIC16F887 microcontroller and smartphone. The system used a GSM modem to control electric appliances through SMS request, while the microcontroller interfaced with a GSM modem and it is used to read and decode the received SMS to execute the specific command. In [7] a home automation system using smartphone, Arduino board microcontroller and Bluetooth technology has been proposed. The hardware architecture of IJTRD | Mar - Apr 2018 Available
[email protected]
The functionalities of the new version of MELPLAT are: a) it uses password, therefore it guarantees absolute security that could only be used by system owners; b) in case of home intruder detection, the system sends an alert SMS to a user via cellular network automatically, anywhere the user is in the world;
627
International Journal of Trend in Research and Development, Volume 5(2), ISSN: 2394-9333 www.ijtrd.com c) the disabled people can use an IR transmitter to send easily emergency SMS via cellular network; d) if there is a water leakage, the system sends an alert SMS to the remote smartphone where the information on the leakage is written; e) when the user receives the alert SMS of the intruder or disabled person, or water leakage, by using the GPS system, the user’s smartphone is enabled to locate the place where the alarm is coming from. In this case the remote smartphone and the local host are connected with username and password to allow the access of the remote user only. Unlike the version of the project presented in [11], the new version of MELPLAT system is equipped of an integrated domotic system for detection of water leakage and GPS to allow the correct location of the intervention place. The PIR sensor for intrusion detection, the water sensor for water leakage detection, the IR transmitter and the IR receiver for the disabled people are integrated into the system, so that a software is developed that labels each of the devices to recognize where the alert SMS comes from. The paper is organized as it follows. In Section II the block scheme of MELPLAT is sketched. Section III presents the MELPLAT’s hardware. Section IV presents the software description and functionality of the proposed system. II. BLOCK SCHEME OF MELPLAT A. Block Scheme In this Section the blocks scheme of MELPLAT is sketched (see Fig .1). The microcontroller ATMEGA328P communicates with HC-06 interfaces through UART protocol. The components above have been presented in [11]. Two different power supplies for HC-06 interface and sensors have been employed with common ground to avoid interference between the sensors and the wireless module. The features of the power supplies have been sketched in [11]. The other components of the proposed system are the followings: PIR Sensor [11]: it allows to sense motion of the intruder, almost always used to detect whether a human has moved in or out of the sensor range. Details of the sensor are exposed in Section III.A Water Sensor: this module can perceive the depth of water and the core component is an amplifying circuit which is made up of a transistor and several pectinate Printed Circuit Board (PCB) routings. When put into the water, these routings will present a resistor that can change along with the change of the water’s depth. Then the signal of the water depth is converted into electrical signal and one can know the change of the water’s depth through the ADC of the microcontroller ATMEGA328P. When the microcontroller receives a critical value of the signal above, it sends label of the sensor to the local host which provides to send the alert SMS to the smartphone of the system owner. Major details of the sensor are exposed in Section III.B.
Fig. 1
MELPLAT’s Block Scheme
III. HARDWARE AND GPS In this section the features of the blocks are shown. The details of part of these devices (microcontroller, HC-06 interface and power supply) have been presented in [11] already, therefore other MELPLAT’s devices only are presented in the following subsections. A. HC-SR501 Passive Infrared Sensor The features of this sensor are developed in [11]. In this paper we rewrite the main features of the sensor for greater clarity. The HC-SR501 PIR has two slots. Each of slot is made of a special material that is sensitive to IR signals. The two slots can see out past some distance. When the sensor is idle, both slot detect the same amount of IR, the ambient amount radiated from the room. When a warm body like a human passes by, it first intercepts one half of the PIR sensor, which causes a positive differential change between the two halves. When the human body leaves the sensing area, the reverse happens, whereby the sensor generates a negative differential change. These change pulses are what is detected. Fig. 2 shows the possible settings and adjustments of the sensor during the installation of MELPLAT.
GPS: this function permits to reach the location of the alarm by the emergency service as soon as possible. Details are exposed in section III.C. IR Transmitter and Receiver [11]: IR detectors are little microchips with a photocell that is tuned to listen to infrared light. In the software is shown the hexadecimal code that is available on the remote control. Details of the IR transmitter and receiver are shown in Section III.D IJTRD | Mar - Apr 2018 Available
[email protected]
Fig. 2: HC-SR501 setting and adjustments 628
International Journal of Trend in Research and Development, Volume 5(2), ISSN: 2394-9333 www.ijtrd.com
Time delay adjust: it sets how long the output remains high after detecting intrusion and motion from 5 seconds to 5 minutes. Sensitivity Adjust: it sets the detection range from 3 meters to 7 meters. Trigger Selection Jumper: it sets for single or repeatable triggers. GND: ground input. Output: low when no motion is detected, high (5V) when motion is detected. Power pin: 5V to 20VDC Supply input
The HC-SR501 will detects infrared changes and if interpreted as motion, will set its output low. What is or is not interpreted as motion is largely dependent on user setting and adjustments. The device requires nearly a minute to initialize. During this period, it can and often will output false detection signals. The controller of the sensor needs to take this initialization period into consideration. Fig. 3 shows the area detection of the sensor.
Fig. 3 Area intrusion detection The device detects the motion of the intruder inside a 110 degrees cone with a range of 3 to 7 meters. As mentioned there is an adjustable range trimmer for decreasing or increasing sensitivity of the sensor (see Fig. 4.A) and there is a trimmer for the time delay adjustment as sketched in Fig. 4.B.
B. Water Sensor The water sensor employed in the domotic system of MELPLAT is sketched in Fig. 5.
Fig. 5: Water sensor A water sensor brick is designed for water detection and it can be used when there is a water leakage. The brick is main composed of three part: an electronic brick connector, a 1MOhm resistor, and several line of bare conducting wires. This sensor works by having a series of exposed traces connected to ground. Interlaced between the grounded traces are the sense traces. The sensor traces have a weak pull-up resistor of 1Mohm. The resistor will pull the sensor trace value high until a drop of water shorts the sensor trace to the grounded trace. Believe it or not this circuit works with the digital I/O pins of the microcontroller or one can use it with the analog pins to detect the amount of water induced contact between the grounded and sensor traces. MELPLAT uses the analog pins. This item can judge the water level through with a series of exposed parallel wires stitch to measure the water droplet or water size. It can easily change the water size to analog signal, and output analog value can directly be used in the program function, then to achieve the function of water SMS alert. This sensor has low power consumption and high sensitivity. The features are the following:
working voltage: 5V; working current