EE 340: Control Systems: Lab 5 P, PI and PID Controllers
EE 340: Control Systems: Lab 5 P, PI and PID Controllers
Lab 5
P, PI and PID controllers
Student’s Name
Roll No.
Date Performed
Marks Obtained
Instructor’s signature
Page 1
Fall2021 Control Systems Lab 5
Document history
Version no. Date Modified Author
1 Dec, 2020 Awais Yaqoob
Page 2
Fall2021 Control Systems Lab 5
Introduction
In this lab session an introduction to implementing feedback control in Simulink is given to the
students they implement a PI controller for the cruise control system. Later, the students will be
introduced on how to setup and acquire data using the Simulink Support Package for Arduino
Hardware. This hardware will be used in the remaining Lab sessions of the course.
Task 1: Implementing a Controller for the Cruise Control System in Simulink
Recall the cruise control system of Figure 1 that you modeled in last week’s Lab session.
Page 3
Fall2021 Control Systems Lab 5
Page 4
Fall2021 Control Systems Lab 5
Obviously, the open loop system does not meet the control objective. In this task, you are
required to meet the control objective by implementing a feedback control mechanism. Construct
the block diagram given in Figure 4 in you Simulink model.
Exercise 2
What is the value of Kp for which system reached nearly 99% of the reference value? Is it
possible for a physical system to achieve object that is obtained for this Kp value? What is the
Solution?
Ans:
Page 5
Fall2021 Control Systems Lab 5
Exercise 4
What values of Kp and Ki satisfy our control objective? How much is the overshoot in the
system?
Ans:
Exercise 5
Find the value of Kp and Ki for which overshoot is less than 2%. what do you think is the role of
the integral component of the PI controller in the overall response?
Ans:
Page 6
Fall2021 Control Systems Lab 5
capable to provide the user for many processes. Although the cost/benefit ratio provided by these
controllers is way more than provided by any other controller. Many techniques have been
proposed for their design, because of their widespread use, for the tuning of the parameters of
PID i.ie Kp, Ki and Kd and for the implementation of additional functionalities that improve
their performance. But keep in mind that you do not need to implement all three controllers
(proportional, derivative, and integral) into a single system, if not necessary. For example, if a PI
controller meets the given requirements (like the above exercise), then you do not need to
implement a derivative controller on the system. Keep the controller as simple as possible.
Let suppose a simple spring damper system with following transfer function.
1
𝑇=
𝑠 2 + 10𝑠 + 20
We must design a closed-loop system with PID controller having no overshoot, fast rise time
(less than 0.2s), and no steady-state error.
Exercise 6
Build above system on Simulink and keep values of Kp, Ki, Kd equal to 1.
Exercise 7
Find the appropriate values for Kp, Ki and Kd to meet the control objective.
Exercise 8
Use PID control block provided in Simulink, enter the same parameter, and plot the results.
Simulink→Continuous→PID
Page 7
Fall2021 Control Systems Lab 5
Exercise 9
Convert governing differential equation of cruise control system to transfer function. Use PID
control block as used in Exercise 8 and parameter values from exercise 5 to build model and plot
output graphs.
Page 8
Fall2021 Control Systems Lab 5
Page 9
Fall2021 Control Systems Lab 5
P a g e 10
Fall2021 Control Systems Lab 5
P a g e 11