The Application of Function Approximation Algorithm
in Magnetic Parking Detection
Liye Zhao and Yaojie Sun
School of Electronics and Information Engineering, Hebei University of Technology,
5340 Xiping Road, Beichen District, Tianjin, China
zhao_1829@163.com,sunyaojie@hebut.edu.cn
Keywords: Magnetic sensors, parking detection, CORDIC algorithm, digit-by-digit algorithm.
Abstract: In order to improve the accuracy of magnetic parking location detection, the microcontroller needs to use
transcendental function to exclude the parking interference of adjacent parking process. Because the
microcontroller does not contain hardware multipliers, the function approximation algorithm is introduced.
In this paper, the CORDIC algorithm and digit-by-digit algorithm are used to estimate the square root and
arccosine function in the process of magnetic data processing. Experiments show that after adding the
algorithm, the running time of the microcontroller is much less than the sampling interval of the sensor. The
experimental results prove that the algorithm can exclude the interference of adjacent parking process in real
time.
1 INTRODUCTION
In recent years, the problem of urban congestion and
air pollution is becoming more and more serious
with the rapid increase of vehicle volume. The
phenomenon of a low parking utilization rate has
attracted the attention of scholars. As a part of the
intelligent transportation system, the performance of
the parking detection system directly affects the
traffic congestion near the parking lot.
At present, there are a variety of methods to
realize vehicle parking detection. In the field of
image processing, the grayscale projection and first
derivative method were used to find the height of a
vehicle in one image and the status of multiple
parking spaces in one image can be judged (Choorat
et al 2017). In the ultrasonic detection field, there
were two ultrasonic sensors had been installed on
the same side of the entrance or the exit, when the
vehicle to enter or exit the parking lot then two
sensors were blocked at the same time, and the
number of idle parking spaces in the parking lot can
be obtained (Zadeh et al 2016). A detection system
based on RSSI (Received Signal Strength
Indication) had been proposed, in which the data
receiving node and data sending node were installed
on the top and bottom of each parking space
respectively, and the occupancy of parking space
was judged according to the received signal strength
(Li, 2016). In the field of magnetic detection, the
detection system was made up of magnetic sensors,
routing nodes and sink nodes. The magnetic sensor
realized parking detection, and its result was
transmitted from the routing node to the sink node
(Zhu, 2016).
By analyzing the environment of indoor and
outdoor parking lot, it can be found that using image
processing to detect parking space is convenient and
feasible. But the accuracy of detection is easily
disturbed by light conditions, shielding and other
environmental factors, and the cost of equipment is
high. The use of ultrasonic detection is low cost,
high accuracy and easy installation. However, its
detection results are affected by extreme weather
and will fluctuate with temperature changes. The
RSSI detection system requires the data receiving
node and data sending node to be arranged at the
upper and lower ends of the parking space, which is
not conducive to the application of the outdoor
parking lot. The magnetic sensor had the
characteristics of small volume, high sensitivity,
strong adaptability to bad environment and so on
(Qian et al 2009). It is widely used in parking lot
detection system.
There were fixed threshold algorithm, adaptive
threshold algorithm, state machine algorithm in
magnetic parking detection system (Zhang et al