Buletin Ilmiah Sarjana Teknik Elektro ISSN: 2685-9572
Human Movement Detection System Based on the Internet of Things
Nur Ifan Syah, Sunardi
Department of Electrical Engineering, Universitas Ahmad Dahlan, Yogyakarta, Indonesia
ARTICLE INFORMATION | ABSTRACT | ||
Article History: Submitted 17 May 2024 Revised 02 July 2024 Accepted 04 July 2024 | This research refers to making an IoT-based movement system tool. This system is used to calculate the number of human movements entering a room and also people leaving the room. In this study, a Passive Infrared Receiver (PIR) sensor is used to detect the movement of people when entering a room. The sensor will trigger a calculation of the number of people passing through the device, equipped with NodeMCU ESP 8266 as a microcontroller, with NodeMCU ESP 8266 it is more efficient to connect to the WiFi module on the Internet of Things system without the need for other modules. The tool is also equipped with an LED light as a notification of movement, an indicator buzzer if the room is fully filled, and there is also a Liquid Crystal Display (LCD) which is used to display the number of human movements entering and leaving the room, as well as the people who are in the room. The sensitivity of the PIR sensor depends on the distance of the object to the sensor. The research is running well. Notifications from the LED light go according to their duties, if someone enters the room then LED 1 will light ON, and if someone leaves the room then LED 2 will light ON. The results of the application in detecting objects of people or visitors one by one are conditioned based on walking movements and based on a person's height posture from 150 cm to 170 cm the accuracy of the object is accurate, because the distance from the object to the The tool is not too far so the tool can easily detect its movement. | ||
Keywords: PIR Sensors; NodeMCU ESP8266; Internet of Things | |||
Corresponding Author: Sunardi, Department of Electrical Engineering, Universitas Ahmad Dahlan, Yogyakarta, Indonesia. Email: sunardi@te.uad.ac.id | |||
This work is licensed under a Creative Commons Attribution-Share Alike 4.0 | |||
Document Citation: N. I. Syah and S. Sunardi, “Human Movement Detection System Based on the Internet of Things,” Buletin Ilmiah Sarjana Teknik Elektro, vol. 6, no. 2, pp. 164-171, 2024, DOI: 10.12928/biste.v6i2.10829. |
Developments in the world of science and technology are becoming more and more sophisticated day by day, providing benefits and very positive impacts on human activities in everyday life. Technological developments must be balanced by utilizing the human resources we have, if we cannot utilize them then we will not be able to keep up with developments in this increasingly advanced era [1]. Nowadays humans are supported by various technologies ranging from motorized vehicles with intelligent systems, intelligent wheelchairs, sophisticated communication devices, to smart homes that can be seen and controlled remotely using an intelligent system called the Internet of Things [2].
One of the technologies most often used in everyday life is home security which usually uses smart home technology which is equipped with the help of a camera as a means to see the condition of the house or room when it is unoccupied, which is one solution in the security process [3].
Monitoring the condition of the house can be done by using a tool equipped with a movement detector where the tool will function to detect movement passing through the tool and will automatically count movements entering the room or leaving the room [4][5] Apart from being applicable to smart homes, this tool can be applied to homes, offices, stadiums, restaurants and also places that require visitor data. This data can be seen in real time on the LCD screen provided and can be viewed using an application that has been connected to the device to be accessed via smartphone.
The development of increasingly sophisticated technology should make all human work easier, from helping to doing work that is usually done by humans in general [6]-[9]. Sometimes people still do not support the existence of tools that can help and make all human work easier, preferring to use the help of other people rather than innovations that are easier and more practical [10].
Sometimes the main reason for not supporting technologically advanced tools is the unaffordable price factor among society in general, even though if we calculate it, sometimes it is more expensive to use human labor which must be paid every month [11][12]. If you use a tool, the costs are large at the start but there are no costs that have to be paid every month. This automatic visitor counting tool is actually a very necessary tool for entrepreneurs who have business premises such as restaurants or buildings that are used for various kinds of events [13][14].
This movement detection tool is based on the internet of things (IOT) which requires an internet network that is always connected to the tool to be able to continue operating. Internet network access in Indonesia is said to be not yet completely stable and there are still many areas that cannot access the internet properly, such as in remote areas [15]. Still not reachable, it needs to be considered more carefully to be able to operate the tool so that it can be used in various areas and makes it easier for users. Apart from the internet network needed, of course there must be a tool that can operate the internet, namely a smartphone. This tool requires a smartphone to be able to operate the tool's working system which can control and monitor all situations generated by the tool [16].
In this detection tool there are two PIR sensors which function to detect all types of movement, the distance that the sensors can reach is not too far, around 1-4 meters, but the PIR sensor is very sensitive to all types of movement [17]. The detection equipment is not yet equipped with a camera so it cannot be certain that the movement originates from humans or from other objects [18]. Component devices experience their own problems, such as the PIR sensor which is too sensitive to all types of movement, so the device cannot determine where the resulting movement is coming from.
An internet of things based movement tool is installed around the door of the house to make it easier for the PIR sensor to be able to detect all types of movement from the incoming PIR sensor and the outgoing PIR sensor. The tool is installed at a height of 100 meters above the floor surface due to minimizing the resulting errors [19].
The research that will be carried out focuses more on creating an IoT-based movement system tool to identify and count the number of human movements entering and leaving the room. The system built uses the NodeMCU ESP8266 as a more efficient microcontroller to be able to connect to the WiFi module in the IoT system without requiring other modules [20]. The tool is also equipped with a Light Emitting Diode (LED) as notification of movement, an indicator buzzer if the room is fully occupied and there is a Liquid Crystal Display (LCD) which is used to display the number of human movements entering and leaving the room, as well as the number of people present room [21].
The way this tool works is quite easy, starting from reading the movements made by a motion sensor using two PIR sensors to be placed at the room entrance and room exit. The PIR sensor will detect movement and then carry out the tasks properly which have been programmed and set by the NodeMCU ESP8266 as a microcontroller to control the program that has been loaded on the microcontroller. If movement is detected entering the room, the sensor will send data which is displayed on the LCD in real time and is indicated by a lit LED as an indication that there is movement entering the room [22]. On the other hand, if there is movement past the exit, the PIR sensor located at the exit will send an indication of exit movement and automatically the screen display on the LCD will decrease and the LED light will turn on. There are tools and materials used in the research as in Table 1. There is bSome of the software used to support research is shown in Table 2. The software used is divided into test software, operating systems, and analysis tools. The system design of this tool consists of component design or hardware design and also wiring diagram shown in Figure 1, Figure 2, and Figure 3. The river water level monitoring system based on IoT can develop by using block diagram and flowchart in Figure 4 and Figure 5.
Figure 1. Hardware Design | Figure 2. Device installed on the door |
Figure 3. Wiring diagram
Figure 4. Block diagram
Table 1. Research Tools
No | Device | Utility |
1 | PIR sensors | Data input (Research object) |
2 | NodeMCU ESP8266 | Microcontroller |
3 | LED lights | Outputs |
4 | Buzzers | Outputs |
5 | LCD i2c 16x2 | Display data |
6 | Smartphones | Data monitoring |
Table 2. Supporting Software
No | Supporting devices | Utility |
1 | Arduino IDE | Software testing |
2 | Fritzing | Network design tools |
3 | Blynk | Data monitoring |
Figure 5. System flowchart
The aim of testing and checking tools is to minimize errors that occur in the tools being made, such as testing the components installed in the circuit, such as the ESP8266 NodeMCU, LED testing, buzzer testing, and PIR sensor testing.
This test was carried out because the PIR sensor is one of the main components of the tool being made. This test aims to determine the usefulness of the PIR sensor. The experimental results can be seen in Figure 6.
Figure 6. Human objects are not detected
In the tool that is made there are two LED monitoring lights to find out if there is movement entering the room and leaving the room, the LED will send a signal or the light will turn on as in Figure 7 and Figure 8.
Figure 7. The entrance LED lights up
Figure 8. The exit LED is on
This tool has determined the maximum limit for movements entering the room, namely 15 movements entering, which is indicated by a buzzer sound every time 15 movements are detected. The aim of creating this tool is to make it easier for the owner of a place to be able to count the number of visitors in his area without having to count manually with the help of someone. The test results can be seen in Table 3. The maximum notification limit experiment in the form of a buzzer sound has been running according to the application flow when the number of visitors in the room exceeds the specified maximum limit as in Figure 9.
Table 3. Buzzer test results
Test | Maximum limit | Detected | Buzzers |
1 | 15 people | 15 people entered | Active |
2 | 15 people | 14 people entered | No |
3 | 15 people | 13 people entered | No |
4 | 15 people | 12 people entered | No |
5 | 15 people | 11 people entered | No |
6 | 15 people | 10 people entered | No |
7 | 15 people | 9 people entered | No |
8 | 15 people | 8 people entered | No |
9 | 15 people | 7 people entered | No |
10 | 15 people | 6 people entered | No |
Figure 9. Tool reaches maximum limit
This system focuses more on the movements a person makes towards the installed equipment. When movement entering the room is detected by the PIR sensor, the system will start counting. Next, the system will count how many people in the room have detected movement from the system at the entrance. The sensor will detect any type of movement if the attached tool is located in an ideal position and is easy to reach. It looks like in Figure 10 and Figure 11. The tool can detect all types of movement, movement in and out of the room, other components such as buzzers, LEDs and PIR sensors have worked according to the desired system, so the tool has been tested 9 times. As seen in Table 4.
Figure 10. The tool can detect entry
Figure 11. The tool has detected leaving the room
Table 4. Tool experiments
No | Enter PIR Sensor 1 | Go out PIR Sensor 2 | LED 1 | LED 2 | Buzzers | Amount Inside |
1 | 1 Sign in | 0 Exit | Light up | No | No | 1 person |
2 | 2 Sign in | 0 Exit | Light up | No | No | 2 persons |
3 | 3 Sign in | 0 Exit | Light up | No | No | 3 people |
4 | 4 Sign in | 1 Exit | Light up | Light up | No | 3 people |
5 | 5 Sign in | 0 Exit | Light up | No | No | 5 people |
6 | 1 Sign in | 1 Exit | Light up | Light up | No | 0 people |
7 | 14 Sign in | 5 Exit | Light up | Light up | No | 9 people |
8 | 15 Sign in | 0 Exit | Light up | No | Sound | 15 people |
9 | 15 Sign in | 1 Exit | No | Light up | No | 14 people |
The tool has been successfully designed and manufactured as expected, such as being able to detect the movement of a person entering and leaving the room, has been implemented around the door of the house and has been installed in a place that is easily accessible by the PIR sensor. The tool can detect objects, people one by one, conditioned at a distance of 1-4 meters accurately, while at a distance of 5 meters no objects are detected, and has an angle range of 1200. Notification in the form of a buzzer sound has run according to the desired conditions, when the tool If it detects 15 movements, the buzzer will sound.
REFERENCES
Human Movement Detection System Based on the Internet of Things (Nur Ifan Syah)