SlideShare a Scribd company logo
1 of 12
Download to read offline
Nalan Karunanayake 1
EC 350 - Control Systems
Laboratory 02 – DC motor Control and PID Control
Model a DC motor using the physical model approach
Use SIMULINK simscape to model the electromechanical system as follows,
 Change PSS-converter block parameter to A (Amperes).
 Change Model Configuration Parameter as, Solver-> ode15s
 RUN the simulation and observe the current produce and comment on it
Model the mechanical portion of the system as follows,
Nalan Karunanayake 2
 RE-RUN the model and observe the output current and comment on it.
Modified the simulation file as follows,
 Change PSS-simulink converter 1 parameter to RPM.
 RE-RUN the Simulink model again and observe the scope 1 and comment on it.
Nalan Karunanayake 3
Produce translational motion as follows,
 What does Wheel and Axle block do?
 RE-RUN the model again and observe the scope 1 and comment on it.
 Disconnect PSS Simulink converter 1 from port W of the Ideal Rotational Motion Sensor and
reconnect it with port A (change the PSS Simulink converter parameter to deg)
 RE-RUN the model and observe the scope 1 and comment on it.
 Change the spring rate of the Translation spring to 100 and 10, RE-RUN the model and observe
the output of the scope 1 and comment on it.
PID Control System
Introduction
Recall the open-loop transfer function of the DC Motor.
𝑃(𝑠) =
∅(𝑠)
𝑉(𝑠)
=
𝐾
𝑠((𝐽𝑠 + 𝑏)(𝐿𝑠 + 𝑅) + 𝐾2)
The structure of the control system has the form shown in the figure below.
Nalan Karunanayake 4
Transfer function for a PID controller has the following form.
𝐶(𝑠) = 𝐾 𝑝 +
𝐾𝑖
𝑠
+ 𝐾 𝑑 𝑠 =
𝐾 𝑑 𝑠2
+ 𝐾 𝑝 𝑠 + 𝐾𝑖
𝑠
A proportional controller ( ) will have the effect of reducing the rise time and will reduce but
never eliminate the steady-state error. An integral control ( ) will have the effect of eliminating
the steady-state error for a constant or step input, but it may make the transient response slower.
A derivative control ( ) will have the effect of increasing the stability of the system, reducing the
overshoot, and improving the transient response.
The effects of each of controller parameters, , , and on a closed-loop system are
summarized as in the table below.
Parameter Rise Time Overshoot Settling Time Steady State Error
Kp Decrease Increase Small Change Decrease
Ki Decrease Increase Increase Eliminate
Kd Small Change Decrease Decrease No Change
The structure of the control system has the form shown in the figure below.
Nalan Karunanayake 5
Transfer function for a PID controller has the following form.
𝐶(𝑠) = 𝐾 𝑝 +
𝐾𝑖
𝑠
+ 𝐾 𝑑 𝑠 =
𝐾 𝑑 𝑠2
+ 𝐾 𝑝 𝑠 + 𝐾𝑖
𝑠
Where = Proportional gain, = Integral gain and = Derivative gain
Use below coding to directly define a PID controller in MATLAB using the transfer function:
Kp = 1;
Ki = 1;
Kd = 1;
s = tf('s');
C = Kp + Ki/s + Kd*s
Alternatively MATLAB's pid controller object can be used to generate an equivalent continuous time
controller as follows:
C = pid(Kp, Ki, Kd);
1. Proportional control
The closed-loop transfer function of a system with a proportional controller is shown below
Use Matlab to answer below questions
Nalan Karunanayake 6
Questions
1.1 Draw a rough sketch of the response of the system to a step reference with different
values of Kp
1.2 Comment on the effect of increasing proportional gain on overshoot and settle time?
2. PD control
The closed-loop transfer function of the given system with a PD controller is shown below
Initially set the value of Kp = 300 and test derivative gain Kd value set to 10. Change your m-file to obtain
the step response of the above system with PD control.
Questions
2.1 Draw a rough sketch of the response of the system to a step reference with different
values of Kd.
2.2 Briefly explain the use of Proportional-Derivative Controller in a particular system?
Comment on the effect of increasing derivative gain (Kd) on overshoot and settle time?
3. PI control
The closed-loop transfer function of the given system with a PI controller is shown below
Initially set the value of Kp = 30 and test integral gain Ki value set to 70. Change your m-file to obtain the
step response of the above system with PI control.
Questions
3.1 Draw a rough sketch of the response of the system to a step reference with different
values of Ki.
3.2 Explain the effect of increasing Ki in the particular system?
Nalan Karunanayake 7
4. PID control
The closed-loop transfer function of the given system with a PID controller is shown below
Now modify the above m file as = 350, = 300, and = 50 to obtain the step response of the above
system with PID control.
Questions
4.1 Draw a rough sketch of the response of the system to a step reference with different
values of Kp, Ki and Kd?
 Use the Matlab command “stepinfo” to obtain the precise characteristics of the step response.
4.2 Comment on the effect of Kp, Ki and Kd parameters on the system?
PID control design with Control System Toolbox
Nalan Karunanayake 8
>> pidtool(sys)
 Change the controller type P, PI, PID and obtain the Step Plot and comment.
 From the Show Parameters, obtain the PID gains and characteristics of the system.
 Change the Response Time and Phase Margin and see what happened to the Step Plot.
Tune PID controller for a DC Motor in MATLAB SIMULINK
Consider an example of designing a PID controller for a dc motor. The model of a closed loop system
uses the new PID Controller block. This block generates a voltage signal driving the dc motor to track
desired shaft rotation speed. In addition to voltage, the dc motor subsystem takes torque disturbance as
an input, allowing us to simulate how well the controller rejects disturbances.
Open the CSlab2.slx
Nalan Karunanayake 9
The PID controller is a discrete-time controller running at 0.02 seconds (the red color shows the sampling
time in the model). Let’s now look at the dialog of the PID Controller block. In the upper half of the dialog
we specified basic configuration of the PID controller: type (PID, PI, PD, P, or I), time-domain, integration
methods, and sample time. In the lower part, we specified PID controller form and gains (shown at default
values).
Block documentation provides detailed information about the block and all its parameters.
Nalan Karunanayake 10
Check the scope of the PID block
PID Tuning
Our first task is to tune the PID controller. Pressing the “Tune…” button in the PID Controller block
dialog, we launch PID Tuner, which linearizes the model at the default operating point and automatically
determines PID controller gains to achieve reasonable performance and robustness based on linearized
plant model.
Nalan Karunanayake 11
Update the PID Tuner
Check the PID controller values again
Nalan Karunanayake 12
Then again RE-RUN the Simulink model and observe the PID scope and comment on it.
 How to make the system faster?
 What are the drawbacks of that method?

More Related Content

What's hot

Variable frequency drives
Variable frequency drivesVariable frequency drives
Variable frequency drives
Naveen Sihag
 
Industrial Automation
Industrial AutomationIndustrial Automation
Industrial Automation
Tushar Swami
 
Digital signal processor architecture
Digital signal processor architectureDigital signal processor architecture
Digital signal processor architecture
komal mistry
 

What's hot (20)

PLC - Programmable Logic Controller
PLC - Programmable Logic ControllerPLC - Programmable Logic Controller
PLC - Programmable Logic Controller
 
Modern Control System (BE)
Modern Control System (BE)Modern Control System (BE)
Modern Control System (BE)
 
Variable frequency drives
Variable frequency drivesVariable frequency drives
Variable frequency drives
 
Introduction to embedded system design
Introduction to embedded system designIntroduction to embedded system design
Introduction to embedded system design
 
stepper motor
stepper motorstepper motor
stepper motor
 
FM demodulation using PLL
FM demodulation using PLLFM demodulation using PLL
FM demodulation using PLL
 
Industrial Automation
Industrial AutomationIndustrial Automation
Industrial Automation
 
CONTROL SYSTEMS PPT ON A LEAD COMPENSATOR CHARACTERISTICS USING BODE DIAGRAM ...
CONTROL SYSTEMS PPT ON A LEAD COMPENSATOR CHARACTERISTICS USING BODE DIAGRAM ...CONTROL SYSTEMS PPT ON A LEAD COMPENSATOR CHARACTERISTICS USING BODE DIAGRAM ...
CONTROL SYSTEMS PPT ON A LEAD COMPENSATOR CHARACTERISTICS USING BODE DIAGRAM ...
 
Buck-Boost Converter
Buck-Boost ConverterBuck-Boost Converter
Buck-Boost Converter
 
Introduction to Embedded Systems
Introduction to Embedded SystemsIntroduction to Embedded Systems
Introduction to Embedded Systems
 
Hardware-Software Codesign
Hardware-Software CodesignHardware-Software Codesign
Hardware-Software Codesign
 
Interfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 MicrocontrollerInterfacing LCD with 8051 Microcontroller
Interfacing LCD with 8051 Microcontroller
 
Automatic solar tracking system using interfacing ic and geared motor
Automatic  solar tracking  system  using  interfacing  ic and geared motorAutomatic  solar tracking  system  using  interfacing  ic and geared motor
Automatic solar tracking system using interfacing ic and geared motor
 
Simulation based minor project on Buck converter( DC to Dc step down Converter)
Simulation based minor project on Buck converter( DC to Dc step down Converter)Simulation based minor project on Buck converter( DC to Dc step down Converter)
Simulation based minor project on Buck converter( DC to Dc step down Converter)
 
Digital signal processor architecture
Digital signal processor architectureDigital signal processor architecture
Digital signal processor architecture
 
Control and simulation in lab view
Control and simulation in lab viewControl and simulation in lab view
Control and simulation in lab view
 
PID Controller and its design
PID Controller and its designPID Controller and its design
PID Controller and its design
 
Embedded System Presentation
Embedded System PresentationEmbedded System Presentation
Embedded System Presentation
 
concept of resilience and self healing in smart grid
concept of resilience and self healing in smart gridconcept of resilience and self healing in smart grid
concept of resilience and self healing in smart grid
 
automation slides,plc,scada,HMI
automation slides,plc,scada,HMIautomation slides,plc,scada,HMI
automation slides,plc,scada,HMI
 

Viewers also liked

90981041 control-system-lab-manual
90981041 control-system-lab-manual90981041 control-system-lab-manual
90981041 control-system-lab-manual
Gopinath.B.L Naidu
 
Btl control system-lab-manual-10 eel68
Btl control system-lab-manual-10 eel68Btl control system-lab-manual-10 eel68
Btl control system-lab-manual-10 eel68
Gopinath.B.L Naidu
 
Control Systems Lab 2
Control Systems Lab 2Control Systems Lab 2
Control Systems Lab 2
Julia London
 
Project Stuff Real cool
Project Stuff Real coolProject Stuff Real cool
Project Stuff Real cool
Julia London
 
Lab manual psd v sem experiment no 7
Lab manual psd v sem experiment no 7Lab manual psd v sem experiment no 7
Lab manual psd v sem experiment no 7
Sachin Airan
 

Viewers also liked (20)

control system Lab 01-introduction to transfer functions
control system Lab 01-introduction to transfer functionscontrol system Lab 01-introduction to transfer functions
control system Lab 01-introduction to transfer functions
 
90981041 control-system-lab-manual
90981041 control-system-lab-manual90981041 control-system-lab-manual
90981041 control-system-lab-manual
 
CONTROL SYSTEM LAB MANUAL
CONTROL SYSTEM LAB MANUALCONTROL SYSTEM LAB MANUAL
CONTROL SYSTEM LAB MANUAL
 
Btl control system-lab-manual-10 eel68
Btl control system-lab-manual-10 eel68Btl control system-lab-manual-10 eel68
Btl control system-lab-manual-10 eel68
 
Control Systems Lab 2
Control Systems Lab 2Control Systems Lab 2
Control Systems Lab 2
 
Lead-lag controller
Lead-lag controllerLead-lag controller
Lead-lag controller
 
Control system
Control systemControl system
Control system
 
Control systems engineering. by i.j. nagrath
Control systems engineering. by i.j. nagrathControl systems engineering. by i.j. nagrath
Control systems engineering. by i.j. nagrath
 
An Enhanced Computer Vision Based Hand Movement Capturing System with Stereo ...
An Enhanced Computer Vision Based Hand Movement Capturing System with Stereo ...An Enhanced Computer Vision Based Hand Movement Capturing System with Stereo ...
An Enhanced Computer Vision Based Hand Movement Capturing System with Stereo ...
 
196444650 ee-2257-control-system-lab-manual
196444650 ee-2257-control-system-lab-manual196444650 ee-2257-control-system-lab-manual
196444650 ee-2257-control-system-lab-manual
 
LINAC 4 – Control System Design (small)
LINAC 4 – Control System Design (small)LINAC 4 – Control System Design (small)
LINAC 4 – Control System Design (small)
 
Power System Simulation Laboratory Manual
Power System Simulation Laboratory Manual Power System Simulation Laboratory Manual
Power System Simulation Laboratory Manual
 
Project Stuff Real cool
Project Stuff Real coolProject Stuff Real cool
Project Stuff Real cool
 
Dc machine practical
Dc machine practical Dc machine practical
Dc machine practical
 
Mini Project- Torque Control of a DC Motor
Mini Project- Torque Control of a DC MotorMini Project- Torque Control of a DC Motor
Mini Project- Torque Control of a DC Motor
 
Bode diagram
Bode diagramBode diagram
Bode diagram
 
Lag Compensator
Lag CompensatorLag Compensator
Lag Compensator
 
POWER SYSTEM SIMULATION LAB-1 MANUAL (ELECTRICAL - POWER SYSTEM ENGINEERING )
POWER SYSTEM SIMULATION LAB-1 MANUAL (ELECTRICAL - POWER SYSTEM ENGINEERING )POWER SYSTEM SIMULATION LAB-1 MANUAL (ELECTRICAL - POWER SYSTEM ENGINEERING )
POWER SYSTEM SIMULATION LAB-1 MANUAL (ELECTRICAL - POWER SYSTEM ENGINEERING )
 
Lab manual psd v sem experiment no 7
Lab manual psd v sem experiment no 7Lab manual psd v sem experiment no 7
Lab manual psd v sem experiment no 7
 
Dynamic modelling of dc motor drive
Dynamic modelling of dc motor driveDynamic modelling of dc motor drive
Dynamic modelling of dc motor drive
 

Similar to control system lab 02 - PID tuning

Control tutorials for matlab and simulink introduction pid controller desig...
Control tutorials for matlab and simulink   introduction pid controller desig...Control tutorials for matlab and simulink   introduction pid controller desig...
Control tutorials for matlab and simulink introduction pid controller desig...
ssuser27c61e
 
179529572-ROOT-LOCUS-Control-system-Design-ppt.ppt
179529572-ROOT-LOCUS-Control-system-Design-ppt.ppt179529572-ROOT-LOCUS-Control-system-Design-ppt.ppt
179529572-ROOT-LOCUS-Control-system-Design-ppt.ppt
TaraGonzales5
 
Iaetsd design of fuzzy self-tuned load frequency controller for power system
Iaetsd design of fuzzy self-tuned load frequency controller for power systemIaetsd design of fuzzy self-tuned load frequency controller for power system
Iaetsd design of fuzzy self-tuned load frequency controller for power system
Iaetsd Iaetsd
 
Speed control of dc motor using relay feedback tuned pi
Speed control of dc motor using relay feedback tuned piSpeed control of dc motor using relay feedback tuned pi
Speed control of dc motor using relay feedback tuned pi
Alexander Decker
 
Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond Brunkow
 
Unity Feedback PD Controller Design for an Electronic Throttle Body
Unity Feedback PD Controller Design for an Electronic Throttle BodyUnity Feedback PD Controller Design for an Electronic Throttle Body
Unity Feedback PD Controller Design for an Electronic Throttle Body
Steven Ernst, PE
 

Similar to control system lab 02 - PID tuning (20)

Control tutorials for matlab and simulink introduction pid controller desig...
Control tutorials for matlab and simulink   introduction pid controller desig...Control tutorials for matlab and simulink   introduction pid controller desig...
Control tutorials for matlab and simulink introduction pid controller desig...
 
Analysis and Design of PID controller with control parameters in MATLAB and S...
Analysis and Design of PID controller with control parameters in MATLAB and S...Analysis and Design of PID controller with control parameters in MATLAB and S...
Analysis and Design of PID controller with control parameters in MATLAB and S...
 
air craft Pitch
air craft Pitchair craft Pitch
air craft Pitch
 
1578385.ppt
1578385.ppt1578385.ppt
1578385.ppt
 
Design of imc based controller for industrial purpose
Design of imc based controller for industrial purposeDesign of imc based controller for industrial purpose
Design of imc based controller for industrial purpose
 
179529572-ROOT-LOCUS-Control-system-Design-ppt.ppt
179529572-ROOT-LOCUS-Control-system-Design-ppt.ppt179529572-ROOT-LOCUS-Control-system-Design-ppt.ppt
179529572-ROOT-LOCUS-Control-system-Design-ppt.ppt
 
Iaetsd design of fuzzy self-tuned load frequency controller for power system
Iaetsd design of fuzzy self-tuned load frequency controller for power systemIaetsd design of fuzzy self-tuned load frequency controller for power system
Iaetsd design of fuzzy self-tuned load frequency controller for power system
 
Modeling, simulation and control of a robotic arm
Modeling, simulation and control of a robotic armModeling, simulation and control of a robotic arm
Modeling, simulation and control of a robotic arm
 
Speed control of dc motor using relay feedback tuned pi
Speed control of dc motor using relay feedback tuned piSpeed control of dc motor using relay feedback tuned pi
Speed control of dc motor using relay feedback tuned pi
 
Real-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulumReal-time PID control of an inverted pendulum
Real-time PID control of an inverted pendulum
 
Analysis and Design of Conventional Controller for Speed Control of DC Motor ...
Analysis and Design of Conventional Controller for Speed Control of DC Motor ...Analysis and Design of Conventional Controller for Speed Control of DC Motor ...
Analysis and Design of Conventional Controller for Speed Control of DC Motor ...
 
Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15Raymond.Brunkow-Project-EEL-3657-Sp15
Raymond.Brunkow-Project-EEL-3657-Sp15
 
Optimal and pid controller for controlling camera’s position in unmanned aeri...
Optimal and pid controller for controlling camera’s position in unmanned aeri...Optimal and pid controller for controlling camera’s position in unmanned aeri...
Optimal and pid controller for controlling camera’s position in unmanned aeri...
 
Aifcraft pitch
Aifcraft pitchAifcraft pitch
Aifcraft pitch
 
Unity Feedback PD Controller Design for an Electronic Throttle Body
Unity Feedback PD Controller Design for an Electronic Throttle BodyUnity Feedback PD Controller Design for an Electronic Throttle Body
Unity Feedback PD Controller Design for an Electronic Throttle Body
 
Disturbance Rejection with a Highly Oscillating Second-Order Process, Part I...
Disturbance Rejection with a Highly Oscillating Second-Order  Process, Part I...Disturbance Rejection with a Highly Oscillating Second-Order  Process, Part I...
Disturbance Rejection with a Highly Oscillating Second-Order Process, Part I...
 
Design of a discrete PID controller based on identification data for a simsca...
Design of a discrete PID controller based on identification data for a simsca...Design of a discrete PID controller based on identification data for a simsca...
Design of a discrete PID controller based on identification data for a simsca...
 
Process Control Final Report
Process Control Final ReportProcess Control Final Report
Process Control Final Report
 
Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...
Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...
Optimal and Pid Controller for Controlling Camera's Position InUnmanned Aeria...
 
Pi controller ieee format
Pi controller ieee formatPi controller ieee format
Pi controller ieee format
 

Recently uploaded

Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 

Recently uploaded (20)

KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01Double rodded leveling 1 pdf activity 01
Double rodded leveling 1 pdf activity 01
 
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Ramesh Nagar Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Palanpur 7001035870 Whatsapp Number, 24/07 Booking
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 

control system lab 02 - PID tuning

  • 1. Nalan Karunanayake 1 EC 350 - Control Systems Laboratory 02 – DC motor Control and PID Control Model a DC motor using the physical model approach Use SIMULINK simscape to model the electromechanical system as follows,  Change PSS-converter block parameter to A (Amperes).  Change Model Configuration Parameter as, Solver-> ode15s  RUN the simulation and observe the current produce and comment on it Model the mechanical portion of the system as follows,
  • 2. Nalan Karunanayake 2  RE-RUN the model and observe the output current and comment on it. Modified the simulation file as follows,  Change PSS-simulink converter 1 parameter to RPM.  RE-RUN the Simulink model again and observe the scope 1 and comment on it.
  • 3. Nalan Karunanayake 3 Produce translational motion as follows,  What does Wheel and Axle block do?  RE-RUN the model again and observe the scope 1 and comment on it.  Disconnect PSS Simulink converter 1 from port W of the Ideal Rotational Motion Sensor and reconnect it with port A (change the PSS Simulink converter parameter to deg)  RE-RUN the model and observe the scope 1 and comment on it.  Change the spring rate of the Translation spring to 100 and 10, RE-RUN the model and observe the output of the scope 1 and comment on it. PID Control System Introduction Recall the open-loop transfer function of the DC Motor. 𝑃(𝑠) = ∅(𝑠) 𝑉(𝑠) = 𝐾 𝑠((𝐽𝑠 + 𝑏)(𝐿𝑠 + 𝑅) + 𝐾2) The structure of the control system has the form shown in the figure below.
  • 4. Nalan Karunanayake 4 Transfer function for a PID controller has the following form. 𝐶(𝑠) = 𝐾 𝑝 + 𝐾𝑖 𝑠 + 𝐾 𝑑 𝑠 = 𝐾 𝑑 𝑠2 + 𝐾 𝑝 𝑠 + 𝐾𝑖 𝑠 A proportional controller ( ) will have the effect of reducing the rise time and will reduce but never eliminate the steady-state error. An integral control ( ) will have the effect of eliminating the steady-state error for a constant or step input, but it may make the transient response slower. A derivative control ( ) will have the effect of increasing the stability of the system, reducing the overshoot, and improving the transient response. The effects of each of controller parameters, , , and on a closed-loop system are summarized as in the table below. Parameter Rise Time Overshoot Settling Time Steady State Error Kp Decrease Increase Small Change Decrease Ki Decrease Increase Increase Eliminate Kd Small Change Decrease Decrease No Change The structure of the control system has the form shown in the figure below.
  • 5. Nalan Karunanayake 5 Transfer function for a PID controller has the following form. 𝐶(𝑠) = 𝐾 𝑝 + 𝐾𝑖 𝑠 + 𝐾 𝑑 𝑠 = 𝐾 𝑑 𝑠2 + 𝐾 𝑝 𝑠 + 𝐾𝑖 𝑠 Where = Proportional gain, = Integral gain and = Derivative gain Use below coding to directly define a PID controller in MATLAB using the transfer function: Kp = 1; Ki = 1; Kd = 1; s = tf('s'); C = Kp + Ki/s + Kd*s Alternatively MATLAB's pid controller object can be used to generate an equivalent continuous time controller as follows: C = pid(Kp, Ki, Kd); 1. Proportional control The closed-loop transfer function of a system with a proportional controller is shown below Use Matlab to answer below questions
  • 6. Nalan Karunanayake 6 Questions 1.1 Draw a rough sketch of the response of the system to a step reference with different values of Kp 1.2 Comment on the effect of increasing proportional gain on overshoot and settle time? 2. PD control The closed-loop transfer function of the given system with a PD controller is shown below Initially set the value of Kp = 300 and test derivative gain Kd value set to 10. Change your m-file to obtain the step response of the above system with PD control. Questions 2.1 Draw a rough sketch of the response of the system to a step reference with different values of Kd. 2.2 Briefly explain the use of Proportional-Derivative Controller in a particular system? Comment on the effect of increasing derivative gain (Kd) on overshoot and settle time? 3. PI control The closed-loop transfer function of the given system with a PI controller is shown below Initially set the value of Kp = 30 and test integral gain Ki value set to 70. Change your m-file to obtain the step response of the above system with PI control. Questions 3.1 Draw a rough sketch of the response of the system to a step reference with different values of Ki. 3.2 Explain the effect of increasing Ki in the particular system?
  • 7. Nalan Karunanayake 7 4. PID control The closed-loop transfer function of the given system with a PID controller is shown below Now modify the above m file as = 350, = 300, and = 50 to obtain the step response of the above system with PID control. Questions 4.1 Draw a rough sketch of the response of the system to a step reference with different values of Kp, Ki and Kd?  Use the Matlab command “stepinfo” to obtain the precise characteristics of the step response. 4.2 Comment on the effect of Kp, Ki and Kd parameters on the system? PID control design with Control System Toolbox
  • 8. Nalan Karunanayake 8 >> pidtool(sys)  Change the controller type P, PI, PID and obtain the Step Plot and comment.  From the Show Parameters, obtain the PID gains and characteristics of the system.  Change the Response Time and Phase Margin and see what happened to the Step Plot. Tune PID controller for a DC Motor in MATLAB SIMULINK Consider an example of designing a PID controller for a dc motor. The model of a closed loop system uses the new PID Controller block. This block generates a voltage signal driving the dc motor to track desired shaft rotation speed. In addition to voltage, the dc motor subsystem takes torque disturbance as an input, allowing us to simulate how well the controller rejects disturbances. Open the CSlab2.slx
  • 9. Nalan Karunanayake 9 The PID controller is a discrete-time controller running at 0.02 seconds (the red color shows the sampling time in the model). Let’s now look at the dialog of the PID Controller block. In the upper half of the dialog we specified basic configuration of the PID controller: type (PID, PI, PD, P, or I), time-domain, integration methods, and sample time. In the lower part, we specified PID controller form and gains (shown at default values). Block documentation provides detailed information about the block and all its parameters.
  • 10. Nalan Karunanayake 10 Check the scope of the PID block PID Tuning Our first task is to tune the PID controller. Pressing the “Tune…” button in the PID Controller block dialog, we launch PID Tuner, which linearizes the model at the default operating point and automatically determines PID controller gains to achieve reasonable performance and robustness based on linearized plant model.
  • 11. Nalan Karunanayake 11 Update the PID Tuner Check the PID controller values again
  • 12. Nalan Karunanayake 12 Then again RE-RUN the Simulink model and observe the PID scope and comment on it.  How to make the system faster?  What are the drawbacks of that method?