Next Article in Journal
Robust Output Feedback Stabilization and Tracking for an Uncertain Nonholonomic Systems with Application to a Mobile Robot
Previous Article in Journal
Intelligent Sensing of Thermal Error of CNC Machine Tool Spindle Based on Multi-Source Information Fusion
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Modeling and Control of a Two-Axis Stabilized Gimbal Based on Kane Method

1
School of Electrical Engineering and Automation, Xiamen University of Technology, Xiamen 361024, China
2
Xiamen Key Laboratory of Frontier Electric Power Equipment and Intelligent Control, Xiamen 361024, China
3
Shanghai Institute of Satellite Engineering, Shanghai 201109, China
4
School of Computer and Information Engineering, Xiamen University of Technology, Xiamen 361024, China
*
Author to whom correspondence should be addressed.
Sensors 2024, 24(11), 3615; https://doi.org/10.3390/s24113615
Submission received: 21 April 2024 / Revised: 29 May 2024 / Accepted: 30 May 2024 / Published: 3 June 2024
(This article belongs to the Section Physical Sensors)

Abstract

:
A two-axis stabilizing gimbal is a device that ensures a sensor is working properly on a moving platform. When classical mechanics (Newton–Euler and Lagrange) is employed to model a two-axis stable gimbal, its limitations can complicate the modeling process. To address this issue, a method for establishing a dynamic model for a two-axis stabilizing platform based on the Kane method is proposed in this paper. The Kane method offers the advantage of a simple model structure and computational efficiency. Initially, utilizing a generalized coordinate system, expressions of the generalized velocities, deflection velocities and angular velocities are derived. Subsequently, the generalized active forces and inertial forces acting on the two-axis stabilized gimbal are analyzed. Finally, by combining force and velocity with the Kane equation, the dynamic model of the two-axis stable platform is obtained, demonstrating the validity of the Kane method for establishing the two-axis stable platform model. To ensure the pointing accuracy stability of the two-axis stabilizing platform, a Novel Particle Swarm Optimization Proportion Integration Differentiation (NPSO-PID) controller is designed using the PSO algorithm. It is then simulated in MATLAB/Simulink and compared with a classical PID controller. Simulation results demonstrate that NPSO-PID exhibits superior object tracking performance compared to classical PID controllers and better optimization of control parameters compared to traditional PSO-PID controllers.

1. Introduction

The inertial stabilization of sensors is important in many applications, such as guided missiles, navigation systems [1], and tracking systems [2]. With the development and achievements in science and technology, more and more sensors are needed to work on mobile carriers. However, the movement of these carriers can interfere with the sensors’ measurement accuracy. In such an environment, where the sensors are mounted on a movable platform, maintaining sensor orientation toward a target is a serious challenge. An Inertial Stabilization Platform (ISP) is an effective solution to addressing this challenge. The two-axis yaw–pitch gimbal configuration is a basic method in ISP. Because it is commonly used in many systems, it can be regarded as the archetype for other configurations, such as roll–pitch, mirror stabilization, and four-axis configurations. In this paper, the modeling and control of the two-axis yaw–pitch gimbal are studied.
Many scholars prefer the Newton–Euler method and the Lagrange method to model the two-axis yaw–pitch gimbal. In [3,4,5], the dynamic model of a two-axis yaw–pitch gimbal is established using the Newton–Euler equations. However, when constructing the Newton–Euler equations for rigid bodies, it is necessary to consider the hinge forces between them. This not only increases the number of unknown variables but also complicates the equations.
In [6,7,8], the dynamic model of a two-axis yaw–pitch gimbal is constructed using the Lagrange equations. The Lagrange equations require the calculation of the system’s kinetic and potential energies, followed by solving second-order differential equations to obtain the final dynamic model. The Lagrange equations effectively avoid the analysis of hinge constraint forces between rigid bodies. However, due to the need to solve second-order differential equations, computational efficiency is relatively low.
In order to address the aforementioned issues, this paper proposes the Kane method to establish the dynamic model of the two-axis yaw–pitch gimbal. The Kane method eliminates the disadvantages of methods of classical mechanics (Newton–Euler and Lagrange). The Kane method has the advantage of simplifying the modeling process and increasing computational efficiency. The Kane method has been applied to the dynamic modeling problems of the shipborne Stewart platform [9], space exploration vehicle [10], helicopter hoisting system [11], and manipulator [12].
The object tracking stability of the two-axis gimbal is crucial, as it directly affects the accuracy of measurements from sensors mounted on the gimbal. To ensure the object tracking stability of the two-axis gimbal, it is essential to have an excellent control system.
The PID controller holds a dominant position in various engineering applications, including aerospace, power electronics, and machining. PID controller provides following advantage: simple structure, not relying solely on mathematical models, and being easy to implement in engineering. In order to meet the requirements of high precision, high adaptability, and stable platform control, ref. [13] developed a new fractional-order PID controller. Unlike the classical PID controller, the new controller functions across both differential and integral orders, offering enhanced flexibility in numerical aspects. In order to enhance the performance of the control system, a combination of fuzzy control and PID is utilized and applied to the position tracking of the seeker inertial stabilization platform [14]. In [15], a self-tuning fuzzy PID controller for missile two-axis gimbal is proposed. Additionally, a PID controller with coefficients optimized by using the particle swarm optimization method is designed. Experimental studies reveal that the PID with adjustable coefficients outperforms the PID controller with fixed coefficients. In summary, since it is easy to design and implement, the classical PID controller plays a significant role. Drawing upon the concept of adjustable PID control parameters mentioned in the aforementioned literature, this paper proposes an NPSO-PID controller to address the shortcomings of traditional PSO-PID controllers.
In this paper, a Kane method is proposed for establishing the dynamic model of a two-axis stabilizing gimbal, along with an NPSO-PID control method to ensure object tracking stability by the two-axis stabilizing gimbal. The remainder of this paper is organized as follows: Section 2 establishes dynamic equations of the two-axis yaw–pitch gimbal using Kane method. Section 3 presents control method, and Section 4 conducts simulation verification. Finally, the study is summarized in Section 5.
This paper is dedicated to achieving simplified modeling and excellent object tracking using a two-axis yaw–pitch gimbal system, and its main contributions lie in the following:
(1)
A modeling method based on the Kane method is proposed, which avoids the shortcomings of the Newton–Euler method and the Lagrange method in establishing system model.
(2)
A NPSO-PID control method is presented to ensure the object tracking stability of the two-axis gimbal. Compared to classical PID controllers, NPSO-PID exhibits superior object tracking capability. Additionally, when compared to traditional PSO-PID controllers, NPSO-PID demonstrates the better optimization of control parameters.

2. Kane Equation

The Kane equation [16] is presented as a set of scalar Equation (1)
F r + F r = 0 r = 1 , 2 , 3 , , f
where f is the number of degrees of freedom of the system. The generalized active forces are given by
F r = H · V + T · ω r
And the generalized inertia forces are given by
F r = H · V + T · ω r
H is the principal vector, and T is the principal moment; The vector quantities ω i and V i are the partial angular velocity and partial velocity, respectively.

2.1. Generalized Coordinate and Partial Velocity

Consider a two-axis, yaw–pitch stable gimbal system as depicted in Figure 1. In the figure the yaw and pitch gimbal are indicated. The sensor is placed on the pitch gimbal. The gimbals are regarded as rigid bodies.
The three orthogonal unit vectors intersecting at point O are denoted as e 1 , e 2 and e 3 , respectively, and are referred to as the base vectors. They form an orthogonal coordinate system called the basis, denoted as 0 , e , where the symbol for the basis is e. O 0 , e 0 represents the fixed reference base. O 1 , e 1 is the yaw base vector. O 2 , e 2 is the pitch base vector. The three vector bases will have the relationship as is shown in Figure 2 during the operating state.
α —relative yaw angle between the yaw gimbal and base coordinate systems.
β —relative pitch angle between pitch and yaw gimbal coordinate systems.
The yaw gimbal coordinate system angular velocity is
ω 11 ω 12 ω 13 = α ˙ 0 0
The coordinate transformation between the yaw and pitch gimbal coordinate system is given by
C 1 2 = cos β 0 sin β 0 1 0 sin β 0 cos β
The yaw gimbal coordinate system angular velocity is related to the pitch gimbal coordinate system rate vector by
ω 21 ω 22 ω 23 = cos β 0 sin β 0 1 0 sin β 0 cos β α ˙ 0 0 + 0 β ˙ 0 = α ˙ cos β β ˙ α ˙ sin β
α ˙ 0 0 T represents the inertial velocity of the yaw gimbal.
0 β ˙ 0 T represents the inertial velocity of the pitch gimbal.
From Figure 2, we can derive the relative generalized velocity ( u r ) of the two-axis stable gimbal, along with its corresponding partial velocities ( v 1 , v 2 ) and partial angular velocities ( ω 1 , ω 2 ), as summarized in Table 1.
When selecting the generalized velocity, the principle should be to make the partial velocity and partial angular velocity as simple as possible. Therefore, the generalized velocity of the two-axis, yaw–pitch stable gimbal system is u 1 , u 2 , u 3 T = α ˙ cos β , β ˙ , α ˙ sin β T .
The generalized velocity is essentially a scalar. The role of partial velocity is to give direction to the generalized velocity. The generalized velocity can be considered as the projection of the true velocity onto the partial velocity. Form Figure 2c the partial angular velocity of the pitch gimbal is represented by ω 2 1 , ω 2 2 , ω 2 3 T = e 1 2 , e 2 2 , e 3 2 T , and the partial angular velocity of the yaw gimbal is represented by ω 1 1 , ω 1 2 , ω 1 3 T = cos β e 1 1 , 0 , sin β e 1 1 T . Since the system undergoes fixed-axis rotation and the center of mass does not change its position, v 1 ( r ) = v 2 r = 0 r = 1 , 2 , 3 .
The center of mass velocity and angular velocity of each rigid body are shown in Equation (7).
v 1 = 0 v 2 = 0 ω 1 = u 1 cos β e 1 1 + u 3 sin β e 1 1 ω 2 = u 1 e 1 2 + u 2 e 2 2 + u 3 e 3 2
The center of mass acceleration and angular acceleration of each rigid body are calculated as follows by taking the derivative of Equation (7) with respect to time, as in Equation (8)
v ˙ 1 = 0 v ˙ 2 = 0 ω ˙ 1 = u ˙ 1 cos β u 1 β ˙ sin β + u ˙ 3 sin β + u 3 β ˙ cos β e 1 1 ω ˙ 2 = u ˙ 1 e 1 2 + u ˙ 2 e 2 2 + u ˙ 3 e 3 2

2.2. Dynamic Equations

After analyzing the system structure on the two-axis stabilized gimbal, it is clear that the motors’ output forces are the system active forces, denoted as M 1 e 1 1 and M 2 e 2 2 . F 1 and F 2 are defined as the generalized active forces of the two-axis stabilized gimbal, with components in the u r direction denoted as F 1 r and F 2 r .
The generalized active force in the u 1 direction is shown in Equation (9).
F 1 1 = M 1 cos β F 2 1 = 0 F 1 = M 1 cos β
The generalized active force in the u 2 direction is shown in Equation (10).
F 1 2 = 0 F 2 2 = M 2 F 2 = M 2
The generalized active force in the u 3 direction is shown in Equation (11).
F 1 3 = M 1 sin β F 2 3 = 0 F 1 = M 1 sin β
F 1 and F 2 are defined as the generalized inertia forces of the two-axis stabilized gimbal, with components in the u r direction denoted as F 1 r and F 2 r .
Existing references [1,17,18] all assume that the rotation axis is the geometric axis of symmetry. Reference [19] experimentally determined that when the gimbal angle varies between ± 60 , the product of inertia only varies between ± 1 × 10 5 kg · m 2 , demonstrating that the impact of the product of inertia on the gimbal rotation is minimal. Therefore, the expression for the moment of inertia used in this paper is as shown in Equation (12).
J 1 = diag J 11 , J 12 , J 13 J 2 = diag J 21 , J 22 , J 23
The generalized inertia force in the u 1 direction is shown in Equation (13).
F 1 1 = J 11 cos β u ˙ 1 cos β u 1 β ˙ sin β + u ˙ 3 sin β + u 3 β ˙ cos β F 2 1 = u 2 u 3 J 22 J 23 J 21 u ˙ 1 F 1 = F 1 1 + F 2 1 = J 11 cos β u ˙ 1 cos β u 1 β ˙ sin β + u ˙ 3 sin β + u 3 β ˙ cos β + u 2 u 3 J 22 J 23 J 21 u ˙ 1
The generalized inertia force in the u 2 direction is shown in Equation (14).
F 1 2 = 0 F 2 2 = u 1 u 3 J 23 J 21 J 22 u ˙ 2 F 2 = F 1 2 + F 2 2 = u 1 u 3 J 23 J 21 J 22 u ˙ 2
The generalized inertia force in the u 3 direction is shown in Equation (15).
F 1 3 = J 11 sin β u ˙ 1 cos β u 1 β ˙ sin β + u ˙ 3 sin β + u 3 β ˙ cos β F 2 3 = u 1 u 2 J 22 J 21 J 23 u ˙ 3 F 3 = F 1 3 + F 2 3 = J 11 sin β u ˙ 1 cos β u 1 β ˙ sin β + u ˙ 3 sin β + u 3 β ˙ cos β u 1 u 2 J 22 J 21 J 23 u ˙ 3
According to the Kane equation, Equation (16) is obtained by utilizing Equation (14).
M 2 = F 2 = F 2 = J 22 β ¨ 1 2 α ˙ 2 sin 2 β J 23 J 21
Equation (17) is obtained by utilizing Equations (13) and (15).
M 1 = cos β F 1 + sin β F 3 = cos β F 1 sin β F 3 = J 11 + J 21 cos 2 β + J 23 sin 2 β α ¨ + α ˙ β ˙ J 23 J 21 sin 2 β
The results of Equations (15) and (16) are in agreement with reference [20], which used the Newton–Euler method to establish the dynamic equations. The paper demonstrates the correctness of the two-axis yaw–pitch gimbal dynamics model established using the Kane method.
To further illustrate the advantages of the Kane method modeling, Table 2 summarizes the number of forces to be considered when modeling two-axis and three-axis stabilized gimbals using the Newton–Euler method and Kane method.
When modeling a two-axis stabilized gimbal using the Newton–Euler method, in addition to considering the driving force of each gimbal’s motor, the imbalance force of its own frame, and the rotational inertia force, there are also forces to account for the imbalance between the two gimbals and the rotational coupling force between them, totaling eight forces. Compared to the Kane method, it requires the consideration of two additional forces.
When modeling a three-axis stabilized gimbal using the Kane method, it only requires defining an additional generalized coordinate for the roll motion on top of the two-axis stabilized gimbal model. The number of forces considered increases from 6 to 12.
The three-axis stabilized gimbal consists of inner, middle, and outer gimbals, each responsible for pitch, yaw, and roll motion, respectively. When using the Newton–Euler method for modeling, it requires analyzing 16 forces. Each gimbal is subjected to the driving force of the motor, the imbalance force of its own gimbal, and the rotational inertia force, totaling nine forces for the three gimbals. The remaining seven forces represent the interactions between the gimbals, including: the imbalance force of the inner gimbal acting on the middle gimbal, the rotational coupling force of the inner gimbal on the middle gimbal, the coupling force between the middle and outer gimbal, the coupling force between the inner and outer gimbal, the imbalance force of the inner gimbal acting on the outer gimbal, the imbalance force of the middle gimbal acting on the outer gimbal, and the combined imbalance force of the inner and middle gimbal acting on the outer gimbal. Compared to the Kane method, it requires the consideration of four additional forces.
The advantages of the Kane method modeling become more apparent as the number of rigid bodies in the system increases. The Kane method provides a convenient way of deriving the dynamic equations of motion for complex multibody systems that have several degrees of freedom [21].

2.3. Motor Torque Equation

Due to the fact that stabilizing platforms generally employ DC torque motors as active motors, the motor armature voltage is given as follows:
U = L d i d t + Ri + E g
where U is the voltage across the motor armature, L is the motor armature inductance, i is the motor armature current, R is the motor armature resistance, and E g is the motor back electromotive force. When the motor operates in a steady state, the voltage across the inductance terminals is zero within a cycle, so the motor armature voltage equation can be simplified to
U = Ri + E g
For torque motors
E g = K e n M = i K T n = 9.55 ω
where K e is the motor back electromotive force coefficient, n is the motor speed, K T is the motor torque coefficient, ω is the motor angular velocity. In practical motor systems, the adoption of current negative feedback ensures stable currents. This, in turn, establishes linear relationships between the control voltage and armature current, as well as between the control voltage and output torque. The relationship between the control voltage and the motor output torque is shown in the formula below, where K is the proportional coefficient, T is the motor output torque, and U is the motor control voltage.
T = KU

2.4. Disturbance Factors of the Stabilized Gimbal

In electromechanical control systems, friction torque can significantly affect the control accuracy of the motor. Therefore, this section conducts a modeling analysis of the friction torque. A Stribeck [22] friction torque model is established as shown in Equation (22).
T 2 f v p = f 2 c + f 2 s f 2 c e v 2 v 2 v 2 s v 2 s 2 + f 2 v v 2
In (21), T 2 f t is the friction torque acting on the pitch gimbal, f 2 c is the maximum static friction of the pitch gimbal, f 2 s is the Coulomb friction of the pitch gimbal, v 2 s is the critical velocity for boundary friction of the pitch gimbal, and f 2 v is the viscous friction coefficient of the pitch gimbal. Therefore, the torque applied to the pitch gimbal is the vector sum of the motor driving torque, the friction torque of the pitch gimbal, and other external disturbance torques acting on the pitch gimbal, i.e.
M 2 = T 2 t T 2 w t T 2 f v
T 2 t is the driving torque of the pitch gimbal motor, T 2 w t is the sum of other disturbance torques acting on the pitch gimbal, and T 2 f v is the friction torque of the pitch gimbal. Define T 2 d as the resultant disturbance torque of the pitch gimbal.
T 2 d = T 2 f + T 2 w
T 2 f and T 2 w are the friction torque and other disturbance torques of the pitch gimbal, respectively.
Similarly, the resultant torque of the yaw gimbal is:
M 1 = T 1 t T 1 w t T 1 f v
T 1 t is the driving torque of the yaw gimbal motor, T 1 w t is the sum of other disturbance torques acting on the yaw gimbal, and T 1 f v is the friction torque of the yaw gimbal. Define T 1 d as the resultant disturbance torque of the yaw gimbal.
T 1 d = T 1 f + T 1 w
T 1 f and T 1 w are the friction torque and other disturbance torques of the yaw gimbal, respectively.

2.5. Lyapunov Proof

Taking the pitch gimbal as an example, construct the pitch gimbal Lyapunov function
V = 1 2 β ˙
Then:
V ˙ = β ˙ β ¨
β ¨ = M 2 + 1 2 α ˙ 2 sin 2 β J 23 J 21 J 22
V ˙ = β ˙ β ¨ = β ˙ M 2 + 1 2 α ˙ 2 sin 2 β J 23 J 21 J 22
(1) When β undergoes small angle changes, and β ˙ 0 , V ˙ = 0 , i.e. the Lyapunov origin is stable.
(2) When J 23 = J 21 , then V ˙ = M 2 β ˙ J 22 , where J 22 is a constant. When β ˙ and M 2 have opposite signs, V ˙ < 0 , the pitch gimbal is stable.
Except for the above two special cases, to ensure the stability of the platform, only M 2 + 1 2 α ˙ 2 sin 2 β J 23 J 21 0 then V ˙ = 0 , which results in Lyapunov stability at the origin. Similarly, the stability of the yaw gimbal can also be proven. It is challenging for torque motors alone to meet the requirements of the above equations in the system. Therefore, control system design is necessary to ensure stability.

3. Controller Design

According to analysis in Section 2, it can be observed that there exists a complex nonlinear relationship between the deflection angles of the two-axis gimbal and the torque motors. To adapt this nonlinear relationship, it is necessary to use controllers in the two-axis stable gimbal system.
The two-axis gimbal control system comprises two loops: the yaw-axis control loop and the pitch-axis control loop. The system control diagram is shown in Figure 3. To ensure the stability of the gimbal, an NPSO-PID controller is designed for the yaw/pitch controller module.
Particle Swarm Optimization (PSO) is a population-based metaheuristic algorithm inspired by the foraging behavior of birds. Its primary objective is to discover the maximum food source (global optimal solution) within a given search space. Each particle in the population represents a potential solution, and they collaborate by exchanging information to converge towards the best solution [23].
The entire optimization process of the particle swarm algorithm proceeds as follows: Firstly, the initial positions and velocities of particles in the swarm are initialized. Then, the iteration process of the particle swarm algorithm is carried out. During each iteration, the fitness value of each particle is computed. Based on these fitness values, the particles update their velocity and position information until the iteration process concludes. After the iteration, the global optimal particle is obtained, and the parameter of the controller also reaches its optimal state under the present conditions, thereby enhancing the controller’s control capability.
In each iteration of the algorithm, both the position and velocity of particles are updated simultaneously. The particle’s position represents the solution being sought, while the velocity determines the adjustment step size for each iteration. To avoid blind searching by particles in the algorithm, it is customary to set upper and lower bounds for the position and step size based on the specific range of the actual control quantity. The update method for particle position and step size is as follows:
v i d k + 1 = w × v i d k + c 1 × r 1 × p i d x i d k + c 2 × r 2 × p g d x i d k x i d k + 1 = x i d k + v i d k + 1
w = w max w max w min k k s u m
In (31), v i d k + 1 denotes the velocity information of the i-th particle in the d-th dimension at the k + 1 -th iteration, while x i d k + 1 represents the position information of the i-th particle in the d-th dimension at the k + 1 -th iteration. The variables c1 and c2 are learning factors, and w stands for the inertia weight. p g d represents the global best value, while p i d denotes the historical best value of individual particles. The k-th iteration corresponds to the time t = t k , and the k + 1 -th iteration corresponds to the time t = t k + 1 . Therefore, the terms v i d k + 1 , x i d k + 1 , v i d k , and x i d k in Equation (31) all contain time information.
In (32), w max represents the maximum weight, w min represents the minimum weight. k denotes the current iteration number, and k s u m represents the total number of iterations.
In PSO algorithms, to evaluate the quality of the sought values, a fitness function is introduced. Among all the fitness functions considered thus far, the most comprehensive and reasonable evaluation criterion is the ITAE method [24].
J = 0 t e t d t
The general form of a PID [25] controller is as follows:
u t = K p e t + K i 0 t e τ d τ + K d d e t d t
However, in practical engineering, it is impossible to directly handle the differential terms of a continuous-time PID algorithm. A commonly used method is to discretize the continuous-time PID controller, replacing integration with summation and differentiation with finite differences. After discretizing the proportional, integral, and derivative terms, the form of the PID controller is as follows:
u k = K p e k + K i i = 1 k e i Δ t + K d e k e k 1 Δ t
where u k represents the controller output signal at time k, e k denotes the system error at time k, and K p , K i and K d are the weighted values of the system error signal and its integral and derivative components, respectively. PSO-PID utilizes the optimization characteristics of the PSO algorithm to adjust the three parameters of the PID controller, thereby achieving stability in the control system. The control diagram is depicted in Figure 4. The pseudocode for the PSO-PID model is presented in Table 3.
The traditional PSO-PID algorithm is presented Table 3. As can be seen, the traditional PSO-PID algorithm does not fully utilize all particles during the process of finding the optimal position. Specifically, particle initialization follows a random distribution. So when one particle is determined as optimal (denoted as A 1 ), the other particles are defined as A 2 , A 3 , , AN based on their fitness values from smallest to largest. During the iteration process, AN need to continually move towards A 1 to achieve a smaller fitness value. However, calculating the fitness value of AN after each iteration update may result in an unnecessary computational burden. Because AN may encounter situations where no solution is found, the computational burden for this is extremely significant. To address this issue, we propose an iterative subset initialization strategy. Before updating velocity and position in each iteration, all particles are initialized at the position of the previous global optimum fitness value, followed by assigning them random initial velocities to position them near the previous global optimum position. This process is repeated until the iteration ends. This modified PSO algorithm is named NPSO. The pseudocode for the NPSO-PID model is presented in Table 4, and the flowchart is shown in Figure 5.
In Figure 5, it can be clearly seen that compared to the traditional PSO-PID, the NPSO-PID includes an additional red-boxed section, which represents the iterative subset initialization strategy proposed in this paper. The purpose of adding this module is to enhance the optimization performance of PSO, thereby providing the NPSO-PID with better control performance.

4. Simulink Results and Analysis

This section takes the two-axis stable gimbal as the research subject to analyze the stability of object tracking of the two-axis gimbal. The initial parameter settings of the two-axis stable gimbal are shown in Table 5.

4.1. Comparison of NPSO-PID and PID

According to Section 3, an NPSO-PID controller was designed and compared with the classical PID controller in terms of control performance. From Equations (16) and (17), it is evident that the pitch gimbal stabilizes, the yaw gimbal can also stabilize rapidly, and vice versa. Therefore, to achieve faster response speed and better stability, yaw controllers and pitch controllers adopt the same set of control parameters. The parameters of the classical PID controller (Kp, Ki, Kd are 4.08, 0.8703, and 7.002, respectively) are obtained from reference [26]. Control parameters of NPSO-PID are obtained after optimization by NPSO. The initial parameter settings of NPSO are shown in Table 6.
The control parameters optimized by NPSO for step signal tracking and sinusoidal signal tracking are [46.348, 0, 1.75] and [46.754, 0, 49.098], respectively. The simulation results of NPSO-PID and classical PID are shown in Figure 6 and Figure 7. These results are further summarized in Table 7.
In Figure 6, it can be clearly seen that both the NPSO-PID and the classical PID can effectively track step signals, but the classical PID has a 39 % overshoot, and has failed to meet the tracking accuracy requirement in which tracking error should not exceed 0 . 5 [27].
Figure 7 indicates that both controllers show good control performance in tracking sinusoidal signals. However, compared with the classical PID controller, the tracking accuracy of the NPSO-PID controller improves by an order of magnitude.
From Figure 6 and Figure 7, it can be observed that both controllers achieve a faster response speed and better stability with the same control parameters.
From the analysis of Table 7, it can be seen that when the NPSO-PID controller tracks a step signal, the yaw gimbal and pitch gimbal stabilize at 0.16 s and 0.2 s, respectively, with a tracking error of 0. When the PID controller tracks a step signal, both the yaw gimbal and pitch gimbal stabilize at 0.24 s, but there is a tracking error of 0.003 rad.
When the NPSO-PID controller tracks a sine signal, the tracking errors for the yaw gimbal and pitch gimbal are 0.00026 rad and 0.00028 rad, respectively. In contrast, when the PID controller tracks a sine signal, both the yaw gimbal and pitch gimbal have a tracking error of 0.001 rad, which is an order of magnitude higher than that of the NPSO-PID controller.
This demonstrates that the NPSO-PID controller has better control performance.

4.2. NPSO-PID Optimization Accuracy Verification

The difference between the desired value and the system feedback is referred to as error, which effectively reflects the overall performance of the designed controller. The error variation of the NPSO-PID controller is illustrated in Figure 8.
From Figure 8a, the tracking error of NPSO-PID for the step signal rapidly decreases, and the error is essentially eliminated within 0.2 s. From Figure 8b, it can be seen that the tracking error of NPSO-PID for the sine signal exhibits a noticeable initial increase, ultimately stabilizes and keeps within the range of ± 3 × 10 4 rad .

4.3. Comparison between NPSO-PID and PSO-PID

This section mainly compares the performance of the traditional PSO-PID algorithm with the NPSO-PID algorithm. From Equation (33), it is evident that smaller fitness value indicates better control parameter. As is shown in Table 8, five challenging experiments are designed, each aimed at tracking step signals. Simulation results are illustrated from Figure 9, Figure 10, Figure 11, Figure 12 and Figure 13. These results are further summarized in Table 9.
In the PSO algorithm, the fewer the particles, the more difficult it is to find the optimal control parameters. To test and compare the sensitivity of the PSO-PID and NPSO-PID optimization algorithms to the number of particles, we designed five sets of experiments as shown in Table 8. These five sets of experiments have the same number of iterations, but the number of particles gradually increases.
According to the trend of the curves, it can be concluded that NPSO-PID demonstrates better robustness compared to the PSO-PID algorithm. This conclusion is consistent with the inference in Section 3, where all particles are randomly distributed near the last iteration’s best position before each iteration begins, fully utilizing each particle search, thereby achieving better fitness values. However, NPSO-PID exhibits a higher initial fitness value. This is attributed to the strategy of initial subset selection in iteration, where velocity assignment occurs. When particles inherit the last optimal positions, random velocities are assigned to particles. This process disperses particles around the last optimal positions, resulting in higher initial fitness values.
Analysis of Table 9 reveals that although NPSO-PID takes slightly longer for optimization compared to PSO-PID, it delivers superior optimization results. This difference is clearly observed in Case 1, where the fitness value of NPSO-PID is only 1/3 of that of PSO-PID. Summarizing the five cases, it can be concluded that NPSO-PID exhibits better optimization control parameter capabilities.

4.4. The Relationship between Particle Number and Fitness Value

In this section, the relationship between different particle counts and optimal fitness in NPSO-PID is investigated. The initial number of particles is set to 3, incremented by 1 each time, and the study concludes when there are 30 particles. Each particle count undergoes 50 iterations. The simulation results are depicted in Figure 14.
From Figure 14, it is evident that the overall trend shows an improvement in the optimal fitness with an increase in the number of particles. As the number of particles increases, the range for finding the optimal fitness also expands, resulting in an improvement in the optimal fitness.
However, in certain cases, the optimal fitness value may increase. This is primarily due to two reasons:
(1)
The initialization distribution of particles is random. Some particles are fortunately initialized near the optimal fitness value, while others are unfortunately initialized far from the optimal fitness value, and may not find it by the end of the iterations.
(2)
The particle velocity is random, causing the particle movement direction to be random. Increasing the number of iterations can mitigate these deviations.

4.5. Analysis of the Influence of Friction

According to the literature [19], the disturbance torque applied to the pitch gimbal is T 1 d = 0.1 sin 2 π · t N × m , and the disturbance torque applied to the yaw gimbal is T 2 d = 0.2 sin π · t N × m . The control parameters optimized by NPSO for step signal tracking and sinusoidal signal tracking are [100, 0.249, 2.581] and [99.973, 0, 99.973], respectively. The simulation results are shown in Figure 15. A comparison of the tracking results for step and sine signals with no friction disturbance torque is presented in Table 10.
From Figure 15, it can be seen that after adding disturbance torque to the system, the NPSO-PID exhibits a steady-state tracking error of 0.005 rad when tracking a step signal. The tracking error range for the NPSO-PID when tracking a sine signal is within ± 0.008 rad.
From Table 10, it can be seen that although the control performance of the NPSO-PID decreases after adding disturbance torque, the tracking error remains within the allowable range. This indicates that the NPSO-PID has excellent control performance.

5. Conclusions

This paper establishes dynamic model of a two-axis stable gimbal based on the Kane method. Its purpose is to simplify the analysis process during multi-rigid body modeling to facilitate the improvement of computing efficiency and the need for real-time control. To address the issue of the object tracking stability of the two-axis gimbal, an NPSO-PID control method is proposed to meet real-time task requirements.
The dynamic modeling of the two-axis gimbal using the Kane method overcomes the drawbacks of traditional methods (Newton–Euler and Lagrange). Specifically, it avoids considering the hinge constraint forces between rigid bodies in the Newton–Euler method and eliminates the need to calculate second-order derivatives in Lagrange. The NPSO-PID controller designed in this paper has the advantages of higher tracking accuracy and smaller overshoot compared to the classical PID controller. In comparison with the traditional PSO-PID, NPSO-PID demonstrates better optimization of control parameters. However, the NPSO-PID still faces issues of a relatively large initial fitness value and a slight decrease in control performance after the addition of disturbance torque. These are directions for future research.

Author Contributions

Conceptualization, Q.H. and X.C.; methodology, Q.H.; validation, Q.H. and X.C.; formal analysis, Q.H. and J.Z.; investigation, X.C. and J.Z.; resources, Q.H.; data curation, X.C.; writing—original draft preparation, Q.H., J.Z. and Y.Y.; writing—review and editing, J.Z., Y.Y. and Y.C.; visualiza-tion, W.C., R.C. and Z.L.; supervision, Q.H.; project administration, J.Z.; funding acquisition, J.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This research was supported in part by Xiamen Municipal Bureau of Science and Technology under the Natural Science Foundation of Xiamen, China (grant number. 3502Z20227072); in part by Fujian Provincial Department of Science and Technology under the Natural Science Foundation of Fujian Province, China (grant number. 2022J05286 and grant number. 2023J011431); in part by Fujian Provincial Department of Education under the Youth Foundation of Fujian Educational Committee, Fujian, China (grant number. JAT210343); and in part by Xiamen University of Technology under the Startup Fund for Distinguished Scholars, Xiamen University of Technology of China (grant number. YKJ22019R); in part by Xiamen University of Technology under the Startup Fund for Graduate Innovation, Xiamen University of Technology of China (grant number. YKJCX2023135); Key Education and Research Projects of Fujian Province for Young and Middle aged Teachers (JZ230048).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data are contained within the article.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Flores, J.; Gonzalez-Hernandez, I.; Salazar, S.; Lozano, R.; Reyes, C. Improving Optical Flow Sensor Using a Gimbal for Quadrotor Navigation in GPS-Denied Environment. Sensors 2024, 24, 2183. [Google Scholar] [CrossRef] [PubMed]
  2. Jayaweera, H.M.P.C.; Hanoun, S. UAV Path Planning for Reconnaissance and Look-Ahead Coverage Support for Mobile Ground Vehicles. Sensors 2021, 21, 4595. [Google Scholar] [CrossRef] [PubMed]
  3. Abdo, M.; Vali, A.R.; Toloei, A.; Arvan, M.R. Research on the cross-coupling of a two axes gimbal system with dynamic unbalance. Int. J. Adv. Robot. Syst. 2013, 10, 357. [Google Scholar] [CrossRef]
  4. Wang, Y.; Sui, X.; Zhang, T.; Nie, T.; Chen, C. Design and Experimental Study on the Torque Balancing Mechanism of a Satellite-Borne Two-Axis Rotary Table. Machines 2023, 11, 830. [Google Scholar] [CrossRef]
  5. Niazi, S.; Toloei, A.; Ghasemi, R. Neuro-Predictive Controller for Stabilization of Gimbal Mechanism with Cross-Coupling. Mechatron. Syst. Control. 2021, 49. [Google Scholar] [CrossRef]
  6. Zhang, L.; Nan, H.; Zhao, Z.; Yuan, Y. Adaptive disturbance observer-based dual-loop integral-type fast terminal sliding mode control for micro spacecraft and its gimbal tracking device. ISA Trans. 2022, 130, 121–135. [Google Scholar] [CrossRef] [PubMed]
  7. Tan, K.K.; Lee, T.H.; Mamun, A.; Lee, M.W.; Khoh, C.J. Composite control of a gyro mirror line-of-sight stabilization platform-design and auto-tuning. ISA Trans. 2001, 40, 155–171. [Google Scholar] [CrossRef] [PubMed]
  8. Hasturk, O.; Erkmen, A.M.; Erkmen, İ. Proxy-based sliding mode stabilization of a two-axis gimbaled platform. Target 2011, 3, 1–7. [Google Scholar]
  9. Cai, Y.; Zheng, S.; Liu, W.; Qu, Z.; Zhu, J.; Han, J. Sliding-mode control of ship-mounted Stewart platforms for wave compensation using ve-locity feedforward. Ocean. Eng. 2021, 236, 109477. [Google Scholar] [CrossRef]
  10. Caruso, M.; Bregant, L.; Gallina, P.; Seriani, S. Design and multi-body dynamic analysis of the Archimede space exploration rov-er. Acta Astronaut. 2022, 194, 229–241. [Google Scholar] [CrossRef]
  11. Cao, Y.; Nie, W.; Wang, Z.; Wan, S. Dynamic modeling of helicopter-slung load system under the flexible sling hypothesis. Aerosp. Sci. Technol. 2020, 99, 105770. [Google Scholar] [CrossRef]
  12. Cibicik, A.; Egeland, O. Kinematics and dynamics of flexible robotic manipulators using dual screws. IEEE Trans. Robot. 2020, 37, 206–224. [Google Scholar] [CrossRef]
  13. Zhang, J.; Jin, Z.; Zhao, Y.; Tang, Y.; Liu, F.; Lu, Y.; Liu, P. Design and implementation of novel fractional-order controllers for stabilized platforms. IEEE Access 2020, 8, 93133–93144. [Google Scholar] [CrossRef]
  14. Senthil Kumar, S.; Anitha, G. A novel self-tuning fuzzy logic-based PID controllers for two-axis gimbal stabilization in a missile seeker. Int. J. Aerosp. Eng. 2021, 2021, 1–12. [Google Scholar] [CrossRef]
  15. Şahin, M. Stabilization of Two Axis Gimbal System with Self Tuning PID Control. Politek. Derg. 2023, 1. [Google Scholar] [CrossRef]
  16. Lesser, M. A geometrical interpretation of Kane’s equations. Proc. R. Soc. London. Ser. Math. Phys. Sci. 1992, 436, 69–87. [Google Scholar]
  17. Zhou, X.; Zhao, B.; Gong, G. Control parameters optimization based on co-simulation of a mechatronic system for an UA-based two-axis inertially stabilized platform. Sensors 2015, 15, 20169–20192. [Google Scholar] [CrossRef]
  18. Zhou, X.; Jia, Y.; Zhao, Q.; Yu, R. Experimental validation of a compound control scheme for a two-axis inertially stabilized platform with multi-sensors in an unmanned helicopter-based airborne power line inspection system. Sensors 2016, 16, 366. [Google Scholar] [CrossRef] [PubMed]
  19. Long, B.J. Research on Control Algorithm of Strapdown Seeker. Master’s Thesis, Harbin Institute of Technology, Harbin, China, 2015. [Google Scholar]
  20. Liu, B.J. Research on Control Algorithm of Two-axis Stabilized Platform; University of Electronic Science and Technology of China: Chengdu, China, 2023. [Google Scholar]
  21. Hussain, Z.; Azlan, N.Z. KANE’s Method for Dynamic Modeling. In Proceedings of the 2016 IEEE International Conference on Automatic Control and Intelligent Systems (I2CACIS), Selangor, Malaysia, 22 October 2016; pp. 174–179. [Google Scholar]
  22. Zhang, Q.; Wang, Q.; Ninghao, C. Identification and control of the motor-drive servo turntable with the switched friction model. IET Electr. Power Appl. 2020, 14, 843–849. [Google Scholar] [CrossRef]
  23. Kennedy, J.; Eberhart, R. Particle Swarm Optimization. In Proceedings of the ICNN’95-International Conference on Neural Networks, IEEE, Perth, WA, Australia, 27 November–1 December 1995; Volume 4, pp. 1942–1948. [Google Scholar]
  24. Xu, F.; Li, D.; Xue, Y. Comparing and optimum seeking of PID tuning methods base on ITAE index. Proc. CSEE 2003, 23, 206–210. [Google Scholar]
  25. Ang, K.H.; Chong, G.; Li, Y. PID control system analysis, design, and technology. IEEE Trans. Control. Syst. Technol. 2005, 13, 559–576. [Google Scholar]
  26. Wang, J.; Nie, Y.Y. Simulation Research on Neural Network PID Control System of Turntable Based on PSO-BP Combina-tion Algorithm Optimization. Aviat. Precis. Manuf. Technol. 2023, 59, 5–8. [Google Scholar]
  27. Zhang, P. Modeling and Control of Airborne/Missile-borne Vision-Guidance Stabilized Platform; National Defense Industry Press: Beijing, China, 2011; p. 59. [Google Scholar]
Figure 1. Schematic diagram of two-axis stable gimba.
Figure 1. Schematic diagram of two-axis stable gimba.
Sensors 24 03615 g001
Figure 2. Coordinate system relationship. (a) The relationship of the three vector bases at the initial moment. (b) The relationship of the three vector bases with the yaw angle. (c) The relationship of the three vector bases with both the yaw angle and the pitch angle.
Figure 2. Coordinate system relationship. (a) The relationship of the three vector bases at the initial moment. (b) The relationship of the three vector bases with the yaw angle. (c) The relationship of the three vector bases with both the yaw angle and the pitch angle.
Sensors 24 03615 g002
Figure 3. Two-axis stable gimbal control system.
Figure 3. Two-axis stable gimbal control system.
Sensors 24 03615 g003
Figure 4. PSO-PID control system.
Figure 4. PSO-PID control system.
Sensors 24 03615 g004
Figure 5. NPSO-PID flowchart.
Figure 5. NPSO-PID flowchart.
Sensors 24 03615 g005
Figure 6. Controller step tracking comparison chart. (a) NPSO-PID tracking. (b) PID tracking.
Figure 6. Controller step tracking comparison chart. (a) NPSO-PID tracking. (b) PID tracking.
Sensors 24 03615 g006
Figure 7. Controller sinusoidal tracking effect comparison. (a) NPSO-PID tracking. (b) PID tracking.
Figure 7. Controller sinusoidal tracking effect comparison. (a) NPSO-PID tracking. (b) PID tracking.
Sensors 24 03615 g007
Figure 8. Accuracy verification. (a) Step error. (b) Sinusoidal error.
Figure 8. Accuracy verification. (a) Step error. (b) Sinusoidal error.
Sensors 24 03615 g008
Figure 9. Case 1 results. (a) PSO-PID. (b) NPSO-PID.
Figure 9. Case 1 results. (a) PSO-PID. (b) NPSO-PID.
Sensors 24 03615 g009
Figure 10. Case 2 results. (a) PSO-PID. (b) NPSO-PID.
Figure 10. Case 2 results. (a) PSO-PID. (b) NPSO-PID.
Sensors 24 03615 g010
Figure 11. Case 3 results. (a) PSO-PID. (b) NPSO-PID.
Figure 11. Case 3 results. (a) PSO-PID. (b) NPSO-PID.
Sensors 24 03615 g011
Figure 12. Case 4 results. (a) PSO-PID. (b) NPSO-PID.
Figure 12. Case 4 results. (a) PSO-PID. (b) NPSO-PID.
Sensors 24 03615 g012
Figure 13. Case 5 results. (a) PSO-PID. (b) NPSO-PID.
Figure 13. Case 5 results. (a) PSO-PID. (b) NPSO-PID.
Sensors 24 03615 g013
Figure 14. Relationship between particle count and fitness.
Figure 14. Relationship between particle count and fitness.
Sensors 24 03615 g014
Figure 15. Controller tracking effect. (a) NPSO —PID step tracking. (b) NPSO —PID sinusoidal tracking.
Figure 15. Controller tracking effect. (a) NPSO —PID step tracking. (b) NPSO —PID sinusoidal tracking.
Sensors 24 03615 g015
Table 1. Generalized velocity ( u r ), partial velocity ( v 1 , v 2 ), and partial angular velocity ( ω 1 , ω 2 ).
Table 1. Generalized velocity ( u r ), partial velocity ( v 1 , v 2 ), and partial angular velocity ( ω 1 , ω 2 ).
r123
u r α ˙ cos β β ˙ α ˙ sin β
ω 1 r cos β e 1 1 0 sin β e 1 1
ω 2 r e 1 2 e 2 2 e 3 2
v 1 r 000
v 2 r 000
Table 2. The number of forces considered in the gimbal modeling process using the Newton–Euler method and the Kane method.
Table 2. The number of forces considered in the gimbal modeling process using the Newton–Euler method and the Kane method.
Gimbal StructureNewton–EulerKane Method
two-axis gimbal86
three-axis gimbal1612
Table 3. PSO-PID algorithm flow.
Table 3. PSO-PID algorithm flow.
PSO-PID Calculation Process
 Input: The number of particles, the values of k s u m , w max , w min , and the ranges of K p , K i and K d
 Output: The optimal control parameters.
1. Initialize the positions and velocities of the particles.
2. Compute the fitness value of each particle based on Equations (33) and (34), and
    determine p g d and p i d .
3. While ( k < k s u m ) do
4. Update particle velocity and position according to Equations (25) and (26).
5. Compute the fitness value of each particle based on Equations (33) and (34), and
    determine p g d and p i d .
6. k + 1
7. End while
Table 4. NPSO-PID algorithm flow.
Table 4. NPSO-PID algorithm flow.
NPSO-PID Calculation Process
 Input: The number of particles, the values of k s u m , w max , w min , and the ranges of K p , K i and K d
 Output: The optimal control parameters.
1. Initialize the positions and velocities of the particles.
2. Compute the fitness value of each particle based on Equations (33) and (34), and
    determine p g d and p i d .
3. While ( k < k s u m ) do
4. The last p g d initializes the particle position
5. Random particle velocity
6. Update particle velocity and position according to Equations (25) and (26).
7. Compute the fitness value of each particle based on Equations (33) and (34), and
    determine p g d and p i d .
8. k + 1
9. End while
Table 5. Two-axis stable gimbal initialization parameters.
Table 5. Two-axis stable gimbal initialization parameters.
ParameterValue
Rotor inertia J110.005954  kg × m 2
Rotor inertia J210.001102  kg × m 2
Rotor inertia J220.004682  kg × m 2
Rotor inertia J230.001122  kg × m 2
Torque constant K10.2593  N × m / V
Torque constant K20.1852  N × m / V
Inertia α , β 0 rad
Table 6. NPSO-PID initial parameter configuration.
Table 6. NPSO-PID initial parameter configuration.
ParameterValue
c1,c22
Iterations50
Number of particles30
Weight coefficient range[0.4, 2]
Searching for speed[−1, 1]
PID value range[0, 50]
Table 7. Comparison of parameters between NPSO-PID and traditional PID.
Table 7. Comparison of parameters between NPSO-PID and traditional PID.
Yaw Gimbal Pitch Gimbal
Stable TimeTracking Error Stable TimeTracking Error
setp PID0.240.003 0.240.003
setp NPSO-PID0.160 0.20
sinusoidal PID-0.001 -0.001
sinusoidal NPSO-PID-0.00026 -0.00028
Table 8. Experimental setup.
Table 8. Experimental setup.
ParticleNumber of Iteration
Case1550
Case21050
Case31550
Case42050
Case52550
Table 9. Performance comparison between PSO-PID and NPSO-PID.
Table 9. Performance comparison between PSO-PID and NPSO-PID.
PSO-PID NPSO-PID
Stable TimeTracking Error Stable TimeTracking Error
10.00434913.547s 0.00151518.204s
20.00304830.387s 0.00133735.015
30.00242945.359s 0.00110647.397s
40.00239762.777s 0.00111174.877s
50.00230392.255s 0.001059106.918s
Table 10. Comparison of the system with and without friction.
Table 10. Comparison of the system with and without friction.
Reference SignalWith and Without FrictionYaw GimbalPitch Gimbal
Stable TimeTracking ErrorStable TimeTracking Error
stepwith0.120.00250.120.005
without0.1600.20
sinusoidalwith-0.0008-0.0008
without-0.00026-0.00028
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

Huang, Q.; Zhou, J.; Chen, X.; Yao, Y.; Chen, Y.; Chen, W.; Chen, R.; Lv, Z. Modeling and Control of a Two-Axis Stabilized Gimbal Based on Kane Method. Sensors 2024, 24, 3615. https://doi.org/10.3390/s24113615

AMA Style

Huang Q, Zhou J, Chen X, Yao Y, Chen Y, Chen W, Chen R, Lv Z. Modeling and Control of a Two-Axis Stabilized Gimbal Based on Kane Method. Sensors. 2024; 24(11):3615. https://doi.org/10.3390/s24113615

Chicago/Turabian Style

Huang, Qixuan, Jiaxing Zhou, Xiang Chen, Youxin Yao, Yuhao Chen, Wei Chen, Runjing Chen, and Zhisheng Lv. 2024. "Modeling and Control of a Two-Axis Stabilized Gimbal Based on Kane Method" Sensors 24, no. 11: 3615. https://doi.org/10.3390/s24113615

APA Style

Huang, Q., Zhou, J., Chen, X., Yao, Y., Chen, Y., Chen, W., Chen, R., & Lv, Z. (2024). Modeling and Control of a Two-Axis Stabilized Gimbal Based on Kane Method. Sensors, 24(11), 3615. https://doi.org/10.3390/s24113615

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