Utilization of Atmega328 PIR and Microcontroller Sensors to Improve CCTV Online Performance

A device that can increase security against theft has been made, thus reducing public anxiety to leave their home when the house is empty, especially for a long time. Online CCTV that has been equipped with a PIR sensor, ATmega328 microcontroller, and SIM800L and ISD1820 sound module. The advantages of this system that has been made to have the advantage that not only can be monitored through the monitor screen but can also be seen through a smartphone, another advantage is that the homeowner can prevent theft because the device is equipped with an alarm, if there is movement detected by the PIR sensor in the room, SIM800L will send an SMS that says "There is a movement" to the cell phone number already in the program with the SMS received by the recipient, the homeowner can see whether the movement is a thief or not, if the incoming person is a thief then the SMS recipient can send an SMS reply " on "to turn on the speaker and buzzer. If you want to turn off Buzzer, the homeowner can send an SMS "off".


Introduction
Many methods have been carried out to improve security against theft including Design and Development of a Versatile and Intelligent Home Security System (Md.Khalid Hossain Jewel, 2017), this system only uses the camera to capture images without giving information whether the moving is a thief or not.Real-Time Security System using Human Motion Detection (Ahire Upasana, 2017), this system uses CCTV motion detection which utilizes the ability of motion detection sensors that exist on CCTV where if the signal is activated the CCTV will be active and CCTV will record images of the computer and the computer will send an SMS according to the telephone number stored in the database.Embedded Home Surveillance System with Pyroelectric Infrared Sensor Using GSM (Rupali R. Ragade, 2017), this system uses PIR sensors and ultrasonic sensors to detect temperature changes and motion detection, if there is movement and temperature changes, the microcontroller will activate the alarm and send an SMS to the number stored in the database.Judging from the security system that has been made, there is still a weakness that occurs that real information that occurs in a controlled room cannot be seen properly, such as whether it is indeed true that in the controlled room is someone who should not enter a controlled room.
In this system, it has the advantage that not only can be monitored through the monitor screen but can also be seen through a smartphone, if the information received is true that the person who is not supposed to enter the controlled room the SMS recipient can type "on" to activate the alarm and buzzer (Bento: 2018).

Materials and Methods
This research was carried out in the Laboratory of Electronics and Instrumentation of the Department of Physics, Faculty of Mathematics and Natural Sciences, Udayana University.The study began by designing a schematic circuit.After a schematic linking, the component compilation is carried out as shown in Figure 1.

Figure 1. Schematic circuit design tool
The schematic circuit design tool consists of a minimum ATmega328 microcontroller system, a PIR sensor as an input device, buzzer, and speaker as an output device controlled by ISD1820.Input devices are sensors which are the source of commands for the microcontroller (Bento: 2018).Normal conditions PIR sensor logic 0, if the sensor detects the movement of the object then the PIR sensor is logic 1.If the sensor logic 1, the command will be processed in the ATmega328 microcontroller then send an SMS to the mobile phone with the help of SIM800L (Rimawan, et al.: 2018).Sukarasa, I. K., Adnyana, I. G. A. P., Purnamaimun, I., & Hatimah, H. (2018)

Results and Discussions
The tool design results obtained from this study are as shown in Figure 2. The use of PIR sensors and ATmega328 microcontrollers to improve online CCTV work.The PIR sensor will only issue logic 0 and 1, logic 0 will occur when the sensor does not detect any changes in motion and logic 1 when the sensor detects a change of movement.If the PIR sensor detects movement, the ATmega328 microcontroller will execute the program and SIM800L will send a message to the cell phone in the form of text that says "there is movement".If from the mobile phone sends a reply to the text in the form of a text message that says "on" then the speaker from isd will sound according to the previous recorded followed by a buzzer, then there will be a message into the mobile in the form of text that reads "buzzer on".Furthermore, if from the mobile phone sends a reply to the text in the form of a text message that says "off" then the buzzer which initially sounds will stop ringing, then there will be a message entering the cellphone in the form of text that reads "dead buzzer".The text display on the cell phone is shown in Figure 3.

Conclusion
The information system for the presence or absence of people in a closed room is the entry of text to the mobile phone with the telephone number that has been in the previous program.The command used to send SMS from the mobile to the SIM800L module all uses lowercase letters.The commands that have been sent to the SIM800L module will get a reply according to the program that has been created.Suppose if the command "on" is sent then the buzzer and speaker will sound and will get a reply "buzzer sounds".Likewise, the "off" command will get a reply "buzzer and speaker off".In the tool made in this study, the reply to the SMS received from the tool sometimes takes a long time and sometimes does not respond to the commands given.The occurrence of these problems usually occurs because the signal is not good.It is necessary to examine the speed of the PIR sensor's sensitivity response to detect changes in movement with different distances and angles.

Figure 2 .
Figure 2. Tool design using PIR sensor and ATmega328 microcontroller to improve online CCTV work

Figure 3 .
Figure 3. Display text on mobile Authors I Ketut Sukarasa, born in Nyanglan, Klungkung, June 01, 1969, educational history: Physics graduate from the Faculty of Matematioka and Natural Sciences at Udayana University graduated in 1996 in the field of Instrumentation concentration, continued his studies in the Bandung Institute of Technology physics study program graduated in 2006 Research fields that have been conducted include: Validation of Daily Rainfall Based on Global Data on Satellite Mapping Of Precipitation (GSMAP) in Bali Region, Mapping of Earthquake Hazards and Tsunami Potential in Bali Region Based on Seismicity Value, Analysis of Hazard Levels and Earthquake Vulnerability in the Region East Nusa Tenggara, Analysis of the Level of Risk of Earthquake Disaster in the Bali Region, Determining Albedo Spatial Variability in Bali Region Using BrdfMed Modified Satellite Data 2005-2012, Analysis of the Impact of El-Nino on Rainfall in Wet and Dry Months in Kintamani Email: ketut_sukarasa@unud.ac.idI Gusti Agung Putra Adnyana, S.Si., M.Si.was born in Karangasem Bali on November 19, 1970.He was a Lecturer in the Physics Study Program at the Faculty of Mathematics and Natural Sciences, Udayana University since 1997.He completed his undergraduate studies in the Physics Study Program at the Faculty of Mathematics and Natural Sciences, Udayana University in 1996 with the Field of Material Physics and Experiments.then continued his study S2 in the Department of Physics at the Bandung Institute of Technology (ITB) with the fields of Physics Material and Optoelectronics competency from 2000 to 2002.The research fields he has been involved in are in the fields of materials, superconductors, and optoelectronics.Some of the journal works that have been produced are: Synthesis and Characterization of GLBCO-123 Phase Gd1-xLxBa2Cu3O7-d (x = 0.0 -0.5), and Eu Doping Effect The Crystal Structure of Y3-xEuxBa5Cu8O18 Superconductor Email: igaadnyana@unud.ac.idIta Purnamaimun, 9th-semester student in Physics Study Program Faculty of Mathematics Udayana University, in the Field of Instrumentation Physics, Electronics, and Computers Husnul Hatimah, 9th-semester student in Physics Study Program Faculty of Mathematics Udayana University, in the Field of Instrumentation Physics, Electronics, and Computers.