IOT_Based_Vehicle_Monitoring_System
IOT_Based_Vehicle_Monitoring_System
RESEARCH ARTICLE
Abstract
IoT technology is widely developed and applied for easy access and security solutions. In
Indonesia, lots of security problems are found and one of which is in the vehicle security.
Our IoT-based vehicle monitoring system emerged from a comprehensive survey among
vehicle owners to address the needs of existing problems in the community. The device
circuit is designed using GPS to detect location and speed, a vibration sensor to measure
engine vibration, and a relay to disconnect the vehicle socket. The entire data transmission
process uses LoRaWAN which can cover a vast distance and has low-power consumption
so that it is safe to be powered by a vehicle accumulator. The designed system can display
the location, speed, and condition of the vehicle consistently with a delay that will adapt
based on vehicle condition to minimize power usage. The system can send a warning
notification if the vehicle that is not being used is detected at a speed of more than 5.5
km/h with engine vibrations detected reaching 28 vibrations/5 seconds and it can receive
65% of the control signals to start and stop the vehicle engine which could be optimized
further.
1. Introduction
IoT is defined as a collection of infrastructure that connects items so that they can
gather data and share data over an interconnected network, typically using the internet
to simplify access and management of the data [1].
180 Fitri Yuli Zulkifli et al.
2. Research Method
The design of the vehicle safety system proposed in this study was developed based on
a survey of people’s needs for a reliable vehicle safety device. The survey results are
then used as a reference in the development of the designed system before adding the
novelty of the security system that is already spread in the market. The system is then
tested for its ability to work under the desired function. The flow of the development
process can be seen in Figure 1.
IJECBE 181
Figure 2. Results of the vehicle safety scale survey. The larger the scale indicates the better the vehicle
safety system is.
182 Fitri Yuli Zulkifli et al.
Based on the survey results, 54% of respondents feel that the vehicle security system
they currently have is less reliable and still needs to be improved. Therefore, in this
study, a vehicle safety system was designed that functions following the wishes of the
survey respondents. In the survey, voting was conducted in the form of respondents’
suggestions regarding what functions are desired in a vehicle safety system that can
be accessed easily through mobile applications.
Based on the survey results, there are 3 main functions that respondents want to
be applied to the system. The three functions include the ability to detect the position
of the vehicle, control the turning off of the vehicle engine through the application,
and warnings in the form of notifications in case vehicle theft occurs. The results of
the classification performed are shown in Figure 3. About 120 people want a vehicle
detection function in the vehicle safety system to be designed. The vehicle detection
function can be used to detect whether the vehicle is moving when it is not in use.
3.2 Relay
Relays are used to connect and disconnect vehicle electrical cables. They operate based
on electromagnetic induction. When the solenoid is energized, the lever is attracted
due to the magnetic force generated around the solenoid. The magnetic force depends
on the current, solenoid length, and magnetic field. When the current ceases, the
magnetic force vanishes, causing the lever to return to its initial position and opening
the switch contacts.
3.4 Antares
Antares is an Internet of Things platform that provides cloud infrastructure and
backend APIs for the development of IoT-based devices. Antares provides 3 protocols
that can be used for IoT development, namely HTTP, MQTT, and COAP. In addition,
Antares also supports LoRa-based IoT development that works at a frequency of 915
MHz with a maximum data capacity of 50 KB.
The MOTRAV application provides access to the information saved on the Antares
server. The application has a function for tracking vehicles using internet mapping
services. In addition, vehicle owners can turn off the vehicle and place it in parking
mode via the application by disabling the vehicle’s electrical system via a button. In
parking mode, there is a feature that alerts the user if suspicious vehicle movement is
detected. All feedback from the user to the device will be transmitted via the Antares
gateway. The full process of the vehicle tracking, and control system is depicted in
Figure 4 as a flowchart.
The safety device circuit installed on the vehicle is designed and then printed into
a printed circuit board. The necessary components such as ESP32, GPS, relay, LoRa,
and vibration module are soldered to the circuit to obtain the device circuit shown in
Figure 5(a). The device is also equipped with a case to protect the device from any
impact that may occur during the testing process. The case is made using a 3D printer
made from PLA. The shape of the case that has been made is shown in Figure 5(b).
IJECBE 185
In the section on the front view of Figure 5(b), there is a terminal to connect the
input cable from the accumulator. These terminals are used as connection points for
the cables connected to the vehicle. As seen from the left, there is a positive input cable
terminal, a negative input battery cable terminal, a normally close cable terminal, a
normally open terminal, and a pole terminal connected to the motor socket.
The system’s circuit architecture (depicted in Figure 6) facilitates both uplink and
downlink data transmission. Uplink involves sending vehicle information from the
device to the Antares platform, accessible via the MOTRAV application. Downlink
transmits control signals from the MOTRAV application to the device via the LoRa
Antares gateway. The MOTRAV application offers four distinct downlink control
signals: relay on/off and parking mode activation/deactivation.
186 Fitri Yuli Zulkifli et al.
4. Result
4.1 Vehicle Location and Speed Monitoring
Figure 7 shows the movement of the vehicle marked by a red dot for the duration of
the test. This is indicated by the increase in red dots on the map. Figure 7 is the result
of a sample plot every 10 minutes intervals from the latitude data read by the GPS
connected to the system.
In Figure 7, all the red dots represent the paths of vehicles equipped with tracking
devices. This demonstrates that the GPS-based vehicle coordinate reading function
within the system is functioning correctly. The longitude and latitude readings
are also visible through the MOTRAV application. Figure 8 displays the vehicle
location obtained via GPS in our designed system using a blue pin-shaped indicator.
Additionally, the blue circle indicator, which appears multiple times in Figure 8,
represents the vehicle’s location based on the GPS signal from the user’s cell phone.
Upon closer examination, slight differences can be observed between the positions of
the cell phone GPS indicator and the device GPS indicator in Figure 8.
The evaluation results also include data on the motorcycle’s velocity during testing.
These findings are visualized in Figure 9. The sensor recorded the vehicle’s speed as
0 km/h multiple times. A speed of 0 km/h indicates that the motorcycle came to a
complete stop. Several factors contributed to this outcome during the test, including
red-light intersections and traffic congestion. Notably, the test was conducted during
peak hours, specifically between 17:00 and 17:49.
188 Fitri Yuli Zulkifli et al.
Figure 10 shows the reliability and performance of the device to receive downlink
signal. It suggests that while the system is mostly effective, there is still a notable
failure rate of 35%. During the field test, this problem always occurs if the downlink
signal is sent around the time when the device transmits uplink signals. If the uplink
and downlink signals occur simultaneously it will cause interference which disrupts
the process of receiving the downlink signal.
The vehicle that successfully receives the downlink signal containing information
“3” will enter the parking mode and turn on the parking status on the application.
If a vehicle that is in a parking status detects a speed and vibration that exceeds the
limit, a warning notification will be sent by the device to the server and received
via the MOTRAV application. Based on the test results, mobile phones that have
the MOTRAV application and have been integrated with the device will receive a
IJECBE 189
warning notification. the alert notification is written in the format "[Device name]
has been started". Since the device name during the test is "uji alat", the notification
form is shown in Figure 11.
In order to detect vibrations, the MPU6050 sensor module is used to calibrate the
rotational values obtained from the motorcycle engine’s vibrations when it is running.
Calibration involves measuring the absolute rotation magnitude along the x and y
axes of the MPU6050 sensor during motorcycle startup. This absolute rotation data is
essential for calculating the average rotation, which serves as a reference for measuring
vibrations.
(a)
Based on Figure 12, the absolute rotation on the x-axis is at an average value of
190 Fitri Yuli Zulkifli et al.
(b)
0.15, while the absolute rotation value on the y-axis is at 0.26. From these results, a
rotation measured by the MPU6050 module will be calculated as a vibration must
meet the Equation (1):
vibration = (x̄ + 10% error ∗ x̄) || (ȳ + 10% error ∗ ȳ) (1)
Where (x̄) is the average rotation detected on the x-axis of the MPU6050 sensor
while (ȳ) is the average rotation detected on the y-axis of the MPU6050 sensor. In
addition, to distinguish the vibrations caused by the engine from external vibrations,
it is necessary to collect data to measure the number of vibrations that occur when
the engine is running. The data was taken for 20 cycles with each cycle time of 5
seconds. The number of vibrations in each cycle can be seen in Figure 13.
In each data collection cycle, as depicted in Figure 13, an average of 28.8 vibrations
is obtained. Based on these findings, the indicator signaling that the engine is running
requires a minimum of 28 vibrations to be detected within the vehicle. Once this
threshold is met, the motorcycle transitions to an ‘ON’ state, which is reflected in the
MOTRAV application. During the ‘ON’ state, the system accelerates the transmission
of uplink signals compared to when the motor is in the ‘OFF’ state.
Table 1 illustrates the difference in transmission intervals between the two engine
conditions during evaluation. Specifically, when the engine is off (indicated by motor
status 0), the uplink signal is transmitted at intervals exceeding 30 seconds. Conversely,
in the ‘ON’ condition, the transmission interval is less than 10 seconds.
The data results presented in Table 1 align with the programmed commands.
However, errors may arise due to device malfunctions, as evidenced by the third row.
Additionally, the system can encounter errors when it detects rapid changes in motor
status within a very short timeframe. In such cases, the system promptly sends an
uplink signal before the motor status actually changes. Instances of this type of error
are visible in rows 9 and 17 of Table 1.
192 Fitri Yuli Zulkifli et al.
5. Conclusion
The designed system is successfully used to monitor the location and speed of vehicles
via MOTRAV application. The location and speed shown has an interval of less than
10 seconds when the vehicle is in use and can adaptively change to more than 30
seconds when the vehicle is not in use to reduce power usage. Those intervals can be
adjusted as needed to reduce power usage even further. The system can also receive
instructions in the form of downlink signals with a success percentage of 65%. The
35% failure rate out of 20 trials is due to interference of the uplink signal with the
downlink signal where LoRa cannot send and receive signals concurrently. Vehicles
that have been integrated with the system can have their engines turned off via the
MOTRAV application if the device successfully receives the instruction signal. Vehicle
safety can also be enhanced with “parking mode”, where in this mode if the vehicle
engine is detected to be started and the vehicle is moving at a speed of more than 5.5
km/h, the vehicle owner will receive a warning notification through the MOTRAV
application.
Acknowledgement
This work was partially supported by Direktorat Inovasi dan Science Techno Park
[grant number PKS-173/UN2.INV/HKP.05/2021]
References
[1] B. Dorsemaine et al. “Internet of Things: A Definition and Taxonomy”. In: Proceedings of the
NGMAST 2015 9th International Conference on Next Generation Mobile Applications, Services and
Technologies. 2016, pp. 72–77. DOI: 10.1109/NGMAST.2015.71.
[2] M. R. M. Kassim. “IoT Applications in Smart Agriculture: Issues and Challenges”. In: 2020 IEEE
Conference on Open Systems (ICOS 2020). 2020, pp. 19–24. DOI: 10.1109/ICOS50156.2020.9293672.
[3] N. Yang. “AI Assisted Internet Finance Intelligent Risk Control System Based on Reptile Data
Mining and Fuzzy Clustering”. In: Proceedings of the 4th International Conference on IoT in Social, Mobile,
Analytics and Cloud (ISMAC 2020). 2020, pp. 533–536. DOI: 10.1109/I-SMAC49090.2020.9243608.
[4] A. Jaleel et al. “Towards Medical Data Interoperability through Collaboration of Healthcare Devices”.
In: IEEE Access 8 (2020), pp. 132302–132319. DOI: 10.1109/ACCESS.2020.3009783.
[5] D. Cheng, C. Li, and N. Qiu. “The Application Prospects of NB-IoT in Intelligent Transportation”.
In: Proceedings of the 2021 4th International Conference on Advanced Electronic Materials, Computers and
Software Engineering (AEMCSE 2021). Mar. 2021, pp. 1176–1179. DOI: 10.1109/AEMCSE51986.
2021.00240.
[6] A. Anusha and S. M. Ahmed. “Vehicle Tracking and Monitoring System to Enhance the Safety and
Security Driving Using IoT”. In: Proceedings of the 2017 International Conference on Recent Trends
in Electrical, Electronics and Computing Technologies (ICRTEECT 2017). Vol. 2017-December. Dec.
2017, pp. 49–53. DOI: 10.1109/ICRTEECT.2017.35.
[7] P. V. Crisgar et al. “GPS-based Vehicle Tracking and Theft Detection Systems Using Google Cloud
IoT Core Firebase”. In: Proceedings of the 2021 International Symposium on Electronics and Smart Devices:
Intelligent Systems Present and Future Challenges (ISESD 2021). June 2021. DOI: 10.1109/ISESD53023.
2021.9501928.
[8] Direktorat Statistik Ketahanan Sosial. Statistik Kriminal 2021. E-Book, 2010, p. 15.
[9] M. El Midaoui et al. “Logistics Tracking System Based on Decentralized IoT and Blockchain
Platform”. In: Indonesian Journal of Electrical Engineering and Computer Science 23.1 (July 2021),
pp. 421–430. DOI: 10.11591/IJEECS.V23.I1.PP421-430.
IJECBE 193
[10] S. W. Mudjanarko. Pemanfaatan Internet of Things (IoT) Sebagai Solusi Manejemen Transportasi
Kendaraan Sepeda Motor. October 2017. DOI: 10.31219/osf.io/6ue4b.
[11] M. Nur et al. “Matic Motorcycle Transmission Damage Detection System Using Internet of Things-
Based Expert System”. In: Indonesian Journal of Electrical Engineering and Computer Science 26.2 (May
2022), pp. 1018–1026. DOI: 10.11591/IJEECS.V26.I2.PP1018-1026.
[12] A. Sulthoni and B. Suprianto. “Rancang Bangun Sistem Pendeteksi Vibrasi pada Motor sebagai
Indikator Pengaman terhadap Perubahan Beban Menggunakan Sensor Accelerometer GY-521
MPU 6050 Berbasis Arduino Uno”. In: Jurnal Teknik Elektro 7.3 (2018), pp. 147–155. URL: https:
//jurnalmahasiswa.unesa.ac.id/index.php/JTE/article/view/25095.