Home
Automatic Control II – 2DOF Helicopter Tutorial
Contents
1. P LF T R F 1 yxLF T we J and J which are equal are the moments of inertia of the body about the pitch and yaw axes respectively p is the angular acceleration of the pitch p relative to the horizontal axis Positive p is when the fan is going up and p 0 represents a horizontal body y is the angular acceleration of the yaw The reference for yaw is not relevant Positive is defined CCW looking from above F and F are the pitch and yaw forces respectively generated by the propellers and are functions of the input voltages V and V L is the distance from the motors both pitch and yaw to the pivot R is the horizontal distance of the centre of mass from the pivot This is a function of pitch F is the force due to gravity acting through the centre of mass T and T are unwanted coupling torques at the propeller axes and are non linear functions of the input voltages V and V respectively Page 3 of 14 Quanser 2DOF Helicopter Tutorial These equations are nonlinear but can be linearized to obtain an equation of the form where 0 0 p 0 0 1 Olp 0 0 0 y _ 0 0 0 iiy Ke Ky v 0 ae 2 p 00 0 Olp J 5 J V Gs y lo o o ofy _Ke Kw 0 Jy Jy G4 R F Jp iS a gravitational constant disturbance Kp is the force generated in the pitch direction by a unit voltage applied to the pitch motor K is the force generated in the yaw direction by a unit voltage applied to the yaw motor
2. ie F K V K is the force generated in the pitch direction by a unit voltage applied to the pitch motor ie F K V K is the torque generated in the pitch direction by a unit voltage applied to the yaw motor ie T K V Ideally this would be zero and K is the torque generated in the yaw direction by a unit voltage applied to the pitch motor ie T K V Ideally this would be zero The equations are actually considerably more complex than described above a b c ad g e Many of the moments generated are functions of pitch We have assumed that the pitch is small We have assumed that the lift is a linear function of motor drive voltage In practice it is not The dynamics of the rotating propellers will also affect the yaw and pitch axes but these effects are considered negligible The response to a voltage input does not result in immediate response of the propeller speeds and thus output force the time constants of these sub systems are considered to be much faster than the body dynamics and hence can be neglected However these rotor poles are not a great deal faster than the body poles Centrifugal forces during a yaw rotation will affect the pitch axis Air turbulence around the body will result in unknown disturbances Friction both static and dynamic has been completely ignored despite the friction in the yaw being significant Despite all the approximations the model is sufficient t
3. in the ease of control compared to the open loop Question 13 Now turn on the estimator and comment on the controller performance in particular look at the steady state performance and settling times Page 10 of 14 Quanse r 2DOF Helicopter Tutorial Appendix Full non linear set of equations The si J7 Pp J x Yy where mplified equations of motion are then given by RF G T y F R cos p A 1 R F GTP Jp and J which are equal are the moments of inertia of the body about the pitch and yaw axes respectively p is the angular acceleration of the pitch p relative to the horizontal axis Positive p is when the fan is going up and p 0 represents a horizontal body y is the angular acceleration of the yaw The reference for yaw is not relevant Positive is defined CCW looking from above F and F are the pitch and yaw forces respectively generated by the propellers and are non linear functions of the input voltages V and V R L is the distance from the pitch motor to the pivot R Lcos p hsin p is the horizontal distance from the yaw motor to the pivot R is the horizontal distance of the centre of mass from the pivot F is the force due to gravity acting through the centre of mass G T and G T are unwanted coupling torques at the propeller axes and are non linear functions of the input voltages V and V respectively the angular velocities y and p and also the fan spee
4. operator commands the throttle directly Use this mode to examine how difficult it is to control the system in open loop In this mode the sampled joystick voltages are limited to positive values and then sent out to the motors The other mode which is supplied of joystick input is to generate a ramp command to the two axes In this mode the joystick voltages are not limited to positive values The voltage is sampled by the program and integrated in software to result in two axis position commands The rates of integration Kjp and Kjy determine the ease of use of the system The outputs of the integrators are limited to 45 degrees for pitch and 15000 degrees for yaw This is the normal mode of operation when you choose controller 1 or 2 Caring For The System This is an expensive piece of equipment Be careful and do not abuse it 1 Never apply sudden step voltage changes of larger than 1 5 Volts to the pitch motor before the gain of 3 By doing so you are surging more than 5 amperes into the motor and you will eventually damage it 2 Never let the body drop suddenly from mid flight Always land the helicopter Page 13 of 14 Quanser 2DOF Helicopter Tutorial 3 Once in a while you will need to clean the contacts of the slipring Use a contact cleaning solution with a cotton swab and wipe the contact rings Do not touch the wipers Keep the system in a clean smoke free area 4 If the wipers do bend somehow
5. state control to a control system using an estimator This can be done by double clicking the block To run the Simulink model you will need to ensure that the terms you have used match those in the model You can view the response of the system using the VRML virtual reality model by double clicking on the block The VR model is shown in Figure 4 Please note that if you have a joystick on you then you can control the plant using this If you do not have a joystick or game controller you will need to delete the joystick output block Page 8 of 14 Quanser 2DOF Helicopter Tutorial File View Viewpoints Navigation Rendering Simulation Recording Help i F O f o 7 FRONT Fly Pos 59 89 51 82 44 89 Dir 0 76 Figure 4 VR model of 3DOF Hover Question 10 First look at the response of a pitch setpoint of 1 radian using full state feedback If you have done everything correctly the settling times should be in the order of 2 seconds Look at system output and the input control voltage Note the maximum of each Now repeat this when using an observer to estimate the states Note the system output and control voltages as done before Page 9 of 14 Quanser 2DOF Helicopter Tutorial Experimental Rig Bonus Questions Now for the fun stuff If all looks well in the Simulink model then you are ready to try the real thing A modified version of the Simulink model in Figure 3 has been compiled to run on a real
6. use a pair of tweezers to bend them back inward to ensure contact Never force the wipers Do not use anything bigger or other than tweezers 5 You already have an idea of the feedback gain ranges that will stabilize the system If the system is unstable quickly shut it off and redesign your controller s GND Power sa o o mi 2Gs3 S1 ieee Inputs S2 S3 Joystick X To A D 2 Power Amplifier OUT 4 Joystick Y To A D 3 OGND UPM2405 Gain 3 Cable MultiQ Motors Analog Output Ch 0 Test he k O Pitch Motor Yaw Motor FROM A ANAL OG 5 o je o jo SENSOR Power Amplifier ue Te oes G C ain 3 Cable GN From D A QGND To Load Se ee UPM 1503 Analog Output Ch 1 Pitch Yaw To Encoder 1 on MultiQ To Encoder 0 on MultiQ Figure 4 Wiring Diagram Page 14 of 14
7. Quanser 2DOF Helicopter Tutorial Automatic Control Il 2DOF Helicopter Tutorial amp Lab Dr Ben Cazzolato 3 September 2006 Please note that a great deal of the material has been reproduced directly from the Quanser User s Manual for the 2DOF Helicopter in particular the background material Executive Summary The purpose of the experiment is to design a controller that allows you to command a desired pitch and yaw angle of a model helicopter The model was purchased with the financial assistance of the Sir Ross and Sir Keith Smith Fund You will examine the performance of the system with an operator in the loop A joystick is supplied that allows you to command the motors in open loop in order to compare human operator performance with computer control The joystick will also be used to provide the operator with a closed loop controller which improves operator performance and makes the system easier to use Introduction The 2D flight simulator experiment shown in Figure 1 consists of a helicopter model mounted on a fixed base The helicopter model has two propellers driven by DC motors The pitch propeller and the yaw propeller are used to control the pitch and yaw of the model respectively Motion about the two degrees of freedom is measured using two encoders Electrical signals and power from the pitch encoder and the two motors are transmitted via a slipring This allows for unlimited yaw and eliminates the possibility of w
8. ds The expression above neglects the rotor intertial dynamics This can also be included and will add another state for each rotor In order to be able to design a controller it is necessary to linearise the above expression First we will assume that the coupling torques are only a function of the input voltages Also we will assume that the angular velocities of the body are small which means that gyroscopic coupling is negligible Finally by assuming the pitch angle to be small the distance at which the yaw motor acts is R L and the gravitational disturbance acts through R does not change In doing so we obtain the expressions presented earlier Page 11 of 14 Quanser 2DOF Helicopter Tutorial Appendix Experimental Setup This appendix contains information about the rig and how it should be setup System Parameters Item Parameter _____ Vaue Body Rotational Inertia about Pitch Axis J 0 0307 gt pp Base Frame Mass excluding 0 146 props motors Pitch Fan Pitch Prop Graupner 8 6 3Bladed Assembly Motor Pittman 92345004 08 14 03 Viscous Damping 2 6E 06 N m s Yaw Fan Yaw Prop Graupner8 6 3Bladed_ Assembly Motor Faulhaber 28428006C Resistance 1 6 Ohms Pitch Motor Force Constant Kp 0 8722 N V Amp gain 5 Torque Constant Kp 0 02 Nm V Yaw Motor Force Constant K N V Amp gain 3 Torque Constant Ky Nm V Page 12 of 14 Quanser 2DOF Helicopter T
9. e largest ramp input into yaw equivalent to a velocity command that the system can track without saturation Page 7 of 14 Quanser 2DOF Helicopter Tutorial Simulink Modelling Now that the controller is designed we can see what happens in a fully developed Simulink model Open the Simulink model called heli_model_estim_bsc mdl It should look like the model shown in Figure 3 This model is an observer based state controller for the Quanser 2DOF Helicopter rig Written by B Cazzolato 1 6 04 Before this simulation can be run you must run the file d_heli2d_bsc_new m itch SP Augmented a t Motor Input2 Voltage Vp Vy Motor Input Voltage Vp Vy Heli VRML Model 2 States Pitch amp Yaw 2 Manual Switch Actual States Manual Switch Double click to select Full state control or Observer based control Pitch amp Yaw JoyStick Output Motor Inpat Voltage Vp Vy Scope2 Figure 3 Simulink state space model of 2DOF Helicopter with integral command following using an estimator The red constant boxes are the setpoints for the pitch and yaw The orange gain blocks are the feedback controller and the integral tracking controller The plant is modelled in light blue The observer is yellow The magenta blocks are scopes to allow you to view the control signals states and state estimates The manual switch allows one to change from full
10. ires tangling on the yaw axis http www quanser com http www smithfund org au smith html Page 1 of 14 Quanser 2DOF Helicopter Tutorial Figure 1 2DOF Helicopter Mathematical Modelling A complete mathematical model including propeller dynamics forces generated by the propellers static and dynamic friction of the bearings etc is very difficult to obtain We will instead develop a simplified model If you are interested a more complete non linear set of equations are presented in the appendix Consider the two DOF diagram shown in Figure 2 The pitch propeller is driven by a DC motor whose speed is controlled via input voltage V The speed of rotation results in a force F that acts normal to the body at a distance L from the pitch axis The rotation of the propeller however also causes a load torque T on the motor shaft resulting from drag on the pitch fan blades which is in turn seen at the yaw axis parallel axis theorem Thus rotating the pitch propeller does not only cause motion about the pitch axis but also about the yaw axis Similarly the yaw motor driven by a voltage V causes a force F to act on the body ata distance L from the yaw axis as well as a load torque T which is experienced about the pitch axis Page 2 of 14 Quanser 2DOF Helicopter Tutorial Figure 2 Free body diagram of forces and moments The simplified equations of motion are then given by where Jap J y
11. o design a working controller The most important aspects of the system are the coupling parameters K and K and their signs Note that a positive pitch voltage not only results in a positive pitch but also a negative yaw The ideal controller would take advantage of this effect in order to obtain an efficient response For example when turning right a helicopter pilot pitches up and reduces throttle to the stabilizer yaw motor and when turning left the pilot would pitch down and increase the throttle to the stabilizer Page 4 of 14 Quanser 2DOF Helicopter Tutorial Control System Design Given that there is a gravitational disturbance term G we clearly need integrators in the loop We define two new states a and y resulting in the following augmented state space representation b 0 0 1 0 Offp 0 0 0 0 0 y 000 1 0 Oly 0 0 0 0 0 By_ 9 9 9 ojo ofj Ky Ky Mae ele G a y 00 0 0J0 Oly Kp Ky JIV lo Ol 0 1 0 0 00 Ola o 0 1 0 0 Ly l o ojoo o o lo 1 0 where a p r at and y y 1 at are the integral of the pitch and yaw setpoint error respectively e r and r are the desired pitch and yaw setpoint respectively e K L K J 5 7718 rad s Vis the pitch sensitivity and is equal to the angular acceleration in pitch per unit voltage into the pitch motor likewise e K L K J 2 7886 rad s Vis the yaw sensitivity and is equal to the ang
12. the augmented state space system as given by Equation 3 in Matlab Using an optimal LQR controller with a state weighting matrix given by 10 0 0 00 01 0 0 00 0001 0 00 Q 4 00 0 01 0 0 00 0 0 50 10 0 0 0 0 5 and an effort penalty matrix given by R 0 05 0 ey o 0 05 Page 6 of 14 Quanser 2DOF Helicopter Tutorial determine the optimal 2x6 controller gains K K K Note the 2x4 gain vector K for the feedback controller and the 2x2 controller gains K for the integral command tracking Question 6 Determine the poles of the inner feedback system alone This means determining the poles of A B K where A is the original state matrix prior to augmentation and B mem m is the original control matrix prior to augmentation Question 7 Now we will build an estimator Using pole placement determine the 4x2 observer gain matrix L to place the poles of the estimator at 10 times the poles of the feedback system determined in Question 6 Question 8 Now we will build a model of the entire system including plant state controllers and estimator and reference inputs using the expression in your notes Determine the settling time of the closed loop plant to a unit pitch and unit yaw step command not simultaneous Question 9 Augment the C matrix to allow observation of the control signals Determine the largest step command in pitch given that both motors saturate at 5V Also determine th
13. time control system called dSpace This platform allows for rapid prototyping and testing of real time controllers The dSpace DS1104 control board takes the inputs from the encoder and a block converts the pulses generated by the encoder to angles for the pitch and yaw A Power PC and DSP process the control algorithm before outputting analog voltages to drive the fans via the power amplifiers Please note that the helicopter rig is an expensive piece of equipment Please be careful and do not abuse it The controller running on the platform is a full state controller The angular velocities are estimated using an approximate derivative This is not recommended in practice unless the model of plant is extremely poor which in this case it is The controller also has an estimator which can be toggled on and off Enter your control gains in the Control Desk of the dSpace real time control computer Question 11 With the controller turned off and running the system in open loop try to control the pitch and yaw using the joystick When in open loop the joystick position simply controls fan speed Comment on the ease or difficulty of this Question 12 Now turn on your feedback controller Use the joystick to change the angular position setpoint or alternatively type a setpoint in directly Compare the settling times for the real system against the Simulink model and comment as to why they might differ Note if there has been an improvement
14. ular acceleration in yaw per unit voltage into the yaw motor e The final two terms in the control matrix are K K J 0 3257 rad s V and K K J 0 6513 rad s V represent the coupling of the axes The sub matrices in the state matrix and control matrix are simply the matrices prior to state augmentation in other words Equation 2 If you are wondering what such a system may look like please jump ahead to Figure 3 which is a Simulink block diagram of what we are about the design and build Page 5 of 14 Quanser 2DOF Helicopter Tutorial Questions Matlab Modelling Question 1 Enter the non augmented state and control matrix as given by Equation 2 in Matlab Let the state matrix be A and the control matrix be B Ignore the gravitational disturbance What are the poles of the open loop system Describe what this means in relation to the physical system Question 2 Determine the condition number of the controllability matrix From this determine if the system is controllable noting how controllable it is Question 3 From the earlier discussion the encoders provide us with both pitch and yaw Determine the output matrix C for the original system Question 4 Determine the condition number of the observability matrix From this determine if the system is observable noting how observable it is Question 5 We can now proceed in designing a full state feedback controller for the system First build
15. utorial Wiring Wire the system as shown Note that there are two different amplifiers supplied with the system The larger amplifier UPM2405 is used for the pitch motor and is supplied with an output cable labelled Gain 5 Use this cable from the To load to the Pitch motor The input voltage V should be limited to 5 volts and is defined to be the voltage applied BEFORE the gain of 5 The smaller amplifier UPM1503 is used for the yaw motor and is supplied with an output cable labeled Gain 3 Use this cable from the To load to the Yaw motor The input voltage V should be limited to 5 volts and is defined to be the voltage applied BEFORE the gain of 3 The measurements for yaw and pitch are obtained by wiring the encoders to the MultiQ board The resolution for the pitch axis is 1024 counts per revolution 4096 counts per revolution in quadrature The resolution of the yaw axis is 2048 counts per revolution 8192 counts per revolution in quadrature Starting positions should be Pitch Body horizontal Yaw Starting position Joystick Input The system is supplied with a joystick with two output voltages proportional to the joystick handle angles The joystick can be wired as shown The two voltages are applied to A D channels 2 and 3 You can use the joystick in two ways Open Loop or Closed Loop In open loop the joystick voltages Vjp and Vjy are used to apply a voltage directly to the motors This way the
Download Pdf Manuals
Related Search
Related Contents
e-support - Logo of Otto Bock HealthCare EVGA P55 V DOQ-CGCRE-027 Au travail avec le Samsung Chat Operating Instructions AMS1x PSL Model 4 JABRA speak 810 STATEMENT OF PURPOSE/SERVICE USER GUIDE PRINSTED BEDIENUNGSANLEITUNG - drucker "取扱説明書" Zeppelin Connectivity Guide Copyright © All rights reserved.