Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
AUTOMATIC POWER SAVING USING TIME-CONTROLLED HOME AUTOMATION WITH INTRUDER ALERT A Thesis Proposal Presented to the Faculty of the College of Engineering University of Cebu Lapu-Lapu and Mandaue Mandaue City, Cebu Philippines In Partial Fulfillment Of the Requirements for the Degree Bachelor of Science in Electrical Engineering By: Baclaan, James Reil C. Desucatan, Kevin Romaguerra, Neil Troy Sencil, Larryje B. Quilantang, Ivan Nathaniel Yntig, Jonjey S. Adviser: ENGR JONAH AUBREY T. DELANI 2021 APPROVAL SHEET This thesis entitled, “AUTOMATIC POWER SAVING USING TIME- CONTROLLED HOME AUTOMATION WITH INTRUDER ALERT”, prepared and submitted by Sencil, L., Baclaan, J., Yntig, J., Romaguerra, N., Quilantang, I., Desucatan, K., in partial fulfilment of the requirements for the degree of BACHELOR OF SCIENCE IN ELECTRICAL ENGINEERING (BSEE), has been examined and recommended of acceptance and approval for Oral Examinations. i APPROVAL FOR PRINTING This thesis entitled, “AUTOMATIC POWER SAVING USING TIME- CONTROLLED HOME AUTOMATION WITH INTRUDER ALERT”, prepared and submitted by Sencil, L., Baclaan, J., Yntig, J., Romaguerra, N., Quilantang, I., Desucatan, K., in partial fulfilment of the requirements for the degree of BACHELOR OF SCIENCE IN ELECTRICAL ENGINEERING (BSEE), has been APPROVED FOR PRINTING by the Panel of Examiners. ii ACKNOWLEDGEMENT iii ABSTRACT OF THE STUDY iv TABLE OF CONTENTS Title Page Approval Sheet i Approval for Printing ii Acknowledgement iii Abstract of the Study iv Table of Contents v List of Figures viii CHAPTER 1 THE PROBLEM AND ITS SCOPE 1 1.1 Rationale of the Study 1 1.2 Theoretical Background 3 1.3 Review of Related Literature 5 1.4 Statement of the Problem 8 1.5 Scope and Limitations 9 1.6 Significance of the Study 10 1.7 Research Methodology 11 v 1.8 Research Environment 11 1.9 Research Respondents 12 1.10 Research Instrument 12 1.11 Research Procedure 12 1.12 Definition of Terms 14 CHAPTER 2 2.1 Presentation, Analysis and Interpretation of Data 15 2.2 Conceptual Framework 18 2.3 Block Diagram 19 2.4 Design Layouts 23 2.5 Prototype Design 24 2.6 System Schematic Diagram 25 2.7 Hardware Components and Specifications 27 2.8 Software Description and Specifications 37 2.9 Testing/Experimentation 39 3.0 Results/Findings 40 vi BIBLIOGRAPHY References 41 APPENDICES Appendix A – Transmittal Letter 43 Appendix B – Research Instrument 44 Appendix C – Research Environment Map 45 Appendix D – Gant Chart 46 Appendix E – User’s Manual 47 Appendix F – Statement of Expenses 48 Appendix G – Videos and Pictures 49 Appendix H – Curriculum Vitae 50 vii LIST OF FIGURES Figure 1 Schematic Diagram of Conceptual Framework 23 Figure 2 Block Diagram of the System 25 Figure 3 Design Layout of the System 28 Figure 4 Prototype Design (Front Side) 29 Figure 5 Prototype Design (Back Side) 29 Figure 6. System Circuit Diagram using Circuits.io 30 Figure 7. System Circuit Diagram using MS Paint 31 Figure 7 Digital Humidity and Temperature Sensor 33 Figure 8 Light-Dependent Resistor Sensor 34 Figure 9 Digital Humidity and Temperature Sensor 35 Figure 10 MQ-2 Gas Sensor 36 Figure 11 Arduino Mega 2560 37 Figure 12 Real-Time Clock Module 38 Figure 13 16 × 2 LCD Unit 39 Figure 14 ESP8266 WIFI Module 4 viii CHAPTER I THE PROBLEM AND ITS SCOPE 1.1 RATIONALE Automation simplifies daily living and expedites task completion. Not only do home automation make living more comfortable and contribute to energy conservation, but they also provide security for people's houses [1]. At times, it can be tough to decide which system to purchase. Numerous home automation and security systems are available, ranging from basic alarms to fully-equipped home automation systems. However, more or less functioning ones are pretty pricey and do not always suit all customers' expectations. Additionally, customers are provided with security intruder systems for a monthly cost. While it is easy to establish a security intruder system, it is still inefficient because it will sound the alarm only when an intruder attempts to enter the residence. When an alarm is triggered while the user is away, the user is unaware, which results in an ineffective method of informing the user about the present state of their home. The home automation sector is relatively new, and there is a considerable possibility for growth. There was a shift away from simple activities to more sophisticated ones [1]. Home automation is a hot area of research in the 21st century. It is gaining more prominence due to its future technological breakthroughs that significantly impact our daily lives. The Internet of Things (IoT) is gaining traction in the home automation market since it enables remote monitoring of a facility via the internet without being physically there [2]. By incorporating the IoT concept, it becomes incredibly adaptable and user-interactive. Different types of wireless network technology, such as the internet, WIFI, and GSM, all contribute to the effectiveness of the home automation system. With this technology, household appliances may be easily controlled from afar 1 using a smartphone or web-based application. By merging IoT with home automation systems, it is now feasible to create a smart home. In the Philippines, energy efficiency (electricity) has become a concern [3]. This problem is mainly caused by the fact that our diverse houses do not make it a habit to implement powersaving methods. For instance, someone may forget to turn off their exterior light during the day. The efficient use of energy is at the core of home automation (electricity). Without automation, tasks are completed manually, wasting time and resources. Automation is being integrated into homes, building structures, systems, and gadgets are being developed to accommodate and support automation mechanisms. In this project, the entire system is operated via web server. It transmits commands to the microcontroller unit, which makes decisions and takes appropriate action. This proposed home automation design integrates the system with home automation and security intruder system by using an Arduino microcontroller which will make a time-controlled system with an intruder alert that will help residential houses to save power in their respective area and have security that ensures the safety of their family. It will make the household power-saving and security more efficient. A time-controlled system can save power in a household by controlling its time when the power is in use and not in use. Moreover, the options can be modified by setting time for those specific loads to on or off. It can be a reliable feature specifically for busy and lazy people. Intruder alert is implemented on this project wherein it connects to the owner's web server that will alert them when the device detects an unknown person. Depending on the situation, the owner can select an option to report to the police station or not. The device detects a person through a cam-motion sensor that will alert the system that an unknown person is detected. 2 1.2 THEORETICAL BACKGROUND Several aspects can be combined to create home automation, depending on the requirements of the inhabitants. Each feature has its mechanism, which can be combined with the others. The proponents of this thesis drew on the following aspects of home automation: Scheduling of loads The ability to turn on and off the switches of the loads is a common feature of home automation. When the users are sleeping, they are unable to influence the load switching. This Internet of Things (IoT)-based home automation system allows the user to control and monitor the use of electronic equipment and the consumption of electrical loads in their home. The homeowner can use their mobile devices and PCs to control and monitor the operations and usage of their appliances. They can also use the Internet to choose and set a schedule for when and how long the appliances turn on and off. Intruder alert using motion sensor According to Ramakrishna (2020), security systems are highly crucial in today's society, as criminal activity is rising every day. With technological improvements, a person no longer has to be concerned about the security of his or her home or possessions. This project focuses on designing or building a home security system that will transmit alerts to the home's owner through the Internet whenever intruders or trespassers are detected, causing the device to sound an alarm. Also, the same system can be utilized for home automation by using a set of sensors and microcontrollers. The advantage of utilizing this system is that the homeowner can receive and access the warnings and status sent by the microcontroller-managed system that is Wi-Fi- 3 connected using his phone from any distance. Furthermore, the user's phone is linked to the Internet, he or she will be able to receive and read the data transmitted by the microcontroller [4]. Security and Home Automation System Homeowners should be aware of how they use electrical loads such as appliances. They might also put in a security system or have dogs to protect their home. However, according to Dey et al. (2016), the Internet has become such a vital part of people's daily life that it is difficult for them to go a day without it. The Internet of Things, or IoT, is a system that allows objects to connect to the Internet and a smart wireless home security system that allows the homeowner to operate home gadgets remotely via mobile phones over Wi-Fi. The Internet of Things (IoT) devices monitors and control electronic gadgets, electrical load consumption, and other mechanical systems in businesses and homes. The Internet of Things, or IoT, allows homeowners to control and monitor the operations and usage of their home equipment remotely using their mobile devices and even computers. They can also use an internet connection to create a time or schedule for when the appliances will turn on and off [5]. According to Kodali et al. (2017), a house can have a smart-wireless home security system employing IoT, which will make the home much safer and secure from burglars. If burglars or trespassers trigger the system's alarm, this home security system will alert the homeowner over the Internet. The microcontroller-managed security system connected to Wi-Fi will convey alert messages and the state of the home to the homeowner. Furthermore, if the homeowner is linked to the Internet, the data transmitted by the security system will be received and accessible by the homeowner via his or her phone or computer from any location [6]. 4 1.3 REVIEW OF RELATED LITERATURE Home automation, often referred to as a “smart home”, is a term that refers to the process of integrating various technologies into homes to the point where the majority of daily tasks are automated. Motion detection, intelligent thermostat management, adjustable luminescence, infrared technology, and CCTV security are all examples of technologies that have become more prevalent [7]. Advanced automation technologies such as facial recognition and voice-controlled instructions are being adopted, assisting in planning and advising everyday duties. Home automation is gaining popularity; currently, there are an estimated 175 million home automation systems installed worldwide; 57% of people who use home automation report that it saves them time; 50% of people who use home automation report that it saves them 50% on energy use; and 63% of smart home users want their smart home to include a security or intruder alert system [8]. There are both affordable and expensive home automation systems on the market today. Each is equipped with a means of communicating with the device controllers. Through the automation of home equipment and household activities, home automation strives to give occupants enhanced convenience, comfort, energy efficiency, and security [9]. Home automation, in particular, can improve the quality of life for individuals who would require immediate care or institutional care under normal circumstances, such as the elderly or disabled. As the Internet of Things (IoT) technology advances, home automation's penetration into regular households has accelerated in recent years. The concept of automation is a crucial component of home automation. This occurs when networked devices can be programmed and controlled in response to defined scheduled events. Commands that require timed/scheduled triggering or those not scheduled but occur on an ad-hoc basis are being programmed. Automation in the home can include lighting control, door opening/closing, air conditioner regulating, coffeemaker management, sprinkler 5 system monitoring, and various other household activities. The other concept incorporated into the features of home automation is remote access and monitoring. While some degree of monitoring was previously unavailable due to limited capabilities, being entirely in control and truly having an automated environment that can be controlled remotely became a reality with smartphones and smart devices [10]. If implemented correctly, an ideal home automation system can be accessed and controlled through any Internet-connected device. This approach enables control of the home's security status, current temperature, and other variables. The incorporation of real-time audiovisual devices demystifies the system's and environment's real-world feel. Wireless systems such as ZigBee, Wi-Fi, and Bluetooth have been increasingly popular at home networking in recent years. Wadhwani et al. (2018) suggested a "Smart Home Automation and Security System utilizing Arduino and IOT," thoroughly investigated. They described in their paper how the Arduino microcontroller might be used to achieve both automation and security, with smartphones serving as the primary key device, allowing IoT to be used as a bridge. The system used a cloud platform called THINKSPEAK and a WI-FI module to connect to the network and connect devices. The value of sensors causes our appliances' status to change. For automation, the system includes a flex sensor for controlling the appliances, a relay driver for operating the DC fan and light, an accelerometer for controlling the rotation of the motor, and a 5 volt direct current supply for the control process; for security, the system includes a fire sensor and a magnetic sensor, both of which will send alert messages to the owner. The system will send a notification to the user's phone if any movement is detected. The fire sensor will detect and send a message to the user if a fire breaks out within the house, and the magnetic sensor will detect and send a message to the user if the door is hit and broken [11]. 6 One reason that home automation lessen the rate of fire cases is that it "enable the optimized usage of the electrical appliances by displaying the current status of the appliances and by sending “notifications” to the user if an appliance is running over two hours to prevent overuse of appliances. Besides, the user can set his preferences of temperature and the system turns on and off the ventilation fans and AC to meet those requirements", which will hopefully lessen the fire cases of the chosen barangay [12]. 7 1.4 STATEMENT OF THE PROBLEM The purpose of this project is to design and construct a time-controlled home automation system wherein the user may set a specific range time of the on and off of a certain load. Additionally, the system should be capable of managing electricity consumption and alerting homeowners to intruders. • Create an automation system capable of controlling a home's primary power source. • Create home automation that can be accessed remotely by PCs, laptops, smartphones, and tablets linked to the internet. • Develop an intruder alert system that is capable of alerting the house owner by sending an alert notification via the internet. • Design a web server for the system. • Regulate electricity by means of scheduling loads. 8 1.5 SCOPE AND LIMITATIONS The scope of this study focuses on every residential house where there is an internet that will be used to connect the appliances and security intruder devices to the internet. This project allows for comprehensive remote control of small household appliances such as lightings and other electrical loads while also automating specific equipment. The participants will have easier access to the security intruder system and save energy through a time-controlled system. This is a platform-independent web application. That is why this program is compatible with any browser on any smartphone or personal computer. 9 1.6 SIGNIFICANCE OF THE STUDY The importance of this study is to realize a power-saving using a time-controlled home automation system that manages the use of energy in households with an intruder alert that keeps the household away from danger. This study would be beneficial to the following: Community: Residential households would benefit in the outcome of this study. Aside from saving electricity in their households, they will also have a security system that will be easy to use and access, and is convenient. Future Researchers The completion of this study will open more opportunities for future researchers to dig more into this study and improve the output's efficiency. 10 1.7 RESEARCH METHODOLOGY The proponents will use quantitative techniques to collect data present in the study "Automatic Power-Saving System Using Time-Controlled Home Automation with Intruder Alert" (to be added in the intro of research methodology). Before starting the experiment, the proponents will design a power-saving system that connects the appliances through the internet. The design has an additional feature which is a home security intruder system connected to the internet that will alert any of them by sending an alert notification that an intruder entered their premises. A pre-questionnaire will be given to the chosen household before the installation of the project. After the power-saving system is installed and utilized, the proponents will disseminate questionnaires to gather feedback and suggestions from the participants of the study. . 1.8 RESEARCH ENVIRONMENT The setting where the research will be conducted is critical for it will serve as the foundation in which the researchers will base the design for the Automatic Power-Saving System Using Time-Controlled Home Automation with Intruder Alert. Also, it will be the basis for how the researchers will achieve the desired output of the system. Moreover, it will be used as a ground for simulation and utilization of the Power-Saving system. The researchers will know if some adjustments or changes are needed to make the system more efficient and reliable. Although the project can be installed anywhere depending on the need of the user, researchers decide to choose a barangay of Lapu-Lapu City, specifically Pusok. 11 1.9 FOR THE POSSIBLE RESEARCH RESPONDENTS The respondents of the said barangay should have electricity and internet connection. The proponents will ask consent to the chosen household to allow the installation of the project at their house. Once the project is installed, the proponents will show and demonstrate how to use the system. Then, the household members will have their own turn to try and use the system. Pretesting questionnaires and post-testing questionnaires will be given before and after the project installation respectively. 1.10 RESEARCH INSTRUMENT The research instrument will show the response of the representatives from each household. The researchers will be having a two-part survey which will show their status in electrical management and consumption, and their safety and security status before and after the installation of the system. First part, it will show the responses about; how they currently take control of their electrical loads at home and the status of their electrical power consumption. Also, it will show the current safety and security status within their premises; if there are recent security breaches occurred in the area; and if there are unknown passers-by that may have caused trouble within the area. Second part, it will show the responses about; the changes or improvements on how they control their electrical loads and the status of their electrical loads consumption after the installation of the system. Also, it will show the changes or improvements in their safety and security status; and the changes in the within the area (to be added). And their responses will show how critical it is to have an automated home especially being able to control the time of each electrical load and how useful it is if it is installed. 12 1.11 RESEARCH PROCEDURE • GATHERING OF DATA The data will be collected through a survey with respondents and the trial of the design project, "Automatic Power Saving Using Time-Controlled Home Automation with Intruder Alert." A survey will be undertaken with the selected individuals to ascertain their level of agreement with the design. For the prototype testing, the conditions outlined before in the Theoretical Background shall be followed. • TREATMENT OF DATA After gathering data, it will be statistically analyzed and evaluated using inferential statistics. The respondents will be chosen where the proposed system device will greatly need the acquired results. Slovin’s formula will compute the number of sample responders from the chosen barangay: 𝑛= 𝑁 1 + 𝑁𝑒 2 Where: n = number of samples N = total population of households e = margin of error A 5% margin of error will be utilized. Slovin's formula is employed when little information about a population's behavior is available. The survey findings will exhibit a mode of central tendency, which is simply the most frequently occurring value. 13 1.12 DEFINITION OF TERMS Automation refers to the development and deployment of technologies that enable the automated production and delivery of goods and services with little or no human contact. Internet of Things (IOT) refers to a network of physical objects dubbed "things" that are outfitted with motion sensors and software capable of communicating via the internet with Android phones and systems. Intruder Alert refers to an alarm system designed to notify the house owner if an intruder is present within the residence. Time-controlled refers to the system's mechanism by which appliances operate according to their scheduled times. 14 CHAPTER II PRESENTATION, ANALYSIS AND INTERPRETATION OF DATA 2.1 Results and Discussions of Gathered Surveys The proponents conducted a survey of 100 respondents from Barangay Pusok, Lapu-Lapu City. The data gathered by the proponents during the analysis of the data from the survey will be presented in this chapter. The gathered pieces of information will be presented in a tabular format. The primary focus of the study Automatic Power Saving System using Time Controlled Home Automation with Intruder Alert is to minimize electrical load problems, time-controlled home automation, and provide security to the homeowners and help them avoid or minimize any possible crimes. The data gathered is about the situation in the homeowner's property and area prior to the installation of the system. So based on the data gathered, most of the residents from barangay Pusok have experienced problems regarding their electrical load consumptions and how they control their use of electricity. Also, they have experienced some security breaches and trouble within their premises. And in the results, there are problems shown and how often does it happen in their premises or in their neighboring houses and establishments. So, the proponents created a system that will help them in their issues and problems. The Automatic Power Saving System using Time Controlled Home Automation with Intruder Alert has features that allows user to setting time schedule for any specific loads connected to the system. Also, the system has humidity and temperature sensor that monitors the humidity and room temperature so that the owner will be able to know what is the temperature in their home and decide whether to turn on or off their heating or cooling system. There is also a gas sensor that detects common harmful gases present in the air inside the house then warn the homeowner via 15 web server. And lastly, the system has a motion sensor together with a camera that captures images every time there are motions detected within range. Table 1.1 - Questions 1-5 Electrical Energy Consumption Problems The table 1.1 shows student responses to Questions 1-5. In Question 1, 0 respondents had responded always, 76 responded often, 19 responded sometimes, 5 responded rarely, and 0 responded none at all. In Question 2, 0 respondent answered always, 47 answered often, 23 answered sometimes, 30 answered rarely, and 0 answered none at all. In Question 3, 0 respondent answered always, 0 answered often, 35 answered sometimes, 20 answered rarely, and 45 answered none at all. In Question 4, 0 respondent answered always, 0 answered often, 0 answered sometimes, 16 answered rarely, and 84 answered none at all. In Question 5, 7 respondents answered always, 16 answered often, 31 answered sometimes, 29 answered rarely, and 17 answered none at all. 16 Table 1.2 - Questions 6-10 Safety and Security Threat Issues The table 1.2 shows student responses to Questions 6-10. In Question 6, 0 respondents has responded always, 0 responded often, 34 responded sometimes, 23 responded rarely, and 43 responded none at all. In Question 7, 0 respondent answered always, 0 answered often, 0 answered sometimes, 11 answered rarely, and 89 answered none at all. In Question 8, 0 respondent answered always, 0 answered often, 46 answered sometimes, 15 answered rarely, and 39 answered none at all. In Question 9, 0 respondent answered always, 0 answered often, 6 answered sometimes, 9 answered rarely, and 85 answered none at all. In Question 10, 31 respondent answered always, 28 answered often, 15 answered sometimes, 8 answered rarely, and 18 answered none at all. 17 2.2 Conceptual Framework Phase 1: Research and Identification 1. Research similar systems and studies to uncover relevant techniques for the system. 2. Determine the appropriate electrical components and equipment for the project. 3. Identify specific strategies and techniques for increasing the efficiency of timecontrolled systems and intruder alert. 4. Locate the optimal place for installing and testing the system. If the experiment will fail Phase 2: Developing the System 5. Design an Arduinobased system device that will control the time-controlled system and intruder alert. 6. The system device will be connected to the appliances. 7. The system device that is connected to the appliances will monitor and control the appliances. 8. Develop a web server that allows the user to monitor and control the time-controlled system and intruder alert. Phase 3: Assessment of the System 10. To determine the capability of the system in controlling and monitoring the appliances. end-user. 11. To determine the range of the intruder alert's coverage and the precise motion level at which an object will activate the intruder warning system 12. To validate the alert system's camera's ability to capture photos that will be transmitted to the end-user. Phase 4: Evaluation and Testing of the functionality of the System 13. Determine the precision and effectiveness of the data transmitted by the microcontrollers connected to the appliances. 14. Evaluate the capability of controlling and monitoring of the device system 15. Notify the end-user through the internet if there is an intruder on their property Figure 1 Schematic Diagram of Conceptual Framework 18 16. The device system and application shall be tested and diagnosed to continue developing them and correcting any errors that may occur. Feedback and Improvements 9. To verify and quantify the system's maximum and minimum load capacities and operating time to the 2.3 Block Diagram The automatic power-saving using time-controlled home automation with intruder alert comprises multiple independent components that work in concert to accomplish its purpose. • AC source • Arduino Unit • ESP32 Camera Module • ESP 8266 Wi-Fi Module • LCD Unit • Power Supply ➢ Constant Current Constant Buck Converter ➢ Switching Power Supply • Real-Time Clock Module • Relay Unit • Sensors ➢ DHT11 Temperature Sensor ➢ Light Dependent Resistor Module Sensor ➢ PIR Motion Sensor ➢ MQ-2 Sensor 19 AC POWER LCD DISPLAY Power Supply ESP32 CAMERA RELAY 1 LOAD 1 RELAY 2 LOAD 2 RELAY 3 LOAD 3 RELAY 4 LOAD 4 PIR SENSOR LDR SENSOR ARDUINO INTEGRATED WITH RTC DHT11 SENSOR MQ-2 SENSOR ESP8266 WEB SERVER USER Figure 2 Block Diagram of the System 20 This web-based program is an Automatic Power Saving Time-Controlled Home Automation System with Intruder Alert. Users must first open a browser on their mobile device or personal computer and then type in a specific IP address as the URL address; a password box will display. The user can access the whole online application, manage home appliances, and receive notifications when an intruder enters the premises by inputting a password. The user can access the dashboard from his or her mobile phone or computer by navigating to a specific IP address as a URL. After completing the log-in authentication process, the user can access the control panel and control the small appliances he or she want to control. As a result, when a user clicks on a light button to turn it on, the web server receives a signal. The web server receives the signal and passes it on to the Arduino microcontroller for processing. Additionally, the Arduino microcontroller often communicates with gas, light, motion, and temperature sensors. When a gas sensor detects a leak or smoke, the Arduino microcontroller sends a signal to the web server, notifying the user via a web application. When a motion sensor linked with a camera module detects an unknown motion, the camera module captures the surrounding environment and then notifies and sends the captured image to a web application that can inform and verify the user about the situation. The microcontroller Arduino Mega is at the core of the proponent's idea. The alternating current is generated via the AC power port, which is fitted with a live and neutral wire connector. Following that, it connects to the step-down power supply, which transforms the 220 AC voltage to a constant DC voltage, thereby protecting the system, especially the Arduino microcontroller, which operates at 5V DC. Because the Arduino microcontroller is incapable of controlling high voltages, an intermediate relay is utilized between the AC switches and the Arduino microcontroller. Normally Closed Connection, Normally Open Connection, and Common 21 Connection is used to describe the relay's terminals. Normally open connections are comparable to switches in that they are terminals. When the relay is activated, a magnetic within the relay connects to the Common connection, thereby closing the circuit. Even when the relay is not energized, the Normally closed contacts the Common connection regularly. It opens the circuit when activated. The relay ports are used to link the microcontroller to the small appliances such as fan, television and as well as lighting. Sensors such as the gas sensor, temperature sensor, PIR sensor, and MQ-2 sensor, as well as the camera module, are attached to the appropriate pins on the microcontroller. A personal computer or smartphone can be used to communicate with a web application that controls the components of a home automation system. On the screens and the LCD unit, the status of each system will be presented. The ESP8266 connects the microcontroller and the web server running on the PC/smartphone. As a result, consumers can schedule small appliances at any time using their PC/smartphone. Additionally, users can receive notifications about the system and the intruder system, which comprise a taken image and a message. 22 2.4 System Design Flow A flowchart with the flow of how the system works is shown in Figure. This study develops a time control system and a feature of intruder alert system in which the household owner can control the small load appliances and lights of the household that are connected with the device system. It will need and Wi-Fi connection or a data connection to allow the user to control the system and set up time to manage electrical consumption. An intruder alert of the system is a feature to be able for the user or the owner to have a security that will allow them to be at ease whenever they are not home especially those who have children in their houses. A notification will be sent to the owner through the web server to alert and capture an image whether the picture is an intruder or not in the said premises, and it will also warn the user if there is a gas or smoke leak in the premises by displaying the status of the house surroundings. 23 System Initialization Microcontroller will gather data whenever the sensor detects base on the system Wi-Fi or data connection will be active to keep interfacing with the device and the web server Microcontroller will interface with notification to the owner through the server for security breach and leakage Through web server, you will be able to control the system through setting its time when to ON and OFF Through Wi-Fi, you will be able to control the system through setting its time when to ON and OFF Through WIFI, you will be able to control the system through setting its time when to ON and OFF Is the system set to manual? Is the system set to automatic? The owner can do ON and OFF to the system whenever he wants The time set up will base on the web app set up set by the owner Figure 3 Design Layout of the System 24 2.5 Prototype Design Figure 4 Prototype Design (Front Side) Figure 5 Prototype Design (Back Side) 25 2.6 System Circuit Diagram Figure 5 System Circuit Diagram using MS Paint 26 2.7 Hardware Components and Specifications The project is organized functionally into four key components: sensor unit, processing unit, display unit, and communication unit. 2.7.1 Sensor Unit A sensor unit's various components communicate with the environment by receiving and measuring environmental pulses, then processing the Arduino microcontroller. The Arduino, the system's primary functional component, is directly connected to all sensor components. As a result, actions can be conducted in response to environmental sensor data in real-time. In the system DHT11, ESP32 Camera, LDR, PIR, and MQ-2 are the sensor unit's critical components. The CPU of the Arduino converts environmental signals observed and measured into pulses for transmission to the other components. Due to the sensor components being connected directly to the microcontroller, real-time task execution is enabled. This section comes with a ton of critical information on the sensors' components. 27 2.7.1.1 Digital Humidity and Temperature Sensor The function of Digital Humidity and Temperature Sensor (DHT11 sensor) in the system is to measures the room temperature then if the temperature reaches a specific limit, whether it is high or low, then it will send temperature readings to the system. Then the user can view the readings and decide whether to turn on or off the cooling or heating system. Figure 6 DH11 Sensor 2.7.1.5 Grove-Gas Sensor (MQ-2) MQ-2 is the most often used of the MQ gas sensors. It detects certain amount of common harmful gas such as LPG and butane gas, also it can detect smoke present inside the house, then send notification to the homeowner via web server. The threshold level for the harmful gas that will detected by MQ-2 Gas Sensor is 1000 parts-per-million (ppm). Figure 7 MQ-2 Gas Sensor 28 2.7.1.3 Light Dependent Resistor Module Sensor The Light Dependent Resistor Module Sensor, also known as LDR Module Sensor detects the brightness of light from the sun then send data to the system, then the system will send command to control the light bulbs in the area whether to turn it off when there is daylight or it is daytime, and turn it on when it is dark or it is night-time. Figure 8 LDR Sensor 2.7.1.4 Passive Infrared Sensor A Passive Infrared Sensor, or PIR sensor, used to detect motion using infrared radiation if there are movement sensed within certain range then a signal will be sent to the system which would then create an alert notification and signal the ESP32 Cam to capture the image then notify the user through server. Figure 9 PIR Sensor 29 2.7.2 Processing Unit This system does the appropriate calculations after receiving the generated signals from the sensor unit. In this project, the microcontroller (Arduino MEGA) is the core component of this unit (processing unit). 2.7.2.1 Arduino Mega 2560 Pro Arduino IDE or Arduino microcontroller (Integrated Development Environment) is the centerpiece of the device where all the sensors will be connected. The proponents will be using this software to construct code and upload it to the actual board. The system will run according to the codes written and uploaded to the board. Circuitry for connecting to the microcontroller via USB is part of the Arduino hardware platform, including circuits for power, reset, and programming. Figure 10 Arduino Mega 2560 Pro 2.7.2.2 Real-Time Clock Module 30 Real-Time Clock keeps track of the seconds, minutes, and hours of the day and the day of the month, weekday, and year up to 2100. It allows the system to have scheduling of loads by setting specific time of the turning on and off of the loads. Figure 11 Real-Time Clock Module 2.7.3 Display Unit A 16 × 2 LCD shows 16 characters on each of its two lines. This LCD has a 5 × 7 pixel grid for each character. It displays indication about the humidity and room temperature, and it shows the gas level inside the house. Also, it shows the assigned schedule of loads whether what controller that controls specific electrical load is on or off. Figure 12 16 × 2 LCD Unit 31 2.7.4. Communication Unit The communication system sends user commands back and forth between the user's web server and the system. 2.7.4.1 ESP 8266 WIFI Module For the main system design, the proponents used the ESP8266 WIFI module as the communication interface. The ESP8266 WIFI module is in charge of sending user commands from the web server to the Arduino microcontroller; as a result, communication between the web server and the Arduino microcontroller is established. It is meant to transport data wirelessly over long distances as long as the web server has its own IP address and an internet connection. Figure 13 ESP8266 WIFI Module 2.7.4.1 ESP32 Camera Espressif 32 Camera or ESP32 Cam is used to capture images after the PIR sensor sensed a movement in a certain parameter. The PIR sensor signals the ESP32 Cam to capture an image then directly send it to the user through the web server. In this project ESP32 Cam will not undergo to the Arduino microcontroller since it has its own microcontroller. 32 Figure 14 ESP32 Camera 2.8 Software Description and Specifications 2.8.1 The Arduino Integrated Development Environment (IDE) It is a cross-platform application written in C and C++ functions. It's used to create and upload programs to Arduino-compatible boards, as well as other manufacturer-specific development boards with third-party core compatibility. This is the application the proponents used to program the Arduino Microcontroller in order to function the various corresponding sensors. 2.8.2 Fritzing An open-source web application that allows anyone to create electronics design. The proponents used this platform in designing the system since mostly of the electronics design parts are available here. 2.8.3 Notepad++ An open-source code editor application, that is good for coding HTML and CSS 2.8.4 SQLyog Community 2.8.5 Xampp 33 2.8.6 SketchUp 34 2.9 Testing/Experimentation This system was built on the Arduino Mega PRO platform. An ESP8266 module links to a web server and is used to control relays and provide real-time home monitoring. The Arduino Microcontroller includes a USB connector connecting to a PC or laptop and uploading programs. The automated home automation with an intruder alert system comprises an ESP8266, an Arduino Mega 2560 Pro, a light sensor, a temperature and humidity sensor, a gas and smoke detector, motion sensor, and ESP32 Camera. Testing the Hardware System This project was developed on the Arduino Mega 2560 PRO platform. The system is connected to the web server via an ESP8266 module, which is used to monitor, control relays, and access to images that are taken by the ESP 32 Cam. The Arduino Microcontroller includes a USB connector connecting to a PC or laptop and uploading programs. The automated home automation with an intruder alert system is comprised of an Arduino Mega 2560 Pro, an ESP 32, a temperature and humidity sensor, a gas and smoke sensor, a camera integrated with a motion sensor, a light-dependent sensor, a USB cable, a step-down transformer, a buck-buck converter, and a four-channel relay board. All hardware items were extensively inspected and tested to guarantee excellent working conditions. Following that, the Microcontroller was used to test each device sequentially to gain the necessary software for this implementation and quickly identify any hardware issues. All hardware components were in excellent functioning condition due to this test. It was now time to connect and test the hardware components in their entirety. This stage verified the interoperability 35 of the system's most critical components, the ESP8266 module, and the Arduino Mega 2560 Pro. The system was discovered to be functional. The system is now prepared to test the remaining hardware components, starting with the motion, light, gas, and smoke sensors. The operation and network connectivity of the ESP8266 module has been validated. Since analog sensors must be translated to digital, a digital temperature and humidity sensor are attached directly to the Arduino Mega 2560's digital port. When the sensor reading value exceeds a predefined threshold, the system alerts the web browser, informing the sensor's owner of the sensor's current state. When a camera module detects and photographs an object, regardless of whether it is an intruder, the image is transmitted to the owner. Apart from that, the owner can manage small appliances remotely via the relays; this can be done on a schedule or automatically, depending on the strength of the internet connection. Testing the Web Server To operate and monitor the system remotely, software running on a personal computer/web browser or any smart device's browser is used. We used the Arduino IDE to create this application. This software enables the user to monitor sensor values and the operation of other electronic control devices and study data straight from the Microcontroller on their computer. To begin, the owner must enter the username and password. A username and password are required to access the software's main page. Android smart devices can also be used to control the system when linked to a stable internet connection. The following are the steps for configuring it: a. Configure the program's settings to use the system's static IP address. b. The capacity to automate or timer-control any devices connected to relays. 36 c. Installs an intrusion alarm system to monitor the house's security. d. Maintain an up-to-date state of all sensors. 3.0 Results/Findings The findings indicate that everything worked as planned. However, there may have been a slight lag in the connection and data transmission due to some network pings. On the other hand, model control and testing remained unaffected by any significant delays. Although an unreliable connection could cause latency, systems use 5G connections that provide excellent performance. Eventually, the anticipated events occurred. Connecting the relay modules proved to be another challenge. However, using ordinary relays proved challenging due to their pin configuration not matching the breadboard's, necessitating bespoke modification. Additionally, while running several tests and wiring and unwiring, utilizing a breadboard to connect everything is not the best option. Soldering the system's components to a printed circuit board and relay modules resolved the issue. 37 PARTS USED DESCRIPTION QUANTITY UNIT PRICE (PHP) TOTAL (PHP) 4-Channel Relay 1 156 156 Arduino Mega Pro 1 1085 1085 CC CV Buck Converter 1 97 97 DHT11 Sensor 1 54 54 Large Enclosure 1 630 630 Small Enclosures 3 150 450 ESP32 Camera Module 1 489 489 ESP 8266 Wi-Fi Module 1 108 108 LCD 16 × 2 I2C 1 146 146 LDR Module 1 64 64 PIR Motion Sensor 1 77 77 Power Switch 1 45 45 MQ-2 Sensor 1 87 87 Real-Time Clock Module 1 67 67 Switching Power Supply 1 229 229 500/month 3 months 1500 Database Server GRAND TOTAL (PHP) 38 5284 CHAPTER III 3.1 Summary The purpose of this study was to develop an automatic power-saving time-controlled home automation with intruder alert. To send commands, a web server is used. The commands are translated to strings and transmitted via ESP8266 to the microcontroller using the web server. The microcontroller performs the instructions after receiving the decoded strings. This is performed by comparing the received commands to the stored instructions on the microcontroller. If the commands are the same, the microcontroller performs the specified task. The Arduino Mega 2560 Pro microcontroller, a web-based software program, an ESP8266 module, a real-time clock module, 4 channel relays, an LDR sensor, a DHT11 sensor, a PIR sensor, an ESP32 Cam, an MQ2 gas sensor, and a liquid crystal display are the primary components in this project. Additionally, a relay was employed to automate the procedure for switching on and off the small load appliances by scheduling. The bulbs automatically switch from "on" to "off" at night and "on" to "off" during the day depending on RTC by the means of scheduling, and also for the outdoor lights LDR was utilized to ensure that it will automatically off during the day. In terms of a security breach, when motion is detected in the system, the ESP32 Cam will automatically capture an image and send it to the user via the web server. This system also can detect whether there is a gas or smoke leakage in a specific area. In this project, the RTC was used to ensure that the scheduling system was engaged at the proper moment. LCD is used to display information about the system's environment, such as data on the environment humidity and temperature where DHT11 is properly installed. 39 3.2 Conclusion 3.3 Recommendation ➢ The project's adaptability enables future researchers to enhance the controls for the project's switching system. Additionally, manual switches can be added to each load connected to the system, as the project is only accessible via the web server. 40 BIBLIOGRAPHY References [1] O. Kyas, How To Smart Home, vol. 3. 2013. [2] M. H. Moubarak, “Internet of Things for Home Automation,” Researchgate.Net, pp. 1–25, 2016. [3] “Energy Crisis in the Philippines: An Electricity or Presidential Power Shortage? - The Asia Foundation.” https://asiafoundation.org/2015/03/18/energy-crisis-in-the-philippinesan-electricity-or-presidential-power-shortage/ (accessed Oct. 02, 2021). [4] Y. Ramakrishna, “Intruder alert and security system,” no. November, pp. 4–8, 2020. [5] S. Dey, A. Roy, and S. Das, “Home automation using Internet of Thing,” 2016 IEEE 7th Annu. Ubiquitous Comput. Electron. Mob. Commun. Conf. UEMCON 2016, Dec. 2016, doi: 10.1109/UEMCON.2016.7777826. [6] R. K. Kodali, V. Jain, S. Bose, and L. Boppana, “IoT based smart security and home automation system,” Proceeding - IEEE Int. Conf. Comput. Commun. Autom. ICCCA 2016, no. October 2017, pp. 1286–1289, 2017, doi: 10.1109/CCAA.2016.7813916. [7] N. Malik and Y. Bodwade, “Literature Review on Home Automation System,” Ijarcce, vol. 6, no. 3, pp. 733–737, 2017, doi: 10.17148/ijarcce.2017.63173. [8] “30 Smart Home Statistics for All High-Tech Enthusiasts.” https://comfyliving.net/smarthome-statistics/ (accessed Oct. 08, 2021). [9] C. W. Hsieh, K. H. Chi, J. H. Jiang, and C. Ho, “Adaptive binding of wireless devices for home automation,” IEEE Wirel. Commun., vol. 21, no. 5, pp. 62–69, 2014, doi: 10.1109/MWC.2014.6940434. [10] K. Gill, S.-H. Yang, and W.-L. Wang, “Secure remote access to home automation 41 networks,” IET Inf. Secur., vol. 7, no. 2, pp. 118–125, Jun. 2013, doi: 10.1049/IETIFS.2011.0303. [11] S. Wadhwani, U. Singh, P. Singh, and S. Dwivedi, “Smart Home Automation and Security System using Arduino and IOT,” Int. Res. J. Eng. Technol., vol. 5, no. 2, pp. 1357–1359, 2018. [12] M. Asif, “Home automation using general purpose household electric appliances with Raspberry Pi and commercial smartphone,” [Online]. Available: https://www.ncbi.nlm.nih.gov/pmc/articles/PMC7508411/?fbclid=IwAR23LSsc7VVCtK L5XKfWBOTQwlN5o2EYlHMHFRQtyTT-mEx6ndZaAsp93Sw. 42 APPENDICES APPENDIX A TRANSMITTAL LETTER 43 APPENDIX B RESEARCH INSTRUMENT Good day! We, the Fourth-Year Electrical Engineering Students of the University of Cebu – Lapu-Lapu and Mandaue, would like to ask questions regarding your observations on your day-to day lives before and after the installation of the project. Our thesis project is about home automation with intruder alert. This project has a timecontrolled home automation that can be controlled and monitored through your phone via Wi-Fi, and it also has a smart security system that will alert you in times that there will be unknown individuals around the area of your residence. Please answer diligently; may God bless you. Thank you. I. Name (Optional): __________ Age (Optional): ____________ Gender (Optional): __________ II. Observation Before Installation 1 – None at all 2 - Rarely 3 - Sometimes 4 – Often 5 – Always Electrical Energy Consumption Problems 1 2 3 4 5 1 2 3 4 5 1. Forgot to unplug electrical appliances 2. Forgot to turn off lights 3. Uncontrolled use of small load appliances 4. Fire occurrence caused by electrical appliances 5. Rise in Energy Consumption Safety and Security Threat Issues 1. Attempted Robbery Within the Area 2. Unexpected Unknown Guest came into the House 3. Properties Stolen Within the Area 4. Unknown people pass by late at night 5. Fire occurrence caused by electrical appliances 44 III. Observation After Installation 1 – None at all 2 - Rarely 3 - Sometimes 4 – Often 5 – Always Changes or Improvements in Electrical Problems 1 2 3 4 5 1 2 3 4 5 1. Monitored flow of electricity 2. Lessen energy consumption of other electrical appliances 3. Lessen small load appliances energy Consumption 4. Makes home safer from harm caused by electrical problems 5. Lessen Energy Cost Safety and Security Changes and Improvements 1. Lessen Robbery in the area 2. Provide peace of mind by seeing and monitoring the people outside or close to the house. 3. Lessen the occurrence of other crimes 4. Help monitor the passersby late at night to see if bad things happened 5. Makes home safer from harm caused by electrical problems 45 APPENDIX C RESEARCH ENVIRONMENT MAP Sitio San Roque, Pusok, Lapu-Lapu City 46 APPENDIX D GANT CHART 47 APPENDIX E USER’S MANUAL 48 APPENDIX F STATEMENT OF EXPENSES PARTS USED DESCRIPTION QUANTITY UNIT PRICE (PHP) TOTAL (PHP) 4-Channel Relay 1 156 156 Arduino Mega Pro 1 1085 1085 CC CV Buck Converter 1 97 97 DHT11 Sensor 1 54 54 Large Enclosure 1 630 630 Small Enclosures 3 150 450 ESP32 Camera Module 1 489 489 ESP 8266 Wi-Fi Module 1 108 108 LCD 16 × 2 I2C 1 146 146 LDR Module 1 64 64 PIR Motion Sensor 1 77 77 Power Switch 1 45 45 MQ-2 Sensor 1 87 87 Real-Time Clock Module 1 67 67 Switching Power Supply 1 229 229 500/month 3 months 1500 Database Server GRAND TOTAL (PHP) 49 5284 APPENDIX G VIDEOS AND PICTURES 50 APPENDIX H CURRICULUM VITAE RESEARCHER’S PROFILE Complete Name: James Reil C. Baclaan Address: Ibo Parola Mepz, Lapu-Lapu City Mobile Number: 0905 379 6304 Email Address: [email protected] PERSONAL INFORMATION Date of Birth : October 4, 1999 Birth Place : Cebu City Age : 22 Nationality : Filipino Religion : Roman Catholic Civil Status : Single Father’s Name : Relioenai C. Baclaan Mother’s Name : Ma.Ana C. Baclaan EDUCATIONAL LEVEL Tertiary: University of Cebu – Lapu-Lapu and Mandaue Bachelor of Science in Electrical Engineering A.C. Cortes Ave., Looc, Mandaue City 2018 – Present Senior High School: Sto. Niño Mactan Montessori School, Inc. Soong 1 Mactan Lapu-Lapu City Cebu 2016 – 2018 Junior High School: Sto. Niño Mactan Montessori School, Inc. Soong 1 Mactan Lapu-Lapu City Cebu 2012 – 2016 Elementary: Ibo Elementary School Ibo Lapu-Lapu City 2006 – 2012 51 RESEARCHER’S PROFILE Complete Name: Kevin S. Desucatan Address: Mancilang, Madridejos Mobile Number: 0930 784 4430 Email Address: [email protected] PERSONAL INFORMATION Date of Birth : September 27, 1999 Birth Place : Helotongan, Bantayan, Cebu Age : 22 Nationality : Filipino Religion : Roman Catholic Civil Status : Single Father’s Name : Anastacio Desucatan Mother’s Name : Emida Desucatan EDUCATIONAL LEVEL Tertiary: University of Cebu – Lapu-Lapu and Mandaue Bachelor of Science in Electrical Engineering A.C. Cortes Ave., Looc, Mandaue City 2018 – Present Senior High School: Madridejos National High School Madridejos, Cebu 2016 – 2018 Junior High School: Madridejos National High School Madridejos, Cebu 2012 – 2016 Elementary: Madridejos Central Elementary School Madridejos, Cebu 2006 – 2012 52 RESEARCHER’S PROFILE Complete Name: Ivan Nataniel F. Quilantang Address: Pusok, Lapu-Lapu City Mobile Number: 0977 477 0502 Email Address: [email protected] PERSONAL INFORMATION Date of Birth : December 2,1998 Birth Place : Lapu-Lapu City Age : 23 Nationality : Filipino Religion : Roman Catholic Civil Status : Single Father’s Name : Edgardo P. Quilantang Mother’s Name : Meriam F. Quilantang EDUCATIONAL LEVEL Tertiary: University of Cebu – Lapu-Lapu and Mandaue Bachelor of Science in Electrical Engineering A.C. Cortes Ave., Looc, Mandaue City 2018 – Present Senior High School: University of Cebu Lapu-Lapu and Mandaue A.C. Cortes Ave., Looc, Mandaue City 2016 – 2018 Junior High School: Pusok National High School Pusok, Lapu-Lapu City 2012 – 2016 Elementary: Pusok Elementary School Pusok Lapu-Lapu City 2006 – 2012 53 RESEARCHER’S PROFILE Complete Name: Neil Troy V. Romaguerra Address: Tanguile, Talisay, Nasipit, Agusan del Norte Mobile Number: 0905 316 2621 Email Address: [email protected] PERSONAL INFORMATION Date of Birth : September 11, 2000 Birth Place : Nasipit Age : 21 Nationality : Filipino Religion : Roman Catholic Civil Status : Single Father’s Name : Neil J. Romaguerra Mother’s Name : Mildred V. Romaguerra EDUCATIONAL LEVEL Tertiary: University of Cebu – Lapu-Lapu and Mandaue Bachelor of Science in Electrical Engineering A.C. Cortes Ave., Looc, Mandaue City 2018 – Present Senior High School: Saint Michael College of Caraga Atupan St., Brgy. 4, Nasipit, Agusan del Norte 2016 – 2018 Junior High School: Saint Michael College of Caraga Atupan St., Brgy. 4, Nasipit, Agusan del Norte 2012 – 2016 Elementary: Talisay Elementary School Talisay, Nasipit, Agusan del Norte 2006 – 2012 54 RESEARCHER’S PROFILE Complete Name: Larryje B. Sencil Address: Canjulao, Lapu-Lapu City Mobile Number: 0926 019 5934 Email Address: [email protected] PERSONAL INFORMATION Date of Birth : November 13, 1999 Birth Place : Cebu City Age : 22 Nationality : Filipino Religion : Roman Catholic Civil Status : Single Father’s Name : Larry M. Sencil Mother’s Name : Emily B. Sencil EDUCATIONAL LEVEL Tertiary: University of Cebu – Lapu-Lapu and Mandaue Bachelor of Science in Electrical Engineering A.C. Cortes Ave., Looc, Mandaue City 2018 – Present Senior High School: University of Cebu Lapu-Lapu and Mandaue A.C. Cortes Ave., Looc, Mandaue City 2016 – 2018 Junior High School: Pajo National High School Pajo, Lapu-Lapu City 2012 – 2016 Elementary: Estaca Elementary School Candanas, Garcia-Hernandez, Bohol 2006 – 2012 55 RESEARCHER’S PROFILE Complete Name: Jonjey S. Yntig Address: Babag 1, Lapu-Lapu City Mobile Number: 0968 711 1547 Email Address: [email protected] PERSONAL INFORMATION Date of Birth : May 06, 1999 Birth Place : Kantuod, Balamban, Cebu Age : 22 Nationality : Filipino Religion : Roman Catholic Civil Status : Single Father’s Name : Danilo M. Yntig Mother’s Name : Melchora S. Yntig EDUCATIONAL LEVEL Tertiary: University of Cebu – Lapu-Lapu and Mandaue Bachelor of Science in Electrical Engineering A.C. Cortes Ave., Looc, Mandaue City 2018 – Present Senior High School: University of Cebu Lapu-Lapu and Mandaue A.C. Cortes Ave., Looc, Mandaue City 2016 – 2018 Junior High School: Jose Chona Jo Memorial National High School Antonio Y De Pio National Hwy, Balamban, Cebu 2012 – 2016 Elementary: Central Elementary School Baliwagan, Balamban, Cebu 2006 – 2012 56