Control System Homework4 Solved

30.00 $

Category:

Description

5/5 - (1 vote)

Control System Homework 4

  1. 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.
  2. 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 can’t reach the expected control goal.

EXAMPLE 3.3 Inverted pendulum control

The problem of balancing a broomstick on a person’s hand is illustrated in Figure 3.18. The only equilibrium condition is 0(t) = 0 and dO(t)/dt = 0. The problem of balanc­ing a broomstick on one’s 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 intrigu­ing 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 have

Therefore, the four first-order

ii(t)

_i3(t)

Thus, the system matrices

A=

Mi2(t)             mgx3(t)

.i2(t) from Equation

ML5c4(t) — Mgx3(t)

differential equations = x2(t),          i2 (t) =

= x4(t),     and    x4(t)
are

0       1         0            0

0       0      –mg/ Al      0

0       0         0            1

_O     0         g /1          0_

= u(t),

(3.65) u(t) =

can

rng

into Equation

0.

be written

+ 1 —u(t),
1

(3.67) (3.66). we

(168)

as

(3.69)

(3.70) â– 

.

—      x3(t)

=       x3(t)

B

— —miu(t).

0
1/M

0
–1/(MO_

 

 

FIGURE 3.18

An inverted pendulum balanced on a person’s hand by moving the hand to reduce 6 (t) . Assume, for ease, that the pendulum rotates in the x—y plane.

FIGURE 3.19

A cart and an in­verted pendulum. The pendulum is constrained to pivot in the vertical plane.

  • HW4-kj4awk.zip