SlideShare a Scribd company logo
1 of 14
Download to read offline
Fault Tolerant Control
Applied to a Helicopter CE 150
ESTACA CAED Program
30 May 2013
Hongyi HUANG
Table of Contents
1. Introduction 3
1.1 The introduction of the hardware of CE150 3
1.2 The introduction of the software of CE150 3
2. Inputs and outputs 4
3. Setting equation 5
3.1 Dynamic elevation 6
3.2 Dynamic azimuth 6
4. Dynamics of the complete system 7
4.1.non-linear model 7
4.2. Linear Model 8
5. Hardware of the helicopter and software of control 8
5.1 MF 624--multifunction I/O card 9
5.2 AD 622—data acquisition card 9
5.3 Modelling 9
6. The software of CE150 10
6.1 Demonstration Program Description 10
6.2 Demonstration Program Algorithms 11
6.3 A/D Converter 12
6.4 AD 622 13
7. Controller Design 14
7.1 Pole placement design of state feedback controller 14
8. Conclusion 14
1. Introduction
1.1 The introduction of the hardware of CE150
The system studied is a helicopter model (CE
150) produced by the company Humusoft. This
model is connected to a computer through a
PCI card, allowing achieving real-time
simulations in Matlab / Simulink environment.
The helicopter has two rotors, a main rotor and
a tail rotor, trained by two DC motors. In
addition, a servo can manipulate its center of
gravity. The model has two degrees of freedom:
in the vertical elevation plane α and β in
azimuth in the horizontal plane. These two
angles are measured by sensors.
1.2 The introduction of the software of CE150
There are five types of software environment available to the user:
Demo program - directly executable program written in C language. Friendly user
interface facilitates first experiments with PID control.
Matlab demo program - more complex demonstration program with graphical user
interface running under Matlab. This program allows to export recorded data directly
into the Matlab environment which facilitates tasks like simulation, data analysis or
model tuning.
Matlab is a high performance software package for scientific and numeric
computation, signal processing and graphics in an environment where problems and
solutions are expressed just as they are written mathematically - without traditional
programming. The power of Matlab environment is further extended by Simulink - a
block oriented environment for simulation of dynamic systems and numerous
toolboxes. Some of them are highly recommended for the experimentation with the
CE150 model: Control System Toolbox, System Identification, Toolbox, Optimization
Toolbox, Real-Time Windows Target and Virtual Reality Toolbox. An absolute
minimum to conduct experiments from this manual is the Control Systems Toolbox
and Simulink.
The Real Time Toolbox for Matlab - supplied with the CE150 Helicopter Model
enables the user to communicate directly with the system from the Matlab
environment.
The Real-Time Windows Target - this environment offers best control performance.
Real-Time Windows Target is not included, but offered separately by The MathWorks.
Simulink controller examples are included.
User developed environment - this option might be useful for solving special tasks not
supported by Matlab and Real Time Toolbox, e.g. from the area of nonlinear control.
2. Inputs and outputs
To allow the user to control the system in real time via the Matlab interface, all inputs
/ outputs are in the range -1.1 * +. These signals do not have a physical dimension.
Their unity is denoted MU (Machine Unit).
Rotations of the model 50 ° in elevation
160 ° in azimuth
main Engine DC motor with permanent magnets
Maximum voltage: 12 V, 0-6 A
Maximum speed: 9000 RPM
secondary engine DC motor with permanent magnets
Maximum voltage: 6 V, 0-4 A
Maximum Speed: 12,000 RPM
The system studied is then a MIMO (Multi Input Multi Outputs) with three inputs and
two outputs:
Definition inputs
Symbol Name Unit
u1 Voltage applied to the main
engine
MU
U2
voltage applied to the
secondary motor
MU
U3 position servo (weight) MU
Definition outputs
Symbol Name Unit
α Elevation angle MU
β
Azimuth angle MU
To simplify the model, it is assumed that the weight does not move during the
simulations model. So we have u3 = 0.
3. Setting equation
The mathematical model described below is a simplified but adequate model in our
study.
3.1 Dynamic elevation
By a balance of forces acting on the helicopter in the vertical plane is obtained:
With: α elevation angle * rad +
I1 the moment of inertia of the helicopter about the horizontal axis kg.m ² + *
τ1 the main rotor torque [N · m]
τc centrifugal torque [N · m]
τG the gyroscopic torque [Nm] τw the gravitational torque [Nm] τf1 friction
torque [Nm]
Resolving the forces in the vertical plane acting on the helicopter body
3.2 Dynamic azimuth
By a balance of forces acting on the helicopter in the horizontal plane is obtained:
With: the azimuth angle β * rad +
I2 the moment of inertia about the vertical axis kg.m ² + *
τ2 torque tail rotor [N · m]
τr the torque caused by the main rotor [Nm]
τf2 friction torque
4. Dynamics of the complete system
4.1. Non-linear model
After establishing the dynamics of the various components of the helicopter, we can
build
Block diagram of the complete system in Simulink
The values of various parameters of the system are given by the manufacturer and
have the following values
Symbol Value Unit
T1 0,3 s
a1 0,105 N.m/MU
b1 0,00936 N.m/MU²
I1 4,37e-3 kg.m²
B1 1,84e-3 kg.m²/s
Tg 3,83e-2 N.m
T2 0,25 s
a2 0,033 N.m/MU
b2 0,0294 N.m/MU²
Tor 2,7 s
Tpr 0,75 s
Kr 0,00162 N.m/MU
I2 4,14e-3 kg.m²
B2 8,69e-3 kg.m²/s
KGyro -0,015 kg.m/s
kα π/1024 rad
kβ π/1024 rad
yα0 275 π/1024 rad
4.2. Linear Model
Using the linmod Matlab function, we can linearize our model.
5. Hardware of the helicopter and software
of control
5.1 MF 624--multifunction I/O card
The MF 624 multifunction I/O card is designed for the
need of connecting PC compatible computers to real
world signals. The MF 624 contains 8 channel fast 14 bit
A/D converter with simultaneous sample/hold circuit, 8
independent 14 bit D/A converters, 8 bit digital input port
and 8 bit digital output port, 4 quadrature encoder inputs
with single-ended or differential interface and 5
timers/counters.
The card is designed for standard data acquisition and
control applications and optimized for use with Real Time
Toolbox for Simulink. MF 624 features fully 32 bit
architecture for fast throughput.
5.2 AD 622—data acquisition card
The AD 622 data acquisition card is designed for the need of connecting PC
compatible computers to real world signals. The AD 622 contains 8 channel fast 14
bit A/D converter with simultaneous sample/hold circuit, 8 independent 14 bit D/A
converters, 8 bit digital input port and 8 bit digital output port. The card is designed
for standard data acquisition and control applications and optimized for use with Real
Time Toolbox for Simulink. AD 622 features fully 32 bit architecture for fast
throughput.
5.3 Modelling
An attempt to model the system dynamics in detail leads to extremely complicated,
not readable and not useful model. The engineer should decide what is the model used
for and under what conditions it will work. In our case the model will be used for
investigating the system dynamics with respect to control tasks. The system will
operate in some working conditions and not all of the dynamical properties will be
invoked. This leads to the assumptions which will simplify the derivation of the
model.
We propose two ways how to get the model. The first one is a systematic modeling
method based on variation approach, i.e. Lagrange's equations. The second approach
is a direct derivation of the model by computing the force balances. The second
approach is described in the following text. Both methods lead to the model in the
form of nonlinear differential equations.
6. The software of CE150
6.1 Demonstration Program Description
The menu screens are mostly selfexplaining. To choose one of menu options
(trajectory etc...) type number corresponding to your choice and press Enter. To accept
default values (in angle brackets), just press Enter. To modify parameter value, type
row number of the parameter and press Enter. When the prompt appears, enter data
followed by Enter. Note that you can use arithmetic operators, MATLAB variables
and a predefined variable named default holding old parameter value. Vectors may but
need not be enclosed in angle brackets. After the experiment is finished, all
parameters and experimental data stay in the workspace. They are used as defaults for
the next experiment. If you want to start with defaults, simply clear all variables.
There are two versions of the demo program on your diskette. The basic one,
HE2DEMO, controls the helicopter in both degrees of freedom. The HE1DEMO
controls only the elevation, azimuth must be fixed. It may be simpler to experiment
with the constants of this controller, at least for the beginning.
6.2 Demonstration Program Algorithms
The following describes some details of the demonstration program.Don't bother to
read this unless you actually want; rather skip to Chapter 2 and return here when you
will be more familiar with the model.
Coefficients of discrete polynomial controller can be entered either as coefficient of
continuous PID controller or directly as polynomials in z operator.
PID controller is defined either by its coefficients Kp , Ki , Kd and Kdd
or by total gain G and time constants Ti , Td and Tdd ,
where
Ts is sampling period
y(z) is system output
e(z) is output error w(z) - y(z)
u(z) is system input
F(z) is first order discrete filter with time constant Tf .
Polynomial controller may be entered either in the general form
or in the r-s-t-form with common denominator
or as open-loop compensator.
The input filter is implemented as discrete polynomial filter in z operator with
sampling period Tsf . The sampling period may be higher than the controller sampling
period Ts .
where
yf(z) is filtered system output
y(z) is physical system output.
6.3 A/D Converter
Features List
 The MF 624 offers following features:
 14 bit A/D converter with simultaneous sample & hold circuit
 Conversion time 1.6 μs for single channel or 3.7 μs for 8 channels
 8 channel single ended fault protected input multiplexer
 Input range ±10V
 Internal clock & voltage reference
 8 D/A converters with 14 bit resolution and ±10V output range
 4 quadrature encoder inputs with single-ended or differential interface
 Software selectable digital input noise filter (0.3 μs)
The MF 624 multifunction I/O card is designed for the need of connecting PC
compatible computers to real world signals. The MF 624 contains 8 channel fast 14
bit A/D converter with simultaneous sample/hold circuit, 8 independent 14 bit D/A
converters, 8 bit digital input port and 8 bit digital output port, 4 quadrature encoder
inputs with single-ended or differential interface and 5 timers/counters. The card is
designed for standard data acquisition and control applications and optimized for use
with Real Time Toolbox for Simulink. MF 624 features fully 32 bit architecture for
fast throughput.
6.4 AD 622
The AD 622 offers following features:
 32-bit architecture
 14 bit A/D converter with simultaneous sample & hold circuit
 Conversion time 1.6 μs for single channel or 3.7 μs for 8 channels
 8 channel single ended fault protected input multiplexer
 Input range ±10V
 Internal clock & voltage reference
 8 D/A converters with 14 bit resolution and ±10V output range
 8 bit TTL compatible digital input port
 8 bit TTL compatible digital output port
 Interrupt
The AD 622 data acquisition card is designed for the need of connecting PC
compatible computers to real world signals. The AD 622 contains 8 channel fast 14
bit A/D converter with simultaneous sample/hold circuit, 8 independent 14 bit D/A
converters, 8 bit digital input port and 8 bit digital output port. The card is designed or
standard data acquisition and control applications and optimized for use with real
Time Toolbox for Simulink®. AD 622 features fully 32 bit architecture for act
throughput.
7. Controller Design
7.1 Pole placement design of state feedback controller
The main idea of this design method is that the location of the closed loop poles of a
linear system determines the closed loop system dynamics. In this problem the poles
of a closed loop system are placed according to the position specified by the designer.
This may be done only by the state feedback. The block structure of the closed loop
system enabling us to place the poles arbitrarily is shown, where A, B, and C are the
matrices of the linearized model identified in the Problem 3.9 and K is a matrix of
feedback gains to be designed. The discrete time model is considered, but the same
procedure is applied when continuous time model of the process is used.
8. Conclusion
This paper is devoted to mathematical modeling. General model structure valid under
some simplifications is derived in terms of nonlinear state space description and the
corresponding block diagram. Identification of system parameters is done in item 3.
Number of experiments for direct and indirect measurement of system parameters is
described. Typical numerical values are derived and used for initial tuning of the
system model. The model is linearized around the different set points. Transfer
function matrix as an Input/Output model and linear state space model are derived.
The following chapters are devoted to controllers design. Item 4 gives guidelines for
selection of the sampling period for digital control systems. Item 5 shows the design
of the conventional PID control and State Feedback control by pole placement.
Figures from measurements can be found in Item 6.

More Related Content

What's hot

Design and Implementation of DC Motor Speed Control using Fuzzy Logic
Design and Implementation of DC Motor Speed Control using Fuzzy LogicDesign and Implementation of DC Motor Speed Control using Fuzzy Logic
Design and Implementation of DC Motor Speed Control using Fuzzy LogicWaleed El-Badry
 
Ijetae 0312 24
Ijetae 0312 24Ijetae 0312 24
Ijetae 0312 24Memo Love
 
Intelligent Control of a Robot Manipulator
Intelligent Control of a Robot Manipulator Intelligent Control of a Robot Manipulator
Intelligent Control of a Robot Manipulator Nixon Barrera
 
Fuzzy logic Technique Based Speed Control of a Permanent Magnet Brushless DC...
Fuzzy logic Technique Based Speed Control of a Permanent  Magnet Brushless DC...Fuzzy logic Technique Based Speed Control of a Permanent  Magnet Brushless DC...
Fuzzy logic Technique Based Speed Control of a Permanent Magnet Brushless DC...IJMER
 
Real Time Implementation of Fuzzy Adaptive PI-sliding Mode Controller for Ind...
Real Time Implementation of Fuzzy Adaptive PI-sliding Mode Controller for Ind...Real Time Implementation of Fuzzy Adaptive PI-sliding Mode Controller for Ind...
Real Time Implementation of Fuzzy Adaptive PI-sliding Mode Controller for Ind...IJECEIAES
 
ECE260BMiniProject2Report
ECE260BMiniProject2ReportECE260BMiniProject2Report
ECE260BMiniProject2ReportFanyu Yang
 
ece260project.doc
ece260project.docece260project.doc
ece260project.docFanyu Yang
 
Mechatronics design of ball and beam system education and research
Mechatronics design of ball and beam system education and researchMechatronics design of ball and beam system education and research
Mechatronics design of ball and beam system education and researchAlexander Decker
 
Arm based automatic control system of nano positioning stage for micromanufac...
Arm based automatic control system of nano positioning stage for micromanufac...Arm based automatic control system of nano positioning stage for micromanufac...
Arm based automatic control system of nano positioning stage for micromanufac...csandit
 
Simulation design of trajectory planning robot manipulator
Simulation design of trajectory planning robot manipulatorSimulation design of trajectory planning robot manipulator
Simulation design of trajectory planning robot manipulatorjournalBEEI
 
Automated Tuning and Controller Design for DC-DC Boost Converter
Automated Tuning and Controller Design  for DC-DC Boost ConverterAutomated Tuning and Controller Design  for DC-DC Boost Converter
Automated Tuning and Controller Design for DC-DC Boost ConverterIRJET Journal
 
Investigation of Artificial Neural Network Based Direct Torque Control for PM...
Investigation of Artificial Neural Network Based Direct Torque Control for PM...Investigation of Artificial Neural Network Based Direct Torque Control for PM...
Investigation of Artificial Neural Network Based Direct Torque Control for PM...cscpconf
 
Co-simulation of self-adjusting fuzzy PI controller for the robot with two-ax...
Co-simulation of self-adjusting fuzzy PI controller for the robot with two-ax...Co-simulation of self-adjusting fuzzy PI controller for the robot with two-ax...
Co-simulation of self-adjusting fuzzy PI controller for the robot with two-ax...TELKOMNIKA JOURNAL
 

What's hot (19)

[000007]
[000007][000007]
[000007]
 
Design and Implementation of DC Motor Speed Control using Fuzzy Logic
Design and Implementation of DC Motor Speed Control using Fuzzy LogicDesign and Implementation of DC Motor Speed Control using Fuzzy Logic
Design and Implementation of DC Motor Speed Control using Fuzzy Logic
 
Ijetae 0312 24
Ijetae 0312 24Ijetae 0312 24
Ijetae 0312 24
 
Takagi-Sugeno Fuzzy Perpose as Speed Controller in Indirect Field Oriented Co...
Takagi-Sugeno Fuzzy Perpose as Speed Controller in Indirect Field Oriented Co...Takagi-Sugeno Fuzzy Perpose as Speed Controller in Indirect Field Oriented Co...
Takagi-Sugeno Fuzzy Perpose as Speed Controller in Indirect Field Oriented Co...
 
Intelligent Control of a Robot Manipulator
Intelligent Control of a Robot Manipulator Intelligent Control of a Robot Manipulator
Intelligent Control of a Robot Manipulator
 
Fuzzy logic Technique Based Speed Control of a Permanent Magnet Brushless DC...
Fuzzy logic Technique Based Speed Control of a Permanent  Magnet Brushless DC...Fuzzy logic Technique Based Speed Control of a Permanent  Magnet Brushless DC...
Fuzzy logic Technique Based Speed Control of a Permanent Magnet Brushless DC...
 
Real Time Implementation of Fuzzy Adaptive PI-sliding Mode Controller for Ind...
Real Time Implementation of Fuzzy Adaptive PI-sliding Mode Controller for Ind...Real Time Implementation of Fuzzy Adaptive PI-sliding Mode Controller for Ind...
Real Time Implementation of Fuzzy Adaptive PI-sliding Mode Controller for Ind...
 
An4556
An4556An4556
An4556
 
ECE260BMiniProject2Report
ECE260BMiniProject2ReportECE260BMiniProject2Report
ECE260BMiniProject2Report
 
ece260project.doc
ece260project.docece260project.doc
ece260project.doc
 
Mechatronics design of ball and beam system education and research
Mechatronics design of ball and beam system education and researchMechatronics design of ball and beam system education and research
Mechatronics design of ball and beam system education and research
 
Arm based automatic control system of nano positioning stage for micromanufac...
Arm based automatic control system of nano positioning stage for micromanufac...Arm based automatic control system of nano positioning stage for micromanufac...
Arm based automatic control system of nano positioning stage for micromanufac...
 
Ball and beam
Ball and beamBall and beam
Ball and beam
 
Image Based Visual Servoing for Omnidirectional Wheeled Mobile Robots in Volt...
Image Based Visual Servoing for Omnidirectional Wheeled Mobile Robots in Volt...Image Based Visual Servoing for Omnidirectional Wheeled Mobile Robots in Volt...
Image Based Visual Servoing for Omnidirectional Wheeled Mobile Robots in Volt...
 
Simulation design of trajectory planning robot manipulator
Simulation design of trajectory planning robot manipulatorSimulation design of trajectory planning robot manipulator
Simulation design of trajectory planning robot manipulator
 
Speed and Position Estimator of Dual-PMSM for Independent Control Drives usin...
Speed and Position Estimator of Dual-PMSM for Independent Control Drives usin...Speed and Position Estimator of Dual-PMSM for Independent Control Drives usin...
Speed and Position Estimator of Dual-PMSM for Independent Control Drives usin...
 
Automated Tuning and Controller Design for DC-DC Boost Converter
Automated Tuning and Controller Design  for DC-DC Boost ConverterAutomated Tuning and Controller Design  for DC-DC Boost Converter
Automated Tuning and Controller Design for DC-DC Boost Converter
 
Investigation of Artificial Neural Network Based Direct Torque Control for PM...
Investigation of Artificial Neural Network Based Direct Torque Control for PM...Investigation of Artificial Neural Network Based Direct Torque Control for PM...
Investigation of Artificial Neural Network Based Direct Torque Control for PM...
 
Co-simulation of self-adjusting fuzzy PI controller for the robot with two-ax...
Co-simulation of self-adjusting fuzzy PI controller for the robot with two-ax...Co-simulation of self-adjusting fuzzy PI controller for the robot with two-ax...
Co-simulation of self-adjusting fuzzy PI controller for the robot with two-ax...
 

Viewers also liked (13)

Store Manager & Buyer
Store Manager & Buyer Store Manager & Buyer
Store Manager & Buyer
 
art_34
art_34art_34
art_34
 
QMSIA 6
QMSIA 6QMSIA 6
QMSIA 6
 
2016 POSTER
2016 POSTER2016 POSTER
2016 POSTER
 
LtrofrecomendCorinthian
LtrofrecomendCorinthianLtrofrecomendCorinthian
LtrofrecomendCorinthian
 
Trovas de Ivone Boechat
Trovas de Ivone BoechatTrovas de Ivone Boechat
Trovas de Ivone Boechat
 
Reference RB English (1)
Reference RB English (1)Reference RB English (1)
Reference RB English (1)
 
portFOLIO
portFOLIOportFOLIO
portFOLIO
 
EL DIARIO - 08_23_2007.PDF
EL DIARIO - 08_23_2007.PDFEL DIARIO - 08_23_2007.PDF
EL DIARIO - 08_23_2007.PDF
 
Serie 6 Citibank NA
Serie 6 Citibank NASerie 6 Citibank NA
Serie 6 Citibank NA
 
Unterlagen Daria Stratmann Heidehof Schule
Unterlagen Daria Stratmann Heidehof SchuleUnterlagen Daria Stratmann Heidehof Schule
Unterlagen Daria Stratmann Heidehof Schule
 
Graduate Degree of Finalcial Institutions
Graduate Degree of Finalcial InstitutionsGraduate Degree of Finalcial Institutions
Graduate Degree of Finalcial Institutions
 
AISZ-EMBRIODIAGNOSIS-HTRA-TEXT-09-30-16
AISZ-EMBRIODIAGNOSIS-HTRA-TEXT-09-30-16AISZ-EMBRIODIAGNOSIS-HTRA-TEXT-09-30-16
AISZ-EMBRIODIAGNOSIS-HTRA-TEXT-09-30-16
 

Similar to CE150--Hongyi Huang

Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...
Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...
Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...Zac Darcy
 
Modeling and Simulation of an Active Disturbance Rejection Controller Based o...
Modeling and Simulation of an Active Disturbance Rejection Controller Based o...Modeling and Simulation of an Active Disturbance Rejection Controller Based o...
Modeling and Simulation of an Active Disturbance Rejection Controller Based o...IJRES Journal
 
Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.Ankita Tiwari
 
Real-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulumReal-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulumFrancesco Corucci
 
Comparisons of fuzzy mras and pid controllers for ems maglev train
Comparisons of fuzzy mras and pid controllers for ems maglev trainComparisons of fuzzy mras and pid controllers for ems maglev train
Comparisons of fuzzy mras and pid controllers for ems maglev trainMustefa Jibril
 
tutorial_pscad.pptx
tutorial_pscad.pptxtutorial_pscad.pptx
tutorial_pscad.pptxdfddfdf5
 
PID Controller based DC Motor Speed Control
PID Controller based DC Motor Speed ControlPID Controller based DC Motor Speed Control
PID Controller based DC Motor Speed Controlrahulmonikasharma
 
IRJET- Speed Control of Induction Motor using Hybrid PID Fuzzy Controller
IRJET- Speed Control of Induction Motor using Hybrid PID Fuzzy ControllerIRJET- Speed Control of Induction Motor using Hybrid PID Fuzzy Controller
IRJET- Speed Control of Induction Motor using Hybrid PID Fuzzy ControllerIRJET Journal
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)ijceronline
 
Direct Digital Control
Direct Digital ControlDirect Digital Control
Direct Digital ControlIOSR Journals
 
To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...
To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...
To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...ijsrd.com
 
SYSTEM ON PROGRAMMABLE CHIP FOR PERFOMANCE ESTIMATION OF LOOM MACHINE
SYSTEM ON PROGRAMMABLE CHIP FOR PERFOMANCE ESTIMATION OF LOOM MACHINESYSTEM ON PROGRAMMABLE CHIP FOR PERFOMANCE ESTIMATION OF LOOM MACHINE
SYSTEM ON PROGRAMMABLE CHIP FOR PERFOMANCE ESTIMATION OF LOOM MACHINEVLSICS Design
 
PID Tuning using Ziegler Nicholas - MATLAB Approach
PID Tuning using Ziegler Nicholas - MATLAB ApproachPID Tuning using Ziegler Nicholas - MATLAB Approach
PID Tuning using Ziegler Nicholas - MATLAB ApproachWaleed El-Badry
 
2.a neuro fuzzy based svpwm technique for pmsm (2)
2.a neuro fuzzy based svpwm technique for pmsm (2)2.a neuro fuzzy based svpwm technique for pmsm (2)
2.a neuro fuzzy based svpwm technique for pmsm (2)EditorJST
 
Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...
Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...
Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...IJERA Editor
 
Correlative Study on the Modeling and Control of Boost Converter using Advanc...
Correlative Study on the Modeling and Control of Boost Converter using Advanc...Correlative Study on the Modeling and Control of Boost Converter using Advanc...
Correlative Study on the Modeling and Control of Boost Converter using Advanc...IJSRD
 
IRJET- Design and Implementation of Three Phase Grid Simulator
IRJET- Design and Implementation of Three Phase Grid SimulatorIRJET- Design and Implementation of Three Phase Grid Simulator
IRJET- Design and Implementation of Three Phase Grid SimulatorIRJET Journal
 
Study of model predictive control using ni lab view
Study of model predictive control using ni lab viewStudy of model predictive control using ni lab view
Study of model predictive control using ni lab viewIAEME Publication
 

Similar to CE150--Hongyi Huang (20)

Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...
Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...
Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...
 
Modeling and Simulation of an Active Disturbance Rejection Controller Based o...
Modeling and Simulation of an Active Disturbance Rejection Controller Based o...Modeling and Simulation of an Active Disturbance Rejection Controller Based o...
Modeling and Simulation of an Active Disturbance Rejection Controller Based o...
 
Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.Design the implementation of CDEx Robust DC Motor.
Design the implementation of CDEx Robust DC Motor.
 
Real-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulumReal-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulum
 
Comparisons of fuzzy mras and pid controllers for ems maglev train
Comparisons of fuzzy mras and pid controllers for ems maglev trainComparisons of fuzzy mras and pid controllers for ems maglev train
Comparisons of fuzzy mras and pid controllers for ems maglev train
 
tutorial_pscad.pptx
tutorial_pscad.pptxtutorial_pscad.pptx
tutorial_pscad.pptx
 
Modeling and Real-Time Simulation of Induction Motor Using RT-LAB
Modeling and Real-Time Simulation of Induction Motor Using RT-LABModeling and Real-Time Simulation of Induction Motor Using RT-LAB
Modeling and Real-Time Simulation of Induction Motor Using RT-LAB
 
25. 23248.pdf
25. 23248.pdf25. 23248.pdf
25. 23248.pdf
 
PID Controller based DC Motor Speed Control
PID Controller based DC Motor Speed ControlPID Controller based DC Motor Speed Control
PID Controller based DC Motor Speed Control
 
IRJET- Speed Control of Induction Motor using Hybrid PID Fuzzy Controller
IRJET- Speed Control of Induction Motor using Hybrid PID Fuzzy ControllerIRJET- Speed Control of Induction Motor using Hybrid PID Fuzzy Controller
IRJET- Speed Control of Induction Motor using Hybrid PID Fuzzy Controller
 
International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)International Journal of Computational Engineering Research(IJCER)
International Journal of Computational Engineering Research(IJCER)
 
Direct Digital Control
Direct Digital ControlDirect Digital Control
Direct Digital Control
 
To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...
To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...
To Perform SIL And PIL Testing on Fast Dynamic System using Economical AVR Co...
 
SYSTEM ON PROGRAMMABLE CHIP FOR PERFOMANCE ESTIMATION OF LOOM MACHINE
SYSTEM ON PROGRAMMABLE CHIP FOR PERFOMANCE ESTIMATION OF LOOM MACHINESYSTEM ON PROGRAMMABLE CHIP FOR PERFOMANCE ESTIMATION OF LOOM MACHINE
SYSTEM ON PROGRAMMABLE CHIP FOR PERFOMANCE ESTIMATION OF LOOM MACHINE
 
PID Tuning using Ziegler Nicholas - MATLAB Approach
PID Tuning using Ziegler Nicholas - MATLAB ApproachPID Tuning using Ziegler Nicholas - MATLAB Approach
PID Tuning using Ziegler Nicholas - MATLAB Approach
 
2.a neuro fuzzy based svpwm technique for pmsm (2)
2.a neuro fuzzy based svpwm technique for pmsm (2)2.a neuro fuzzy based svpwm technique for pmsm (2)
2.a neuro fuzzy based svpwm technique for pmsm (2)
 
Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...
Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...
Implementation of T-Junction Traffic Light Control System Using Simatic S7-20...
 
Correlative Study on the Modeling and Control of Boost Converter using Advanc...
Correlative Study on the Modeling and Control of Boost Converter using Advanc...Correlative Study on the Modeling and Control of Boost Converter using Advanc...
Correlative Study on the Modeling and Control of Boost Converter using Advanc...
 
IRJET- Design and Implementation of Three Phase Grid Simulator
IRJET- Design and Implementation of Three Phase Grid SimulatorIRJET- Design and Implementation of Three Phase Grid Simulator
IRJET- Design and Implementation of Three Phase Grid Simulator
 
Study of model predictive control using ni lab view
Study of model predictive control using ni lab viewStudy of model predictive control using ni lab view
Study of model predictive control using ni lab view
 

CE150--Hongyi Huang

  • 1. Fault Tolerant Control Applied to a Helicopter CE 150 ESTACA CAED Program 30 May 2013 Hongyi HUANG
  • 2. Table of Contents 1. Introduction 3 1.1 The introduction of the hardware of CE150 3 1.2 The introduction of the software of CE150 3 2. Inputs and outputs 4 3. Setting equation 5 3.1 Dynamic elevation 6 3.2 Dynamic azimuth 6 4. Dynamics of the complete system 7 4.1.non-linear model 7 4.2. Linear Model 8 5. Hardware of the helicopter and software of control 8 5.1 MF 624--multifunction I/O card 9 5.2 AD 622—data acquisition card 9 5.3 Modelling 9 6. The software of CE150 10 6.1 Demonstration Program Description 10 6.2 Demonstration Program Algorithms 11 6.3 A/D Converter 12 6.4 AD 622 13 7. Controller Design 14 7.1 Pole placement design of state feedback controller 14 8. Conclusion 14
  • 3. 1. Introduction 1.1 The introduction of the hardware of CE150 The system studied is a helicopter model (CE 150) produced by the company Humusoft. This model is connected to a computer through a PCI card, allowing achieving real-time simulations in Matlab / Simulink environment. The helicopter has two rotors, a main rotor and a tail rotor, trained by two DC motors. In addition, a servo can manipulate its center of gravity. The model has two degrees of freedom: in the vertical elevation plane α and β in azimuth in the horizontal plane. These two angles are measured by sensors. 1.2 The introduction of the software of CE150 There are five types of software environment available to the user: Demo program - directly executable program written in C language. Friendly user interface facilitates first experiments with PID control. Matlab demo program - more complex demonstration program with graphical user interface running under Matlab. This program allows to export recorded data directly into the Matlab environment which facilitates tasks like simulation, data analysis or model tuning. Matlab is a high performance software package for scientific and numeric computation, signal processing and graphics in an environment where problems and solutions are expressed just as they are written mathematically - without traditional programming. The power of Matlab environment is further extended by Simulink - a block oriented environment for simulation of dynamic systems and numerous toolboxes. Some of them are highly recommended for the experimentation with the CE150 model: Control System Toolbox, System Identification, Toolbox, Optimization
  • 4. Toolbox, Real-Time Windows Target and Virtual Reality Toolbox. An absolute minimum to conduct experiments from this manual is the Control Systems Toolbox and Simulink. The Real Time Toolbox for Matlab - supplied with the CE150 Helicopter Model enables the user to communicate directly with the system from the Matlab environment. The Real-Time Windows Target - this environment offers best control performance. Real-Time Windows Target is not included, but offered separately by The MathWorks. Simulink controller examples are included. User developed environment - this option might be useful for solving special tasks not supported by Matlab and Real Time Toolbox, e.g. from the area of nonlinear control. 2. Inputs and outputs To allow the user to control the system in real time via the Matlab interface, all inputs / outputs are in the range -1.1 * +. These signals do not have a physical dimension. Their unity is denoted MU (Machine Unit). Rotations of the model 50 ° in elevation 160 ° in azimuth main Engine DC motor with permanent magnets Maximum voltage: 12 V, 0-6 A Maximum speed: 9000 RPM secondary engine DC motor with permanent magnets Maximum voltage: 6 V, 0-4 A Maximum Speed: 12,000 RPM The system studied is then a MIMO (Multi Input Multi Outputs) with three inputs and two outputs:
  • 5. Definition inputs Symbol Name Unit u1 Voltage applied to the main engine MU U2 voltage applied to the secondary motor MU U3 position servo (weight) MU Definition outputs Symbol Name Unit α Elevation angle MU β Azimuth angle MU To simplify the model, it is assumed that the weight does not move during the simulations model. So we have u3 = 0. 3. Setting equation The mathematical model described below is a simplified but adequate model in our study.
  • 6. 3.1 Dynamic elevation By a balance of forces acting on the helicopter in the vertical plane is obtained: With: α elevation angle * rad + I1 the moment of inertia of the helicopter about the horizontal axis kg.m ² + * τ1 the main rotor torque [N · m] τc centrifugal torque [N · m] τG the gyroscopic torque [Nm] τw the gravitational torque [Nm] τf1 friction torque [Nm] Resolving the forces in the vertical plane acting on the helicopter body 3.2 Dynamic azimuth By a balance of forces acting on the helicopter in the horizontal plane is obtained: With: the azimuth angle β * rad + I2 the moment of inertia about the vertical axis kg.m ² + * τ2 torque tail rotor [N · m] τr the torque caused by the main rotor [Nm] τf2 friction torque
  • 7. 4. Dynamics of the complete system 4.1. Non-linear model After establishing the dynamics of the various components of the helicopter, we can build Block diagram of the complete system in Simulink The values of various parameters of the system are given by the manufacturer and have the following values Symbol Value Unit T1 0,3 s a1 0,105 N.m/MU b1 0,00936 N.m/MU² I1 4,37e-3 kg.m² B1 1,84e-3 kg.m²/s Tg 3,83e-2 N.m T2 0,25 s
  • 8. a2 0,033 N.m/MU b2 0,0294 N.m/MU² Tor 2,7 s Tpr 0,75 s Kr 0,00162 N.m/MU I2 4,14e-3 kg.m² B2 8,69e-3 kg.m²/s KGyro -0,015 kg.m/s kα π/1024 rad kβ π/1024 rad yα0 275 π/1024 rad 4.2. Linear Model Using the linmod Matlab function, we can linearize our model. 5. Hardware of the helicopter and software of control
  • 9. 5.1 MF 624--multifunction I/O card The MF 624 multifunction I/O card is designed for the need of connecting PC compatible computers to real world signals. The MF 624 contains 8 channel fast 14 bit A/D converter with simultaneous sample/hold circuit, 8 independent 14 bit D/A converters, 8 bit digital input port and 8 bit digital output port, 4 quadrature encoder inputs with single-ended or differential interface and 5 timers/counters. The card is designed for standard data acquisition and control applications and optimized for use with Real Time Toolbox for Simulink. MF 624 features fully 32 bit architecture for fast throughput. 5.2 AD 622—data acquisition card The AD 622 data acquisition card is designed for the need of connecting PC compatible computers to real world signals. The AD 622 contains 8 channel fast 14 bit A/D converter with simultaneous sample/hold circuit, 8 independent 14 bit D/A converters, 8 bit digital input port and 8 bit digital output port. The card is designed for standard data acquisition and control applications and optimized for use with Real Time Toolbox for Simulink. AD 622 features fully 32 bit architecture for fast throughput. 5.3 Modelling An attempt to model the system dynamics in detail leads to extremely complicated, not readable and not useful model. The engineer should decide what is the model used for and under what conditions it will work. In our case the model will be used for investigating the system dynamics with respect to control tasks. The system will
  • 10. operate in some working conditions and not all of the dynamical properties will be invoked. This leads to the assumptions which will simplify the derivation of the model. We propose two ways how to get the model. The first one is a systematic modeling method based on variation approach, i.e. Lagrange's equations. The second approach is a direct derivation of the model by computing the force balances. The second approach is described in the following text. Both methods lead to the model in the form of nonlinear differential equations. 6. The software of CE150 6.1 Demonstration Program Description The menu screens are mostly selfexplaining. To choose one of menu options (trajectory etc...) type number corresponding to your choice and press Enter. To accept default values (in angle brackets), just press Enter. To modify parameter value, type row number of the parameter and press Enter. When the prompt appears, enter data followed by Enter. Note that you can use arithmetic operators, MATLAB variables and a predefined variable named default holding old parameter value. Vectors may but need not be enclosed in angle brackets. After the experiment is finished, all parameters and experimental data stay in the workspace. They are used as defaults for the next experiment. If you want to start with defaults, simply clear all variables. There are two versions of the demo program on your diskette. The basic one, HE2DEMO, controls the helicopter in both degrees of freedom. The HE1DEMO controls only the elevation, azimuth must be fixed. It may be simpler to experiment with the constants of this controller, at least for the beginning.
  • 11. 6.2 Demonstration Program Algorithms The following describes some details of the demonstration program.Don't bother to read this unless you actually want; rather skip to Chapter 2 and return here when you will be more familiar with the model. Coefficients of discrete polynomial controller can be entered either as coefficient of continuous PID controller or directly as polynomials in z operator. PID controller is defined either by its coefficients Kp , Ki , Kd and Kdd or by total gain G and time constants Ti , Td and Tdd , where Ts is sampling period y(z) is system output e(z) is output error w(z) - y(z) u(z) is system input F(z) is first order discrete filter with time constant Tf . Polynomial controller may be entered either in the general form or in the r-s-t-form with common denominator or as open-loop compensator.
  • 12. The input filter is implemented as discrete polynomial filter in z operator with sampling period Tsf . The sampling period may be higher than the controller sampling period Ts . where yf(z) is filtered system output y(z) is physical system output. 6.3 A/D Converter Features List  The MF 624 offers following features:  14 bit A/D converter with simultaneous sample & hold circuit
  • 13.  Conversion time 1.6 μs for single channel or 3.7 μs for 8 channels  8 channel single ended fault protected input multiplexer  Input range ±10V  Internal clock & voltage reference  8 D/A converters with 14 bit resolution and ±10V output range  4 quadrature encoder inputs with single-ended or differential interface  Software selectable digital input noise filter (0.3 μs) The MF 624 multifunction I/O card is designed for the need of connecting PC compatible computers to real world signals. The MF 624 contains 8 channel fast 14 bit A/D converter with simultaneous sample/hold circuit, 8 independent 14 bit D/A converters, 8 bit digital input port and 8 bit digital output port, 4 quadrature encoder inputs with single-ended or differential interface and 5 timers/counters. The card is designed for standard data acquisition and control applications and optimized for use with Real Time Toolbox for Simulink. MF 624 features fully 32 bit architecture for fast throughput. 6.4 AD 622 The AD 622 offers following features:  32-bit architecture  14 bit A/D converter with simultaneous sample & hold circuit  Conversion time 1.6 μs for single channel or 3.7 μs for 8 channels  8 channel single ended fault protected input multiplexer  Input range ±10V  Internal clock & voltage reference  8 D/A converters with 14 bit resolution and ±10V output range  8 bit TTL compatible digital input port  8 bit TTL compatible digital output port  Interrupt The AD 622 data acquisition card is designed for the need of connecting PC compatible computers to real world signals. The AD 622 contains 8 channel fast 14 bit A/D converter with simultaneous sample/hold circuit, 8 independent 14 bit D/A converters, 8 bit digital input port and 8 bit digital output port. The card is designed or standard data acquisition and control applications and optimized for use with real Time Toolbox for Simulink®. AD 622 features fully 32 bit architecture for act throughput.
  • 14. 7. Controller Design 7.1 Pole placement design of state feedback controller The main idea of this design method is that the location of the closed loop poles of a linear system determines the closed loop system dynamics. In this problem the poles of a closed loop system are placed according to the position specified by the designer. This may be done only by the state feedback. The block structure of the closed loop system enabling us to place the poles arbitrarily is shown, where A, B, and C are the matrices of the linearized model identified in the Problem 3.9 and K is a matrix of feedback gains to be designed. The discrete time model is considered, but the same procedure is applied when continuous time model of the process is used. 8. Conclusion This paper is devoted to mathematical modeling. General model structure valid under some simplifications is derived in terms of nonlinear state space description and the corresponding block diagram. Identification of system parameters is done in item 3. Number of experiments for direct and indirect measurement of system parameters is described. Typical numerical values are derived and used for initial tuning of the system model. The model is linearized around the different set points. Transfer function matrix as an Input/Output model and linear state space model are derived. The following chapters are devoted to controllers design. Item 4 gives guidelines for selection of the sampling period for digital control systems. Item 5 shows the design of the conventional PID control and State Feedback control by pole placement. Figures from measurements can be found in Item 6.