Professional Documents
Culture Documents
net/publication/366177309
CITATIONS READS
0 9
9 authors, including:
Some of the authors of this publication are also working on these related projects:
All content following this page was uploaded by Taha Mahmood on 10 December 2022.
Members:
Taha Mahmood 2017472
Talha Bin Asad 2017473
Ubaid Ullah 2017480
Ume Aimed 2017481
Wajid Ali Khan 2017498
Zabidullah 2017504
Zia Ullah 2017515
Saad Ahmed Toor 2017905
Saad Hassan Khera 2017906
Submitted to: Sir S.M Ahmed
Abstract
The present study deals with modeling and pitch control of one degree of freedom tail plane from
the experimental provided data and to create a feedback loop system using controller that
satisfied basic performance criteria such as stability, reference tracking, disturbance rejection,
fast response and robustness. The lab model on which the case study is going on is dealing with a
2 degrees of freedom tail plane that shows either pitching or yawing motion. In the current study,
pitch control of the tailplane is examined which will done by movement of the elevator that is
attached to a servo motor. To vary the pitching motion of the tail-plane mathematical modeling
and designing of a controller is done along simulation on MATLAB and Simulink. With the help
of the provided data, a transfer function was created which was simulated in an open loop in
Simulink. The result i.e., yaw angle had a steady state error, which is usually the case with open
loop systems because the modeling is not a completely accurate representation of the real
physical system. In order to bring the resulting value to the reference (desired) value, a close
loop feedback system was employed using a PID controller. The use of PID controller in the
close loop response gives the most accurate result by minimizing the response time, overshoot
and steady state error and overcome the shortcoming of open loop response
CONTENTS
List Of Figures .............................................................................................................................................. 4
List Of Tables ............................................................................................................................................... 4
1 Introduction ........................................................................................................................................... 5
2 Literature Review.................................................................................................................................. 6
3 Problem Statement ................................................................................................................................ 7
4 Objectives ............................................................................................................................................. 7
5 Mathematical Model ............................................................................................................................. 7
5.1 Steady state error: ......................................................................................................................... 8
5.2 Transfer Function .......................................................................................................................... 9
5.3 Steady State Error ....................................................................................................................... 11
5.4 SIMULINK Model...................................................................................................................... 12
6 PID Tuning Rules ............................................................................................................................... 12
6.1 Ziegler Nichols method:.............................................................................................................. 14
6.2 Root Locus .................................................................................................................................. 17
7 Results ................................................................................................................................................. 24
8 Discussion ........................................................................................................................................... 25
9 Conclusion .......................................................................................................................................... 25
10 References ....................................................................................................................................... 27
11 Appendix ......................................................................................................................................... 28
LIST OF FIGURES
Figure 1: Aircraft motion in 6 axes ............................................................................................................... 5
Figure 2: Experiment response graph ........................................................................................................... 9
Figure 3: Step Response of second order system ........................................................................................ 11
Figure 4: SIMULINK Model of Closed Loop Response ............................................................................ 12
Figure 5: Result of change in Pi .................................................................................................................. 12
Figure 6: Graphical representation of effect of integral parameter ............................................................. 13
Figure 7: Effect of change in integral parameter ........................................................................................ 13
Figure 8: Result of the derivative parameter ............................................................................................... 14
Figure 9: Ultimate Gain Method Rules ....................................................................................................... 16
Figure 10: System Response at Kp = 20000 ............................................................................................... 16
Figure 11: Root Locus of Iteration #1......................................................................................................... 18
Figure 12: System Response of Iteration #1 ............................................................................................... 19
Figure 13: Root Locus Plot of Iteration #2 ................................................................................................. 20
Figure 14: System Response of Iteration #2 ............................................................................................... 21
Figure 15: Root Locus of Final Iteration .................................................................................................... 22
Figure 16: System Response of Final Iteration ........................................................................................... 23
Figure 17: Response comparison ................................................................................................................ 24
Figure 18: Response Comparison ............................................................................................................... 26
LIST OF TABLES
Table 1: Parameters involved in Mathematical Model ................................................................................. 8
Table 2: Response characteristics comparison............................................................................................ 24
1 INTRODUCTION
This complex engineering problem deals with modelling and pitch control of one degree of
freedom tail plane. Degrees of freedom represents the number of independent planes in which an
object can freely move. For an ordinary aircraft there are a total of 6 degrees of freedom. However,
In this complex engineering problem with a lab-based model of a tail-plane. A tail-plane is a plane
that changes its direction of flight by changing angle of its tail. This is done by movement of either
the rudder or elevator. The lab model we are dealing with is a 2 degrees of freedom tail plane that
shows either pitching or yawing motion.
Aircraft aerodynamic modelling is an imprecise technique based on physics principles, empirical
models and machine identification (SI), and flight and wind tunnel measurement facts. However,
experimental methods are still the preferred method for calculating financial derivatives
management. So obviously, some of these methods are often banned when simulating flying cars.
However, in practice, one or a combination of these technologies will be used and been accepted.
One possible way is to use SI, an experimental technique that has proven to be an excellent tool
for developing complex strategies, in which case it is impossible to obtain perceivable fashion. As
the capacity increases, creating a mathematical version from the first standard becomes an arduous
task. Therefore, more and more researchers are applying SI strategies to accumulate dynamic
fashion on UAVs.
Using SI can also be expected to describe the aerodynamic balance and derivation of the tail rotor
dynamics. However, contrary to mathematical modeling, wind tunnel experiments or actual flight
measurements require correct inputs and outputs. Any of these procedures can be included in the
contract to preserve available equipment models.
For this project, we are dealing with pitch control of this tailplane which will be done by movement
of the elevator that is attached to a servo motor. We will perform mathematical modelling and then
design a controller to vary the pitching motion of the tailplane. The software used for designing
and simulation are MATLAB and Simulink.
4 OBJECTIVES
The complex engineering problem is aimed at achieving the following objectives:
1. To develop a detailed mathematical model for pitch position of the tail plane
2. To develop the close loop transfer function between pitch angle and elevator deflection
3. To find the the system gain
4. To design PID controllers in using moderen softwares, having less than 30% of maximum
overshoot and must be able to reject any disturbance.
5. Evaluate the real-time performance on test rig based on the tuned PID gains satisfying desired
performance criteria.
5 MATHEMATICAL MODEL
∑ 𝑀𝑐𝑔 = 𝐼𝑦 𝜃̈
𝑀 = 𝑀𝑜 + ∆𝑀
𝜃 = 𝜃0 + ∆𝜃
If 𝑀𝑜 is equal to zero, then
𝑑2 𝑦
∆𝑀 = 𝐼𝑦 . (𝜃 + ∆𝜃)
𝑑𝑡 2 0
∆𝑀 = 𝐼𝑦 ∆𝜃̈
Parameters
𝑆𝑦𝑚𝑏𝑜𝑙 𝑃𝑎𝑟𝑎𝑚𝑒𝑡𝑒𝑟
𝛿𝑒 𝑒𝑙𝑒𝑣𝑎𝑡𝑜𝑟 𝑎𝑛𝑔𝑙𝑒 𝑜𝑓 𝑑𝑒𝑓𝑙𝑒𝑐𝑡𝑖𝑜𝑛
𝑞 𝑝𝑖𝑡𝑐ℎ 𝑟𝑎𝑡𝑒
𝛼 𝑎𝑛𝑔𝑙𝑒 𝑜𝑓 𝑎𝑡𝑡𝑎𝑐𝑘
𝛼̇ 𝑟𝑎𝑡𝑒 𝑜𝑓 𝑐ℎ𝑎𝑛𝑔𝑒 𝑜𝑓 𝑎𝑛𝑔𝑙𝑒 𝑜𝑓 𝑎𝑡𝑡𝑎𝑐𝑘
𝜃 𝑝𝑖𝑡𝑐ℎ 𝑎𝑛𝑔𝑙𝑒
Table 1: Parameters involved in Mathematical Model
First, the value of damping coefficient is determined. This is done by using the following formula
𝜉𝜋
−
𝑀𝑜𝑠 = 𝑒 √1−𝜉 2
𝑀𝛼 = −16.85
Using this, the values of the moment arm were calculated by comparison.
The transfer function was then plotted and compared with the initial figure to ensure similarity.
Figure 3: Step Response of second order system
Because of the different measurements, this parameter may not be as intuitive to adjust. Briefly, smaller
values in minutes per repeat measurements will create larger integral action where larger values in repeats
per minute measurements, will create larger integral action.
Following graph shows the S-curve (red line). From the two rules of Zeigler niclos, the S-curve
Method will be used. The key parameters of S-Curve are delay time Td and slope. Apart from
these, following parameters are extracted:
𝐴 = −13.2
𝑇𝑑 = 0.3 𝑠𝑒𝑐
𝑇 = 0.8 𝑠𝑒𝑐
𝑅 = 16.5 𝑑𝑒𝑔𝑟𝑒𝑒/𝑠𝑒𝑐
So, using the table 10.1, gains for the PID controller are calculated:
1.2 1.2
𝐾𝑝 = = = −0.242
𝑅𝑇𝑑 (−16.5)(0.3)
0.6 0.6
𝐾𝐼 = 2 = = −0.404
𝑅𝑇𝑑 (−16.5)(0.3)2
0.6 0.6
𝐾𝐷 = = = −0.363
𝑅 (−16.5)
𝐾𝑝 = 20000
𝐾𝐷 (𝑠 2 + 𝐴𝑠 + 𝐵)
𝐺𝑐(𝑠) =
𝑠
𝐾𝐷 (𝑠 + 𝑧1 )(𝑠 + 𝑧2 )
𝐺𝑐(𝑠) =
𝑠
To start off, different iterations will be processed and then the best PID control parameters will be
developed.
Iteration #1
Initially, the roots of the control system is specified as the following: -
𝑧1 = 10 + 5𝑖
𝑧2 = 10 − 5𝑖
Hence the function 𝐺𝑐 (𝑠) is defined by
𝐾𝐷 (𝑠 + 10 + 5𝑖)(𝑠 + 10 − 5𝑖)
𝐺𝑐 (𝑠) =
𝑠
𝐾𝐷 (𝑠 2 + 20𝑠 + 125)
𝐺𝑐 (𝑠) =
𝑠
Using the locus plot, the value of the gain was determined. This is later substituted as 𝐾𝑑 . Where:-
𝐾𝑑 = 2.46
𝐾𝐷 𝑠 2 + 𝐾𝑃 𝑠 + 𝐾𝐼
𝐺𝑐(𝑠) =
𝑠
Where
𝐾𝐷 = 2.46
𝐾𝑃 = 49.2
𝐾𝐼 = 307.5
Plotting the response
Here, it can be noticed that the overshoot is greater than 30%. Hence these parameters does not fulfill our
requirement.
Iteration #2
Then, the roots of the control system is specified as the following:-
𝑧1 = 3 + 𝑖
𝑧2 = 3 − 𝑖
Hence the function 𝐺𝑐 (𝑠) is defined by
𝐾𝐷 (𝑠 + 3 + 𝑖)(𝑠 + 3 − 𝑖)
𝐺𝑐 (𝑠) =
𝑠
𝐾𝐷 (𝑠 2 + 6𝑠 + 10)
𝐺𝑐 (𝑠) =
𝑠
Figure 14: Root Locus Plot of Iteration #2
𝐾𝐷 = 0.361
(0.361)(𝑠 2 + 6𝑠 + 10)
𝐺𝑐 (𝑠) =
𝑠
0.361𝑠 2 + 2.166𝑠 + 3.61
𝐺𝑐 (𝑠) =
𝑠
quating this with the equation, the values of PID parameters were determined.
𝐾𝐷 𝑠 2 + 𝐾𝑃 𝑠 + 𝐾𝐼
𝐺𝑐(𝑠) =
𝑠
Where
𝐾𝐷 = 0.361
𝐾𝑃 = 2.166
𝐾𝐼 = 3.61
Figure 15: System Response of Iteration #2
The plot fulfill all the responses but the response time is too short which indicates that a lot of energy will
be expended.
Final Iteration
Finally, the roots of the control system is specified as the following: -
𝑧1 = 5 + 𝑖
𝑧2 = 5 − 𝑖
Hence the function 𝐺𝑐 (𝑠) is defined by
𝐾𝐷 (𝑠 + 5 + 𝑖)(𝑠 + 5 − 𝑖)
𝐺𝑐 (𝑠) =
𝑠
𝐾𝐷 (𝑠 2 + 10𝑠 + 26)
𝐺𝑐 (𝑠) =
𝑠
Figure 16: Root Locus of Final Iteration
𝐾𝐷 = 0.163
(0.163)(𝑠 2 + 10𝑠 + 26)
𝐺𝑐 (𝑠) =
𝑠
0.163𝑠 2 + 1.630𝑠 + 4.238
𝐺𝑐 (𝑠) =
𝑠
quating this with the equation, the values of PID parameters were determined.
𝐾𝐷 𝑠 2 + 𝐾𝑃 𝑠 + 𝐾𝐼
𝐺𝑐(𝑠) =
𝑠
Where
𝐾𝐷 = 0.163
𝐾𝑃 = 1.630
𝐾𝐼 = 4.238
Plotting the response of the graph
Figure 17: System Response of Final Iteration
7 RESULTS
The response obtained using the PID controller is plotted in the Figure 18 along with the response we had
without using the PID controller and the plot of system response is there as well.
The system optimized system characteristics were obtained using several techniques including root locus
and Ziegler Nichols reaction curve method. The characteristics of our system obtained with using PID
controller and with open loop response are given in table 2.
Sr. No. Property Name Response With PID Response Without PID
1 Rise time (s) 0.414 1.5189
2 Settling Time (s) 3.336 1.5141
3 Steady State error 0 -4.6076
3 Peak value (Degrees) -11.7 1.32
4 Peak time (s) 0.601 2.0141
5 Overshoot (%) 17 13.32
6 Undershoot (%) 0 0
7 𝐾𝑝 N/A 1.630
8 𝐾𝐼 N/A 4.238
9 𝐾𝐷 N/A 0.163
10 Poles N/A −2.69 + 5.43𝑖
Table 2: Response characteristics comparison
8 DISCUSSION
The results shown in the Figure 18 suggest that use of PID controller in the close loop response gives the
most accurate result by minimizing the response time, overshoot and steady state error and can overcome
the shortcoming of open loop response. Finding the best values of 𝐾𝑝 , 𝐾𝐷 and 𝐾𝐼 ensured the overshoot to
be within the given constraints, which comes out to be 17 %, keeping the system stable. The tracking
error was also reduced by utilizing PID. The one of the most difficult tasks was to obtain these optimized
values of 𝐾𝑝 , 𝐾𝐷 and 𝐾𝐼 due to their non-linear response. Therefore, the trial-and-error method was not
the choice here to find these values. There is no defined methodology for these value selections, however
some guidelines may be followed by optimizing these PID gains to obtain the desired system response.
The auto tuning software called PID Tuner may have been employed, which may offer an automatic
system reaction, but may produce the abnormal gains that cannot be physically attained.
9 CONCLUSION
This report extensively covers the modelling and pitch control of 1-DOF tail plane whose motion is
similar to that of a typical aircraft. The aim of this project is to assess issues in terms of modelling and
controlling of modern unmanned aerial vehicles (UAV) for research purposes. In the For this experiment,
only the pitch motion of the tail plane is considered for control. The tail plane is placed in front of the
wind tunnel and it changes its pitch motion by using the elevator part of its tail by directing the incoming
air from wind tunnel in the desired direction. In this project we have successfully demonstrated that how
can vary the pitch motion of tail plane by designing and integrating a controller. First task was to create
mathematical model for pitch position in time domain using aircrafts equation of motion for pitch motion.
Pitch plane model parameters were provided by the instructor that were used alongside the equation of
motion (EOM) for creating mathematical model. The standard form of mathematical model used for pitch
control is:
The plot obtained from these was also suitable for design (Overshoot < 30%, Minimum energy losses).
The optimized system parameters were found using Ziegler Nichols reaction curve method and the root
locus method. These parameters are discussed in the result portion of the report in form of a table and
they satisfy the desired characteristics of the system (e.g. Overshoot = 17 %).
One of the main objectives of this project was to model the pitch dynamic system as much close to real
world results as possible. This essentially means to create a high-fidelity system and then validate it by
means of experimentation. A comparison between analytical results (Mathematical model) and
experimental results (software results) was performed in terms of a comparison plot.
The above response comparison plot shows three response curves shown in different colors after applying
a step input of -10 :
• The blue line represents system output that was obtained after performing experiments
• The red line shows response without implementing PID controller. This was done by equating
system output with transfer function
• The yellow line shows the response with PID controller implemented
Here we can observe that the response of experimental data (blue line) is very close to the mathematical
model (red line). This shows that we have successfully modelled a high-fidelity system. The slight
deviation between the experimental and mathematical response is due to energy dissipation factors like
bearing fiction in the apparatus which was ignored while modelling the system to avoid any complexity in
the design process. In future, for improvement of model better results we can design a mathematical
model that incorporates friction effects which actually occur in real world environment. Thus, due to low
distortion and having the desired parameters, this project is considered successful and ready to be
launched in real system implementations.
10 REFERENCES
[1] Ahmad, S. M. (2013). Flight dynamics, parametric modelling and real-time control of a 1-DOF
Tailplane. Mathematical and Computer Modelling of Dynamical Systems, 19(3), 220–
237. doi:10.1080/13873954.2012.724427
[2] Robert C. Nelson, Flight Stability and Automatic Control, 1998
[3] Khan, Y. M., Ahmad, S. M., Ali, M., & Khan, M. (2019). Flight dynamics and parametric
modeling of a 2-DOF lab aircraft. Proceedings of the Institution of Mechanical Engineers, Part
G: Journal of Aerospace Engineering, 233(8), 2923-2931.
[4] Ezekiel, D. M., Samikannu, R., & Matsebe, O. (2021). Pitch and yaw angular motions
(rotations) control of the 1-DOF and 2-DOF TRMS: A survey. Archives of Computational
Methods in Engineering, 28(3), 1449-1458.
[5] Chaudhary, S., & Kumar, A. (2019, June). Control of Twin Rotor MIMO system using 1-
degree-of-freedom PID, 2-degree-of-freedom PID and fractional order PID controller. In 2019 3rd
International conference on Electronics, Communication and Aerospace Technology
(ICECA) (pp. 746-751). IEEE.
[6] Pattinson, J., Lowenberg, M. H., & Goman, M. G. (2013). Multi-degree-of-freedom wind-
tunnel maneuver rig for dynamic simulation and aerodynamic model identification. Journal of
Aircraft, 50(2), 551-566.
11 APPENDIX
Transfer Function and System Response Plot
close all;
clear all; clc;
open('G5_Output_plot_input_Elevator_-10degree.fig')
a=get(gca,'Children');
xdata=get(a,'Xdata');
ydata=get(a,'Ydata');
% plot(xdata,ydata);
wn=4.105;
z=0.540;
b=19.7157;
num=[b];
den=[1 2*z*wn wn^2];
sys=tf(num,den)
t=0.3:0.05:25.3;
u=-10*ones(size(t));
figure(1)
hold on;
[y,t] = lsim(sys,u,t)
plot(t,y)
title("Step response of the second order, underdamped undamped system");
xlabel("Time (s)");
ylabel("Elevator angle of Deflection (degrees)");
legend('System Response','Transfer function plot')