Design Problem Matlab Project TF
Design Problem Matlab Project TF
Due to the high starting torque, DC motors are widely used in actuator mechanism. It directly
provides rotary motion and, coupled with wheels or drums and cables, can provide translational
motion. Equivalent circuit of the DC motor is shown in Figure 1.
Input of the system is the voltage source V applied to the motor's armature, while the output is
the angular displacement of the shaft . The rotor and shaft are assumed to be rigid and the
friction torque is proportional to angular velocity. The Block diagram of the open-loop system
is shown in Figure 2
This project requires to design a closed loop control system as shown in the block diagram in
Figure 3 which can meet the following time domain specifications given in Table -1
R electric resistance 1
ANS:
A transfer function of control system is a mathematical function which theoretically model the
device output over every input
We know that transfer function is output over input
θ ( s )=G( s)V ( s)
θ ( s ) is a output response
V (s) is an input response
output
tansfer function=
iinput
V (s )
G ( s )=
θ ( s)
Q2
Plot the impulse response of the system
ANS:
We put transfer function in MATLAB and use the impulse function of MATLAB for plotting the
impulse response of function
3
G ( s )=
s +1
Code:
sys = tf(3,[1 2]);
impulse (sys)
impulse graph:
Q3
Plot the unit step response of the system
ANS:
We put transfer function in MATLAB and use the step function of MATLAB for plotting the
step response of a function in MATLAB
Code:
sys = tf(3,[1 2]);
step (sys);
step response:
Q4
Draw the pole zero plot of the system. Justify the stability of the system
ANS:
We put transfer function in MATLAB and use the pzmap function of MATLAB for finding the
poles and zeros in MATLAB
Code:
sys = tf(3,[1 2]);
pzmap(sys);
PZmap:
Justification:
a discrete-time system is stable only if all of it's poles lie inside the unit circle When you
discretize a stable continuous-time system with a sampling rate that preserves the stability then
the entire left-half-plane is mapped in the interior of the unit circle.
Q5
Calculate the damping ratio, and natural frequency for open loop system
Ans:
For finding the damping ratio of a function in MATLAB we use the function of MATLAB called
damp it shows all the values in output
Code:
sys = tf(3,[1,2]);
damp(sys);
output:
Nyquist diagram:
Q8
ANS:
A transfer function of control system is a mathematical function which theoretically model the
device output over every input
We know that transfer function is output over input
C (s)
G ( s )=
D(s )
V (s)
H ( s )=
C ( s)
D ( s )=R ( s ) ± v ( s )
G ( s )=C ( s ) D ( s )
C (s)=G ( s )(R ( s ) ± v ( s ))
C ( s ) ( 1 ±V ( s ) H ( s ) ) =G ( s ) R ( s )
C( s) G( s)
=
R( s) (1 ±G( s)V (s ))
C( s) G( s) C ( s) G( s)
= , =
R( s) (1+G(s)V (s)) R( s) (1−G( s) V ( s))
The transfer function will be
2
3 2
s + 12 s +20.02 s
Q9
a)
Obtain the step response of the system with time domain parameters overshoot, settling time,
peak time, and the steady-state error shown Figure 3 for the following scenarios
P-controller Proportional constant (Kp) = 50
ANS:
We will use the p controller block from the Simulink library for the measurement of overshoot
and other parameters we will use the scope as shown in the figure
b)
Obtain the step response of the system with time domain parameters overshoot, settling time,
peak time, and the steady-state error shown Figure 3 for the following scenarios
P-controller Proportional constant (Kp) = 100,
ANS:
We will use the p controller block from the Simulink library for the measurement of overshoot
and other parameters we will use the scope as shown in the figure
c)
Obtain the step response of the system with time domain parameters overshoot, settling time,
peak time, and the steady-state error shown Figure 3 for the following scenarios
P-controller Proportional constant (Kp) = 150,
ANS:
We will use the p controller block from the Simulink library for the measurement of overshoot
and other parameters we will use the scope as shown in the figure
d)
Obtain the step response of the system with time domain parameters overshoot, settling time,
peak time, and the steady-state error shown Figure 3 for the following scenarios
PI controller Kp = 75 and Ki = 1
ANS:
We will use the PI controller block from the Simulink library for the measurement of overshoot
and other parameters we will use the scope as shown in the figure
e)
Obtain the step response of the system with time domain parameters overshoot, settling time,
peak time, and the steady-state error shown Figure 3 for the following scenarios
f)
we have used P controller in first 3 parts by using 3 different proportionality constant after that
we used PI controller by using 2 different Ki constants the results of P and PI controller are
almost same P controller can stabiliaze first order unstable process and we use PI controller to
avoid large disturbance and noice in this signal the large noice was not present so the results are
almost same
Q10
a)
By incorporating a derivative constant in the PID controller with following cases
Kp = 75, Ki = 200, Kd = 1
ANS:
We will use PID controller in this part
b)
By incorporating a derivative constant in the PID controller with following cases
Kp = 75, Ki = 200, Kd = 5
c)
By incorporating a derivative constant in the PID controller with following cases
Kp = 75, Ki = 200, Kd = 10
Q11
Develop a Simulink model outlining all the elements of the block diagram in Figure (2) for the
unstable second order control system). Use the Simulink block PID from Matlab/Simulink
library as a controller. Obtain the time reponse of the system with time domain specifciations in
the Table -1
ANS:
We will use PID tuner for tuning the controller the output of the graph is shown in the figure
Q12
Discuss the effect of each of the PID parameters on the dynamics of a closed-loop system and
demonstrate how to use a PID controller to improve a system's performance
ANS:
The effect of each PID parameters are studied on the dynamics of a closed loop system along
with its conditions and certain advantages.
Proportional:
This component takes the error (difference between setpoint and output), and generating a
corrective response that is a constant multiplied by the error, this proportional
constant P represents the amplification of the response of the controller with error, as P
increases, the system becomes more sensitive to error and responds faster, but might generate
unstability
Integral:
The integral component sums the error over time, the result, is that this component is sensitive to
very small differences between the setpoint and output of the system, correcting the error in
steady state and driving it to 0.
The coefficient ti represents the speed that the controller takes to corrects the error from 100% to
0, the greater the value of ti, the more time it takes to reach 0 error, but as ti gets smaller and
closer to 0, the Integral component might saturate, and there will be no compensation (integral
windup)
Derivative:
The derivative component takes the speed at which the error increases, it responds to the rate of
change of the error, correcting according to the td constant, if td increases, the system responds
strongly to increase of rate in t
Conclusion:
After obtaining the results by using PI,P and PID tuners we have used different parameters we
can see in the graph if we change the parameters the the graph become more and less damped in
last part we have used the PID tuner for obtaining the graph of output