0% found this document useful (0 votes)
77 views

ELE 4623: Control Systems: Faculty of Engineering Technology

The document describes a laboratory experiment on designing a phase lead compensator for a DC motor position control system. The objectives are to achieve a phase margin greater than 45 degrees and gain margin of at least 6dB, with overshoot less than 15%, rise time less than 0.5 seconds and settling time less than 1 second. Part A involves analyzing the uncompensated system's frequency response using Bode plots to determine stability margins, and step response to determine overshoot, rise time, and settling time. The results show that the uncompensated system does not meet all the control objectives.

Uploaded by

Maitha Saeed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
77 views

ELE 4623: Control Systems: Faculty of Engineering Technology

The document describes a laboratory experiment on designing a phase lead compensator for a DC motor position control system. The objectives are to achieve a phase margin greater than 45 degrees and gain margin of at least 6dB, with overshoot less than 15%, rise time less than 0.5 seconds and settling time less than 1 second. Part A involves analyzing the uncompensated system's frequency response using Bode plots to determine stability margins, and step response to determine overshoot, rise time, and settling time. The results show that the uncompensated system does not meet all the control objectives.

Uploaded by

Maitha Saeed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 14

Faculty of Engineering Technology

Electrical Engineering Department

ELE 4623: Control Systems


LABORATORY WORK

LAB #07
Phase Lead Compensator Design and
Evaluation
BY
Name: ID
H00350247
Abdulla Sulaiman

Submission Date:
Instructor Name:
GENERAL INFORMATION AND GUIDE
 This Lab manual should be used together with the class notes/lecture.
 Each student / group should work independently; direct copy of work will be highly
penalized according to the HCT policy.
 For group work, contribution of each member of the team should
 You are advised to follow the guide provided here for smooth and timely completion
of the experiments.
 The following should be noted regarding the report format:
 Prepare the report in softcopy, and upload in the appropriate BBL
section.
 Diagram/Picture should be neatly and clearly prepared in the report.
 For the text font, use 12 points, Time New Roman and double
spacing.
 Lab. demonstration of the experiment will be assessed during the Lab. session. See
rubric for the assessment in the BBL.
 Report submission due date : check the announcement on the course BBL
 Assessment Approach per each experiment:
Report: 60% (see report rubric)
Demonstration: 40% (see practical/simulation rubric)

ELE 4623 Lab No.7


TITLE: Compensator design and Evaluation

PURPOSE: Design Phase Lead for an LTI system to achieve a given set of control objectives.

Method:
1. Design Phase Lead compensator analytically using frequency response technique.
2. Create a MATLAB script / SIMULINK diagram to evaluate the uncompensated and
compensated system performances: stability and time domain response performances.
3. Present and discuss the performance results comparatively.
4. Prepare report

Lab resources:
1. Computer systems /Laptops
2. MATLAB software
Expected Outcome:
1. Sample of MATLAB mfile and SIMULINK block
2. Results of system responses
3. Report submission
1.1 Background
In control system, compensation refers to design changes in the control system to improve the
system performance. It involves designing and adding extra sub-system known as compensator (or
controller) to achieve specific control objectives.
Figure 1 shows a standard closed-loop control system with and without compensator. In the figure,
compensator, C, plant, G, and feedback gain (sensor), H.

(a) (b)
Figure 1: Standard Compensated Closed-Loop System Block Diagram (a) uncompensated (b)
compensated)
Control objectives (specifications) are aimed at improving (i) stability and (ii) time domain
response requirements. The breakdown is as follows:
 Stability: stability requirement is given in terms of desired Gain and Phase margins.
Generally, GM of at least 6dB and PM between 45 and 65 degrees are common in practical
application.
 Time domain response: this is usually given with respect to step response performances,
which rise time, percentage overshoot, settling and steady state error. Actual values depends
on application requirement.
There are several types of compensator ranging from classical controllers to modern and advanced
controllers. For the purpose and scope of this study, the following are the common classical
compensators:
 Gain compensator
 Pole/Zero compensator
 Phase Lead compensator
 Phase Lag compensator
 PID compensator
The first two compensators were covered in the previous LAB assignments (refer to LAB 5 & 6), in
this LAB, focus will be on Phase Lead compensator. Its characteristics and design steps provided in
the next section.
1.2 Phase Lead Compensator Design Procedure
Phase lead compensator is one of the common approach in phase compensation technique. It is used
to provide positive phase to the open-loop gain.
Key characteristics of Phase Lead compensator
 Transfer Function
 Design form:
1+ ατs
C ( s) = (1)
1+ τs
 Zero-pole-gain (zpk) form
Simplify equation (1) to obtain the following zpk form of the phase lead
compensator:
k (s + z)
C ( s) = (2)
(s + p)
where the gain, k =α , the zero, z=1/ατ , and the pole, p=1 / τ
For phase lead, the magnitude of zero is less than the magnitude of pole, i.e. |z|<| p|
 According to equation (2), phase lead adds a zero and a pole to the system transfer function.
 The frequency response of a phase lead compensator is shown in Figure 2 :

Figure 2: Phase lead compensator frequency response (Bode plot)

Design Procedure
The goal of the Phase lead compensator design is to determine the appropriate values of the
compensator parameters, α and τ , in equation (1) to achieve the specified control objectives. The
control objective in this approach is given in terms of the desired phase margin, PM desired .The
following are the design steps:
1. Get the current system phase margin (uncompensated PM), PM uc form uncompensated
system.
2. Determine the amount of phase, ∅ , to add to open-loop gain in order to give the desired
phase margin,
∅=PM desired −PM uc (3)

3. From the additional phase,∅ , determine the parameter, α value using the formula:
1+sin ⁡( ∅)
α= (4)
1−sin ⁡(∅)
4. Determine the gain at the maximum phase (refers to Figure 2 for the compensator’s
maximum phase) using the formula:
−10 log 10 (α) (5)
Above expression (5) is due to the fact that, the gain at the maximum frequency is half the
compensator high frequency gain, which is 20 log 10 (α ) as shown in the Figure 2.
5. From the uncompensated Bode plot, obtain the corresponding frequency at gain calculated
in step 4. This frequency is now the expected new gain crossover frequency, ω new
6. Determine the parameter,τ , using the formula:
1
τ= (6)
ωnew √ α

7. Substitute the values of α and τ , in the equation (1) to determine the compensator transfer
function.
LAB Exercises
System Description:
The block diagram in Figure 2 below model a simple DC motor robot arm gripper position control.
Input , θ¿ (s) , is the desired robot arm position, and the output ,θ out (s), is the actual robot arm
position. Position sensor, H, measure the actual position for the feedback system.

Figure 2: Block Diagram of a DC Motor robot arm gripper position control system.

The system parameters are:


Amplifier gain, A 1
Motor field resistance, Rf 10Ω
Motor constant, km 550 N.m/Amp
Motor shaft inertial, J 1 kg. m2
Friction coefficient, b 1 N.m.s
Sensor gain, H 1

Design Problem statement (Design specifications): Design a Phase Lead compensator to achieve
the following control objectives:
 Phase margin greater than or equal to 45 o ( PM≥ 45 o) and at least 6dB gain margin
(GM)
 Overshoot less than 15% (OS < 15%)
 Rise time less than or equal to 0.5 second ( t r ≤0.5 sec .)
 Settling time less than or equal to 1 second ( t s ≤1 sec .)

Then evaluate and compare the compensated and uncompensated systems performances.

Show your MATLAB files and result to the instructor for review and assessment during the
Lab
PARTA
Uncompensated System Analysis
 Analyze the uncompensated system performances:
 Frequency response using Bode plot, get uncompensated PM and GM.
 Step response analysis: get the OS, settling time, rise time and steady state error.
 Write brief observation on the uncompensated stability margins, %overshoot, rise time and
steady state error.

A.1. Derive uncompensated the open loop and closed-loop transfer function of the above system
Step should be clearly shown for full mark.

A.2 Bode plot (indicate stability margins)

MATLAB Codes:
clc;
clear;
close all;
A=1;
J=1;
b=1;
Rf=10;
km=550;
H=1;
num=[km];
den=[Rf*J Rf*b 0];
sys= tf(num,den);
sysOLT=A*sys*H
bode(sysOLT)
margin(sysOLT)

Bode Plot
A.3 Closed-loop step response plot
MATLAB Codes:
clc;
clear;
close all;
A=1;
J=1;
b=1;
Rf=10;
km=550;
H=1;
num=[km];
den=[Rf*J Rf*b 0];
sys= tf(num,den);
sysOLT=A*sys*H
bode(sysOLT)
margin(sysOLT)
sysCLT=feedback(A*sys,H)
figure()
step(sysCLT)
stepinfo(sysCLT)
s=1;
[y,t]=step(s*sysCLT);
ess=abs(s-y(end))

Step Response Plot


A.4 Performance Results and Observation
Results Overview
PM GM Rise time Settling % Steady state
time overshoot error
Uncompensated 7.71deg Inf 0.148 7.69 80.87% 0.0045
system

Provide performance analysis report (minimum 50 words)


Hint: provide observation on the uncompensated system performance in terms of stability margin, speed of response,
steady state accuracy and type of response. Link your response to the concept presented under background notes
and design specification.

For our uncompensated system we found that the system is stable because the Gm and Pm are
positive and the Wpc>Wgc So the system will be stable. The speed response we can observe
from stepinfo() the time parameters we can see that the rise time is 0.1481 with an overshoot of
80% because the system is in open loop.
PARTB
Phase Lead Compensator Design and Evaluation
 Design a Phase Lead compensator to achieve the above objectives (use the space provided in
below to report the design, you can attach any additional materials at the appendix)

 Evaluate the Phase Lead compensated system performances:


 Frequency response using Bode plot, get uncompensated PM and GM.
 Step response analysis: get the OS, settling time, rise time and steady state error.

Follow the steps below to perform this design task:

B.1 Phase Lead Design


Show clearly step-by-step procedure and all assumptions, calculation, figures / plots, and present the
transfer function of final compensator.

B.2. Derive compensated (with compensator designed in B.1) open loop and closed-loop transfer
function of the system.
B.3 Compensated Bode plot (indicate stability margins)
MATLAB Codes:
clc;
clear;
close all;
A=1;
J=1;
b=1;
Rf=10;
km=550;
H=1;
num=[km];
den=[Rf*J Rf*b 0];
sys= tf(num,den);
num1=[0.255 1];
den1=[0.022 1];
sys_cs=tf(num1,den1);
sysOLT=A*sys_cs*sys*H
figure()
bode(sysOLT)
figure()
margin(sysOLT)
sysCLT=feedback(A*sys_cs*sys,H)
step(sysCLT)
stepinfo(sysCLT)

Bode Plot

B.4 Compensated Closed-loop step response plot


MATLAB Codes:
clc;
clear;
close all;
A=1;
J=1;
b=1;
Rf=10;
km=550;
H=1;
num=[km];
den=[Rf*J Rf*b 0];
sys= tf(num,den);
num1=[0.255 1];
den1=[0.022 1];
sys_cs=tf(num1,den1);
sysOLT=A*sys_cs*sys*H
figure()
bode(sysOLT)
figure()
margin(sysOLT)
sysCLT=feedback(A*sys_cs*sys,H)
step(sysCLT)
stepinfo(sysCLT)
s=1;
[y,t]=step(s*sysCLT);
ess=abs(s-y(end))

Step Response Plot

B.5 Performance Results and Observation


Results Overview
PM GM Rise time Settling % Steady state
time overshoot error
Compensated 61.4deg inf 0.0885 0.645 14.57% 0.0008
system

Provide performance analysis report (minimum 50 words)


Hint: provide observation on the uncompensated system performance in terms of stability margin, speed of response,
steady state accuracy and type of response. Link your response to the concept presented under background notes
and design specifications.

After compensation we can find that the system is still stable with a better overshoot because the
system is in closed loop we can find that also the speed response of the circuit is faster because
the closed feedback will have a faster system. The step response of the system while in
feedback has better system performance.

PARTC
Comparative Analysis
Compare and present comparative analysis of uncompensated and compensated systems in PartA
and PartB

C.1 Comparative Performance Data


PM GM Rise time Settling % Steady state
time overshoot error
Uncompensated 7.71deg Inf 0.148 7.69 80.87% 0.0045
system
Compensated 61.4deg inf 0.0885 0.645 14.57% 0.0008
system

C.2. Comparative step response plots: provide step response plots of both compensated and
uncompensated systems on one graph
C.3. Comparative analysis: provide comparative report of both systems (minimum 50 words)
We can observe from the step response of both the compensated and the uncompensated system that
there is a difference in the system parameters. The most obvious is the overshoot and the speed of
the response as per time the compensated system has better overshoot and speed response while
compared to the uncompensated.

Conclusion (at least 20 words)

In conclusion we were able to apply what we learned and executed a matlab code to build our
transfer function and apply the bode analysis to see whether our system is stable for compensated
and uncompensated.

Reference Materials:
(Provide reference to all materials used in this assignment)

You might also like