0% found this document useful (0 votes)
293 views30 pages

Behaviour of P, Pi & Pid Controller From Matlab Simulink

The document discusses the behavior of P, PI, and PID controllers through MATLAB Simulink simulations. It explains the basic feedback loop and controller equations. It then shows the simulation procedure and results for open loop transfer functions and closed loop systems using P, PI, and PID controllers with different gain parameters. It also discusses eliminating corners from step inputs to reduce overshoot.

Uploaded by

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

Behaviour of P, Pi & Pid Controller From Matlab Simulink

The document discusses the behavior of P, PI, and PID controllers through MATLAB Simulink simulations. It explains the basic feedback loop and controller equations. It then shows the simulation procedure and results for open loop transfer functions and closed loop systems using P, PI, and PID controllers with different gain parameters. It also discusses eliminating corners from step inputs to reduce overshoot.

Uploaded by

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

BEHAVIOUR OF P, PI & PID

CONTROLLER FROM MATLAB SIMULINK

INTRODUCTION

Simulinkis a block diagram


environment for multidomain
simulation andModel-Based Design
. It supports simulation, automatic
code generation, and continuous
test and verification of embedded
systems.

Engineers everywhere use Simulink to get


their ideas off the ground, including reducing
fuel emissions, developing safety-critical
autopilot software, and designing wireless LTE
systems.
And
we are using it for explaining the
behaviour of the all three basic
controllers

OBJECTIVE

To understand the behaviour of P,


PI, PID controllers through MATLAB
Simulink since they are very useful
in industrial applications.

BASIC FEEDBACK LOOP AND


CONTROLLER EQUATIONS :

SIMULATION PROCEDURE:
First we choose a transfer function from a process control book
that is

The transfer function we will use as a process transfer


function(Gp).
Than we choose a step input .
Then we implemented scope from Simulink library. Scope shows
the output of the simulation process

.
.

Then we implemented SCOPE from Simulink library. Scope


shows the output of the simulation process

Above figure is for open loop transfer


function without any controller
implementation.so as we can see it is
fully unstable process so we will see
how the controllers make the difference
and make it at steady state.

Now we will close the loop by using the


sum as a comparator. And the close
loop diagram is same as open loop
because we have not implanted any
controller.

First we are taking a P only


controller with gain of 5(Kp=5).
Because P only controller have
equation multiplied by Kp (with
input) and same the gain element of
Simulink library work

For showing the actual behaviour we


have to include the input graph also
for that we are using MUX(combines
multiple signals input in a single
vector output ).
The next figure is the response with
input:

NOW WE HAVE TO ZOOM IT FOR CLOSE


LOOK OF P ONLY CONTROLLER RESPONSE
THAT IS HAVING OFFSET.

PI CONTROLLER:

Now we will implement PI controller and we


will see the effect of it.
For adding PI controller we have to use
INTEGRATOR because in PI characteristic
equation we have one integral term also
with Ki gain.
We choose Ki=5(Random value from book).

RESULT WITH PI

AS WE CAN SEE FROM FIGURE IT IS MORE


OSCILLATORY AND THE OFFSET IS ZERO

PID CONTROLLER
For implementing PID controller we
have to add derivative term that we
get from DERIVATIVE term in
Simulink library. And also a gain (Kd)
term we have to add.
The gain we choose Kd=1.

PID WITH RESULT

As we can see overshoot has decreased


but still it is going very high for a very
small time that is due to the input is step
change and that is having a corner that
make derivative to infinity or gives very
high value of error .
The corner in step input we are showing
in next:

ELIMINATION OF CORNER FROM STEP


INPUT
We will add a small error in step
input so that it gives a different
slope not so much.
So we have added a small error.

RESULT AFTER GIVING ERROR IN


STEP INPUT:

VERIFICATION OF OUR CONTROLLER:


For verifying our controller we use
the PID controller tab from Simulink
library and compare the results with
the first controller.
And we got exactly same result

IT IS EXACTLY SAME FROM THE


BELOW FIGURE :

FINAL FLOWSHEET:

Dinesh Sharma 14bch0031


Himanshu narang 14bch0046
Siddhesh jain 14bch0004
Aditya singhal 14bch0039
Kavish jain 14bch0021
Chinmay kalantare
14bch0056
Sourav Kothari 14bch0033

THANK YOU

You might also like