Jurnal Penting
Jurnal Penting
2 (2022)
Abstract— Along with the times and technology, the need for fast information is needed in various sectors of life, thus supporting the
performance of these sectors, one of which is the security aspect, especially in security at home, considering that there are many things
that happen such as crimes and negligence of residents of the house that can cause problems such as fires. In this case, a system is needed
that can visually monitor the condition of the room from remote location. This is useful for the surveillance process so that if there is a
crime and fire in the surveillance room, the system can monitor the state of a room via a smartphone. This study aims to create a device
that is able to increase the security of the room at home by utilizing the Esp32 cam as a microcontroller and the PIR sensor as a detector
of movement when crossing the corner area of the sensor and also the Fire sensor key as a detector of fire. In this study, the ESP32 cam
is used as the main brain of the system which will read data from the fire sensor, PIR sensor, and remotely control the door lock and
door unlock. The data from the sensor will be sent to the server by Esp32 cam. The test results have been running in accordance with
the designed system. So that pictures taken and notifications of fire can be sent to the telegram application with a 100% success
percentage.
Keywords—AM312 Passive Infrared Sensor (PIR), Esp32 cam microcontroller, KY-026 Flame sensor, Quality of Services (QoS), telegram
applications
Notif Foto
Terdeteksi Api!!!
F. Preparation of Tools and Materials key. Furthermore, on the pir sensor if movement is detected,
Here are the tools and materials needed as shown in Table the Esp32 cam will take a picture and send it to the telegram
I. bot application, and on the fire sensor if a fire is detected then
TABLE I the sensor will take data processed by the microcontroller and
TOOLS AND MATERIAL NEEDED sent to the telegram application and the telegram application is
used to give orders to Esp32 cam in the form of Lock the door,
Tools name Total
Status, Unlock the door. then if the door lock command then
ESP32 CAM Microcontroller 1 Unit the solenoid on the door will be locked, if the door unlock
PIR AM312 Sensor 1 Unit
command then the door solenoid will open, and if the status
command will display the status on the telegram application
Adapter 12V 1A 1 Unit that the door is locked or not locked. While the motion
Solenoid 1 Unit
detection circuit of the AM312 PIR sensor, fire sensor and door
security remote control with Esp32 cam is illustrated in Fig. 8,
Smartphone 1 Unit 9 and 10.
Relay 3V 1 Channel 1 Unit
from Fig. 7 can be described as follows: When the system Fig. 9 show the implementation of the door security tool that
is first run Esp32 cam will connect to the wifi network has been made. The information for each number is as follows :
according to the specified network. If it is successfully 1.Adapter 12V DC 1A
connected, the system will try to connect with the telegram API
2.ESP32 cam microcontroller results of the PIR sensor test can be said to be able to capture
3.Relay module 3V 1 channel movements that occur during the day and night.
4.Solenoid
B. Remote Control Test
Remote control testing aims to determine the delay in
sending each order for door locks, door unlocks, status, photos
on telegram bots. The following are the results obtained during
the measurements shown in table III.
TABLE III
DELAY IN SENDING DATA FROM TELEGRAM TO THE SYSTEM
Status Transfer Delay
Lock door 3.92 Second
Unlock the door 2.62 Second
Status 2.32 Second
Photo 7.53 Second
TABLE V
DELAY VALUE FROM TESTING USING WIRESHARK
Source Destination Protocol Time Delta Previous
192.168.2.77 149.154.167.99 TCP 0,00000
192.168.2.77 149.154.167.99 TCP 0,000329
192.168.2.77 149.154.167.99 TCP 0,250652
192.168.2.77 149.154.167.99 TCP 0,115237
192.168.2.77 149.154.167.99 TCP 0,00006
192.168.2.77 149.154.167.99 TCP 0,254377
192.168.2.77 149.154.167.99 TCP 0,116828
192.168.2.77 149.154.167.99 TCP 0,000673
192.168.2.77 149.154.167.99 TCP 0,000054
192.168.2.77 149.154.167.99 TCP 0,004798
192.168.2.77 149.154.167.99 TCP 0,000533
192.168.2.77 149.154.167.99 TCP 0,000058
192.168.2.77 149.154.167.99 TCP 0,248121
192.168.2.77 149.154.167.99 TCP 0,000682
192.168.2.77 149.154.167.99 TCP 0,015415
192.168.2.77 149.154.167.99 TCP 0,007808
192.168.2.77 149.154.167.99 TCP 0,000098
Average 0,05974 seconds
IV. CONCLUSION
Figure 12 Delay Reading Results. The design of the security system uses the Esp32 Cam
microcontroller which is connected to the Am312 PIR sensor
Based on the data obtained in Fig. 12, it can be seen the data and the MC-38 magnet sensor, the Ky-026 fire sensor runs very
in the delay Table 5. well with an average delay value of 1.37 seconds. Data
From Table 5 it is found that the delay for this system is transmission is transmitted via the internet by utilizing the wifi
0.0597 seconds. based on the existing delay classification, it module on the Esp32 Cam microcontroller. If the smartphone
can be concluded that the average delay is index 4 (very good). is connected to the internet network, the system can send data
F. Packet Loss Test on WireShark to the Telegram application. For testing the Quality of Service
Packet Loss is the number of packets lost on a packet on Delay, the average result is 0.0597s in the good category,
network caused by collisions, full network capacity, and packet while for packet loss testing the value obtained is 7.0%
drops caused by the end of TTL (Time to Live) packets. Testing including the good category.
packet loss using a Wireshark software.