Next Article in Journal
Effect of the Compounding Method on the Development of High-Performance Binary and Ternary Blends Based on PPE
Previous Article in Journal
Eco-Friendly Alternatives in Leather Production: Performance of Biodegradable Alginate-Based Retanned Leather Compared to Conventional Leathers and Plant-Based Materials
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Tracking Control and Backlash Compensation in an Inverted Pendulum with Switched-Mode PID Controllers

by
Aisha Akbar Awan
1,*,†,‡,
Umar S. Khan
1,‡,
Asad Ullah Awan
2,‡ and
Amir Hamza
1
1
Mechatronics Engineering Department, National University of Sciences and Technology, Islamabad 44000, Pakistan
2
School of Computation, Information and Technology, Technical University of Munich, 80333 Munich, Germany
*
Author to whom correspondence should be addressed.
Current address: Mechatronics Engineering Department, Wah Engineering College, Wah Cantt 47040, Pakistan
These authors contributed equally to this work.
Appl. Sci. 2024, 14(22), 10265; https://doi.org/10.3390/app142210265
Submission received: 8 May 2024 / Revised: 1 June 2024 / Accepted: 21 August 2024 / Published: 7 November 2024

Abstract

:
In electromechanical systems, backlash in gear trains can lead to a degradation in control performance. We propose a drive–anti-drive mechanism to address this issue. It consists of two DC motors that operate in opposite directions. One motor acts as the drive, while the other serves as the anti-drive to compensate for the backlash. This work focuses on switching between the drive and anti-drive motors, controlled by a switched-mode PID controller. Simulation results on an inverted pendulum demonstrate that the proposed scheme effectively compensates for backlash, improving position accuracy and control. This switched controller approach enhances the performance of electromechanical systems, particularly where gear backlash poses challenges to closed-loop performance.

1. Introduction

In electromechanical system positional analysis, backlash is an undesired problem. Understanding the root causes and implementing effective mitigation techniques significantly reduce the negative impacts of backlash on positional stability, resulting in more accurate and reliable positional control systems. This problem can arise in any mechanical system that incorrectly couples the driving gear and the driven gear. This issue eventually results in positional errors, as noted by [1,2,3]. Therefore, it is essential to reduce the impact of backlash in these systems.
It is critical to identify its parameters in order to avoid backlash. This common problem is a popular area of research. In recent years, researchers have developed a multitude of approaches and models to identify backlash parameters and have implemented numerous compensatory techniques to overcome this nonlinearity. Using the proper switching function and its complements, the first analytical description of backlash was presented in [4]. The asymmetric backlash system’s equation partitions the backlash parameters, allowing it to approach their estimate as a quasi-linear issue. However, it can be approached incrementally by estimating internal variables. Karim et al. [5] presented a simplified rack and pinion model, which was used to avoid a convoluted approach for parameter estimation.
A control-based method successfully mitigated the detrimental effects of friction and backlash by using a reduced rack and pinion arrangement and measuring the current acceleration of the drive. But gears are prone to deterioration. As a result of gear wear, backlash qualities frequently change. In order to successfully adjust for backlash, it is crucial to keep track of how the backlash parameters change over time. Based on this discovery, dynamic models for backlash in gears with time-varying behavior were introduced in past works [6,7].
In 2019, Yi et al. [6] introduced a novel nonlinear dynamic model for spur gears. This model considers several factors such as pressure angle variation with time, gear backlash behaviors, gear gravitational effects, geometrical imbalance in mass, and excitations. A study by Park (2020) [7] looked at how spur gears move and react by starting with the gears in the backlash and using meshes that change over time and with bearing stiffness.
Hysteresis nonlinearities were described by a set of differential equations by Huo 2019 [8]. Yamada [9] used the load-side encoder’s information to achieve high precision; the method accounted for backlash by using a precise joint-control method. The load-side encoder information effectively compensated for the backlash effect in a feed-forward manner.
Dead zone linearity has been extensively used by the researchers for defining the backlash [10,11,12]. The accuracy and performance of servo tracking are improved if the estimation of dead zones is done correctly, as done in [11,12]. To deal with backlash, a predictive control strategy was applied in [13] for an electric power train system with backlash. To overcome the immeasurable system states, the researchers used a switched Kalman filter. Rostiti [14] presented a novel backlash compensator for automotive drivetrains, realized via real-time model predictive control. Since predictive control strategies need to perform calculations over and over, different adaptive control methods for backlash compensation were also created by [15,16,17,18,19,20,21].
An adaptive robust controller was designed without using the inverse backlash model developed by Abher et al. [20] for robot manipulators with unknown backlash in robot joint gears. The fact that the controller did not use the inverse backlash method made it less complex. Wei et al. (2018) created a boundary controller for a flexible robotic manipulator to handle the system’s backlash [21]. Wang et al. [22] devised an adaptive technique for compensating for backlash in a solid-ducted rocket, utilizing touch-state observation. The strategy successfully reduced the duration of the transition and minimized the hysteresis effects on the control system. 
Guofa et al. [23] devised a method to estimate vibration torque as well as system states. A designed extended-state observer used those estimated parameters to obtain feed-back and feed-forward signals.
Sun et al. [24] also came up with a new way to fix servo systems that have backlash. It is called variable gain-switching accurate differential observer-based compensation control for servo systems with backlash. The variable gain technique was devised to accurately predict the unknown system states and adjust for the influence of backlash based on the mathematical model of switching backlash torque. The estimation was conducted using the Kalman filter, taking into account the backlash as a parameter and incorporating it as a state in the dynamics. The backlash was estimated using local measurements of the DFIG system.
Sven et al. [25] used dual-motor drives to compensate for backlash. One of the drives acted like a rotational spring to close the gap between the gears. Thus, it is responsible for eliminating backlash. Two degrees of freedom backlash-free mechanisms have been established by using the drive–anti-drive mechanism through cooperative control by Haider et al. [26].

Contributions

This study proposes a drive–anti-drive control strategy to compensate for gear backlash using two unidirectional drives. Unlike traditional methods requiring extensive mathematical modeling, our approach uses a hybrid switched PID controller to mitigate backlash effectively. The inverted pendulum, a common benchmark for simulating real-life problems like spacecraft dynamics, as in [27], is used to demonstrate this method.
By employing three PID controllers and a dynamic switching strategy, the system selects the appropriate control input based on the mode, driving both the drive and anti-drive motors. Quantitative evaluations show significant improvements in performance metrics, such as root mean square error (RMSE), rise time, settling time, and overshoot, compared to single-drive systems.
The organization of paper is as follows.
Section 2 introduces the drive–anti-drive mechanism, while Section 3 delves into the switched control strategy within this mechanism. Section 4 provides a comparative performance analysis between a single-drive system and the drive–anti-drive mechanism. Additionally, it includes simulation results for an inverted pendulum using a switched PID controller for the drive–anti-drive mechanism and a PID controller without the anti-drive feature. Finally, Section 5 offers discussions and conclusions regarding the switched-mode PID controller used for backlash compensation.

2. Mathematical Model of a Drive–Anti-Drive System

Backlash-free mechanisms ensure smooth running of any manipulator based mechanisms. In this paper, we propose a drive–anti-drive mechanism to compensate for the backlash. The drive–anti-drive mechanism utilizes two drives by applying torques in the opposite directions. Therefore, the  controllers are designed to track the reference trajectories for various robotic applications. This mechanism works on the principle of applying torque in the opposite direction to ensure mesh in the gear trains remain intact. Whenever, the drive undergoes change in a direction, anti-drive provides the torque in the opposite direction to compensate for the backlash. The whole assembly is shown in Figure 1.
The inverted pendulum is driven by dual drives; one of the generated torques in an inverted pendulum occurs under the action of gravity, pulling it downwards. The angular position and angular velocity of the pendulum are taken as state variables. The inverted pendulum is driven by two drives that work in switching modes: they will turn on either the drive or anti-drive. The dynamics of the pendulum are given by
θ ˙ 1 = ω 1
ω ˙ 1 = g sin θ 1 l + τ 2 m l 2 + J B + τ s m l 2 + J s
The resultant torque on the drive shaft is equal to the difference between the two torques. We can write the dynamics of the drive shaft as follows:
J p θ ¨ p = τ p τ 1
θ ˙ p = ω p
ω ˙ p = τ p J p τ 1 J p
ω ˙ p = τ p J p τ 1 J p
where θ p and ω p are the angular position and angular velocity of the drive motor, respectively.
The driving gear is designated as gear 1, whose angular displacement is given as θ 1 . The driven gear is designated as gear 2, whose angular position is given as θ p . Their operating pitch radii are given as r 1 and r 2 , respectively. The gears are operated in three modes. When the driving gear moves with a slight displacement of rotation and two gears lose contact, then the gears are in backlash. When the driving and driven gears maintain perfect contact, the contact is established. In the contact mode, gears are modeled as a spring and damper system. When two gears come into contact, their teeth engage with each other. During this engagement, the impact forces result in relative motion and contact between the teeth. Therefore, it is modeled as a collision. The spring component represents the stiffness of the material of the gear teeth. When the teeth come into contact and experience an impact force, they deform slightly, analogously to compressing a spring. The stiffness coefficient is denoted as K ¯ . The larger the stiffness, the lesser the deformation of the spring. The damper component represents the damping action that dissipates energy due to the impact, subjecting to how energy is dissipated when compressing a spring with a shock absorber attached. The damping coefficient, denoted as C ¯ , is proportional to the relative velocity between the gear teeth. This means that, the faster the relative motion between the teeth, the greater the damping force opposing that motion. By modeling the gear teeth interaction during impact as a spring–mass–damper system, designers can better understand and predict the behavior of gear systems in real systems during collisions and improve their designs for efficiency and durability. Impact torques are described for the three modes as positive, negative, and backlash modes, as defined by [28]. Here, p = 0 refers to the positive contact of gears, p = 1 refers to backlash mode, and p = 2 refers to the negative contact of gears.
τ 2 = K ¯ r 3 + C ¯ r ˙ 3 , if p = 0 0 , if p = 1 K ¯ r 4 + C ¯ r ˙ 4 , if p = 2
Here, K ¯ = K r 1 r 2 and C ¯ = C r 1 r 2 .
r 3 = n θ 1 θ p
r ˙ 3 = n θ ˙ 1 θ ˙ p
r 4 = r 3 + B r 2
r ˙ 4 = r ˙ 3
The gear ratio is given by n = r 1 r 2 and B is the backlash in the system.
The electrical network of the drive–anti-drive system is given in Figure 2, where R a , L a , V a , and i a are the armature resistance, inductance, supply voltage, and current, respectively, through the anti-drive electric circuit. R d , L d , V d , and i d are the armature resistance, inductance, supply voltage, and current through the drive, respectively. Armature currents i d , i a of both drives and anti-drives are also taken as state variables in the model. The applied voltages for both drive and anti-drive V d , V a are taken as the inputs to the system.
The electrical model of the drive is given by
i d R d + K 1 d θ p + L d i ˙ d = V d
The torque of the motor is directly proportional to the current; therefore,
τ p = K 2 d i d
i ˙ d = V d L d i d R d L d K 1 d θ p L d
The electrical network of the anti-drive is represented below:
i a R a + K 1 a θ 2 + L a i a ˙ = V a
τ s = K 2 a i a
i ˙ a = V a L a i a R a L a K 1 a θ 2 L a
The state vector of the entire system is
x = θ 1 ω 1 θ p ω p i d i a T
The output of the system is given below:
y = 1 0 0 0 0 0 x
The inputs of the system are the voltages of the drive and anti-drive. Therefore, the input vector of the system is given by
u = V d V a
The switching algorithm switches to the appropriate controller, depending upon the current mode of the system. Position of gears for varying p are depicted in the Figure 3.
The dynamics of the system are modeled using the following hybrid model:
x ˙ = f ( x , u , p ) where p [ 0 , 1 , 2 ]
For p = 0 , the system dynamics are given by the following equations:
x ˙ 1 = x 2 x ˙ 2 = g sin x 1 l + K ¯ ( n x 1 x 3 ) + C ¯ ( n x 2 x 4 ) m l 2 + J B + K 2 a x 6 m l 2 + J s x ˙ 3 = x 4 x ˙ 4 = K ¯ ( n x 1 x 3 ) + C ¯ ( n x 2 x 4 ) n J p + K 2 d x 5 J p x ˙ 5 = x 5 R d K 1 d x 4 L d + V d L d x ˙ 6 = x 6 R a K 1 a x 2 L a + V a L a
For p = 1 , the system dynamics are given by the following equations:
x ˙ 1 = x 2 x ˙ 2 = K 2 a x 6 m l 2 + J s x ˙ 3 = x 4 x ˙ 4 = K 2 d x 5 J p x ˙ 5 = x 5 R d K 1 d x 4 L d + V d L d x ˙ 6 = x 6 R a K 1 a x 2 L a + V a L a
For p = 2 , the system dynamics are given by the following equations:
x ˙ 1 = x 2 x ˙ 2 = = g sin x 1 l + K ¯ ( n x 1 x 3 + B r 2 ) + C ¯ ( n x 2 x 4 ) m l 2 + J B + K 2 a x 6 m l 2 + J s x ˙ 3 = x 4 x ˙ 4 = K ¯ ( n x 1 x 3 + B r 2 ) + C ¯ ( n x 2 x 4 ) n J p + K 2 d x 5 J p x ˙ 5 = x 5 R d K 1 d x 4 L d + V d L d x ˙ 6 = x 6 R a K 1 a x 2 L a + V a L a
The equilibrium points are evaluated for the nonlinear system as a solution to x ˙ = f ( x , u , p ) 0 . The equilibrium points of the system are calculated to be { 0 , n π } , where n is a natural number. For each mode p, the nonlinear dynamics are linearized around the equilibrium point at the origin. It is assumed that the angular displacement of the pendulum is small enough to approximate the angular displacement of the pendulum, such that sin ( x 1 ) x 1 ; the linearized system dynamics are described below:
x ˙ = f ˜ ( x , u , p ) ,
where
f ˜ ( x , u , 0 ) = x 2 g x 1 l + K ¯ ( n x 1 x 3 ) + C ¯ ( n x 2 x 4 ) m l 2 + J B + K 2 a x 6 m l 2 + J s x 4 K ¯ ( n x 1 x 3 ) + C ¯ ( n x 2 x 4 ) n J p + K 2 d x 5 J p x 5 R d K 1 d x 4 L d x 6 R a K 1 a x 2 L a + 0 0 0 0 V d L d V a L a ,
f ˜ ( x , u , 1 ) = x 2 g x 1 l + K 2 a x 6 m l 2 + J s x 4 K 2 d x 5 J p x 5 R d K 1 d x 4 L d x 6 R a K 1 a x 2 L a + 0 0 0 0 V d L d V a L a
and
f ˜ ( x , u , 2 ) = x 2 g x 1 l + K ¯ ( n x 1 x 3 + B r 2 ) + C ¯ ( n x 2 x 4 ) m l 2 + J B + K 2 a x 6 m l 2 + J s x 4 K ¯ ( n x 1 x 3 + B r 2 ) + C ¯ ( n x 2 x 4 ) n J p + K 2 d x 5 J p x 5 R d K 1 d x 4 L d x 6 R a K 1 a x 2 L a + 0 0 0 0 V d L d V a L a
The hybrid controller works in three modes, where f ˜ ( x , u , 0 ) represents positive contact, f ˜ ( x , u , 1 ) represents the backlash mode, and f ˜ ( x , u , 2 ) represents negative contact. These three modes define the dynamics and contact principles of the geared mechanism.

3. Controller Design

Switching between PID controllers has been designed for the hybrid model, where the dynamics of the system change whenever the contact between gears changes. Three separate PID controllers are designed here. Whenever the drive undergoes changes in its direction, the backlash mode is activated. One PID controller is tuned for positive contact and the second is tuned for negative contact. Switching controllers allows the system to become operational under the desired operating conditions.
The method described in this section for the compensation of backlash operates the controller in these modes. However, switching modes are dependent on the monitoring of the angular position of pendulum, as explained in the algorithm defined in Algorithm 1.
Depending on the evaluation of this condition, it assigns a value to the output variable p. The explanation of the logical conditions is given below.
The controller has been assigned a reference trajectory against which it compares the angular position of the inverted pendulum. This comparison generates an error signal. The error signal is then utilized to adjust the parameter values of K p p , K i p , and  K d p , where p [ 0 , 1 , 2 ] . This compensation aims to effectively eliminate backlash within the vibratory system.
e ( t ) = y r e f y
Here, y is the output of the controller and y r e f is the reference trajectory. The generated error signal is subsequently fed into the controller to prompt the desired response. Three distinct controllers are employed to mitigate the backlash. The selection of the appropriate controller relies on the value of parameter p.
Algorithm 1 Switched-Mode Controller
  • Input:  r 1 , r 2 , θ 1 , θ p , B
  • Output: p
  • if  r 2 θ p B < r 1 θ 1  and  r 1 θ 1 < r 2 θ p  then
  •        p 1
  • else if  r 1 θ 1 r 2 θ p   then
  •        p 0
  • else if  r 1 θ 1 r 2 θ p B   then
  •        p 2
  • else
  •        p 0
  • end if
A switched-mode PID controller is used to regulate the dynamics of the inverted pendulum. This controller effectively adjusts the voltages for both drive and anti-drive mechanisms, which are subsequently applied to the inverted pendulum system. The activation of the switched-mode PID controller in Algorithm 2, is dependent on the computed value of parameter ‘p’, derived through a dedicated Algorithm 1. In the context of designing control systems, step responses for three separate controllers have been defined and developed. Each controller utilizes a PID (Proportional–Integral–Derivative) control scheme, tailored with a specific design focus. The design focus, in this case, emphasizes the use of reference trajectory tracking as a primary feature. The drive and anti-drive controllers are defined as c t r _ d and c t r _ a . Three separate PID controllers and PID selections are defined as c t r 1 ,   c t r 2 ,   c t r 3 ,   p . For  p = 0 , the drive will take the values from controller 0 and the anti-drive will stay off. When the system enters backlash mode, controller 0 will give the input to the drive and controller 1 will give its input to the anti-drive. For p = 2, the drive is driven by controller 2.
To achieve this, the controllers were tuned with a phase margin set to 80 degrees. This choice of phase margin is indicative of a robust control system design, ensuring stability and performance margins within the control loop.
Algorithm 2 p Mode selection for drive and anti-drive
  1:
Input:  c t r 1 ,   c t r 2 ,   c t r 3 ,   p
  2:
Output:  c t r _ d ,   c t r _ a
  3:
if  p = 0   then
  4:
       c t r _ d c t r 0
  5:
       c t r _ a 0
  6:
else if  p = 1   then
  7:
       c t r _ d c t r 0
  8:
       c t r _ a c t r 1
  9:
else if  p = 2   then
10:
       c t r _ d c t r 2
11:
       c t r _ a 0
12:
else
13:
       c t r _ d 0
14:
       c t r _ a 0
15:
end if
16:
return  c t r _ d , c t r _ a
The PID controllers were developed using MATLAB R2022’s pidtune function, which automates the tuning process based on specified design criteria. In this scenario, the design focus parameter was crucial in guiding the tuning process towards optimizing the controllers for the accurate tracking of reference trajectories. Design Focus parameters were displayed in Table 1.
By setting the phase margin to 80 degrees, the controllers were tailored to exhibit robust stability characteristics while also meeting the requirements for precise reference trajectory tracking. This balance between stability and performance is essential for ensuring effective control system operation in real-world applications.
Furthermore, useful information of cross over frequency and phase margins of each individual controller is depicted in Table 2.
For validating the results, the proposed mathematical model was implemented on the geared drives. The Parameters of Dual drives (which includes Drive and AntiDrive), primary and secondary gears used for simulation of the case in hand are being mentioned in Table 3 and Table 4 respectively.
Figure 4 depicts the overall control system of the inverted pendulum. The pendulum is assumed to be rigid and has uniformly distributed mass. External disturbances (e.g., wind, vibrations) are ignored or assumed to be negligible. Each controller calculates the voltages for the drive and anti-drive, which are then used to apply forces to the pendulum in order to counteract any backlash. Each controller is responsible for stabilizing or controlling a specific aspect of the pendulum’s motion in the desired mode. PID controller tuning methods aim to adjust the controller parameters to achieve the desired crossover frequency and phase margin, ensuring the stability and performance of the closed-loop control system.
This system operates in a closed-loop mode, where feedback from sensors measuring the position of the pendulum is used to adjust the control voltages and maintain stability. The schematic diagrams of the control loops for the drive–anti-drive system and the single-drive system are shown in Figure 4 and Figure 5, respectively. The power ratio of the anti-drive to the drive is empirically calculated to be 3.4 for the case at hand.

4. Results

A thorough comparison between the switched drive–anti-drive controller and the conventional system without anti-drive draws important conclusions. The target tracking of the inverted pendulum in the presence of known backlash was performed with a drive–anti-drive controller and also with only a conventional drive. The performance of the system was gauged by performance metrics that included the comparison of root mean square error, overshoots, peak time, and settling time.
The switched-mode controller dynamically adjusts the assigned controller based on the value of p. It continuously monitors the pendulum states and responds to directional changes accordingly, as illustrated in Figure 6.
Here, three cases are used to discuss the performance of the system.
When p = 0 , only the drive is used to track the reference trajectory. Controller 0 drives the driven motor. The control effort by the drive in a switched-mode controller is seen in Figure 7. Anti-drive is not active at that time. We can observe that, when the system changes direction at t = 10 s, p progresses to 1. When p = 1 , the anti-drive motor is actuated to compensate for backlash, which can be seen from the control effort made by the anti-drive, as shown in Figure 8. The scheme of transitions between the controllers is explained in Algorithm 1.The drive–anti-drive controller exhibits good performance in accurately tracking the reference trajectory, as shown in Figure 9. This switching controller has helped the system in achieving lower rise and settling times. The decrease in overshoot highlights the system’s improved stability, as it exhibits less oscillation around the target value in Figure 9.
The analysis reveals a notable increase in overshoot when the system operates solely with drive control, especially during transitions into backlash mode, as depicted in Figure 10.
The performances of switched-mode drive–anti-drive and of drive-only are further gauged by root mean square error (RMSE), which is a robust measure of tracking accuracy. Mathematically, if y is the actual angular position of the pendulum, y r e f is the reference trajectory value, and n is the number of observations, the RMSE is given by
RMSE = 1 n i = 1 n ( y i y r e f ) 2
where { y i } i = 1 n represents the set of output samples from the numerical simulation. The RMSE deviation for tracking error with a single controller was determined to be 0.3591. However, with the implementation of the drive–anti-drive controller, the RMSE deviation for tracking error reduced to 0.28. This reduction in RMSE signifies a substantial enhancement in performance.
In essence, the presence of the switched drive–anti-drive controller significantly enhances the system’s ability to handle backlash-induced overshoots and effectively track the reference trajectory in lesser settling time, as shown in Table 5, thereby improving its overall performance compared to systems lacking such compensation mechanisms.
These enhancements suggest that implementing the anti-drive mechanism results in a more agile and reliable drive system.

5. Discussions

The switched-mode drive–anti-drive’s improved performance is particularly beneficial in practical applications where quick response times and stability are critical, such as in precision manufacturing, robotics, and automated control systems [28,29]. By optimizing these performance aspects, the drive–anti-drive system can lead to higher productivity, reduced wear and tear on components, and more consistent operational outcomes. It showed superior stability and faster response times, efficiently returning the pendulum to its upright position, even under significant disturbances. However, this came at the cost of higher control effort, indicating more frequent and intense adjustments in the controller. In contrast, the single drive configuration demonstrated lower control effort, which could be advantageous for energy efficiency. However, it showed instability under higher disturbance scenarios and a slower response time in returning the pendulum to its upright position as discussed in the scenario when load is driven with single drive as shown in Figure 10.
This comparative analysis highlights that the drive–anti-drive configuration is ideal for scenarios requiring high precision and stability.

6. Conclusions

In this paper, we propose a drive–anti-drive control strategy together with a switched-mode controller to mitigate the adverse effects of backlash in a real-world application, i.e., an inverted pendulum. This approach demonstrates marked improvement in closed-loop tracking performance over the traditional single-drive control strategy. The proposed control strategy to mitigate backlash effects involves using a drive motor and an anti-drive motor. Three PID controllers were designed, and a switching strategy to select the appropriate control input depending on the mode was devised to actuate the drive and anti-drive motors. The performance of the closed-loop system, quantified by the root mean square error (RMSE), shows a significant enhancement in performance compared to the one using only a single drive. Future work will extend this approach for scenarios where the backlash parameters are (partially) unknown.

Author Contributions

Conceptualization, A.A.A., U.S.K. and A.U.A.; methodology, A.A.A., U.S.K. and A.U.A.; software, A.A.A., U.S.K. and A.U.A.; validation, A.A.A., U.S.K. and A.U.A.; formal analysis, A.A.A., U.S.K. and A.U.A.; investigation, A.A.A., U.S.K. and A.U.A.; writing—A.A.A.; draft preparation, A.A.A.; writing—review and editing, A.A.A., U.S.K., A.U.A. and A.H.; visualization, A.A.A., U.S.K. and A.U.A.; supervision, U.S.K. and A.H.; project administration, U.S.K. and A.H. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data which is used for simulating the system on the proposed mathematical model is being done by using the data presented in Table 3 and Table 4.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
τ p , τ s Torque produced by the primary and secondary motors, respectively
τ 1 , τ 2 Reaction torques produced by the the first and second gear
r 1 , r 2 Radius of gear 1 and gear 2, respectively
θ 1 Angular position of the inverted pendulum by the primary motor
ω 1 Angular velocity of the inverted pendulum by the primary motor
lLength of the inverted pendulum
J p , J s Moment of inertia of the primary motor and secondary motor, respectively
KMaterial rigidity
CDamping coefficient
R d , R a Armature resistance of the drive and anti-drive, respectively
L d , L a Inductance of the drive and anti-drive, respectively
i d , i a Current of the drive and anti-drive, respectively
V d , v a Voltage applied to the drive and anti-drive, respectively
c t r 1 , c t r 2 , c t r 3 Output of controllers 1, 2, and 3, respectively
c t r d , c t r a Drive and anti-drive controlled voltages

References

  1. Bai, E.W. Identification of linear systems with hard input nonlinearities of known structure. IFAC Proc. Vol. 2002, 35, 97–102. [Google Scholar] [CrossRef]
  2. Barreiro, A.; Baños, A. Input-output stability of systems with backlash. Automatica 2006, 42, 1017–1024. [Google Scholar] [CrossRef]
  3. Hägglund, T. Automatic on-line estimation of backlash in control loops. J. Process Control 2007, 17, 489–499. [Google Scholar] [CrossRef]
  4. Vörös, J. Modeling and identification of systems with backlash. Automatica 2010, 46, 369–374. [Google Scholar] [CrossRef]
  5. Karim, A.; Lindner, P.; Verl, A. Control-based compensation of friction and backlash within rack-and-pinion drives. Prod. Eng. 2018, 12, 589–596. [Google Scholar] [CrossRef]
  6. Yi, Y.; Huang, K.; Xiong, Y.; Sang, M. Nonlinear dynamic modelling and analysis for a spur gear system with time-varying pressure angle and gear backlash. Mech. Syst. Signal Process. 2019, 132, 18–34. [Google Scholar] [CrossRef]
  7. Park, C.I. Dynamic behavior of the spur gear system with time varying stiffness by gear positions in the backlash. J. Mech. Sci. Technol. 2020, 34, 565–572. [Google Scholar] [CrossRef]
  8. Huo, X.; Ma, L.; Zhao, X.; Niu, B.; Zong, G. Observer-based adaptive fuzzy tracking control of MIMO switched nonlinear systems preceded by unknown backlash-like hysteresis. Inf. Sci. 2019, 490, 369–386. [Google Scholar] [CrossRef]
  9. Yamada, S.; Fujimoto, H. Precise joint torque control method for two-inertia system with backlash using load-side encoder. IEEJ J. Ind. Appl. 2019, 8, 75–83. [Google Scholar] [CrossRef]
  10. Zhao, H.; Wang, C. A new adaptive control of dual-motor driving servo system with backlash nonlinearity. Sādhanā 2018, 43, 155. [Google Scholar] [CrossRef]
  11. Ma, L.; Huo, X.; Zhao, X.; Niu, B.; Zong, G. Adaptive neural control for switched nonlinear systems with unknown backlash-like hysteresis and output dead-zone. Neurocomputing 2019, 357, 203–214. [Google Scholar] [CrossRef]
  12. Papageorgiou, D.; Blanke, M.; Niemann, H.H.; Richter, J.H. Robust Backlash Estimation for Industrial Drive-Train Systems—Theory and Validation. IEEE Trans. Control Syst. Technol. 2018, 27, 1847–1861. [Google Scholar] [CrossRef]
  13. Formentini, A.; Oliveri, A.; Marchesoni, M.; Storace, M. A Switched Predictive Controller for an Electrical Powertrain System with Backlash. IEEE Trans. Power Electron. 2016, 32, 4036–4047. [Google Scholar] [CrossRef]
  14. Rostiti, C.; Liu, Y.; Canova, M.; Stockar, S.; Chen, G.; Dourra, H.; Prucka, M. A Backlash Compensator for Drivability Improvement Via Real-Time Model Predictive Control. J. Dyn. Syst. Meas. Control. Trans. 2018, 140, 104501. [Google Scholar] [CrossRef]
  15. Liu, Y.J.; Tong, S. Adaptive fuzzy control for a class of nonlinear discrete-time systems with backlash. IEEE Trans. Fuzzy Syst. 2013, 22, 1359–1365. [Google Scholar] [CrossRef]
  16. Lai, G.; Liu, Z.; Zhang, Y.; Chen, C.L.P. Adaptive Fuzzy Tracking Control of Nonlinear Systems with Asymmetric Actuator Backlash Based on a New Smooth Inverse. IEEE Trans. Cybern. 2015, 46, 1250–1262. [Google Scholar] [CrossRef] [PubMed]
  17. Li, Y.; Tong, S. Adaptive Fuzzy Output-Feedback Stabilization Control for a Class of Switched Nonstrict-Feedback Nonlinear Systems. IEEE Trans. Cybern. 2016, 47, 1007–1016. [Google Scholar] [CrossRef] [PubMed]
  18. Lai, G.; Liu, Z.; Zhang, Y.; Chen, C.L.; Xie, S. Adaptive Inversion-Based Fuzzy Compensation Control of Uncertain Pure-Feedback Systems with Asymmetric Actuator Backlash. IEEE Trans. Fuzzy Syst. 2016, 25, 141–155. [Google Scholar] [CrossRef]
  19. Wu, J.; Li, J.; Chen, W. Practical adaptive fuzzy tracking control for a class of perturbed nonlinear systems with backlash nonlinearity. Inf. Sci. 2017, 420, 517–531. [Google Scholar] [CrossRef]
  20. Abhari, S.A.; Hashemzadeh, F.; Baradarannia, M.; Kharrati, H. An adaptive robust control scheme for robot manipulators with unknown backlash nonlinearity in gears. Trans. Inst. Meas. Control 2018, 41, 2789–2802. [Google Scholar] [CrossRef]
  21. He, W.; He, X.; Zou, M.; Li, H. PDE Model-Based Boundary Control Design for a Flexible Robotic Manipulator with Input Backlash. IEEE Trans. Control Syst. Technol. 2018, 27, 790–797. [Google Scholar] [CrossRef]
  22. Wang, A.; Zeng, Q.; Ma, L.; Wang, H. Adaptive Backlash Compensation Method Based on Touch State Observation for a Solid Ducted Rocket. Int. J. Aerosp. Eng. 2020, 2020, 6698158. [Google Scholar] [CrossRef]
  23. Sun, G.; Zhao, J.; Chen, Q. Observer-based compensation control of servo systems with backlash. Asian J. Control 2021, 23, 499–512. [Google Scholar] [CrossRef]
  24. Sun, G.; Xu, Y.; Wang, Y.; Wang, G. Variable gain switching exact differential observer-based compensation control for servo system with backlash. IET Control Theory Appl. 2021, 15, 1789–1803. [Google Scholar] [CrossRef]
  25. Robertz, S.G.; Halt, L.; Kelkar, S.; Nilsson, K.; Robertsson, A.; Schär, D.; Schiffer, J. Precise robot motions using dual motor control. In Proceedings of the 2010 IEEE International Conference on Robotics and Automation, Anchorage, AK, USA, 3–7 May 2010; pp. 5613–5620. [Google Scholar] [CrossRef]
  26. Haider, Z.; Habib, F.; Mukhtar, M.H.; Munawar, K. Design, Control and Implementation of 2-DOF Motion Tracking Platform using Drive-Anti Drive Mechanism for Compensation of Backlash. In Proceedings of the 2007 International Workshop on Robotic and Sensors Environments, Ottawa, ON, Canada, 12–13 October 2007; pp. 1–6. [Google Scholar] [CrossRef]
  27. Silik, Y.; Yaman, U. Control of Rotary Inverted Pendulum by Using On–Off Type of Cold Gas Thrusters. Actuators 2020, 9, 95. [Google Scholar] [CrossRef]
  28. Yang, J.H.; Fu, L.C. Nonlinear Adaptive Control for Manipulator System with Gear Backlash. In Proceedings of the 35th IEEE Conference on Decision and Control, Kobe, Japan, 13 December 1996. [Google Scholar]
  29. Sigron, P.; Aschwanden, I.; Bambach, M. Compensation of Geometric, Backlash, and Thermal Drift Errors Using a Universal Industrial Robot Model. IEEE Trans. Autom. Sci. Eng. 2023, 1–13. [Google Scholar] [CrossRef]
Figure 1. Inverted pendulum driven by the drive–anti-drive mechanism.
Figure 1. Inverted pendulum driven by the drive–anti-drive mechanism.
Applsci 14 10265 g001
Figure 2. Electrical network of the drive.
Figure 2. Electrical network of the drive.
Applsci 14 10265 g002
Figure 3. Three modes of gears.
Figure 3. Three modes of gears.
Applsci 14 10265 g003
Figure 4. Schematic diagram of the drive–anti-drive system.
Figure 4. Schematic diagram of the drive–anti-drive system.
Applsci 14 10265 g004
Figure 5. Schematic diagram of the single drive.
Figure 5. Schematic diagram of the single drive.
Applsci 14 10265 g005
Figure 6. Selection of the controller.
Figure 6. Selection of the controller.
Applsci 14 10265 g006
Figure 7. Control effort by the drive in a switched-mode controller.
Figure 7. Control effort by the drive in a switched-mode controller.
Applsci 14 10265 g007
Figure 8. Control effort by the anti-drive in a switched-mode controller.
Figure 8. Control effort by the anti-drive in a switched-mode controller.
Applsci 14 10265 g008
Figure 9. Tracking output with drive–anti-drive.
Figure 9. Tracking output with drive–anti-drive.
Applsci 14 10265 g009
Figure 10. Tracking output with drive only.
Figure 10. Tracking output with drive only.
Applsci 14 10265 g010
Table 1. PID controller parameters.
Table 1. PID controller parameters.
Controller ModeDesign Focus K p p K i p K d p
0Reference Tracking−74.87−34.67−40.41
1Reference Tracking514963881037
2Reference Tracking−1680−2510−283
Table 2. PID controller information parameters.
Table 2. PID controller information parameters.
ControllerValue of pCross-Over Frequency (Hz)Phase Margin
108.3660
2123.486775.082
3246.281470.706
Table 3. DC motor parameters.
Table 3. DC motor parameters.
MotorArmatureInertia ( J s , J p (kg·m2))
Resistance ( R a , R d (Ohm))Inductance ( L a , L d (H))
Drive10.01 6 × 10 6
Anti-Drive4.70.01 6 × 10 6
Table 4. Driving and driven gears.
Table 4. Driving and driven gears.
GearRadius (r (mm))K (N/mm)C (kg/s)
Driving Gear100.010.05
Driven Gear10.010.05
Table 5. Performance metric comparison of the drive–anti-drive vs. drive-only systems.
Table 5. Performance metric comparison of the drive–anti-drive vs. drive-only systems.
Performance MetricDrive–Anti-DriveDrive-Only
Peak Time 1.037 1.162
Overshoot time (%) 68.7 323.5
Settling Time 2.199 4.6
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Awan, A.A.; Khan, U.S.; Awan, A.U.; Hamza, A. Tracking Control and Backlash Compensation in an Inverted Pendulum with Switched-Mode PID Controllers. Appl. Sci. 2024, 14, 10265. https://doi.org/10.3390/app142210265

AMA Style

Awan AA, Khan US, Awan AU, Hamza A. Tracking Control and Backlash Compensation in an Inverted Pendulum with Switched-Mode PID Controllers. Applied Sciences. 2024; 14(22):10265. https://doi.org/10.3390/app142210265

Chicago/Turabian Style

Awan, Aisha Akbar, Umar S. Khan, Asad Ullah Awan, and Amir Hamza. 2024. "Tracking Control and Backlash Compensation in an Inverted Pendulum with Switched-Mode PID Controllers" Applied Sciences 14, no. 22: 10265. https://doi.org/10.3390/app142210265

APA Style

Awan, A. A., Khan, U. S., Awan, A. U., & Hamza, A. (2024). Tracking Control and Backlash Compensation in an Inverted Pendulum with Switched-Mode PID Controllers. Applied Sciences, 14(22), 10265. https://doi.org/10.3390/app142210265

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop