Mô tả hệ thống CCS bằng phần mềm matlab và simulink với bài toán đơn giản.Đây không phải là tài liệu mô tả cụ thể hệ thống CCS mà chỉ là hướng dẫn cách sử dụng matlab và simulink trong các bài toán về hệ thống trên ô tô.Liên hệ email: vietphuocspkgmail.com
Trang 1AUTOMATIC CONTROL FOR AUTOMOTIVE APPLICATIONS
LECTURE: NGUYEN TRUNG HIEU
HOME WORK 1: CRUISE CONTROL SYSTEM
GROUP 4:
Nguyen Viet Phuoc – 14145208 Truong Nu Quynh Nhu – 14145191
Nguyen Trong Dat – 14145049 Le Ngoc Han – 14145069
Doan Phuoc Tan – 14145255 Dinh Cong Luu –14145157
Nguyen Thanh Cong – 14145018
Trang 21 Find the transfer function of CCS system with: Force is Input Velocity is Output
∑u (t )=ma (t)
→ u(t)−bv (t)=ma(t)
⇔u (t )−bv (t )=m ´v (t) (1)
(1) →U ( s)−B V (s )=m S V ( s )
⇔U ( s)=V (s) (mS+B)
⇔ V (s )
U (s)=
1
mS+B
→ G( s)= 1
mS+ B
2 Find out the state- space equation of system
´
X =A X +B u
[´x
´
x]=[? ? ? ?].[x´x]+[? ?] u
We need to fill in the [?].
We have the differential equation:
u (t )−bv (t)=m ´v (t)
Or u (t )−b ´x (t )=m ´x (t)
→{ x =0 x +0 u+1 ´x´
´
x=−b
m ´x +
1
m u.0 x
Trang 3y=C x=[0 1].[x x´]
Finally, we have the result: {´x=[00 −1b
m ].[x x´]+[01
m].u y=[0 1].[x´x]
3 Covert the state – space equation to transfer function.
G (s )= Y (s)
U (s)=C(s I− A)
−1 B
G (s )=[0 1].(s [1 00 1]−[00 −1b
m ] )−1.[01
m]
¿[0 1].( [0 s+ s −1b
m] )−1.[01
m]
¿[0 1]. 1
s(s+ b
m) .[s+ b
m 1
0 s].[01
m]
¿ 1
s (s + b
m)
.[0 s].[01
m]= 1
s (s+ b
m)
. s
m=
1
ms+b
4 Simulate both in Matlab/Simulink with the following parameters Showing the system Output with the system Input is:
Trang 4Step 1: Give matlab 2 value m = 1000, b = 50.
Step 2:Click in Simulink, building the model, like following picture.
Trang 5Note: Change the Simulation stop time into 150s.
change Number of axes into 3 in Scope.
Step 3: Create the Signal Input
Step 4: Click in transfer Fcn, state-space to fill in m and b like question
1 and 2, such as following picture.
Trang 6Step 5: Click in Run to the model operate And clink in scope to watch the chart.
And Display show distance that car can run.
Trang 85. How far the vehicle can run? How long dose it take