Question 1. Consider the dynamical system of Fig. 1, in which x1 and x2 represent the vertical displacements of masses m1 and m2 with respect to the ground, respectively. Let you denote the external force applied to mass mi. Assume that m1 = 10 (kg) m2 = 0.1 (kg), and k1 = k2 = 10 (N/m).
Remark: Do not consider the gravity terms.
(a) Present a state-space equation for the dynamical system in Fig.1.
(b) Using MATLAB/Simulink, plot the system response for a step input with the magnitude 0.1 (N), and initial conditions x1(0) = 0.1 (m), x2(0) = -0.1 (m), x.1(0) = x.2(0) = 0 (m/s) over the time interval [0, 10](s).
(c) Obtain the transfer functions x1(s)/u(s) and x2(s)/u(s). Compute the zeros and poles of these transfer functions.
![1761_Mechanical system.jpg](https://secure.tutorsglobe.com/CMSImages/1761_Mechanical%20system.jpg)
Figure 1: Mechanical system of Problem.
Question 2.
Design of a PID Controller for the Ball and Beam System
Physical Setup: A ball is placed on a beam, see figure below, where it is allowed to roll with 1 degree of freedom along the length of the beam. A lever arm is attached to the beam at one end and a servo gear at the other. As the servo gear turns by an angle θ, the lever changes the angle of the beam by α. When the angle is changed from the horizontal position, gravity causes the ball to roll along the beam. A controller will be designed for this system so that the ball's position can be manipulated.
![1505_Mechanical system1.jpg](https://secure.tutorsglobe.com/CMSImages/1505_Mechanical%20system1.jpg)
Figure 3: Ball and beam system in Problem.
System Parameters: For this problem, we will assume that the ball rolls without slipping and friction between the beam and ball is negligible. The constants and variables for this problem are defined as follows:
(m) mass of the ball =0.11 (kg)
(R) radius of the ball =0.015 (in)
(d) lever arm offset =0.03 (m)
(g) gravitational acceleration =9.8 (m/s2)
(L) length of the beam =1.0 (m)
(I) ball's moment of inertia =9.99x 10-6 (kg.m2)
(r) ball position coordinate
(α) beam angle coordinate
(θ) servo gear angle
System Equations: The second derivative of the input angle a actually affects the second derivative of r. However, we will ignore this contribution. The Lagrangian equation of motion for the ball is then given by the following:
0 = (J/R2 + m)r¨ + mgsinα - mrα·2 (3)
Linearization of this equation about the beam angle, a = 0, gives us the following linear approxi-mation of the system:
(J/R2 +m)r¨ = -mgα (4)
The equation which relates the beam angle to the angle of the gear can be approximated as linear by the equation below:
α = d/L.θ
Substituting this into the previous equation, we get:
(J/R2 + m)r¨ = -mg(d/L)θ
By taking the Laplace transform of the equation (6), obtain the transfer function of the open-loop system, defined as,
G(s) := r(s)/θ(s)
Here, the servo gear angle θ is assumed to be the control input for the open-loop system.
- Design a unity closed-loop control system with the desired input rd (i.e., desired ball position ) and the actual output r (i.e., actual ball position) using a PID controller to achieve the following requirements:
(1) Settling time < 3 seconds, and
(2) Overshoot < 5%.
- Using MATLAB/Simulink, simulate the linear closed-loop system's response for a step input 0.1 (m) in the presence of a step-like external disturbance with the magnitude 5Π/180 (rad) over the time interval [0,10] (s).
- Using final value theorem, compute the final value of the closed-loop output, i.e., limt→∞,r(t), for a ramp input in the absence of the external disturbance. Repeat this computation for an acceleration input. Check your results with MATLAB/Simulink.
Question 3. Design of a PID Controller for an Aircraft Pitch System
Physical Setup: The equations governing the motion of an aircraft are a very complicated set of six nonlinear coupled differential equations. However, under certain assumptions, they can be decoupled and linearized into longitudinal and lateral equations. Aircraft pitch is governed by the longitudinal dynamics. In this problem, we will design an autopilot that controls the pitch of an aircraft.
The basic coordinate axes and forces acting on an aircraft are shown in the figure given below.
![1620_Mechanical system2.png](https://secure.tutorsglobe.com/CMSImages/1620_Mechanical%20system2.png)
Figure 4: System to be controlled.
We will assume that. the aircraft is in steady-cruise at constant altitude and velocity; thus, the thrust, drag, weight and lift forces balance each other in the x- and y-directions. We will also assume that a, change in pitch angle will not change the speed of the aircraft under any circumstance (unrealistic but simplifies the problem a. bit). Under these assumptions, the longitudinal equations of motion for the aircraft can be written as follows:
α· = -0.313α + 56.7q + 0.232δ (7)
q· = -0.0139α - 0.426q + 0.0203δ (8)
θ· = 56.7q. (9)
For this system, the input will be the elevator deflection angle 6 and the output will be the pitch an¬gle 0 of the aircraft. The numerical values are taken from the data from one of Boeing's commercial aircraft.
- By taking the Laplace transform of the above equations, obtain the transfer function of the open-loop system, defined as, 0(s)
G(s) := θ(s)/δ(s)
- Design a unity closed-loop control system with the desired input θd (i.e., desired pitch position ) and the actual output 0 (i.e., actual pitch position) using a PID controller to achieve the following requirements:
(1) Settling time < 10 seconds, and
(2) Overshoot < 10%.
- Using MATLAB/Simulink, simulate the closed-loop system's response for a step input 0.1 (rad) in the presence of a step-like external disturbance with the magnitude 6Π/180 over the time interval [0, 20] (s).
- Using final value theorem, compute the final value of the closed-loop output, i.e., limt→∞,θ(t), for a ramp input in the absence of the external disturbance. Check your results with MATLAB/Simulink.