# Robust Control Theory Based Performance Investigation Of An Inverted Pendulum System Using Simulink

Academic Paper 2020 9 Pages

## Excerpt

## Table of contents

1. Introduction

2. The Proposed Controllers Design

2.1 H∞ Mixed-Sensitivity Synthesis Method for Robust Control Loop Shaping Design of Inverted Pendulum

2.2. H∞ Loop Shaping Design Using Glover McFarlane Method Control of Inverted Pendulum

3. Result and Discussion

3.1 Simulation of the inverted pendulum without Controller

3.2 Simulation of the inverted pendulum with H∞ mixed sensitivity and H ∞ Loop shaping design using Glover McFarlane controllers using step input error voltage signal

3.3. Simulation of the inverted pendulum with H∞ mixed sensitivity and H ∞ Loop shaping design using Glover McFarlane controllers using Impulse input error voltage signal

3.4 Numerical Values of the Simulation Output

4. Conclusion

5. REFERENCES.

## Abstract:

In this paper, the performance of inverted pendulum have been Investigated using robust control theory. The robust controllers used in this paper are H∞ Loop Shaping Design Using Glover McFarlane Method and mixed H∞ Loop Shaping Controllers. The mathematical model of Inverted Pendulum, a DC motor, Cart and Cart driving mechanism have been done successfully. Comparison of an inverted pendulum with H∞ Loop Shaping Design Using Glover McFarlane Method and H∞ Loop Shaping Controllers for a control target deviation of an angle from vertical of the inverted pendulum using two input signals (step and impulse). The simulation result shows that the inverted pendulum with mixed H∞ Loop Shaping Controller to have a small rise time, settling time and percentage overshoot in the step response and having a good response in the impulse response too. Finally the inverted pendulum with mixed H∞ Loop Shaping Controller shows the best performance in the overall simulation result.

Keywords **— Inverted pendulum, H∞ Loop Shaping Design Using Glover McFarlane, mixed H∞ Loop Shaping**

## 1. Introduction

The inverted pendulum is the classical control device problem. It has a few idea like a hand as a cart and stick as a pendulum that's hand strive stability the stick. In addition, the inverted pendulum have confined movement that best can move proper and left meanwhile the hand which attempt to balance the stick has benefit can shifting upward and downward. An inverted pendulum does basically the identical issue. Just like the broom-stick, an inverted pendulum is an inherently unstable system. Force must be well implemented to hold the system intact. To achieve this, right control concept is needed.

The inverted pendulum is crucial in the evaluating and comparing of numerous control theories. The inverted pendulum (IP) is a number of the hardest systems to govern in the discipline of control engineering. Due to its significance within the area of Industrial control engineering, it's been select for very last year challenge to investigate its model and advocate a linear compensator consistent with the robust control system.

The hassle related to stabilization of Inverted Pendulum is a completely basic and benchmark problem of Control System. The design of Inverted Pendulum consists of a DC motor, Cart, Pendulum and Cart using mechanism. The nature of this machine is single input and multi output system in which Control voltage act as input and the output of the system are cart role and angle. Here we must stabilize the pendulum angle to Inverted role that is a challenging paintings to do as the Inverted position is an enormously unstable equilibrium. The most important characteristics of the device are Highly Unstable as we ought to stabilize the pendulum attitude to Inverted function, it's miles an exceedingly nonlinear system as because the dynamics of inverted pendulum is composed non-linear terms, as the system have a pole on its proper hand it's miles a non-minimum phase system and the system is also underneath actuated due to the fact the system have simplest one actuator (the DC Motor) and two degree of freedom.

## 2. Mathematical model of the inverted pendulum

The free body diagram of the inverted pendulum is shown in Figure 1 below.

Abbildung in dieser Leseprobe nicht enthalten

Figure 1: Free body diagrams of the inverted pendulum system.

Summing the forces in the free body diagram of the cart in the horizontal direction, you get the following equation of motion:

Abbildung in dieser Leseprobe nicht enthalten

The force exerted in the horizontal direction due to the moment on the pendulum is determined as follows:

Abbildung in dieser Leseprobe nicht enthalten

Component of this force in the direction of Q is

The component of the centripetal force acting along the horizontal axis is as follows:

Abbildung in dieser Leseprobe nicht enthalten

Component of this force in the direction of Q is

Summing the forces in the Free Body Diagram of the pendulum in the horizontal direction, you can get an equation for Q:

Abbildung in dieser Leseprobe nicht enthalten

If you substitute this equation 2 into the first equation 1, you get the first equation of motion for this system:

To get the second equation of motion, sum the forces perpendicular to the pendulum. This axis is chosen to simplify mathematical complexity. Solving the system along this axis ends up saving you a lot of algebra. Just as the previous equation is obtained, the vertical components of those forces are considered here to get the following equation:

Abbildung in dieser Leseprobe nicht enthalten

To get rid of the P and N terms in the equation above, sum the moments around the centroid of the pendulum to get the following equation:

Abbildung in dieser Leseprobe nicht enthalten

Combining these last two equations, you get the second dynamic equation:

Abbildung in dieser Leseprobe nicht enthalten

The set of equations completely defining the dynamics of the inverted pendulum are:

Abbildung in dieser Leseprobe nicht enthalten

These two equations are non-linear and need to be linearized for the operating range. Since the pendulum is being stabilized at an unstable equilibrium position, which is ‘Pi’ radians from the stable equilibrium position, this set of equations should be linearized about theta = Pi. Assume that theta = Pi + ø, (where ø represents a small angle from the vertical upward direction). Therefore, cos (theta) = -1, sin (theta) = -ø, and (d (theta)/dt) ^2 = 0.

After linearization the two equations of motion become (where u represents the input):

Abbildung in dieser Leseprobe nicht enthalten

The transfer function of Inverted Pendulum, a DC motor, Cart and Cart driving system will be

Abbildung in dieser Leseprobe nicht enthalten

Where E (s) = Error Voltage, and = Angular Position of the Pendulum.

The parameters of the system is shown in Table 1 below

Table 1 Parameters of the inverted pendulum

Abbildung in dieser Leseprobe nicht enthalten

## 3. The Proposed Controllers Design

### 3.1 H∞ Mixed-Sensitivity Synthesis Method for Robust Control Loop Shaping Design of Inverted Pendulum

Mixed sensitivity (MS) control is a routine named as such due to the transfer function shaping methods used. The MS control routine aims to find a controller that gives the desired closed-loop sensitivity transfer functions S, R, and T which is given by

Abbildung in dieser Leseprobe nicht enthalten

Figure 2 shows the relevant inverted pendulum system control architecture with H∞ mixed sensitivity controller

Abbildung in dieser Leseprobe nicht enthalten

Figure 2 The inverted pendulum with H∞ mixed sensitivity controller

The S and T are called the sensitivity and complementary sensitivity, respectively. R measures the control effort. The returned controller K is such that S, R, and T satisfy the following loop-shaping inequalities:

Abbildung in dieser Leseprobe nicht enthalten

Where γ = GAM. Thus, the inverses of W 1 and W 3 determine the shapes of sensitivity S and complementary sensitivity T. Typically, you choose a W 1 that is large inside the desired control bandwidth to achieve good disturbance attenuation (i.e., performance). Similarly, you typically choose a W 3 that is large outside the control bandwidth, which helps to ensure good stability margin.

Here in this system we choose the three weighting functions W1, W2 and W3 as

Abbildung in dieser Leseprobe nicht enthalten

### 3.2 H∞ Loop Shaping Design Using Glover McFarlane Method Control of Inverted Pendulum

The multivariable systems is difficult not only because multi-input and multi-output (MIMO) are involved but also due to the failure of phase information in MIMO argument that makes it impossible to predict the steadfastness of the closed-loop system formed by the unity feedback. However, based on the robust stabilization against perturbations on normalized coprime factorizations, a formatting method, known as the H ∞ loop-shaping design using Glover-McFarlane method has been developed. The H ∞ loop-shaping design agency augments the plant with appropriately chosen weights so that the frequency feedback of the open-loop system (the weighted plant) is reshaped in order to meet the closed-loop attainment requirements. Then a robust controller is synthesized to meet the stability. The block diagram of the inverted pendulum system with H ∞ Loop shaping design using Glover McFarlane controller is shown in Figure 3 bellow.

Abbildung in dieser Leseprobe nicht enthalten

Figure 3 Block diagram of the inverted pendulum system with H ∞ Loop shaping design using Glover McFarlane controller We choose a pre compensator, W1 and a post compensator, W2 transfer functions as

Abbildung in dieser Leseprobe nicht enthalten

## 4. Result and Discussion

Here in this section, the comparison of the inverted pendulum with H∞ mixed sensitivity and H ∞ Loop shaping design using Glover McFarlane controllers using the error voltage input step and impulse have been done.

### 4.1 Simulation of the inverted pendulum without Controller

The Simulink model and the angle from the vertical output for a step and impulse error voltage input is shown in Figure 4, Figure 5 and Figure 6 respectively.

Abbildung in dieser Leseprobe nicht enthalten

Figure 4 Simulink model of inverted pendulum without controller

Abbildung in dieser Leseprobe nicht enthalten

Figure 5 Step response of inverted pendulum without controller

Abbildung in dieser Leseprobe nicht enthalten

Figure 6 Impulse response of inverted pendulum without controller

### 4.2 Simulation of the inverted pendulum with H∞ mixed sensitivity and H ∞ Loop shaping design using Glover McFarlane controllers using step input error voltage signal

The Simulink model of the inverted pendulum with H∞ mixed sensitivity and H ∞ Loop shaping design using Glover McFarlane controllers using step input error voltage signal is shown in Figure 7 below.

Abbildung in dieser Leseprobe nicht enthalten

Figure 7 Simulink model of the proposed controllers for step input signal

The simulation output of the angle from the vertical for a step error voltage input signal of the inverted pendulum with H∞ mixed sensitivity and H ∞ Loop shaping design using Glover McFarlane controllers is shown in Figure 8 below.

**[...]**