Control System Homework 4
- Consider a unity feedback control system with Gc(s)=K and R(s)=0 for inverted pendulum (example 3.3) in textbook. Use Simulink to simulate the output response for different K in s-domain.
- Use ode45 to simulate the output response for different K in time-
Analyze C = [0,0,1,0],[0,0,1,1] and [0,1,1,1] and different K.
For this homework, you should additionally submit a report including your analysis. Give the reason if you cant reach the expected control goal.
EXAMPLE 3.3 Inverted pendulum control
The problem of balancing a broomstick on a persons hand is illustrated in Figure 3.18. The only equilibrium condition is 0(t) = 0 and dO(t)/dt = 0. The problem of balancing a broomstick on ones hand is not unlike the problem of controlling the attitude of a missile during the initial stages of launch. This problem is the classic and intriguing problem of the inverted pendulum mounted on a cart, as shown in Figure 3.19. The cart must be moved so that mass m is always in an upright position. The state variables must be expressed in terms of the angular rotation 0(0 and the position of the cart y(t), The differential equations describing the motion of the system can be obtained by writing the sum of the forces in the horizontal direction and the sum of the moments about the pivot point [2, 3, 10, 23], We will assume that Al >> in and the angle of rotation 0(t), is small so that the equations are linear. The sum of the forces in the horizontal direction is
h1 t)+ tt(t) = 0, (3.63)
where rs(t) equals the force on the cart, and is the distance from the mass in to the pivot point. The sum of the torques about the pivot point is
in/y(t) m120(t) ig0(t) = 0. (3.64)
The state variables for the two second-order equations arc chosen as (xi (t), x2(t), x3(0, x4(t) ) = (y(1), At), 9(t), 0(0). Then Equations (3,63) and (3.64) are written in terms of the state variables as
Mi2(t) + mii4(t) u(t) = 0 (3.65)
and
k2(t) + 114(t) gx-4t) = 0. (3.66)
To obtain the necessary first-order differential equations, we solve for Ec4(t) in Equation (3.66) and substitute into Equation (3.65) to obtain
since M >> m. Substituting haveTherefore, the four first-orderii(t)_i3(t)Thus, the system matricesA= | Mi2(t) mgx3(t).i2(t) from EquationML5c4(t) Mgx3(t)differential equations = x2(t), i2 (t) == x4(t), and x4(t)are0 1 0 00 0 mg/ Al 00 0 0 1_O 0 g /1 0_ | = u(t),(3.65) u(t) =canrng | into Equation0.be written+ 1 u(t),1 | (3.67) (3.66). we(168)as(3.69)(3.70) | |
. x3(t)= x3(t)B | |||||
miu(t).01/M01/(MO_ |
FIGURE 3.18
An inverted pendulum balanced on a persons hand by moving the hand to reduce 6 (t) . Assume, for ease, that the pendulum rotates in the xy plane.
FIGURE 3.19
A cart and an inverted pendulum. The pendulum is constrained to pivot in the vertical plane.
Reviews
There are no reviews yet.