PID controller document for controlling the motor, Study notes of Control Systems

Proportional Integral Derivative controller

Typology: Study notes

2018/2019

Uploaded on 07/13/2019

sarmad-ali
sarmad-ali 🇵🇰

1 document

1 / 31

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
FEEDBACK CONTROL
SYSTEM
NED University of Engineering & Technology
LAB # 09
1
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f

Partial preview of the text

Download PID controller document for controlling the motor and more Study notes Control Systems in PDF only on Docsity!

FEEDBACK CONTROL

SYSTEM

NED University of Engineering & Technology

LAB # 09

 Lab Experiment 11

 (^) Objective: Introduction to PID controller

  • (^) Study the three term (PID) controller and its effects on the feedback loop response.
  • (^) Investigate the characteristics of the each of proportional (P), the integral (I), and the derivative (D) controls, and
  • (^) how to use them to obtain a desired response.

o (^) First, let's take a look at how the PID controller works in a closed-loop system using the schematic shown. o (^) The variable (e) represents the tracking error , the difference between the desired input value (R) and the actual output (Y). o (^) This error signal (e) will be sent to the PID controller , and o (^) the controller computes both the derivative and the

o (^) The signal (u) just past the controller is now equal to the proportional gain (KP) times the magnitude of the error plus the integral gain (KI) times the integral of the error plus the derivative gain (KD) times the derivative of the error.

Temperature Control System

Car Driving System

o (^) The three-term controller: The transfer function of the PID controller looks like the following: o (^) KP = Proportional gain o (^) KI = Integral gain o (^) KD = Derivative gain

o (^) Suppose we have a simple mass, spring, and damper problem. o (^) The transfer function between the displacement X(s) and the input F(s) then becomes:

Example Problem:

 (^) Open-loop step response: Let's first view the open-loop step response. num=1; den=[1 10 20]; plant=tf(num,den); step(plant) MATLAB command window should give you the plot shown below.

Proportional control:

o (^) The closed-loop transfer function of the above system with a proportional controller is: et the proportional gain (KP) equal 300 :

Kp=300; contr=Kp; sys_cl=feedback(contr*plant,1); %by default –ve feedback put 1 and for positive feedback + t=0:0.01:2; step(sys_cl,t)

Proportional control:

roportional-Derivative control:

o (^) The closed-loop transfer function of the given system with a PD controller is: t K P equal 300 as before and let K D equal 10.

Kp=300; Kd=10; contr=tf([Kd Kp],1); sys_cl=feedback(contr*plant,1); t=0:0.01:2; step(sys_cl,t)

roportional-Derivative control: