You are on page 1of 19

Design problem

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.

Figure 1 DC motor Equivalent circuit

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

Figure 2 Open-loop diagram


Where V(s): Inut voltage
s: Angular displacement
G(s): Transfer function of the motor

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

Figure 3 Closed-loop diagram

Table -1 Time domain specifications.


Step response characteristics Design values
Settling time less than 2 seconds
Overshoot less than 5% less
Steady-state error than 1%
Motor specifications are given in Table 2.

Table 2: DC Motor parameters


Parameter Description Value and Unites
symbols
J moment of inertia of the rotor 0.01 kg.m2

b motor viscous friction constant 0.1 N.m.s

Ke electromotive force constant 0.01 V/rad/sec

Kt motor torque constant 0.01 N.m/Amp

R electric resistance 1

L electric inductance 0.5 H


The Project report should include the solutions of the following questions but not limited to:
Page |
Introduction
In this project we have developed a Simulink model of dc motor by using the PID controller. We
have two models in this project in first figure we are given a motor connected in series with
inductor and resister for finding the transfer function we have applied kirchoff voltage law on the
circuit after that we have got the transfer function .In this project we have used P,PI and PID
controllers and we have tuned them by using PID tuner
Q1
Derive the transfer function of the system shown in figure

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:

Pole Damping Frequency Time Constant


(rad/seconds) (seconds)

-2.00e+00 1.00e+00 2.00e+00 5.00e-01


Q6
Draw the Bode Plot diagram for the open loop system. Obtain the Gain Margin (GM) and Phase
Margin (PM) .
ANS:
For plotting the bode plot in which margin is notified we use MATLAB command margin it will
plot graph with margin mentioned in graph
Code:
sys = tf(3,[1,2]);
margin(sys);0

Bode plot with margin:


Q7
Use MATLAB code to draw the Nyquist diagram for the open loop system.
ANS:
By using MATLAB the function of MATLAB Nyquist we can plot the Nyquist diagram of a
transfer function
Code:
sys = tf(3,[1,2]);
nyquist(sys);

Nyquist diagram:
Q8

With reference to Figure 3.


Derive the transfer function of the system closed loop system.

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

PI controller Kp = 75 and Ki = 100


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

f)

Discuss your results

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

You might also like