Practical - Experiment 3 (Car Cruise Control Model)
Practical - Experiment 3 (Car Cruise Control Model)
𝑚𝑥̈ = 𝐹 − 𝑏𝑥̇
The terms on the other side will be sum up via a sum block.
1
𝑥̈ = (𝐹 − 𝑏𝑥̇ )
𝑚
Example
Mass = 1000 kg
Damping constant (b) = 50 N-s/m
Force = 500 N
Example
Mass = 1000 kg
Damping constant (b) = 50 N-s/m
Reference speed (R) = 10 m/s
Kp = 800
Ki = 40
Implementing PI control
A PI controller is designed with (Kp = 800 and Ki = 40) to give the desired
response. For this particular example, no implementation of a Kd was needed to
obtain the required output. We will implement this in Simulink by first containing
the open-loop system from earlier in this document in a Subsystem block.
Kp is a proportional component used to improve transient response rise time and
setlling time of course.
Ki is an integral component works to improve steady state response.
Kd is a derivative component used to improve the transient response by way of
predicting error will occur in the future.
4|Prepared by Mr. Darawan Bazyan Dhahir
Create a new model window.
Drag a Subsystem block from the Ports & Subsystems library into your new
model window.
Double-click on this block. You will see a blank window representing the
contents of the subsystem (which is currently empty).
Open your previously saved model of the cruise control system.
Select All from the Edit menu (or Ctrl-A), and select Copy from the Edit menu
(or Ctrl-C).
Select the blank subsystem window from your new model and select Paste from
the Edit menu (or Ctrl-V). You should see your original system in this new
subsystem window. Close this window.
You should now see input and output terminals on the Subsystem block. Name
this block "plant model".
Now we will add the proportional and integral components and apply the sum to the
plant.
Insert a Sum block between the Ki block and the plant model and connect the
outputs of the two Gain blocks to the Sum block inputs.
Connect the Sum block output to the input of the plant block.
1
𝑇𝑟𝑎𝑛𝑠𝑓𝑒𝑟 𝐹𝑢𝑛𝑐𝑡𝑖𝑜𝑛 =
𝑚𝑠 + 𝑏
10 | P r e p a r e d b y M r . D a r a w a n B a z y a n D h a h i r
11 | P r e p a r e d b y M r . D a r a w a n B a z y a n D h a h i r
12 | P r e p a r e d b y M r . D a r a w a n B a z y a n D h a h i r