Translated from Indonesian to English - www.onlinedoctranslator.
com
PROTOTYPE OF SERVER ROOM DOOR SECURITY SYSTEM WITH FACE
DETECTION USING ESP32-CAM BASED ON INTERNET IF THINGS (IOT)
WITH TELEGRAM NOTIFICATION
Muhammad Habib Firdaus) , Drs. Budi Prijo Sembodo, ST, M. Kom.2)
1
Electrical Engineering Study Program, Faculty of Engineering, PGRI Adi Buana University Surabaya
email:
[email protected] 2
Electrical Engineering Study Program, Faculty of Engineering, PGRI Adi Buana University Surabaya
email:
[email protected] Abstract
The development of technology is currently very rapid, especially in the field of electronics.
It is very useful if the door control process is assisted by the application of technology to make it
effective, practical and the monitoring process is more organized and well structured. The security
of a room is a very important factor in carrying out such security. Ineffective supervision or
monitoring results in negligence which will lead to undesirable things, and will be vulnerable to
crime. Some of these features have a function to monitor abuse and security breaches, determine
whether or not the policies and operational procedures that have been determined in the agency are
implemented. Notes generated by this feature include, provide information to users through the
telegram application and can find out the face or faces of people who will enter the server room at
PT. National Joint Retailer (JD.ID).This door safety device can accommodate 5 different facial
recognition and this tool uses a door lock solenoid, so it can be used on any type of door. This door
security device can be accessed via a webserver to view images from the camera directly, and can
also send messages via telegram if there is someone who is not verified as a form of security. This
door security device uses wifi network connectivity as a form for sending facial data.
Keywords: Sensor Reed Switch, LED, Buzzer, Module, LM2596, ESP32-CAM
Abstract
The development of technology is currently very rapid, especially in the field of electronics. It is
very useful if the door control process is assisted by the application of technology to make it
effective, practical and the monitoring process is more organized and well structured. The security
of a room is a very important factor in carrying out such security. Ineffective supervision or
monitoring results in Negligence which will lead to undesirable things, and will be vulnerable to
crime. Some of these features have a function to monitor abuse and security breaches, determine
whether or not the policies and operational procedures that have been determined in the agency are
implemented. The notes generated by this feature, among others, provide information to users
through the telegram application and can find out the faces or faces of people who will enter the
server room at PT. National Joint Retailer (JD.ID). This door safety device can accommodate 5
different facial recognition and this tool uses a door lock solenoid, so it can be used on any type of
door. This door security device can be accessed via a webserver to view images from the camera
directly, and can also send messages via telegram if there is someone who is not verified as a form
of security. This door security device uses wifi network connectivity as a form for sending facial
data. This door security device can be accessed via a webserver to view images from the camera
directly, and can also send messages via telegram if there is someone who is not verified as a form
of security. This door security device uses wifi network connectivity as a form for sending facial
data. This door security device can be accessed via a webserver to view images from the camera
directly, and can also send messages via telegram if there is someone who is not verified as a form
of security. This door security device uses wifi network connectivity as a form for sending facial
data.
Keywords: Sensor Reed Switch, LED, Buzzer, LM2596, ESP32-CAM
1. PRELIMINARY
The development of technology today is
very rapid, especially in the field of How the tool works:
electronics. This developed technology aims a) Sensor reed switch When the door
to provide security, both personal security and closes, it will send a digital voltage
security of important documents in order to which will be received by the
avoid crime. It is very useful if the door microcontroller, namely ESP32CAM.
control process is assisted by the application b) Data from the reed switch sensor is
of technology to make it effective, practical used as input to determine decisions.
and the monitoring process is more organized
and well structured. The security of a room is c) After that, the ESP32CAM is
a very important factor in carrying out such connected to the registered wifi.
security. d) ESP32CAM waiting for connection
Ineffective supervision or monitoring from client (HP/Laptop)
results in negligence which will lead to e) ESP32CAM waits for a response
undesirable things, and will be vulnerable to from the client for the features you
crime. Some of these features have a function want to use such as face recognition,
to monitor abuse and security breaches, face detection, and image capture.
determine whether or not the policies and
operational procedures that have been f) When face detection and image
determined in the agency are implemented. capture are complete, the face image
The notes generated by this feature, among will be saved as a face recognition
others, provide information to users through that can access the room
the telegram application and can find out the g) When the facial recognition is
faces or faces of people who want to access complete, the ESP32CAM will try to
the door from the server room at PT. National recognize the face of the person who
Joint Retailer (JD.ID). will access the room.
With the room or door security system h) If a face is recognized, the door will
technology that can reduce criminal acts and open and the ESP32CAM will send
can monitor anyone who wants to access the the image to a telegram that has been
server room at PT. National Joint Retailer registered as a recognized face.
(JD.ID) easily, so in this study, we will create
a prototype "server room door security system i) If the face is not recognized, the door
with face detection using an internet of things will remain closed and the
(iot)-based esp32-cam". The application made ESP32CAM will send the image to a
consists of hardware and software that will telegram that has been registered as
integrate with each other. an unrecognized face.
3.2 Planning Software (Software)
2. METHOD Planning this software begins with
This study aims to design a server room registering a wifi or hotspot with the
door security device with face detection using SSID and password you want to register.
an internet of things (iot)-based esp32-cam After the registration process is done,
with telegram notifications. In this study there then connect the ESP32-CAM to the wifi
are several stages, namely: Research Design, or hotspot that has been registered earlier,
Product Test, Variables and Variable then the ESP32-CAM will send the IP
Operational Definitions. Link of the web server to Telegram to
In planning this research, there are several access the web server. After that, select
stages to design a server room door security the face list mode to register the faces that
system including hardware (hardware) and are allowed to access the door by
software design (software). detecting and capturing faces in 5s. If the
face detection time or registration fails,
3.1 Hardware Planning (Hardware) then repeat the face registration process in
This hardware plan consists of buzzer, 5s, if the face has been successfully
rgb led, reed switch sensor, lm2596 module, registered in the ESP32-CAM, then select
door lock solenoid, relay. This system uses a the face recognition mode on the web
reed switch type sensor to detect whether the server then ESP32-CAM will detect and
door is open or closed. capture the face.
Figure 3.1Face registration flow chart
Figure 3. 3 Face identification flowchart
3.3 Product Wiring
Start
Device detects internet
connection Figure 3. 4 Wiring products
Not
3.4 Product Design
Is it
connected to
the Internet?
Yes
ESP32-Cam Sends Web Server IP Link to
Telegram
5
3
6
2
1 7
Figure 3. 5 Product design
Figure 4.1Display product results in tools
Figure 3.5 is a description of the product The components installed on the equipment
design that will be made by the researcher. are:
Researchers use esp32-cam as a 1) push button
microcontroller along with a camera module 2) Board
as a face detector and there is an RGB light as 3) ESP32-CAM
an output indicator on the door security. 4) buzzer
5) Relay
3.5 Programming 6) LM2596 . Module
7) RGB lights
1
2
Figure 3. 6 Application programs
3. DATA ANALYSIS RESULTS
In this chapter, researchers discuss the
results of data from blood pressure devices
made by researchers, there are several sub
chapters discussed by researchers in this
chapter, namely: results and product
Figure 4. 2 Product results external appearance of the
evaluation, data presentation, data analysis. tool
The results and product evaluation aims to
determine whether the product can be used or The components installed on the equipment
there is still something that needs to be are:
repaired again, so that the presentation of the 1) solenoid
data in the tool can be done optimally. 2) Sensor Reed Switch
4.1 Product Results 4.2 Product Evaluation
In the Server Room Door Supervisor tool
4
made by the researcher, there are several
evaluations that can be used as a reference in
making this tool in the future, for the
evaluation of this product, if there is a newer
and more accurate sensor, the researcher
recommends using the latest and more
accurate sensor. . And the monitoring
application made by the researcher now still
has incomplete features, the current Table 4.2LM2596 . Testing Table
researcher suggests that further researchers
Current Outpu
can complete the features in this server room Trial to (Ampere t Condition
door monitoring application. s) (Volts)
1 2 5.1 ESP standby
4.3 Data Presentation
2 4 5.1 ESP connected wifi
1) Reed switch sensor test
In table 4.1, the researcher 3 6 5.1 RGB light on
conducted 4 experiments with the aim of 4 8 5.1 Relay on
knowing how long the reed switch sensor 5 10 5.1 Selenoid on
takes when the door is open or closed.
Table 4.1Reed switch sensor test table
Pengujian LM2596
12
Open Delay 8
Trial to Auto Unlock
Manual (ms) 4
0
1 Open Turn off 50 y ifi l a l a l a
db W ya ya ya
2 Closed on 75 tan ng en en en
S bu M M
P B yM id
ES a m
RG la no
3 Open on 100 rs Re le
te pu So
P m
4 Closed Turn off 35 ES La
Arus (A) Output (Volt)
From the data analysis table for the reed
switch sensor test above, there is a difference
in time delay when testing manual door Figure 4. 4 LM2596 . test graph
opening and automatic door opening there is a
different time delay because when opening In Figure 4. 4 there are several conditions
the automatic door it takes more time to send for each component, namely when the ESP is
commands to the microcontroller first. From on standby which produces a current of 2 A,
this test, it was found that the average when the ESP is connected to wifi it produces
difference when the door was open was 25 4 A, when the RGB light is on which
ms, when the door was closed the average produces 6 A, when the relay is on which
difference was 15 ms. produces 8 A, when the solenoid turns on
which produces 10 A, and all these conditions
produce the same voltage value of 5.1 V.
Pengujian Sensor Reed
Switch 3) RGB Lamp Test
150
The researcher conducted 5 experiments
100 which aimed to find out how much current is
50 produced when the color of the RGB lamp is
0
Percobaan Percobaan Percobaan Percobaan in the specified conditions.
1 2 3 4
Delay
Table 4.3Test table for rgb lamps under specified
conditions
Figure 4. 3 REED SWITCH . sensor test graph
Curre
Trial to Color Condition
2) LM2596 . Testing nt (A)
Researchers conducted 5 experiments on 1 Yellow wifi connection 0.5
the LM2596 which aims to find out how 2 Blue
Witing or open
0.3
manual
much current and how many volts are
generated under certain conditions. 3 Green Open door 0.6
4 Red Locked Door 0.3
Door Alarm Still
5 White 0.9
Open
reading that has a delay of 3s, when testing
Pengujian Lampu RGB live streams that has a delay of 1s, when
1 testing face detection that has a delay of 2s,
when testing flash lights ie has a delay of 5s.
0.8
0.6 5) Telegram Data Delivery Test
0.4 The researcher conducted 3 experiments
0.2 with the aim of finding out how long it takes
to transmit data to telegram.
0
Kuning Biru Hijau Merah Putih
Arus (A)
Figure 4. 5 Graph of RGB lamp testing
In Figure 4.5 there are several conditions
marked in yellow which produce 0.5 A, with Table 4. 4 The test table for sending telegram data
blue which produces 0.3 A, with green which
produces 0.6 A, in red which produces 0.3 A, Trial to Condition Delay (ms)
with white which produces 0.9 A. .
Send Face
1 65
4) Face Data Recording Test Data
Researchers conducted 5 experiments Send
2 75
with the aim of knowing how long it takes to Notification
record facial data. 3 Send IP Link 60
Table 4. 4 Face data recording test table
Wa Pengujian Rekaman Data
Trial to Condition Duration(s) ktu
(ms Telegram
1 Face Record 5 )60
Read Face
2 3 30
Data
0
3 Live Stream 1 i P
ah as kI
aj fik
4 Face Detection 2 W ti Li n
ta No ri m
5 Flash light 5 Da ri m Ki
rim Ki
Ki
Delay (ms))
Wakt Figure 4. 7 Graph of the telegram data recording test
Pengujian Perekaman Data
u
(ms) Wajah In Figure 4. 7 there is a difference in time
6 delay when testing the telegram data record,
5 which has a delay of 5s, when testing face
4 data sending, it has a delay of 65 s, when
3 testing sending notifications, it has a delay of
2 75 s, when testing sending an IP link, which
1 has a delay of 60 s. .
0
Rekam Baca Data Live Deteksi Lampu 4. CONCLUSIONS AND
wajah Wajah Streame Wajah Flash
RECOMMENDATIONS
Durasi (s) The aim of the researcher in making this
server room door monitoring tool iscan help
Figure 4. 6 Graph of facial data recording test the security agencies in monitoring or seeing
who has entered and left the server room at
In Figure 4. 6 there is a time delay PT. National Joint Retailer (JD.ID).
difference when testing face recording which
has a delay of 5s, when testing facial data
From the research and testing of the server
room door controller, it can be concluded as
follows:
1) This server room door controller uses
several components, namely Arduino as
a microcontroller, and a reed switch as a
sensor.
2) From the test results, this tool is enough
to create a face recognition-based
surveillance system
As for some suggestions that can be given
for the purposes of further research are as
follows:
1) For future development, it is hoped
that layers or the like can be added
so that what is captured by the
camera can be seen directly, if you
use a camera you can't see how it
looks directly, you have to use a
cellphone.
2) It is hoped that further research will
be developed so that it can be
accessed from outside the network or
the public.