1. Introduction
The development of automobiles has upgraded the quality of life in the 20th century. The performance, safety, and comfort of automobiles have improved greatly over this period. The automobile manufacturing cost decreased gradually, and most vehicles used fossil fuels during this period [
1]. Since the late 20th century, hybrid electric vehicles have been gradually popularized [
2]. Besides finding alternative energy sources, decreasing the greenhouse effect is important [
3]. To combat global warming and extreme climate in the 21st century [
4], many countries have implemented strategies and policies such as reducing coal consumption, reducing methane emissions, and popularizing zero-carbon-emission electric vehicles (EVs) [
5]. Therefore, EVs are expected to be an important development for transportation in the 21st century. Electric vehicles include trains, subways, buses, automobiles, and motorcycles [
6,
7,
8,
9,
10]. This study focuses on self-driving electric mobile robot control technology. With this control technology, the self-driving electric mobile robot can operate flexibly and stably, and the research horizon can be expanded to self-driving EVs in the future.
Many studies have discussed the control strategies for autonomous vehicles [
11,
12,
13,
14,
15,
16,
17,
18]. The advantages and disadvantages of these control strategies for autonomous vehicles are as follows: In 2020, Karnouskos proposed quantitative and ethical decision-making techniques for controlling the running vehicle during an accident to reduce the damage to persons and the vehicle, but a number of experiments are required to prove the safety of the ethical decision-making of the control mechanisms [
11]. In 2021, Chowdhury et al. studied the combination of the Dempster–Shafer theory and logic operation, which enabled the vehicle to run safely and reliably. However, their control method requires complex operations, such as the internet of things (IoT), global positioning systems (GPS), onboard controllers, and logic control, which would make the control system more complex and generate burdens on the system control [
12]. In 2021, Tian et al. proposed a joint account unloading and buffering method, which could predict the next running environment of the vehicle so that the vehicle could run safely and stably. However, telecommunication signals and vehicle trajectories are added to the offline control strategy. So, when other vehicles have a temporary accident, its control strategy requires additional protection mechanisms [
13]. In 2021, Dzeparoska et al. proposed a self-driving electric car control system of intent refinement and learning, so that the vehicle could run on the road accurately and stably; but the intent refinement and learning are time-consuming [
14]. In 2022, Ni et al. discussed the rapid deep-learning control strategy for image recognition when the vehicle is running. If the available roads and the timing of stops are provided accurately, the safety of the self-driving electric car is further enhanced. However, this control strategy requires a large number of images for analysis in order to achieve the best accuracy, which increases the design costs [
15]. In 2020, Shi et al. developed a long-term and short-term memories (LSTM) network to improve LSTM, which has a grasshopper optimization algorithm. The method controls the behavior of the running vehicle so that the vehicle can run in the lane accurately and safely. However, this method has good performance only in going straight and lane change. Thus, more conditions need to be tested for enhancing its performance [
16]. In 2020, Park et al. proposed the motor variable frequency control method for a railroad car. Although this method enhanced the system performance, it also increased the complexity of the control and required analysis of the motor parameters [
17]. In 2012, Gupta et al. developed the motor fixed duty cycle method for electric cars. Their method can obtain good economics but has low controllability [
18].
This study proposed a novel logarithm curve and operating time (LCOT) control strategy for the self-driving electric mobile robot. This new LCOT method controls the running of the self-driving electric mobile robot based on the relationship between the logarithm curve and operating time. The mobile robot achieved mild and stable acceleration while running in a straight line, right turn, and left turn. It can stop gently and stably when encountering an obstacle. The proposed control strategy can increase the running efficiency of the self-driving electric mobile robot through a gentle and flexible operation.
The proposed LCOT control strategy dominates the variable frequency control method and the fixed duty cycle method because of its high efficiency and low cost. This study compares the complexity, parameters, and speed of the three control strategies.
Table 1 shows the comparison of three control strategies, which use the same quantity of infrared (IR) sensors [
19]. The proposed LCOT control strategy performed better than the variable frequency control and fixed duty cycle methods in controlling the running speed of the self-driving electric mobile robot. The proposed LCOT control strategy is based on the relationship between the logarithm curve and operating time. It helps the mobile robot to accelerate and decelerate gently, thereby enhancing the comfort, stability, and performance of the self-driving electric mobile robot. The design based on the relationship between the logarithm curve and operating time is simple and easy to be implemented, so as to reduce the working load of the controller and increase the system efficiency. This method can be effectively used by the self-driving electric mobile robot.
The remaining work is structured as follows: First, the self-driving electric mobile robot system and architecture descriptions are presented in
Section 2.
Section 3 presents the proposed LCOT control strategy. Experimental results are discussed in
Section 4. Finally, the concluding remarks showing the contribution of this study are listed in
Section 5.
3. The Proposed Logarithm Curve and Operating Time Control Strategy
This traction control strategy is based on the relationship between the logarithm curve and operating time (LCOT) [
21], as the logarithm curve has a stable curve variation (as shown in Equation (1)).
The self-driving electric mobile robot can speed up and turn stably based on the logarithm curve during straight running or cornering. The proposed LCOT control strategy is able to operate the self-driving electric mobile robot on the running path stably and effectively.
Figure 4 shows the diagram of the Log
10 curve, which illustrates the relationship between the amplitude and parameter + operation time Δ
T; the
X axis is a parameter + operation time (Δ
T) and the
Y axis is the amplitude.
First, the self-driving electric mobile robot uses three infrared sensors to detect the work environment. It helps to make sure that there is any obstacle ahead of the self-driving electric mobile robot or not and that the path in the forward direction is straight. After receiving information from the infrared sensor, the MCU exports two duty cycles (
dright and
dleft) at a frequency of 200 kHz to drive two motors (as shown in
Figure 2). This is based on the operation of Equation (2) during straight running. It helps to achieve a stable acceleration of the self-driving electric mobile robot.
where
dright and
dleft are the duty cycles of the right driver motor and left driver motor, respectively. The duty cycle (
dright and
dleft) range is 0.4~0.9, Δ
T denotes operation time, and
n1 of 0.25 is the compensation parameter. For setting the parameter
a, it should be considered first that the logarithmic value of
x should be negative between 0 and 1 (as shown in Equation (1)). Therefore, parameter
a in Equation (2) should be greater than 1, so that
dright and
dleft provide positive values to drive the motors. This paper sets
a to be 1.4, which fits the minimal value of 1.4 for
dright and
dleft so that the dual motors have sufficient power to drive the system.
Second, the three infrared sensors of the self-driving electric mobile robot detect the work environment. When there is no obstacle ahead and the detected path is a left turn (as shown in
Figure 5), where
Figure 5 shows the curve diagram of the self-driving electric mobile robot taking a left turn; the
X axis is horizontal distance, the
Y axis is vertical distance, and the unit of both the axes are cm. At this point, this control strategy is based on the log
10 curve (as shown in
Figure 4). When the MCU receives the information from the infrared sensors and conducts a calculation by Equation (3), the MCU exports the duty cycle at a frequency of 200 kHz, and a drive signal is given to the left motor. When the mobile robot turns left, the right wheel’s running path is longer than that of the left wheel. Therefore, the right wheel should turn at a faster rate than the left wheel. At this point, it is calculated by Equation (4), and the MCU exports the duty cycle with a frequency of 200 kHz to give a drive signal to the right motor. Based on
Figure 5 and Equations (3) and (4), the self-driving electric mobile robot can turn left stably. This control strategy is based on the log
10 curve, operation time, compensation parameter
n2, and the relationship between the radius of the inner curve (
h1) and the radius of the outer curve (
h2).
where
dleft is the driver left motor duty cycle and the duty cycle (
dleft) range is 0.2~0.36. Δ
T denotes operation time and
n2 is the compensation parameter with a value of 0.1. For setting the parameter
b, firstly it should be considered that the logarithmic value of
x should be negative between 0 and 1 (also as shown in Equation (1)). Therefore, parameter
b in Equation (3) should be greater than 1 so that
dright and
dleft provide positive values to drive the motors. This paper sets
b to be 1.25, which fits the minimal value of 0.2 for
dleft to have sufficient power to drive the system.
where
dright is the right driver motor’s duty cycle and the duty cycle (
dright) has a range of 0.5~0.9. Δ
T denotes operation time,
n2 is the compensation parameter with a value of 0.1,
h1 is the radius of the inner curve, and
h2 is the radius of the outer curve. For setting the parameter
b, the logarithmic value of
x should be negative between 0 and 1 (as shown in Equation (1)). Therefore, parameter
b in Equation (4) should be greater than 1 so that
dright is positive to drive the motors. This paper sets
b to be 1.25, which fits the minimal value of 0.5 for
dright to have sufficient power to drive the system.
In addition, the three infrared sensors of the self-driving electric mobile robot detect the work environment. When there is no obstacle ahead and the detected path is a right turn (as shown in
Figure 6).
Figure 6 shows the curve diagram of the self-driving electric mobile robot with a curve on the right; the
X axis is the horizontal distance,
Y axis is vertical distance, and the unit of both the axes are cm. This control strategy is based on the log
10 curve (as
Figure 4). When the MCU receives the information from the infrared sensors, it calculates duty cycles using Equation (5). Then it exports the duty cycles at a frequency of 200 kHz, and a drive signal is given to the right motor. When the self-driving electric mobile robot is taking a right turn, the running path of the left wheel is longer than the right wheel. Therefore, the left wheel should turn faster than the right wheel. At this point, it is calculated by Equation (6). The MCU exports the duty cycle with a frequency of 200 kHz to give a drive signal to the left motor. Based on
Figure 6 and Equations (5) and (6), the self-driving electric mobile robot can turn right stably. This control strategy is based on the log
10 curve, operation time, compensation parameter
n3, and the relationship between the radius of the inner curve (
h1) and the radius of the outer curve (
h2).
where
dright is the duty cycle of the right driver motor and the duty cycle range is 0.2~0.36. Δ
T denotes operation time, and
n3 is the compensation parameter with a value of 0.1. For setting the parameter
c, the logarithmic value of
x should be negative between 0 and 1 as shown in Equation (1). Therefore, parameter
c in Equation (6) should be greater than 1 so that
dright is positive to drive the motors. This paper sets
c to be 1.25, which fits the minimal value of 0.2 for
dright to have sufficient power to drive the system.
where
dleft is the left driver motor’s duty cycle and the duty cycle (
dleft) range is 0.5 ~ 0.9. Δ
T denotes operation time,
n3 is the compensation parameter with a value of 0.1,
h1 is the radius of the inner curve, and
h2 is the radius of the outer curve. For setting the parameter
c, the logarithmic value of
x should be negative between 0 and 1 (as shown in Equation (1)). Therefore, parameter
c in Equation (6) should be greater than 1 so that
dleft is positive to drive the motors. This paper sets
c to be 1.25, which fits the minimal value of 0.5 for
dleft to have sufficient power to drive the system.
Finally, when an obstacle that is 10 cm ahead is detected, this control strategy is based on the log
0.1 curve (as shown in
Figure 7).
Figure 7 shows the diagram of the Log
0.1 curve which illustrates the relationship between the duty cycle and parameter
e + operation time Δ
T; the
X axis is a parameter
e + operation time (Δ
T), and the
Y axis is the duty cycle. When the MCU receives the information from the infrared sensors and conducts a calculation by Equation (7), the MCU exports two duty cycles (
dright and
dleft) at a frequency of 200 kHz to drive two motors (as shown in
Figure 2). This helps the self-driving electric mobile robot to stably decelerate. The self-driving electric mobile robot stops at an operation time of 0.5 s from Equation (7).
The duty cycle (dright and dleft) has a range of 0.1~0.3, and ΔT denotes operation time. The parameter e is set to be 0.5 to fit the maximal value of 0.3 for dright and dleft to gently stop the dual motors.
Figure 8 depicts the architecture diagram of the self-driving electric mobile robot control system [
22]. First, three infrared sensors determine the driving path of the self-driving electric mobile robot and transmit this information to the MCU. Second, the MCU produces
dleft and
dright signals for the motor using the proposed LOCT control strategy. Third,
dleft and
dright drive the left motor and right motor, respectively. Finally, the self-driving electric mobile robot runs gently and flexibly. The specifications of the infrared sensor, MCU, motor, and ICs are mentioned in
Table 2. The MCU confirmed to the three infrared sensors signal that the time is 100 us/time and the output PWM frequency is 200 kHz.
Figure 9 shows the flowchart of the proposed LCOT control strategy. First, the front, left, and right infrared sensors monitor the operational environment of the self-driving electric mobile robot. Second, the self-driving electric mobile robot detects an obstacle at a maximum distance of 10 cm ahead. Then, the MCU performs calculations using Equation (7). The MCU exports two sets of duty cycles (
dleft and
dright) to control two motors to decelerate and stop the mobile robot. The self-driving electric mobile robot confirms a straight running environment, and the MCU performs calculations using Equation (2). The MCU exports two sets of duty cycles (
dleft and
dright) to control two motors and to accelerate the self-driving electric mobile robot gently. If the running path is a right turn, the MCU calculates using Equations (5) and (6). Then, it exports two sets of duty cycles (
dleft and
dright) to drive the left and right motors individually for a stable right turn. If the running path is a left turn, the MCU calculates using Equations (3) and (4). It then exports two sets of duty cycles (
dleft and
dright) to drive the left and right motors, respectively. This makes the self-driving electric mobile robot turn left stably.
Figure 10 shows the flowchart of the traditional fixed duty cycle method. First, the self-driving electric mobile robot uses the front, left, and right infrared sensors to monitor the environment. If it detects an obstacle within 10 cm ahead of the mobile robot, the MCU exports two sets of duty cycles (
dleft =
dright = 0.1) to control two motors for deceleration. In actual operation, the driving power of the MCU output duty cycle of 0.1 is low, and the mobile robot will stop. In a straight running environment, the MCU exports two sets of duty cycles (
dleft =
dright = 0.5) to drive two motors to keep the mobile robot on a straight path. If the running path is a right turn, the MCU exports two duty cycles,
dleft = 0.6 and
dright = 0.2. The left and right motors are provided with drive signals for a right turn. For a left turn, the MCU exports two duty cycles
dleft = 0.2 and
dright = 0.6. Then, the left and right motors are provided with drive signals to help the mobile robot turn left.
It is noted that though the traditional fixed duty cycle method might achieve the optimal duty cycle by continuous tuning according to engineering intuition, it is time- and labor-consuming. Contrarily, the proposed LCOT control strategy flexibly adopts the driving route and effectively accelerates, decelerates, and stops without any other devices. Therefore, the proposed LCOT control strategy is a simple and cost-effective design. The proposed LCOT control strategy and fixed duty cycle method are compared in
Section 4, and their efficiency, reliability, and stability are further verified.
4. Experimental Results
Figure 11 shows the actual self-driving electric mobile robot and the driving path of the test.
Figure 11a shows the general view of the annular path, in which the overall length of the path is 300 cm with a width of 15 cm. The self-driving electric mobile robot was operated on this path.
Figure 11b shows the straight line and right-curved path of the test path.
Figure 11c shows an obstacle ahead and the left-curved path which has been used in this test. The proposed LCOT control strategy was tested using this path to prove its operational stability and reliability. The efficiency was compared with the traditional fixed duty cycle method for the self-driving electric mobile robot. The experimental results show that the proposed LCOT control strategy has better efficiency than the fixed duty cycle method (as shown in
Figure 12,
Figure 13,
Figure 14 and
Figure 15 and
Table 3).
Figure 12 shows the measured MCU output
dleft and
dright waveforms during straight-line running.
dleft and
dright drive the left and right motors, respectively.
Figure 12a shows the straight line path identified by three infrared sensors of the self-driving electric mobile robot (as shown in
Figure 9 and
Figure 11b). The proposed LCOT control strategy calculates
dleft and
dright according to Equation (2). When the straight-going operation time of the self-driving electric mobile robot is Δ
T = 1.2 s,
dleft and
dright are 0.65 (frequency of 200 kHz). The proposed LCOT control strategy could perform acceleration in the straight line path to increase the working efficiency. As the proposed LCOT control strategy is based on the relationship between the logarithm curve and operation time, the acceleration is mild and stable.
Figure 12b shows the straight-line driving path identified by three infrared sensors. The MCU produces duty cycles
dleft and
dright of 0.5 with a frequency of 200 kHz (as shown in
Figure 10). The fixed duty cycle method is fixed for the self-driving electric mobile robot to run in the path at a constant speed. However, this method would result in poor work efficiency (as shown in
Table 3).
Figure 13 shows the measured MCU output
dleft and
dright waveforms during left turning. The
dleft and
dright drive the left and right motors, respectively.
Figure 9,
Figure 11c, and
Figure 13a show the identified left-curved path. The proposed LCOT control strategy calculates
dleft and
dright according to Equations (3) and (4). When the left turning operation time of the self-driving electric mobile robot is Δ
T = 0.27 s,
dleft and
dright are 0.28 and 0.69, respectively (duty cycle frequency of 200 kHz). The proposed LCOT control strategy could control acceleration in the left-curved path to increase working efficiency. Furthermore, the proposed LCOT control strategy is based on the relationship between the logarithm curve and operation time, so the acceleration of the self-driving electric mobile robot is mild and stable.
Figure 13b shows the left-curved path identified by three infrared sensors of the self-driving electric mobile robot. The MCU generates the duty cycles
dleft and
dright, which are 0.2 and 0.6, respectively, with a duty cycle frequency of 200 kHz (as shown in
Figure 10). The fixed duty cycle method of the duty cycle is fixed so that the self-driving electric mobile robot could run on the path at a constant speed. While the mobile robot could be controlled on the driving path stably, this method would result in poor work efficiency (as shown in
Table 3).
Figure 14 shows the measured MCU output
dleft and
dright waveforms during the right turning. The
dleft and
dright drive the left and right motors, respectively.
Figure 14a shows the right-curved path identified by three infrared sensors. The proposed LCOT control strategy calculates
dleft and
dright according to Equations (5) and (6). When the right turning operation time of the self-driving electric mobile robot is Δ
T = 0.57 s, the
dleft and
dright are 0.88 and 0.36, respectively (frequency of 200 kHz). The proposed LCOT control strategy could control acceleration in the right-curved path to increase working efficiency. The proposed LCOT control strategy is based on the relationship between the logarithm curve and operation time. Therefore, the acceleration is mild and maintains the stability of the self-driving electric mobile robot.
Figure 14b shows the right-curved path identified by three infrared sensors of the self-driving electric mobile robot. The MCU produces the duty cycles
dleft and
dright, which are 0.6 and 0.2, respectively, with a frequency of 200 kHz (as shown in
Figure 10). The fixed duty cycle method makes the self-driving electric mobile robot run in the path at a constant speed. While the mobile robot could be controlled on the driving path stably, this method would result in poor work efficiency of the self-driving electric mobile robot (as shown in
Table 3).
Figure 15 shows the measured MCU output
dleft and
dright waveforms when an obstacle is ahead of the self-driving electric mobile robot.
dleft and
dright drive the left and right motors, respectively.
Figure 15a shows an obstacle 10 cm ahead identified by three infrared sensors. The proposed LCOT control strategy calculates
dleft and
dright according to Equation (7). When the operation time of the self-driving electric mobile robot is Δ
T = 0.2 s,
dleft and
dright are 0.15 (frequency of 200 kHz). The proposed LCOT control strategy controls deceleration when an obstacle ahead is verified. As the proposed LCOT control strategy is based on the relationship between the logarithm curve and operation time, the deceleration of the self-driving electric mobile robot is mild and stable.
Figure 15b shows an obstacle ahead being identified by three infrared sensors. The MCU duty cycles
dleft and
dright are 0.1 with a frequency of 200 kHz (as shown in
Figure 10). Therefore, the self-driving electric mobile robot could stop instantly. This method could effectively avoid collision with the obstacle but might result in a strong vibration which could be uncomfortable for passengers.
Table 3 shows the characteristics comparison of the two methods. The self-driving electric mobile robot used the proposed LCOT control strategy for straight-line running, right turning, and left turning based on the relationship between the logarithm curve and operation time, where the acceleration is mild and stable. This proposed LCOT control strategy is better than the fixed duty cycle method because the fixed duty cycle method only maintains a constant speed, and the speed cannot be increased effectively. This leads to lower efficiency. Finally, when there is an obstacle ahead, the proposed LCOT control strategy can perform mild deceleration based on the relationship between the logarithm curve and operation time, reducing the impact on the self-driving electric mobile robot. On the contrary, the fixed duty cycle method stops the mobile robot immediately, resulting in a stronger vibration of the self-driving electric mobile robot.
Table 4 shows the performance comparison of the two methods. First, the mobile robot ran in the test path for ten loops with a total length of 3000 cm with no obstacles added. For the experiment of the straight-line and right-turn tests as shown in
Figure 11b, the recorded operating time and speed of the self-driving electric mobile robot showed that the working time (300 s) and speed (10 cm/s) with the proposed LCOT control strategy were better than the time (450 s) and the speed (6.67 cm/s) with the fixed duty cycle method. Second, the mobile robot moved in the test path for ten loops with a total length of 3000 cm without obstacles. The test was for the straight line and left turns, as shown in
Figure 11c. The recorded operating time and speed of the self-driving electric mobile robot indicated that the working time (301 s) and speed (10 cm/s) of the proposed LCOT control strategy were better than the time (451 s) and the speed (6.67 cm/s) of the fixed duty cycle method. Consequently, the experimental results verify the high efficiency, stability, and reliability of the proposed LCOT control strategy.