0% found this document useful (0 votes)
91 views12 pages

MATLAB Control Engineering Assignment

The document is an assignment for a control engineering MATLAB course. It contains two exercises: 1. Analyzing the response of a system to step inputs and disturbances for different controller gains. This involves calculating transfer functions, system responses, and performance metrics. 2. Designing a second-order feedback system for a motor to meet specifications for overshoot and settling time by selecting the controller gain. The suitable gain is determined to be 50 based on the given performance criteria.

Uploaded by

Ther Htet Aung
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
91 views12 pages

MATLAB Control Engineering Assignment

The document is an assignment for a control engineering MATLAB course. It contains two exercises: 1. Analyzing the response of a system to step inputs and disturbances for different controller gains. This involves calculating transfer functions, system responses, and performance metrics. 2. Designing a second-order feedback system for a motor to meet specifications for overshoot and settling time by selecting the controller gain. The suitable gain is determined to be 50 based on the given performance criteria.

Uploaded by

Ther Htet Aung
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

MANDALAY TECHNOLOGICAL UNIVERSITY

DEPARTMENT OF MECHATRONICS ENGINEERING

CONTROL ENGINEERING
(McE – 42077)

MATLAB
Assignment

Mg Ther Htet Aung


IV-BE MC-26
Exercise 1:
(a) Get the transfer function from R(s) to Y(s).
(b) Get the transfer function from D(s) to Y(s).
(c) Generate the system response; for K= 10, 20, 50, 100; due to a unit step input
– r(t).
(d) Generate the system response; for K= 10, 20, 50, 100; due to a unit step
disturbance – r(t).
(e) For each case, find the percentage overshoot (P.O), rise time, settling time,
steady state of y(t).
(f) Compare the results of the two cases.
(g) Investigate the effect of changing the controller gain on the influence of the
disturbance on the system output.

Solution

(a) The transfer functions from R(s) to Y(s) for K= 10, 20, 50, 100.
(b) The transfer functions from D(s) to Y(s) for K= 10, 20, 50, 100.
(c) The system response; for K= 10, 20, 50, 100; due to a unit step disturbance –
r(t)
Input Code:
Output

(d) The system response; for K= 10, 20, 50, 100; due to a unit step disturbance –
r(t)
Input Code:
Output
(e) The percent overshoot, rise time, settling time, steady state of y(t) due to a
unit step input-r(t)
The percent overshoot, rise time, settling time, steady state of y(t) due to a unit step
disturbance-d(t)
(f) Comparison between the unit step input and unit step disturbance
Percent Rise Time Settling Time Steady State
Overshoot
K
Step Distu- Step Distu- Step Distu- Step Distu-
Input rbance Input rbance Input rbance Input rbance
10 0 0 0.2045 2.4509 0.3893 4.4361 1 0.1

20 3.8606 0 0.1698 1.1364 0.9133 2.0676 1 0.05

50 12.8912 0.6487 0.1261 0.3763 0.7180 0.5905 1 0.02

100 22.0164 9.4773 0.0972 0.1856 0.6659 0.5943 1 0.01

(g)
In the unit step disturbance, we got percent overshoot value zero for K=10, 20,
which means that the system is overdamped. And we got underdamped system for
K=50 ,100.

Therefore, the larger the controller gain, the more like the system to be
underdamped.

The steady state value of system response decreases while increasing in controller
gain.

The rising time and the settling time also take longer due to the disturbance except
for the settling time in underdamped system.
Exercise 2: Design of a Second order feedback system based on performances. For
the motor system given below, we need to design feedback such that the overshoot
is limited and there is less oscillatory nature in the response based on the
specifications provided in the table. Assume no disturbance (D(s)=0).

Table: Specifications for the Transient Response


Performance Measure Desired Value
Percent Overshoot Less than 8%
Settling Time Less than 1s

Solution
Input Code:
Output
Ka 20 30 50 60 80

Percent 0 1.1758 7.6893 10.8433 16.2929


Overshoot
Settling 0.5835 0.3176 0.3790 0.3404 0.4038
Time

For the given motor system, specifications for


(a) Percent overshoot < 8%
(b) Settling time < 1 s
The suitable value of Ka is 50.
Ka = 50 satisfies the design condition specified.

♦♦♦♦♦

Common questions

Powered by AI

A unit step input causes the system to demonstrate classic transient response characteristics such as overshoot and settling time changes based on gain. For instance, with K=50, a unit step input causes a 12.8912% overshoot, whereas a disturbance results in only 0.6487% overshoot, indicating more stability under disturbance. Additionally, rise and settling times are generally longer under disturbances, reflecting that system takes longer to stabilize independently of gain .

As controller gain increases, the system experiences significant variations in overshoot, settling time, and rise time. Higher gains generally yield greater overshoot (up to 22.0164% for K=100), indicative of more pronounced transient oscillations. Settling time decreases (e.g., 0.6659 seconds for K=100), implying quicker stabilization, though this could risk instability if overshoot is excessive. Rise time shows an inverse relationship to gain, becoming remarkably fast, e.g., 0.0972 seconds for K=100, leading to a potentially aggressive response that must be controlled to avoid sustained oscillations .

For a unit step input, increasing the controller gain generally results in a higher percent overshoot and a faster rise time. For example, with K=10, the system has 0% overshoot and a rise time of 0.2045 seconds, while for K=100, the system exhibits 22.0164% overshoot with a rise time of 0.0972 seconds. Settling time tends to decrease with higher gains, indicating faster stabilization; however, the steady state value consistently reaches 1 across all K values .

From the comparison, it becomes apparent that as gain increases, so does system responsiveness and risk of instability through higher overshoot. At low gains (K=10, 20), the system is more stable and slower, yielding zero overshoot and moderate rise times, whereas higher gains (K=50, 100) escalate responsiveness at the cost of stability, evidenced by significant overshoot and reduced settling periods. This dynamics reflect a trade-off scenario requiring strategic tuning to maintain optimized performance without overshooting acceptable risk margins .

The transfer functions from R(s) to Y(s) and from D(s) to Y(s) are derived using the control system model equations. The assignment tasks students to compute these functions for different values of controller gain (K=10, 20, 50, 100) by formulating the system equations that describe these relationships. The exact derivations would consider the Laplace transformations of the system components and characteristics .

Higher controller gains (K=50, 100) lead to underdamped systems as indicated by the presence of overshoot in a step disturbance scenario. For instance, no overshoot at K=10, 20 signifies overdamping, while overshoot is evident at K=50, 100. This shows the presence of oscillatory behavior as gain increases, suggesting a shift toward underdamping .

Choosing a suitable feedback gain aligns with desired transient specifications by ensuring that overshoot remains below set thresholds (less than 8%) while achieving target settling times (less than 1 second). A gain of Ka=50 in the motor system ensures these conditions are met, yielding a 7.6893% overshoot and a 0.3790-second settling time, thereby fulfilling the design purpose and reducing oscillatory risk to a manageable level .

The comparison shows that the system's control features, including overshoot, rise time, and settling time, behave differently under step inputs versus disturbances. A disturbance generally results in less overshoot (e.g., 0% for K=10, 20), while a step input, due to its intended system demand, shows higher dynamic responses like higher overshoot (e.g., 12.8912% for K=50). This implies that control systems might need different strategies depending on input type .

To design such a feedback system, it's crucial to choose a controller gain (Ka) that minimizes oscillations. For the motor system mentioned, a Ka of 50 meets the criteria with a 7.6893% overshoot, and a 0.3790-second settling time. This gain value helps maintain performance under a specified limit of 8% overshoot and less than 1-second settling time, indicating a well-calibrated system response .

The steady state value's alterations with varying controller gain underline the system's capacity to reach equilibrium. Under disturbance, a decrease in steady state value with higher gain suggests diminishing ability to maintain the initially desired output level. For instance, the steady state decreases from 0.1 to 0.01 as gain increases from 10 to 100, illustrating lower disturbance rejection capability at higher gains .

You might also like