Final Exam M.Eng. Amjad Elshenawy RTECS Gc(s)Gc(s) Gc(s)Gc(s) Controller n sensor noise w load disturbance Gp(s)Gp(s) Gp(s)Gp(s) Plant u control y output r reference input, or set-point e sensed error
RTECS
Instruction The exam is an open book exam Internet and network connections are not allowed Create a new folder “FirstName_LastName” RTECS
4
Problem Description The aim is to control the antenna azimuth angle RTECS
System Concept Closed loop control is used to control the antenna position RTECS
Block Diagram RTECS
8
Model Name Create a model named ▫FirstName_LastName_PhysicalSystem.mdl RTECS
Physical System Description Power Amplifier [2.5 Points] Power Amplifier ▫To drive the dc Motor The transfer function of the power amplifier is given as RTECS
Physical System Description DC Motor [10 Points] Armature controller DC Motor RTECS
Block Diagram RTECS
Check Your Model (Optional) Compare with S-Function Model RTECS
RTECS
Model Name Create a model named ▫FirstName_LastName_Analogue_Controller.mdl RTECS
Potentiometer Transfer Functoin [2.5 Points] Both input and output potentiometers map the angle range [0... π ] to the voltage range [0... 5V] RTECS
Controller Implementation [15 Points] Implement a PID controller Tune the controller parameters using Ziegler- Nichols Oscillation Method with the Tyreus & Luyben Tuning Values using either ▫Manual tuning ▫Tuning using Simulink control design and the PID controller block from Simulink Extras Additional linear RTECS
Controller Implementation (Cont.) [15 Points] Apply a unit step input then using Matlab calculate ▫RiseTime ▫SettlingTime ▫Overshoot RTECS
RTECS
Model Name Create a model named ▫FirstName_LastName_Digital_Controller.mdl RTECS
Digital Control Loop [5 Points] Introduce the elements of the digital control loop ▫Quantizer ▫Delay Design the system with a sampling time = 2ms No. Of bits used in quantization = 8 bits Time delay in the loop = 1ms RTECS
Controller Discretization [5 Points] Perform discretization of the analogue PID controller using Trapezoidal discretization method for both the integrator and the derivative. RTECS
Results Comparison [Bonus Points] Apply a unit step input and using Matlab calculate ▫RiseTime ▫SettlingTime ▫Overshoot Compare the results with those of the analogue controller results RTECS
RTECS
Model Name Create a model named ▫FirstName_LastName_Digital_Controller_SIL.m dl RTECS
Model Configuration [10 Points] Configure the model to be suitable for SIL Create an S-function wrapper in which the PID gains are tunable Replace the controller by the S-function wrapper Perform simulation RTECS
Results Comparison [Bonus Points] Apply a unit step input and using Matlab calculate ▫RiseTime ▫SettlingTime ▫Overshoot Compare the results with those of the digital controller results RTECS
References Norman S. Nise, “Control Systems Engineering” RTECS