How to tune the PID controller for Simscape Vehicle model ?

조회 수: 5 (최근 30일)
Arun Pandian Kumaresan
Arun Pandian Kumaresan 2018년 12월 7일
댓글: Darshil Dharod 2019년 5월 12일
I am facing problem in tuning the PID controller for my simscape vehicle model. Below are the description about the model.
1.) Input is the vehicle speed setpoint from step block. I have used PI controller to convert the vehicle speed error to acceleration demand with limit 0 to 1.
2.) With a lookup table, I have converted acceleration demand to engine speed demand.
3.) Then I have used another PID controller to correct the engine speed error and limited it to 0 to 1, which is the input to the throttle.
I just need some guidance on finding out the appropriate gains for both of my controllers. I have also attached my model and .mat file for your reference. Please help me.
Unbenannt.PNG
  댓글 수: 1
Darshil Dharod
Darshil Dharod 2019년 5월 12일
Hi Arun,
I am also developing a hybrid drivetrain model in Simulink. Can you help with my following questions:
1) How do you get the engine rpm demand from the acceleration demand ? How do we get the engine rpm values for the corresponding acceleration demand value for the lookup table ?
2) I want to couple the torques from the electric motor and the ICE and deliver the summation of the 2 torques to the final driveline using a torque coupler ? Do you have any idea about how to model such a gear system ?
Any help would be much appreciated.
Thanks you in advance.

댓글을 달려면 로그인하십시오.

답변 (5개)

Arvind Sathyanarayanan
Arvind Sathyanarayanan 2018년 12월 7일
Have you tried the PID tuner app? You will to replace your controller with the MATLAB PID Controller to use the app. You could follow the example here.

Arun Pandian Kumaresan
Arun Pandian Kumaresan 2018년 12월 9일
Hello Mr.Sathyanarayanan,
First of all, thank you so much for your reply. I followed that example and tuned both the PI controllers in my simulink model and I have posted the simulation result below. When I replace step block with a traffic simulation software (SUMO) and run the model, the vehicle speed is always zero. I will post the simulatino result soon after this comment.
Unbenannt.PNG

Arun Pandian Kumaresan
Arun Pandian Kumaresan 2018년 12월 9일
Unbenannt2.PNG

Arun Pandian Kumaresan
Arun Pandian Kumaresan 2018년 12월 9일
For the same controller gain values, the vehicle speed (blue colour) is in negative and when I use step block it is working fine. Please provide me some suggestions on how to proceed. Hope to get a reply from you.
(Yellow colour is the vehicle speed setpoint)
Unbenannt.PNG

Arun Pandian Kumaresan
Arun Pandian Kumaresan 2018년 12월 9일
*For the same controller gain values, the vehicle speed (blue colour) is in negative when the input is from traffic simulation software, but when I use step block it is working fine. Please provide me some suggestions on how to proceed. Hope to get a reply from you.
  댓글 수: 1
Arvind Sathyanarayanan
Arvind Sathyanarayanan 2018년 12월 11일
Arun, it looks like you added a 20 kHz lowpass filter (20 kHz Lowpass filter 3) on your feedback which could be affecting the perfomance of your controller.
Have you tried running your model without this filter?

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simscape Driveline에 대해 자세히 알아보기

태그

제품


릴리스

R2016b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by