Design and Implementation of Anti-Theft Speed Control System Using Wi-Fi and Raspberry Pi 4 Technology

Abstract

Today the rate of vehicle theft is very high. For this reason, vehicle security systems have become one of the main requirements for vehicle users. As the frequency of accidents increases due to traffic jams, the safety of the vehicle is of paramount importance to the vehicle owner. The cost of the anti-theft systems is also expensive; hence an effective alternative is needed. This paper aims to build a vehicle safety system by using various small-size, low-power, and low-cost devices compared with the vehicle price. The proposed system helps users by controlling the vehicle’s speed, as well as opening and closing the vehicle doors and the driver’s window and controlling the fuel pump, in addition to transferring photos and videos from inside the vehicle through a simple application. An anti-theft system based on a Wi-Fi modem and Raspberry Pi 4 Model has been implemented and tested in a modern vehicle where the vehicle’s speed was controlled via Raspberry Pi 4B Kit with MICRO SERVO SG90 and potentiometer. Relays were used to manage the vehicle doors, driver’s window, and fuel pump. Live photos will be taken from the camera installed inside the vehicle. The proposed system is controlled by creating a driver application with various options using Node-Red (Nick O’Leary and Dave Conway-Jones-Rapid Event Developer), which is controlled on the driver’s mobile phone.

Share and Cite:

Salih, T.A. and Asaad, A.M. (2022) Design and Implementation of Anti-Theft Speed Control System Using Wi-Fi and Raspberry Pi 4 Technology. Open Access Library Journal, 9, 1-14. doi: 10.4236/oalib.1108882.

1. Introduction

The unfulfilled ambition of humanity is to keep vehicle accidents under control. Vehicles have become very important and an integral part of our daily lives [1]. With thousands of accidents happening every day, the safety of public and private vehicles has become a major source of concern in recent years. The growth in vehicle numbers, non-compliance of vehicle owners with traffic laws and instructions, and non-compliance with security and safety rules led to a significant increase in the number of traffic accidents. A traffic slogan that says “Speed is exciting, but it kills”, some individuals drive fast to get to work on time, while others do it just for enjoyment [2]. In the last several years, thefts of automobiles have also increased at a frightening rate worldwide [3]. Thousands of vehicles are stolen every year, and thousands more are found by police when perpetrators are caught or when perpetrators leave stolen vehicles after using them [4]. Thus, the theft of automobiles has evolved into one of the most expensive property crimes in current civilization. In addition, vehicles have an impact on people’s lives [5]. It has evolved into a progressive symbol for modern society. There is an increase in demand for vehicle performance and quality, but there is also an increase in demand for anti-theft systems critical to today’s vehicles. Commercially valid vehicle anti-theft devices are costly. The system presented here has many levels of security which complement each other and that is low in cost compared with the price of a vehicle.

Several attempts have been made by researchers to build a low-cost protection system that used a variety of methods to manage vehicles. Nia Maharani Raharja et al. (2022) proposed a face-recognition parking security system using an algorithm of Eigenface to process RFID card loss. The basic work of this technology lies in the use of a camera that takes a photo of the user’s face automatically. This algorithm is used for the faces as a kind of training. The training data’s findings are saved in a database, which is subsequently utilized as a key to identify the face of the vehicle driver. There is a problem when photographing people, the illumination and spacing between the camera and the item might have an impact on image quality and results [6].

Toufiq Aziz et al. (2021) suggested limiting the vehicle speed with Raspberry Pi 3 by setting the vehicle speed to a set value. When the vehicle speed is at this value or less, the engine will start and when the vehicle speed is higher than the set value, the program tells that the speed limit is exceeded and proceeds with the specified high value that was provided in the programming. GSM/GPS provides real-time vehicle location information.

There is a simple problem: it does not work as much as it should due to a minor issue with the GPS and GSM modem [7].

Vishal V. Dhamdhere et al. (2019) proposed anti-theft and car recovery software using a Raspberry Pi processor, fingerprint detection, face recognition, IoT-based Android application, and control platform. The proposed system works by verifying the user’s fingerprint first when the car door is unlocked. After the access is approved, the user enters the vehicle, and then the camera takes the picture of the user and immediately sends a picture of that person with a warning notice to the owner’s mobile application [8].

Begüm Korunur Engiz et al. (2019) developed a cruise control system that tracked several cars along multiple roads using an Arduino board, a camera, and an ultrasonic radar. The vehicles’ speed and location are precisely determined, and the distance is estimated in a short amount of time. The technology will shoot a beam of light to notify the driver if the vehicle exceeds the speed limit established for the road [9].

Shubhangi Sanjay Bhargave, et al. (2018) automated light vehicle cruise control system is designed in specific regions. When a vehicle is traveling at full speed and enters a low-speed zone, the implementation is based on the car’s speed control system. The microcontroller communicates with the sensors to determine the vehicle’s speed, and the controller operates accordingly depending on this information by activating the vehicle’s cruise control mechanism [10].

Arslan Haider, et al. (2017) displayed an automobile ignition system that will replace existing wiring technology while also improving vehicle security. This innovative technology starts the engine via wireless communications, removing the ignition cord from beneath the dashboard. It also allows the user to secure the machine using a password of his or her own. The system has a theft alarm that goes “ON” when unusual activity is detected and/or when the wrong password is used to open the device [11].

Abu Tayab Noman et al. (2018) suggested a car theft deterrent system A PIC16F876A microcontroller, fingerprint, RFID, GPS-GSM modules, and a tilt sensor make up this system. The automobile is controlled via RFID, fingerprint, or password. The tilt sensor detects any broken windows or doors, as well as the vehicle’s movement, and the GPS-GSM module sends a message with the vehicle’s location to the driver’s phone. The technology activates and deactivates the connection to the vehicle’s fuel injector to prevent the automobile from starting. Due to several limitations, such as cost, availability of equipment, and complexity of interfacing, creating an anti-theft security system for vehicle protection with all necessary characteristics is not achievable [12].

Ashok Reddy K. et al. (2019) demonstrated a system that can recognize speed sign labels from roadside speed signboards and alert the driver, allowing the vehicle’s speed to be controlled automatically. When the driver does not accelerate after the warning signal and the vehicle’s speed is decreased to the speed restriction as stated on the speed label, the authorities (traffic officials) are notified of the vehicle’s information. The “ARDUINO UNO” is used to transfer data to cloud storage and to detect the vehicle’s position using the GPRS module. The speed tag label is identified using real-time image processing, and the “ARDUINO UNO” is used to transfer data to cloud storage and to detect the vehicle’s position using the GPRS module [13].

This paper is structured as follows: In Section 2, the methodology of the proposed system is presented, and the hardware and software of the security system model are presented. In Section 3, the principal work of the proposed system is explained. Results obtained are displayed in Section 4; Section 5 concludes this work with a summary of the main results.

2. Methodology

2.1. Proposed System Block Diagram Design

The System Block Diagram Design is in Figure 1. It consists of an application designed and implemented through a Node-Red program that is installed in the Raspberry Pi for vehicle owners who want to control their vehicles in emergency cases. The application will display multiple options containing control of the vehicle’s speed, as well as opening and closing the vehicle doors and the driver’s window and controlling the fuel pump, in addition to transferring photos and videos from inside the vehicle. The proposed system which is installed inside the vehicle includes a Raspberry Pi4 Model B with a Micro Servo SG90 and a potentiometer to control vehicle speed. Relays to control the central lock of the vehicle doors and the driver’s window, in addition, to turning (on/off) the fuel pump. The camera takes photos and records videos from inside the vehicle. This system is operated by Raspberry Pi.

2.2. Implement of the Proposed System

The block diagram that was mentioned in Figure 1 shows the design of the system, which includes two parts. The first is the hardware part, including the Raspberry Pi which is a mini-computer that can control the peripheral devices that are connected to it like, Micro Servo SG90 and a Potentiometer which will be used to control the vehicle’s speed. It will also be linked to the Relays, which will control the vehicle doors, driver’s window, and fuel pump, and further a camera, which will broadcast live photos and videos from inside the vehicle. While the second is the software part, which consists of Nod-Red, through which an application will be designed that is easy to use by the vehicle owner and will be programmed in Python Language. All of these parts will be explained in detail.

Figure 1. The system block diagram design.

2.2.1. Raspberry Pi

Raspberry Pi is a tiny embedded system portable platform. It’s a single-board computer that comes in a variety of variants and runs on an open-source platform that may be used for a variety of applications [14]. It is a low-cost computer that comes with a keyboard and mouse and may be connected to a computer monitor or television [15]. Raspberry Pi is compatible with a variety of operating systems, including Raspberry Pi OS and Linux [16]. It’s a little device that many people may use to learn about computers and Python programming. It contains 40 GPIO (general-purpose input-output) pins are a unique feature. GPIO pins are input/output pins that may be used for several applications. Each GPIO pin can be configured as an input or output pin (in software) [17] [18]. It has a high clock speed and RAM (Random Access Memory) capacity of 1 GB or even 8 GB [19]. Our system includes a Raspberry Pi 4 Model B as shown in Figure 2.

2.2.2. Micro Servo SG90

It is a high-output servo motor that is tiny and lightweight. The servo has the ability to rotate180 degrees [20]. It functions similarly to regular servos, but in a smaller package. It includes three horns (arms) as well as hardware. It has a stall torque of 1.8 kgf cm and a 0.1 s/60 degree working speed [21] see Figure 3.

2.2.3. RELAY HW-316

It is an electromagnetic device that uses to move a collection of arranged contactors or an electronic switch that can be controlled by other electronic circuits; it uses electric power as its energy source [22]. An electronic circuit with low voltage and an electrical circuit with high voltage there is no direct interaction between them. Each of the four channels has three different sorts of links: NC stands for “Normal Closed”, NO is for “Normal Open”, and COM stands for “Common Open” [23] as shown in Figure 4.

2.2.4. Node-RED

It is a no-cost JavaScript-based application. It gives a flow editor with a visual

Figure 2. Raspberry Pi 4 Model B.

Figure 3. Micro Servo SG90.

Figure 4. RELAY HW-316.

interface in the browser. The system is organized into nodes, each of which has an icon to represent it. It is a versatile and powerful tool for creating prototypes [24]. Node.js is used in the development environment Node-RED (Nick O’Leary and Dave Conway-Jones-Rapid Event Developer), which is built on JavaScript. It was developed by IBM and is used to connect APIs (Application programming interfaces), physical devices, and web services for the creation of IoT systems [25]. As a result, Node-Red is a useful platform for connecting a variety of IoT devices and can be operated remotely [26].

2.2.5. Python

It is a free and open-source programming language. It’s a programming language that is object-oriented, interactive, and interpretable. Python has a relatively easy-to-understand syntax. It connects to a variety of system functions and libraries. It may be extended in C and C++ [27]. It is a relatively advanced language with several study resources. Python’s syntax is straightforward and elegant. When compared to other languages, Python makes reading and writing programs a lot easier [28].

3. Principal Work of the Proposed System

The proposed system method is working procedure first; In the event, the vehicle is exposed to any emergency case, such as theft. The vehicle owner will be able to use the application installed on his mobile phone, where he will be able to control the vehicle’s speed, in addition to controlling the vehicle’s doors and driver’s window, controlling the fuel pump to turn off and on, and he will be able to monitor the vehicle through the camera inside the vehicle. These options will help the vehicle owner to protect and monitor his vehicle and give him the possibility to recover it. Figure 5 shows the circuit diagram of the proposed system, which describes and explains the work of the system, and the mechanism work of each part in the circuit will be explained in this section in detail. The proposed system is designed to control vehicle speed via Raspberry Pi 4B Kit with MICRO SERVO SG90. It is an attempt to control the voltage coming from the accelerator pedal by controlling the angle of rotation and then controlling a potentiometer (50 KΩ), which divides the voltage coming from the accelerator pedal. The outgoing signal is sent to the engine electronic control unit (ECU), which is responsible for the vehicle’s speed. Relays HW-316 were used to control the vehicle’s doors, windows, and fuel pump. The first and the second relays were used to open and close the central lock of the vehicle, and through it, the opening and closing of the vehicle doors will be controlled. Third and the fourth relays were used to control the opening and closing of the driver window. The fifth relay is used to control the fuel pump and remaining relays for future developments. The live photos will be taken from inside the vehicle through a camera. The implementation is done using the programming system Raspbian OS (operating system) on Raspberry Pi and the Node-RED tool installed on the

Figure 5. Circuit diagram for the proposed system.

Raspberry Pi.

Node-Red a simple application using Python language, which is easy to use for the vehicle’s driver was created. The interior design of this application contains a set of embedded nodes by building a set of input and output nodes and these nodes are programmed each according to their function as shown in Figure 6.

The application interface is shown in Figure 7 includes a control panel with various options for controlling the system designed inside the vehicle.

● The keys from (0 RPM (rotation per minute) to 8 RPM) control the vehicle’s speed.

● Live camera key transmits a live broadcast from inside the vehicle.

● The take photo key was used to take and store photos and record the date and the time of this photo was taken.

● DC SW (switch) ON and DC SW (switch) OFF keys are used to turn on and turn off the fuel pump.

● The DOORS OPEN and DOORS OFF keys are used to open and close the vehicle’s doors after controlling the central lock.

● Windshield open and Windshield close keys are used to control the opening and closing of the driver window.

● Video record key is used to record videos and store them with the date and time, in addition to controlling the duration of video recording as desired by the programmer.

Figure 6. Application interior design.

Figure 7. Application interface.

● Capture key is used to take photos without giving an alert to take this photo and it will be stored and the date and the time will be added to it.

4. Results

A modern vehicle is used to test the proposed system. The vehicle’s speed was controlled, by a micro servo and potentiometer. The central lock was controlled, to open and close the doors. The driver’s window was controlled, in addition to turning the fuel pump on and off through the relays. The camera was activated, and the photos and videos were transferred from inside the vehicle as shown in the following Figure 8.

What was previously mentioned was controlled by using the application on the vehicle owner’s mobile, and it was used easily as shown in Figure 9.

Table 1 displays the overall results obtained applying the practical part of the proposed system (vehicle speed control) where the first column shows the switches for the vehicle speed from (0 to 8) as shown on the application interface. The second column represents the values of the micro servo in milliseconds. The third column shows the rotation angle of the micro servo from (0 to 180 degrees). The last column shows how the values of a potentiometer changed, and this change led to a decrease in the voltage coming from the accelerator pedal. The outgoing signal is sent to the engine electronic control unit (ECU). In this way, the speed of the vehicle will be controlled. Figures 10-12 shows the relationships of them.

Figure 8. Circuit designed for the proposed system.

Figure 9. The application on the vehicle owner mobile.

Table 1. Results obtained applying of the proposed system (vehicle speed control).

Figure 10. Relationship between rotation angle and switches (Speed Control).

Figure 11. Relationship between MICRO SERVO SG90 and switches (Speed Control).

Figure 12. Relationship between potentiometer and switches (Speed Control).

5. Conclusion

The main target of this study is to design and execute a vehicle safety system model. The proposed system was tested, and the desired results were obtained by controlling the vehicle’s speed, doors, and windows, controlling the fuel pump, in addition to monitoring the vehicle from anywhere. With the proposed system, it is possible to protect vehicles from theft, reduce accident rates, as well as save the lives of passengers, especially children stuck inside the vehicle. This system can also be applied to ambulances, fire trucks, public and private vehicles.

Conflicts of Interest

The authors declare no conflicts of interest.

References

[1] Liu, B., Liu, N., Chen, G., Dai, X. and Liu, M. (2018) A Low-Cost Vehicle Anti-Theft System Using Obsolete Smartphone. Mobile Information Systems, 2018, Article ID: 6569826. https://doi.org/10.1155/2018/6569826
[2] Jyothi, K. and Karthik, R. (2019) Design and Implementation of Vehicle over Speed Warning System. International Journal of Recent Technology and Engi-neering (IJRTE), 7, 266-268.
[3] Safdar, S., Zeb, A., Khan, A. and Kaleem, Z. (2018) Android Based Vehicle Tracking System. EAI Endorsed Transactions on Energy Web and Information Technology, 5, e5. https://doi.org/10.4108/eai.10-4-2018.154447
[4] Rani, D.S. and Reddy, K.R. (2016) Raspberry Pi Based Vehicle Tracking And Se-curity System for Real Time Applications. International Journal of Computer Science and Mobile Computing, 5, 387-393.
[5] Supriya, K. and Venkateshwarlu, M. (2015) Anti Theft Control System Design Using Embedded System. International Journal of Advanced Technology and In-novative Research, 7, 1190-1193.
[6] Raharja, N.M., Fathansyah, M.A. and Chamim, A.N.N. (2022) Vehicle Parking Security System with Face Recognition Detection Based on Eigenface Algorithm. Journal of Robotics and Control (JRC), 3, 78-85. https://doi.org/10.18196/jrc.v3i1.12681
[7] Aziz, T., Faisal, T.M., Ryu, H. and Hossain, Md.N. (2021) Vehicle Speed Control and Security System. International Conference on Electronics, Information and Communications (ICEIC), Jeju, 31 January-3 February 2021, 1-4. https://doi.org/10.1109/ICEIC51217.2021.9369808
[8] Dhamdhere, V.V. and Kulkarni, N. (2019) Raspberry Pi Based Intelligent Car Anti-Theft System through Face Recognition Using Fingerprint Detection. International Journal of Advance Engineering and Research Development, 6, 7-9.
[9] Engiz, B.K. and Bashir, R. (2019) Implementation of a Speed Control System Us-ing Arduino. 6th International Conference on Electrical and Electronics Engi-neering (ICEEE), Istanbul, 16-17 April 2019, 294-297. https://doi.org/10.1109/ICEEE2019.2019.00063
[10] Bhargave, S.S., Jadhav, M.V. and Patil, A.S. (2018) Automatic Vehicle Speed Control System. International Journal of Innovative Science and Research Technology, 3, 535-538.
[11] Haider, A., Khan, A.A.H. and Denai, M. (2017) A Smart Wireless Car Ignition System for Vehicle Security. Advances in Automobile Engineering, 6, Article ID: 1000169. https://doi.org/10.4172/2167-7670.1000169
[12] Noman, A.T., Hossain, S., et al. (2018) Design and Implementation of Microcon-troller Based Anti-Theft Vehicle Security System Using GPS, GSM and RFID. 4th International Conference on Electrical Engineering and Information & Commu-nication Technology (iCEEiCT), Dhaka, 13-15 September 2018, 97-101. https://doi.org/10.1109/CEEICT.2018.8628051
[13] Reddy, K.A., Patel, S., Bharath, K.P. and Kumar, M.R. (2019) Embedded Vehicle Speed Control and Over-Speed Violation Alert Using IoT. Innovations in Power and Advanced Computing Technologies (i-PACT), Vellore, 22-23 March 2019, 1-5. https://doi.org/10.1109/i-PACT44901.2019.8960008
[14] Hosny, K.M., Magdi, A., Lashin, N.A., El-Komy, O. and Salah, A. (2022) Robust Color Image Watermarking Using Multi-Core Raspberry Pi Cluster. Multimedia Tools and Application, 81, 17185-17204. https://doi.org/10.1007/s11042-022-12037-5
[15] Jaladi, A.R., Khithani, K., Pawar, P., Malvi, K. and Sahoo, G. (2017) Environmental Monitoring Using Wireless Sensor Networks (WSN) Based on IOT. International Research Journal of Engineering and Technology, 4, 1371-1378.
[16] Arfeen, I. and Suliman, A. (2019) Real-Time Monitoring for Data Greenhouse Based on Raspberry Pi Technology. Open Access Library Journal, 6, e5138. https://doi.org/10.4236/oalib.1105138
[17] Rana, S., Mewari, R. and Nautiyal, L. (2018) Anti-Theft Security System for Vehicles. International Journal of Engineering & Technology, 7, 42-46. https://doi.org/10.14419/ijet.v7i4.12.20990
[18] Setiawan, F.B., Siva, P.M., Pratomo, L.H. and Riyadi, S. (2021) Design and Implementation of Smart Forklift for Automatic Guided Vehicle Using Raspberry Pi 4. Journal of Robotics and Control (JRC), 2, 508-514. https://doi.org/10.18196/jrc.26130
[19] Ehrmann, G., Blachowicz, T., Homburg, S.V. and Ehrmann, A. (2022) Measuring Biosignals with Single Circuit Boards. Bioengineering, 9, Article 84. https://doi.org/10.3390/bioengineering9020084
[20] Howal, A., Jori, A., Kate, T. and Hadapad, R. (2022) Design of Automatic Sanitizer Dispenser. PRATIBODH: A Journal for Engineering, 2, 1-5. https://pratibodh.org
[21] Mostaque, S.K. and Karmakar, B. (2016) Low Cost Arduino Based Voice Con-trolled Pick and Drop Service with Movable Robotic Arm. European Journal of Engineering Research and Science, 1, 29-33.
[22] Irawan, Y. and Wahyuni, R. (2021) Electronic Equipment Control System for Households by Using Android Based on IoT (Internet of Things). Journal of Physics: Conference Series, 1783, Article ID: 012094. https://doi.org/10.1088/1742-6596/1783/1/012094
[23] Visan, I. and Diaconu, E.M. (2021) Home Automation System Using ESP8266 Microcontroller and Blynk Applications. Scientific Bulletin of the Electrical Engi-neering Faculty, 21, 59-62. https://doi.org/10.2478/sbeef-2021-0024
[24] Lekic, M. and Gardasevic, G. (2018) IoT Sensor Integration to Node-RED Plat-form. 17th International Symposium INFOTEH-JAHORINA, East Sarajevo, 21-23 March 2018, 1-5. https://doi.org/10.1109/INFOTEH.2018.8345544
[25] Macheso, P., Manda, T.D., Chisale, S., Dzupire, N., Mlatho, J. and Mukanyiligira, D. (2021) Design of ESP8266 Smart Home Using MQTT and Node-RED. International Conference on Artificial Intelligence and Smart Systems (ICAIS), Coimbatore, 25-27 March 2021, 502-505. https://doi.org/10.1109/ICAIS50930.2021.9396027
[26] Kodali, R.K. and Anjum, A. (2018) IoT Based HOME Automation Using Node-RED. Second International Conference on Green Computing and Internet of Things (ICGCIoT), Bangalore, 16-18 August 2018, 386-390. https://doi.org/10.1109/ICGCIoT.2018.8753085
[27] Saabith, A.L.S., Fareez, M.M.M. and Vinothraj, T. (2019) Python Current Trend Applications—An Overview. International Journal of Advance Engineering and Research Development, 6, 6-12.
[28] Srinath, K.R. (2017) Python—The Fastest Growing Programming Language. In-ternational Research Journal of Engineering and Technology (IRJET), 4, 354-357.

Copyright © 2024 by authors and Scientific Research Publishing Inc.

Creative Commons License

This work and the related PDF file are licensed under a Creative Commons Attribution 4.0 International License.