SlideShare a Scribd company logo
Homework 10 MAE4310 Due April 28, 2015
This assignment is help you prepare for exam 3. You are not allowed to work or talk with
other students but can consult with Professor Hullender as much as needed.
Name_____Michael Clifford Davis_
The center-of-pressure on high performance aircraft is in front of the center-of-gravity; such an
aerodynamic design causes the pitch dynamics of the aircraft to be unstable if there is no
feedback control.
For a specific aircraft a simplified transfer function for the pitch angle 𝜃 for an elevator input
angle ∅ is provided below.
𝜃 = [
0.05
𝑠2 − 4
]∅
(a) From examination of the transfer function relating 𝜃 to ∅, explain why it is obvious that
the pitch dynamics for this aircraft are unstable if there is no feedback control loop to
stabilize the pitch angle.
If you factor the denominator you see that you have a positive Eigen value which would mean
the system is unstable.
(b) The control signal u is the input to a hydraulic actuator which adjusts the angular position
of the elevator ∅, i.e.
∅ = 5 𝑢
where 𝑈( 𝑠) = 𝐺𝑐( 𝑠) 𝐸( 𝑠); E is the pitch angle error.
Design a cascade controller achieving a NSSE of zero for a desired pitch angle step input
of 10 degrees. The step response should reach steady state within 1% in no more than 1
second and with no more that 10% overshoot. Simulate the time response of your system
and plot pitch angle and elevator angle.
0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5
0
2
4
6
8
10
12
14
pitchangledegrees
time, seconds
Homew ork 10 problem1(b)
Using your controller, repeat the simulation but this time for the case where the pilot wants to
maintain level flight (step input of zero) but wind turbulence has created an initial pitch rate of
10 degrees/second. How effective is your controller at bringing the pitch angle and pitch angle
rate back to zero?
0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0.045 0.05
-0.5
0
0.5
1
1.5
2
2.5
x 10
6
Homework 10 problem 1(b)
time, seconds
elevatorangledegrees
0 0.5 1 1.5 2 2.5
-0.3
-0.2
-0.1
0
0.1
0.2
0.3
0.4
0.5
0.6
Homework 10 problem 1(b)
pitchangledegrees
time, seconds
0 0.5 1 1.5 2 2.5
-4
-2
0
2
4
6
8
10
time, seconds
pitchanglerate/tdegrees/second
Homework 10 problem 1(b)
The values for the system response for pitch angle and pitch angle rate under this
disturbance are within the error requirements for the required setting time.
Design an operational amplifier circuit for implementing your controller (see page 504 in Nise).
Using excel solver for the non linear system of equations I was able to obtain values for
the resistors and capacitors for a PID controller with the given PID gains from the
developed controller and guessing at one of the unknown variables. I chose to give the
C2 capacitor a value of .1 microFarads and then proceeded:
𝐾𝑃 = 307.3033 = (
𝑅2
𝑅1
+
𝐶1
𝐶2
)
𝐾 𝐷 = 43.28215 = 𝑅2 𝐶1
𝐾𝐼 = 454.463 =
1
𝑅1 𝐶2
R1 = 22 kohms
R2 = 2 Mohms
C1 = 21.6 microFarad
C2 = 0.1 microFarad
Design digital code for implementing your controller (see Section 6.6 in the notebook).
Be sure to specify the sample rate by calculating an appropriate value for T.
Code:
%Digital PID control example
%Gc(s)=Kp+Ki/s+Kds
%Gc(z)=Kp-TKi/(z^-1 -1)-Kd(z^-1 -1)/T
Kp=307.3033;Ki=454.463;Kd=43.28215;
Gc=tf([Kd Kp Ki],[1 0 0])%extra s in denominator to be cancelled with extra s
in num of G
G=tf([0.05*5 0],[1 0 -4]);%extra s in the numerator of G
GGc=series(G,Gc)
GGc1=minreal(GGc)%Cancels the extra s in the num and denominator
GGcCL=feedback(GGc,1);
damp(GGcCL)%gives eigenvalues of the analog system
step(GGcCL,'r')%gives step response of the analog system
hold
T=0.01;
Gcd = c2d(Gc,T)
Gcd = zpk(Gcd)
Results:
g =
0.25 s
-------
s^2 - 4
Continuous-time transfer function.
G =
0.25 s
-----------
(s-2) (s+2)
Continuous-time zero/pole/gain model.
Gc =
43.28 s^2 + 307.3 s + 454.5
---------------------------
s^2
Continuous-time transfer function.
GGc =
10.82 s^3 + 76.83 s^2 + 113.6 s
-------------------------------
s^4 - 4 s^2
Continuous-time transfer function.
GGc1 =
10.82 s^2 + 76.83 s + 113.6
---------------------------
s^3 - 8.882e-16 s^2 - 4 s
Continuous-time transfer function.
Eigenvalue Damping Frequency
0.00e+00 -1.00e+00 0.00e+00
-2.08e+00 1.00e+00 2.08e+00
-4.37e+00 + 5.96e+00i 5.91e-01 7.39e+00
-4.37e+00 - 5.96e+00i 5.91e-01 7.39e+00
(Frequencies expressed in rad/seconds)
Current plot held
Gcd =
43.28 z^2 - 83.47 z + 40.23
---------------------------
z^2 - 2 z + 1
Sample time: 0.01 seconds
Discrete-time transfer function.
Gcd =
43.282 (z-0.9794) (z-0.9491)
----------------------------
(z-1)^2
Sample time: 0.01 seconds
Discrete-time zero/pole/gain model.
𝑇 =
1
10𝑀
∶ 𝑤ℎ𝑒𝑟𝑒 𝑀 𝑖𝑠 𝑡ℎ𝑒 𝑙𝑎𝑟𝑔𝑒𝑠𝑡 𝑚𝑎𝑔𝑛𝑖𝑡𝑢𝑑𝑒 𝑒𝑖𝑔𝑒𝑛 𝑣𝑎𝑙𝑢𝑒
𝑇 =
1
10 × 7.49
= 0.01353 ∶ 𝑤𝑖𝑙𝑙 𝑢𝑠𝑒 𝑇 = 0.01
Since we addeded an extra “s” to the controller for matlab I will manually solve the digital code
buy using the simplified function given in the handbook from section 6.6.3(Digital
Implementation of a PID controller) with known T and Kp, Ki and Kd:
𝑢 𝑘 = 𝑢 𝑘−1 + (𝐾 𝑝 + 𝑇𝐾𝑖 + 𝐾 𝑑 / ) 𝑒 𝑘 − (𝐾 𝑝 + 2𝐾 𝑑/ 𝑇 ) 𝑒 𝑘−1 + 𝐾 𝑑 / 𝑇 𝑒 𝑘−2
𝑢 𝑘 = 𝑢 𝑘−1 + ( 4640.063) 𝑒 𝑘 − (8963.734) 𝑒 𝑘−1 + (4328.215)𝑒 𝑘−2

More Related Content

PDF
Kaplan Turbine - Design and Numerical
PDF
Francis Turbine
PDF
Specific Speed of Turbine | Fluid Mechanics
PDF
Minimum phase, All pass and Magnitude Squared Function
DOCX
PDF
Filter Designing
PDF
Pelton Wheel Turbine Part 2
PDF
Phase Responce of Pole zero
Kaplan Turbine - Design and Numerical
Francis Turbine
Specific Speed of Turbine | Fluid Mechanics
Minimum phase, All pass and Magnitude Squared Function
Filter Designing
Pelton Wheel Turbine Part 2
Phase Responce of Pole zero

What's hot (19)

PDF
EES for Thermodynamics
DOCX
Assignment 101
PDF
EE201_Assignment2
PDF
Unit Quantities of Turbine | Fluid Mechanics
PDF
Control tutorials for matlab and simulink introduction pid controller desig...
PDF
Functions/Inequalities
PPTX
Lecture 23 loop transfer function
PPT
Cobb-douglas production function
PPT
Algorithm.ppt
PPTX
SUEC 高中 Adv Maths (Trigo Function Part 2)
DOCX
Cpp programs
PDF
To designing counters using verilog code
PPT
Lead-lag controller
PPT
Chap11alg
PPT
Control system concepts by using matlab
DOCX
control system
PPTX
Automata theory - NFA ε to DFA Conversion
PDF
Servo Fundamentals
PPTX
Automata theory -Conversion of ε nfa to nfa
EES for Thermodynamics
Assignment 101
EE201_Assignment2
Unit Quantities of Turbine | Fluid Mechanics
Control tutorials for matlab and simulink introduction pid controller desig...
Functions/Inequalities
Lecture 23 loop transfer function
Cobb-douglas production function
Algorithm.ppt
SUEC 高中 Adv Maths (Trigo Function Part 2)
Cpp programs
To designing counters using verilog code
Lead-lag controller
Chap11alg
Control system concepts by using matlab
control system
Automata theory - NFA ε to DFA Conversion
Servo Fundamentals
Automata theory -Conversion of ε nfa to nfa
Ad

Viewers also liked (16)

DOCX
Basel III - Implications of Implementation
PDF
Классификация логотипов
DOCX
cv..eg -
PDF
White Genocide In South Africa - Here Are The Names
PDF
White Genocide In South Africa - Here Are The Names
PDF
051 - Searching for the Ifaupan River - A Remote e-xploration of Pulau Misool...
PDF
How To Choose Perfect Hair Color ?
PDF
biografia
DOCX
Balancing the Distribution of Income: Factors Affecting Decision Making with ...
PDF
Taraweeh Fatwa
PDF
Внедрение Bitrix24 для бизнеса
PPTX
Spring Data and In-Memory Data Management in Action
PDF
deloitte-uk-cf-aldt-q1-2016
DOC
Adhir Kumar Shukla Resume.
PDF
Увеличение личных продаж от 3 раз и выше
PDF
TrainingCoursesfullpage5_7_15
Basel III - Implications of Implementation
Классификация логотипов
cv..eg -
White Genocide In South Africa - Here Are The Names
White Genocide In South Africa - Here Are The Names
051 - Searching for the Ifaupan River - A Remote e-xploration of Pulau Misool...
How To Choose Perfect Hair Color ?
biografia
Balancing the Distribution of Income: Factors Affecting Decision Making with ...
Taraweeh Fatwa
Внедрение Bitrix24 для бизнеса
Spring Data and In-Memory Data Management in Action
deloitte-uk-cf-aldt-q1-2016
Adhir Kumar Shukla Resume.
Увеличение личных продаж от 3 раз и выше
TrainingCoursesfullpage5_7_15
Ad

Similar to AutoControls using Matlab and Simulink (20)

DOCX
AIRCRAFT PITCH EECE 682 Computer Control Of Dynamic.docx
PPT
DC servo motor
DOCX
Control Systems Lab 2
PDF
Pid En Un Pic16 F684
PDF
Pid En Un Pic16 F684
PPTX
Aifcraft pitch
PPTX
PID Control system for Dummies
PDF
Vibration Isolation of a LEGO® plate
PPTX
Lecture Notes: EEEC4340318 Instrumentation and Control Systems - Fundamental...
PPT
Modelling Simulation and Control of a Real System
PDF
Optimal and pid controller for controlling camera’s position in unmanned aeri...
PDF
Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...
PDF
Dorf&bishop modrn contrlsystms_12th_solman
PPTX
Design of Control Systems.pptx jhllllllllllllll
PDF
Implementation Of Flight Control System Based ON KF AND PID CONTROL
PDF
Generalized Dynamic Inversion for Multiaxial Nonlinear Flight Control
DOCX
final report updated
PDF
Synthesis of feedback controls using optimization theory
PDF
PDF
Sjhddhdjdkdkkdkdkfjdjdksksnsnsh hdhd.pdf
AIRCRAFT PITCH EECE 682 Computer Control Of Dynamic.docx
DC servo motor
Control Systems Lab 2
Pid En Un Pic16 F684
Pid En Un Pic16 F684
Aifcraft pitch
PID Control system for Dummies
Vibration Isolation of a LEGO® plate
Lecture Notes: EEEC4340318 Instrumentation and Control Systems - Fundamental...
Modelling Simulation and Control of a Real System
Optimal and pid controller for controlling camera’s position in unmanned aeri...
Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...
Dorf&bishop modrn contrlsystms_12th_solman
Design of Control Systems.pptx jhllllllllllllll
Implementation Of Flight Control System Based ON KF AND PID CONTROL
Generalized Dynamic Inversion for Multiaxial Nonlinear Flight Control
final report updated
Synthesis of feedback controls using optimization theory
Sjhddhdjdkdkkdkdkfjdjdksksnsnsh hdhd.pdf

AutoControls using Matlab and Simulink

  • 1. Homework 10 MAE4310 Due April 28, 2015 This assignment is help you prepare for exam 3. You are not allowed to work or talk with other students but can consult with Professor Hullender as much as needed. Name_____Michael Clifford Davis_ The center-of-pressure on high performance aircraft is in front of the center-of-gravity; such an aerodynamic design causes the pitch dynamics of the aircraft to be unstable if there is no feedback control. For a specific aircraft a simplified transfer function for the pitch angle 𝜃 for an elevator input angle ∅ is provided below. 𝜃 = [ 0.05 𝑠2 − 4 ]∅ (a) From examination of the transfer function relating 𝜃 to ∅, explain why it is obvious that the pitch dynamics for this aircraft are unstable if there is no feedback control loop to stabilize the pitch angle. If you factor the denominator you see that you have a positive Eigen value which would mean the system is unstable.
  • 2. (b) The control signal u is the input to a hydraulic actuator which adjusts the angular position of the elevator ∅, i.e. ∅ = 5 𝑢 where 𝑈( 𝑠) = 𝐺𝑐( 𝑠) 𝐸( 𝑠); E is the pitch angle error. Design a cascade controller achieving a NSSE of zero for a desired pitch angle step input of 10 degrees. The step response should reach steady state within 1% in no more than 1 second and with no more that 10% overshoot. Simulate the time response of your system and plot pitch angle and elevator angle.
  • 3. 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 0 2 4 6 8 10 12 14 pitchangledegrees time, seconds Homew ork 10 problem1(b)
  • 4. Using your controller, repeat the simulation but this time for the case where the pilot wants to maintain level flight (step input of zero) but wind turbulence has created an initial pitch rate of 10 degrees/second. How effective is your controller at bringing the pitch angle and pitch angle rate back to zero? 0 0.005 0.01 0.015 0.02 0.025 0.03 0.035 0.04 0.045 0.05 -0.5 0 0.5 1 1.5 2 2.5 x 10 6 Homework 10 problem 1(b) time, seconds elevatorangledegrees
  • 5. 0 0.5 1 1.5 2 2.5 -0.3 -0.2 -0.1 0 0.1 0.2 0.3 0.4 0.5 0.6 Homework 10 problem 1(b) pitchangledegrees time, seconds 0 0.5 1 1.5 2 2.5 -4 -2 0 2 4 6 8 10 time, seconds pitchanglerate/tdegrees/second Homework 10 problem 1(b)
  • 6. The values for the system response for pitch angle and pitch angle rate under this disturbance are within the error requirements for the required setting time. Design an operational amplifier circuit for implementing your controller (see page 504 in Nise). Using excel solver for the non linear system of equations I was able to obtain values for the resistors and capacitors for a PID controller with the given PID gains from the developed controller and guessing at one of the unknown variables. I chose to give the C2 capacitor a value of .1 microFarads and then proceeded: 𝐾𝑃 = 307.3033 = ( 𝑅2 𝑅1 + 𝐶1 𝐶2 ) 𝐾 𝐷 = 43.28215 = 𝑅2 𝐶1 𝐾𝐼 = 454.463 = 1 𝑅1 𝐶2 R1 = 22 kohms R2 = 2 Mohms C1 = 21.6 microFarad C2 = 0.1 microFarad
  • 7. Design digital code for implementing your controller (see Section 6.6 in the notebook). Be sure to specify the sample rate by calculating an appropriate value for T. Code: %Digital PID control example %Gc(s)=Kp+Ki/s+Kds %Gc(z)=Kp-TKi/(z^-1 -1)-Kd(z^-1 -1)/T Kp=307.3033;Ki=454.463;Kd=43.28215; Gc=tf([Kd Kp Ki],[1 0 0])%extra s in denominator to be cancelled with extra s in num of G G=tf([0.05*5 0],[1 0 -4]);%extra s in the numerator of G GGc=series(G,Gc) GGc1=minreal(GGc)%Cancels the extra s in the num and denominator GGcCL=feedback(GGc,1); damp(GGcCL)%gives eigenvalues of the analog system step(GGcCL,'r')%gives step response of the analog system hold T=0.01; Gcd = c2d(Gc,T) Gcd = zpk(Gcd) Results: g = 0.25 s ------- s^2 - 4 Continuous-time transfer function. G = 0.25 s ----------- (s-2) (s+2) Continuous-time zero/pole/gain model. Gc = 43.28 s^2 + 307.3 s + 454.5 --------------------------- s^2
  • 8. Continuous-time transfer function. GGc = 10.82 s^3 + 76.83 s^2 + 113.6 s ------------------------------- s^4 - 4 s^2 Continuous-time transfer function. GGc1 = 10.82 s^2 + 76.83 s + 113.6 --------------------------- s^3 - 8.882e-16 s^2 - 4 s Continuous-time transfer function. Eigenvalue Damping Frequency 0.00e+00 -1.00e+00 0.00e+00 -2.08e+00 1.00e+00 2.08e+00 -4.37e+00 + 5.96e+00i 5.91e-01 7.39e+00 -4.37e+00 - 5.96e+00i 5.91e-01 7.39e+00 (Frequencies expressed in rad/seconds) Current plot held Gcd = 43.28 z^2 - 83.47 z + 40.23 --------------------------- z^2 - 2 z + 1 Sample time: 0.01 seconds
  • 9. Discrete-time transfer function. Gcd = 43.282 (z-0.9794) (z-0.9491) ---------------------------- (z-1)^2 Sample time: 0.01 seconds Discrete-time zero/pole/gain model. 𝑇 = 1 10𝑀 ∶ 𝑤ℎ𝑒𝑟𝑒 𝑀 𝑖𝑠 𝑡ℎ𝑒 𝑙𝑎𝑟𝑔𝑒𝑠𝑡 𝑚𝑎𝑔𝑛𝑖𝑡𝑢𝑑𝑒 𝑒𝑖𝑔𝑒𝑛 𝑣𝑎𝑙𝑢𝑒 𝑇 = 1 10 × 7.49 = 0.01353 ∶ 𝑤𝑖𝑙𝑙 𝑢𝑠𝑒 𝑇 = 0.01 Since we addeded an extra “s” to the controller for matlab I will manually solve the digital code buy using the simplified function given in the handbook from section 6.6.3(Digital Implementation of a PID controller) with known T and Kp, Ki and Kd: 𝑢 𝑘 = 𝑢 𝑘−1 + (𝐾 𝑝 + 𝑇𝐾𝑖 + 𝐾 𝑑 / ) 𝑒 𝑘 − (𝐾 𝑝 + 2𝐾 𝑑/ 𝑇 ) 𝑒 𝑘−1 + 𝐾 𝑑 / 𝑇 𝑒 𝑘−2 𝑢 𝑘 = 𝑢 𝑘−1 + ( 4640.063) 𝑒 𝑘 − (8963.734) 𝑒 𝑘−1 + (4328.215)𝑒 𝑘−2