Preprint
Article

Nonlinear Swing-Up and Stabilization of Inverted Pendulum on a Cart Using Energy Control Method Based on Multiple Lyapunov Functions, Sliding Mode Control, and Pole Placement

Altmetrics

Downloads

74

Views

30

Comments

0

This version is not peer-reviewed

Submitted:

14 May 2024

Posted:

15 May 2024

You are already at the latest version

Alerts
Abstract
This work explores state-of-the-art approaches for stabilizing an inverted pendulum on a cart system, which has been used for over a century to demonstrate ideas in nonlinear and linear control theory, owing to its simple practical implementation yet complex system dynamics. We introduce energy-based control methods and propose a simple linear controller to quickly force the system to the downward equilibrium before swing-up. By constraining the system to start from a stable equilibrium configuration, the problem of global stability is reduced to ensuring that the system can follow all heteroclinic orbits that start very close to the downward equilibrium. Multiple Lyapunov functions are employed to ensure non-zero tracking, increasing the system's domain of attraction than is achieved by traditional controllers based on a single Lyapunov function. We stabilize our inverted pendulum system in the upright configuration through pole placement using a linear quadratic regulator known for fast settling times and smooth system response and through sliding mode controllers known for their robustness to disturbances and model uncertainties. While sliding mode controllers exhibit faster stabilization of the pendulum angle, they fail to stabilize the cart position in a reasonable amount of time. The paper concludes by suggesting various controller techniques that can enhance the swing-up and stabilization controller architectures, leaving room for future exploration. To facilitate further research and education, an open-source MATLAB simulation code is provided, encapsulating the system dynamics and controller designs. This resource offers flexibility for customization, making it a valuable tool for both researchers and educators working with inverted pendulum systems.
Keywords: 
Subject: Computer Science and Mathematics  -   Robotics

I. Introduction

The inverted pendulum on a cart is one of the most pedagogical systems in modern control theory, consisting of a freely pivoted rod mounted on a motor-driven cart. Because the inverted pendulum is inherently nonlinear and underactuated, swinging up and stabilizing the pendulum in its unstable upright equilibrium configuration while controlling the position of the cart is a nontrivial task that is widely used to demonstrate applications of a wide range of nonlinear and linear control theories.
If the rod is directly above the motionless cart as shown in Figure 1a, the rod can, in principle, stay upright indefinitely but in reality, it never does. The slightest disturbance that shifts the rod away from its upright equilibrium configuration as shown in Figure 1b results in forces in the system that push the rod farther from the unstable upright configuration. In the absence of external forces, the rod will remain at rest hanging down in the downward equilibrium configuration as shown in Figure 1c which is intuitively a stable equilibrium.
The system is non-feedback linearizable [1] and loses controllability when the pendulum swings past the horizontal, making it especially difficult to perform controlled maneuvers. For instance, no continuous force globally stabilizes the pendulum in the upright configuration without displacing the cart [2]. Although linear quadratic regulators (LQRs) can be used as a robust [3] and quick controller for local stabilization at the unstable equilibrium [4], linear-based controllers have a very small domain of attraction [3,4], typically effective only when the pendulum is within 5 of the upright configuration and the angular speed of the pendulum is within 2 . 5 rad / s . In this paper, the energy control method based on multiple Lyapunov functions proposed in [5] will be implemented and evaluated against the conventional swing-up controller based on a single Lyapunov function that is traditionally used [6,7,8]. This paper will also compare the performance of an LQR controller which known for its fast settling times, in stabilizing the pendulum close to the upright equilibrium configuration against the sliding mode controller (SMC) which is also based on a Lyapunov function and is known for its robustness to external and internal disturbances and to model uncertainties [9].
Section II presents the dynamic model of the inverted pendulum on a cart. Section III presents the energy control method based on multiple Lyapunov functions that is used in this paper and the traditional energy control method of the inverted pendulum based on a single Lyapunov function. Section IV discusses the use of LQR and pole placement to quickly stabilize the system prior to swing-up to force global stability and after swing-up to guarantee fast and smooth stabilization with less oscillation [3]. The performance of the LQR controller is compared with that of a sliding mode controller which is well known for its robustness to system disturbances and model uncertainties. Section V compares the performance of the swing-up controllers presented in Section III. Section VI discusses various intermediate controllers and techniques that can be used to improve stability or increase swing-up and stabilization speed when implementing the nonlinear swing-up and linear stabilization controllers discussed herein. Section VII summarizes the controller ideas and findings of the paper.

II. Dynamic Model

In the inverted pendulum system, we attempt to control the rod angle θ and cart position x for a given rod of mass m and length l mounted on a cart of mass M that can freely move along the x-axis as illustrated in Figure 2. The aim of our control law is to drive θ , θ ˙ , x, and x ˙ to 0 in a finite amount of time by varying the applied force F on the cart. The rest of the system parameters are listed in Table 1. The cart viscous friction, rod joint moment of inertia, and rod moment of inertia are neglected since they are very small compared with the other quantities in our system.
The dynamic equations of motion for the inverted pendulum on a cart can be derived using the Euler-Lagrange equations [5,10]:
I + J + m l 2 θ ¨ + c θ ˙ m g l sin θ + m l cos θ · x ¨ = 0
( M + m + n ) x ¨ + b x ˙ + m l cos θ · θ ¨ m l sin θ · θ ˙ 2 = F
The trigonometric functions in (1) and (2) make the inverted pendulum system inherently nonlinear. Using (1) and (2), an equation for θ ¨ and x ¨ in terms of the state variables θ , θ ˙ , x, and x ˙ can be derived:
θ ¨ = m l cos θ b x ˙ m l θ ˙ 2 sin θ F + M + m + n m g l sin θ c θ ˙ m 2 l 2 sin 2 θ + I + J M + m + n + m l 2 M + n
x ¨ = m l cos θ c θ ˙ m g l sin θ + I + J + m l 2 m l θ ˙ 2 sin θ b x ˙ + F m 2 l 2 sin 2 θ + I + J M + m + n + m l 2 M + n

III. Swing-Up

For the swing-up controller, we want to find a Lyapunov function for θ excluding x so that the controller can focus on swinging the rod up instead of bringing the cart to x = 0 . The mechanical energy of the inverted pendulum without considering the kinetic energy of the cart is
E = 1 2 I + J + m l 2 θ ˙ 2 + m g l ( cos θ 1 )
When the pendulum is in the downward equilibrium configuration ( θ , θ ˙ ) = ( ± π , 0 ) , E = 2 m g l . When the pendulum is in the upward equilibrium configuration ( θ , θ ˙ ) = ( 0 , 0 ) , E = 0 . Thus, to swing to the upward configuration, E must increase to 0. Consider the Lyapunov function
V E = 1 2 E 2
which decreases to 0 as E increases to 0 and V E > 0 for E 0 . A control input that forces V ˙ 0 will ensure that E decreases to 0. However, there are infinitely many values of ( θ , θ ˙ ) ( 0 , 0 ) that make E = 0 as shown in Figure 3. Thus, although V E is a Lyapunov function for E, it is not a Lyapunov function for θ .
A modified Lyapunov function that is zero whenever ( θ , θ ˙ ) = ( 0 , 0 ) and > 0 otherwise is proposed in [5]:
V 1 = 1 2 E 2 + α 1 cos 3 θ ( α > 0 )
V ˙ 1 = m l E θ ˙ cos θ · u + 3 2 α θ ˙ cos θ sin 2 θ
V 1 ˙ 0 whenever
m l E θ ˙ cos θ · u 3 2 α θ ˙ cos θ sin 2 θ
which can be achieved ( V 1 ˙ < 0 ) through the control input [5]
u θ 1 = U 0 sign ( E θ ˙ cos θ ) ( E 0 ) U 1 sign ( θ ˙ cos θ ) ( E = 0 )
where
sign ( z ) = 1 ( z > 0 ) 0 ( z = 0 ) 1 ( z < 0 )
There are two cases when (9) cannot be satisfied as shown in Figure 4.
1) θ ˙ > 0 and 0 < θ < π and E = 0 : In this case, the candidate Lyapunov function can be defined as [5]
V 2 = 1 2 E 2 + 1 2 β ( θ 2 π ) 2 ( β > 0 )
where θ = 2 π is naturally the desired configuration since the pendulum is in the right half plane and has clockwise angular velocity.
V ˙ 2 = m l E θ ˙ cos θ · u + β ( θ 2 π ) θ ˙
V 2 ˙ 0 whenever
m l E θ ˙ cos θ · u β ( θ 2 π ) θ ˙
which can be achieved ( V 2 ˙ < 0 ) through the control input [5]
u θ 2 = U 2 sign ( θ ˙ cos θ )
2) θ ˙ < 0 and π < θ < 0 and E = 0 : In this case, the candidate Lyapunov function can be defined as [5]
V 3 = 1 2 E 2 + 1 2 γ θ + 2 π 2 ( γ > 0 )
where θ = 2 π is naturally the desired configuration since the pendulum is in the left half plane and has counterclockwise angular velocity.
V ˙ 3 = m l E θ ˙ cos θ · u + γ θ + 2 π θ ˙
V 3 ˙ 0 whenever
m l E θ ˙ cos θ · u γ θ + 2 π θ ˙
which can be achieved ( V 3 ˙ < 0 ) through the control input [5]
u θ 3 = U 3 sign ( θ ˙ cos θ )
The swing-up controller switches between u θ 1 and u θ 2 or u θ 3 depending on the values of θ and θ ˙ .

IV. Stabilization

A. Linear Quadratic Regulator and Pole Placement

LQR controllers based on pole placement are known to quickly and smoothly stabilize the inverted pendulum in its upright and downward equilibrium configurations where the system dynamic equations can be linearized for θ which is the source of all the nonlinearities in the system [3].
1) Down Controller: If the magnitudes of the initial angle of the rod θ 0 , initial angular velocity of the rod θ ˙ 0 , initial displacement of the cart x 0 , and/or initial velocity of the cart x ˙ 0 are very large, the cart can end up very far from the origin x = 0 . In this case, although the pendulum can swing up to its upright position, stabilizing θ = 0 while bringing the cart back to x = 0 either fails or takes a very long time. However, if there is a known method to swing the pendulum from its downward equilibrium configuration to its upright equilibrium configuration and maintain stability for a set of initial conditions θ 0 , θ ˙ 0 , x 0 , x ˙ 0 0 , 0 , 0 , 0 , we can force the pendulum to first achieve the downward equilibrium configuration before starting the swing-up control. Forcing the system to use such heteroclinic orbits through our energy control methods from the stable equilibrium to the unstable equilibrium forces global stability of our control method. Since the downward configuration of the pendulum is a stable equilibrium, it is inherently approached by the system without any control input. However, the process can be made exponentially quicker by an “initializer” that is designed using pole placement methods which is a trivially easy task. The control input will be in the form
u L 1 = k L 1 , 1 x + k L 1 , 2 x ˙ + k L 1 , 3 ϕ + k L 1 , 4 ϕ ˙ ( ϕ π / 2 ) k L 1 , 2 x ˙ + k L 1 , 3 ϕ + k L 1 , 4 ϕ ˙ ( ϕ > π / 2 )
where k L 1 , 1 , k L 1 , 2 , k L 1 , 3 , and k L 1 , 4 are gain constants and ϕ is the rod angle from the downward equilibrium as shown in Figure 5. In the case when ϕ > π / 2 , we set k L 1 , 1 = 0 in order to not introduce unwanted energy into the system. For our system, the tuned controller gains that we use are k L 1 , 1 = 5 , k L 1 , 2 = 10 , k L 1 , 3 = 50 , k L 1 , 4 = 20 .
2) Up Controller: The up controller is applied whenever cos θ 0 . 9 :
u L 2 = k L 2 , 1 x + k L 2 , 2 x ˙ + k L 2 , 3 θ + k L 2 , 4 θ ˙
Although this condition is sufficient for our design, various conditions can be added and explored to increase the stability or robustness of our controller or achieve a faster settling time. For instance, x and θ ˙ can be restricted to be close to 0 to ensure that the system is already within the linearizable state when the up controller takes over. The controller can also be switched to the swing-up mode or the up stabilization controller can be disabled whenever u L 2 exceeds a certain bound. Moreover, if u L 2 exceeds a certain positive value and the pendulum is in the left half plane but outside the linearizable region of the upright configuration or if u L 2 drops below a certain negative value and the pendulum is in the right half plane but outside the linearizable region of the upright configuration, the controller can also be switched to the swing-up mode or the up stabilization controller can be disabled. From our preliminary investigations, such conditions interact and have coupled effects that need to be tuned in concert for optimal controller performance. The reader is encouraged to systematically explore the effects of these various conditions on the controller for future work. For our system, the LQR-tuned controller gains that we use are k L 1 , 1 = 35 , k L 1 , 2 = 34 , k L 1 , 3 = 150 , k L 1 , 4 = 34 .

B. Sliding Mode Controller

The sliding mode controller is a widely used nonlinear controller that is known for its robustness to system disturbances and model uncertainties [9]. For these reasons, the sliding mode controller is one of the state-of-the-art control approaches for stabilizing the inverted pendulum. A sliding surface is chosen such that the controlled system converges to the surface and, upon reaching the surface, “slides” along the surface s to reach and maintain the equilibrium state, as shown by some trivial Lyapunov function that is widely published in the literature [11]. The control input is defined as
u S 1 = u e q K sign ( s )
with design constant K. To find u e q we let θ ¨ = 0 and F = u e q in (3) and solve for u e q :
u e q = b x ˙ m l θ ˙ 2 sin θ + M + m + n m g l sin θ c θ ˙ m l cos θ
Coupled sliding surfaces that stabilize θ while tracking the error in x were proposed for a conventional sliding mode controller following (21) and a higher order terminal sliding mode controller following the control law
u S 2 = γ 1 sat ( s ) + γ 2 sat ( s ˙ )
with design constants γ 1 and γ 2 were proposed in [11]. In (23), the saturation function sat ( z ) limits the value of a signal z within a maximum z max and a minimum z min and is used instead of sign ( z ) to further control chattering:
sat ( z ) = 1 ( z > z max ) z ( z min z z max ) 1 ( z < z min )
After multiple attempts and modifications to the sliding surface mode controller values and architectures, we found that neither the conventional sliding mode controller nor the higher order terminal sliding mode controller proposed in [11], nor do variations of these approaches can be tuned to stabilize our system fast enough to θ = 0 and x = 0 . Stabilizing to θ = 0 within 1 s is possible but the stabilization in the drift in x takes more than 5 s . The reader is encouraged to try these approaches and come up with alternative sliding surface controller designs for future work. In contrast, our LQR up controller can consistently stabilize the system to θ = 0 and x = 0 within 3 s for any initial condition starting at x 1 . 5 m , x ˙ 0 , θ ˙ 0 , and any θ that follows our up controller condition cos θ 0 . 9 . If the initial conditions of the system fall within these specifications, the up stabilization controller is used; otherwise, the down controller is first used to bring the pendulum to the downward equilibrium, followed by swing-up and up stabilization.

V. Results

For our Lyapunov function based controllers, the tuned gains for the system are U 0 = 29 . 8 and U 1 = U 2 = U 3 = 29 . 9 and the switching occurs whenever E < 0 . 05 J . We simulate the system response when using our controllers using MATLAB’s ode45 solver. When the initial conditions are x 0 = 0 , x ˙ 0 = 0 , θ 0 = π rad , and θ ˙ 0 = 0 , the single Lyapunov and Lyapunov switching controllers behave very similarly as shown in Figure 6, stabilizing the pendulum in one swing. This is true for a wide range of initial conditions, but not always.
When the initial conditions are x 0 = 1 m , x ˙ 0 = 0 , θ 0 = 5 rad , and θ ˙ 0 = 54 rad / s , the down controller first brings the pendulum to the downward equilibrium configuration. At around 18 . 4 s , the swing-up controllers activate. The Lyapunov switching controller stabilizes the pendulum in one swing but the single Lyapunov controller fails and at 20 . 3 s , the cart starts drifting to the right of x = 0 as shown in Figure 7. Accompanying movies show the animations of the plots discussed herein.
Even when the initial conditions are very far from the equilibrium configurations, we can force global stability using the down controller proposed in this paper. The system response using our Lyapunov switching controller when x 0 = 1 m , x ˙ 0 = 0 , θ 0 = 2 rad , and θ ˙ 0 = 60 rad / s is shown in Figure 8. The down controller first brings the pendulum to the downward equilibrium configuration. At around 23 . 3 s , the Lyapunov switching controller activates and stabilizes the pendulum in one swing.

VI. Miscellaneous Controller Techniques

Various control techniques can be explored and augmented to our swing-up and stabilization controllers to increase the stability or robustness of our controllers or achieve a faster settling time. For instance, a re-initializer may be added to bring the pendulum back to the downward equilibrium configuration and at x = 0 whenever x exceeds a certain value. An “accelerator” or “Lyapunov converter” can also be added to guide the system at the beginning of the swing-up phase from the downward equilibrium. Depending on the initial proposed value of the Lyapunov controller at the start of the swing-up process, the accelerator either takes the absolute value of the calculated input u or u until x exceeds a certain value. A “bounder” helps contain the cart close to x = 0 . Whenever x exceeds a certain value to the right of the origin, the bounder takes either u or a certain positive limit, whichever is less, negates it, and makes the resulting quantity the control input. Similarly, whenever x exceeds a certain value to the left of the origin, the bounder takes either u or a certain positive limit, whichever is less, and makes it the control input. An “input limiter” converts the control input to 0 whenever u exceeds a certain value to eliminate spikes in the control input. From our preliminary investigations, these techniques, together with the optional switching conditions or “conditional switchers” discussed at the end of Section A interact and have coupled effects that need to be tuned in concert for optimal controller performance. The reader is encouraged to systematically explore the effects of these various controller techniques for future work. A possible flowchart for the techniques discussed in this section and in Section A is shown in Figure 9.

VII. Conclusion

In this paper, we discussed the various state-of-the-art approaches used to stabilize the inverted pendulum on a cart system. Energy-based control methods, which are widely used to control and stabilize nonlinear systems are presented. A linear down stabilization controller is proposed to force the system to the downward equilibrium prior to swing-up. By forcing the system to follow heteroclinic orbits, global stability may be achieved.
We use multiple Lyapunov functions to ensure that the current Lyapunov function being tracked by the system is nonzero except when the pendulum is in the upright configuration, a theoretical condition that is not completely satisfied by the traditional Lyapunov function widely used for the inverted pendulum or variations of such a function. We have verified through simulations that using multiple Lyapunov functions improves the domain of attraction of the controlled system.
We also compare a linear quadratic regulator controller with sliding mode controllers for up stabilization. Our tuned LQR controller stabilizes the value of x and θ to the upward equilibrium configuration within 3 s . Although sliding mode controllers which are based on Lyapunov functions can stabilize the θ of our system to up to 2 s faster than our LQR controller, SMCs fail to stabilize x in a reasonable amount of time.
Various controller techniques that can be augmented to the swing-up and stabilization controller architectures for the inverted pendulum are proposed. These techniques can be explored in future work. An open-source MATLAB simulation code with our proposed controllers and controller techniques is provided for educational and future research purposes. Because of its simple practical design and complex underactuated dynamics, the inverted pendulum has been widely used since the 1980s [12] to demonstrate a variety of ideas in nonlinear and linear control theory. Our source code contains the inverted pendulum system dynamics, allowing for modifications to the controller design, initial conditions, and system parameters. This flexibility accommodates the needs of future researchers and educators, making it a valuable tool for jump-starting their exploration or demonstration of the inverted pendulum system.

Supplementary Materials

The following supporting information can be downloaded at the website of this paper posted on Preprints.org. This paper comes with supplementary movies of the animated inverted pendulum on a cart system driven by our controllers from various initial conditions. An open-source customizable MATLAB code for simulating and animating the inverted pendulum system is available in this link together with the supplementary videos: https://github.com/generible/Inverted-Pendulum-Simulator.

References

  1. l aw Jakubczyk, B.; Respondek, W. On linearization of control systems. Bull. Acad. Polon. Sci. Ser. Sci. Math 1980, 28, 517–522.
  2. Shiriaev, A.S.; Fradkov, A.L. Stabilization of invariant sets for nonlinear systems with applications to control of oscillations. International Journal of Robust and Nonlinear Control: IFAC-Affiliated Journal 2001, 11, 215–240. [CrossRef]
  3. Kumar, E.V.; Jerome, J. Robust LQR controller design for stabilizing and trajectory tracking of inverted pendulum. Procedia Engineering 2013, 64, 169–178. [CrossRef]
  4. Lam, J. Control of an inverted pendulum. University of California, Santa Barbara 2004, 10, 24–37.
  5. Maeba, T.; Deng, M.; Yanou, A.; Henmi, T. Swing-up controller design for inverted pendulum by using energy control method based on Lyapunov function. Proceedings of the 2010 International Conference on Modelling, Identification and Control. IEEE, 2010, pp. 768–773.
  6. Bugeja, M. Non-linear swing-up and stabilizing control of an inverted pendulum system. The IEEE Region 8 EUROCON 2003. Computer as a Tool. IEEE, 2003, Vol. 2, pp. 437–441.
  7. Yoshida, K. Swing-up control of an inverted pendulum by energy-based methods. Proceedings of the 1999 American Control Conference (Cat. No. 99CH36251). IEEE, 1999, Vol. 6, pp. 4045–4047.
  8. Christensen, J.H.; Chistiansen, R. Swing Up and Stabilisation of an Inverted Pendulum on a Cart using Nonlinear Methods. Unpublished master theses. Aalborg East: Aalborg University 2017.
  9. Coban, R.; Ata, B. Decoupled sliding mode control of an inverted pendulum on a cart: An experimental study. 2017 IEEE International Conference on Advanced Intelligent Mechatronics (AIM). IEEE, 2017, pp. 993–997.
  10. Singh, G.; Singla, A. Modeling, analysis and control of a single stage linear inverted pendulum. 2017 IEEE international conference on power, control, signals and instrumentation engineering (ICPCSI). IEEE, 2017, pp. 2728–2733.
  11. Farooq, U.; Afzal, W.; Afaq, A.; Rehman, S. Stabilization Control for an Inverted Pendulum on a Cart: A Terminal Sliding Mode Approach. 2021 Fourth International Conference on Microelectronics, Signals & Systems (ICMSS). IEEE, 2021, pp. 1–6.
  12. Anderson, C.W. Learning to control an inverted pendulum using neural networks. IEEE Control Systems Magazine 1989, 9, 31–37. [CrossRef]
Figure 1. Equilibrium configurations of the inverted pendulum on a cart. The slightest disturbance that shifts the rod from the unstable upright equilibrium configuration (a) causes it to fall (b) to the stable downward equilibrium (c).
Figure 1. Equilibrium configurations of the inverted pendulum on a cart. The slightest disturbance that shifts the rod from the unstable upright equilibrium configuration (a) causes it to fall (b) to the stable downward equilibrium (c).
Preprints 106508 g001
Figure 2. Schematic diagram of the inverted pendulum on a chart mechanical system with rod angle θ and cart position x.
Figure 2. Schematic diagram of the inverted pendulum on a chart mechanical system with rod angle θ and cart position x.
Preprints 106508 g002
Figure 3. Values of θ , θ ˙ that result in E = 0 .
Figure 3. Values of θ , θ ˙ that result in E = 0 .
Preprints 106508 g003
Figure 4. Two cases when V 1 ˙ > 0 .
Figure 4. Two cases when V 1 ˙ > 0 .
Preprints 106508 g004
Figure 5. ϕ is the rod angle from the downward equilibrium.
Figure 5. ϕ is the rod angle from the downward equilibrium.
Preprints 106508 g005
Figure 6. System response using the single Lyapunov (blue) and Lyapunov switching controllers (red) when x 0 = 0 , x ˙ 0 = 0 , θ 0 = π rad , and θ ˙ 0 = 0 . (a) Type of input used. (b) Force on the cart. (c) Cart position. (d) Rod angle. Accompanying animations of the simulations are shown in Movie 1 and Movie 2.
Figure 6. System response using the single Lyapunov (blue) and Lyapunov switching controllers (red) when x 0 = 0 , x ˙ 0 = 0 , θ 0 = π rad , and θ ˙ 0 = 0 . (a) Type of input used. (b) Force on the cart. (c) Cart position. (d) Rod angle. Accompanying animations of the simulations are shown in Movie 1 and Movie 2.
Preprints 106508 g006
Figure 7. System response using the single Lyapunov (blue) and Lyapunov switching controllers (red) when x 0 = 1 m , x ˙ 0 = 0 , θ 0 = 5 rad , and θ ˙ 0 = 54 rad / s . (a) Type of input used. (b) Force on the cart. (c) Cart position. (d) Rod angle. Accompanying animations of the simulations are shown in Movie 3 and Movie 4.
Figure 7. System response using the single Lyapunov (blue) and Lyapunov switching controllers (red) when x 0 = 1 m , x ˙ 0 = 0 , θ 0 = 5 rad , and θ ˙ 0 = 54 rad / s . (a) Type of input used. (b) Force on the cart. (c) Cart position. (d) Rod angle. Accompanying animations of the simulations are shown in Movie 3 and Movie 4.
Preprints 106508 g007
Figure 8. System response using the Lyapunov switching controllers when x 0 = 1 m , x ˙ 0 = 0 , θ 0 = 2 rad , and θ ˙ 0 = 60 rad / s . (a) Type of input used. (b) Force on the cart. (c) Cart position. (d) Rod angle. An accompanying animation of the simulation is shown in Movie 5.
Figure 8. System response using the Lyapunov switching controllers when x 0 = 1 m , x ˙ 0 = 0 , θ 0 = 2 rad , and θ ˙ 0 = 60 rad / s . (a) Type of input used. (b) Force on the cart. (c) Cart position. (d) Rod angle. An accompanying animation of the simulation is shown in Movie 5.
Preprints 106508 g008
Figure 9. Flowchart explaining the possible miscellaneous controller techniques discussed in Section A and Section VI. Depending on the current system dynamics, the controller may or may not re-initialize the system. After initialization, conditional switchers determine whether or not swing-up or stabilization controllers are used. In the early phase of swing-up mode, an accelerator takes over. The output of the swing-up or stability controllers is checked and possibly converted by a bounder function which is then checked and possibly converted by an input limiter function.
Figure 9. Flowchart explaining the possible miscellaneous controller techniques discussed in Section A and Section VI. Depending on the current system dynamics, the controller may or may not re-initialize the system. After initialization, conditional switchers determine whether or not swing-up or stabilization controllers are used. In the early phase of swing-up mode, an accelerator takes over. The output of the swing-up or stability controllers is checked and possibly converted by a bounder function which is then checked and possibly converted by an input limiter function.
Preprints 106508 g009
Table 1. System Parameters.
Table 1. System Parameters.
Symbol Description Value
l rod length 0.5 m
m rod mass 0.1 kg
M cart mass 2 kg
c viscous friction coefficient of the rod joint 0.1 N · m · s
b viscous friction coefficient of the cart 0 N · s / m
I rod moment of inertia about its center of mass 0 kg · m 2
J joint moment of inertia about its center of mass 0 kg · m 2
g acceleration due to gravity 9.8 m / s 2
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.
Copyright: This open access article is published under a Creative Commons CC BY 4.0 license, which permit the free download, distribution, and reuse, provided that the author and preprint are cited in any reuse.
Prerpints.org logo

Preprints.org is a free preprint server supported by MDPI in Basel, Switzerland.

Subscribe

© 2024 MDPI (Basel, Switzerland) unless otherwise stated