4.0

4.0 | 1 rating Rate this file 117 Downloads (last 30 days) File Size: 54.67 KB File ID: #28713
image thumbnail

PID Controller Design and Tuning with MATLAB and Simulink - Engine Control

by Arkadiy Turevskiy

 

14 Sep 2010 (Updated 26 Apr 2011)

This demo file shows capabilities for PID Controller design and tuning in MATLAB and Simullink.

| Watch this File

File Information
Description

This is the demo file for MathWorks webinar "PID Control Made Easy" from September 201-

The demo shows design and tuning of PID controllers in MATLAB and Simulink.

PID Controller is used to control engine speed.

To see how to tune the PID Controller, please see the webinar and visit the page with resources on PID design and tuning:
http://www.mathworks.com/discovery/pid-control.html

Required Products Control System Toolbox
Simulink
Simulink Control Design
MATLAB release MATLAB 7.11 (2010b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
27 Apr 2011 Denise Tarbox

For more resources on PID control, see:
www.mathworks.com/discovery/pid-control.html

19 Jun 2011 clipix68

In your webinar you used step function with initial value of 2000 and 2200 as a final value so engine speed went from 2000rpm to 2200rpm. I would like my engine to run at diferent speeds but every time it starts from the 2000. What's the problem?

20 Jun 2011 Arkadiy Turevskiy

@clipix68:
The reason engine starts at 2,000 rpm is that the model's initial condition is set this way. To start at a different speed, the model initial condition has to be set appropriately. This inclused two states in the plant and the integrator in the PID controller.

Take a look at this video for how to trim the model at a desired speed:
http://www.mathworks.com/products/demos/slcontrol/batchmode_trimming_and_linearization/batchmode_trimming_and_linearization.html

In the linearization GUI, specify output to be at the speed you want, keep states at steady state.

Get the resulting state values and the input value. Initialize your states and PID integrator accordingly.

HTH.
Arkadiy

25 Aug 2011 clipix68

In Your webinar You talked about implementing PID on digital microprocessor. What kind of microprocessor should I use if would like to do that? Can you give me few certain models? Thanks for your response

20 Dec 2011 ehs  
Please login to add a comment or rating.
Updates
26 Apr 2011

Added a link to PID page:
http://www.mathworks.com/discovery/pid-control.html

Tag Activity for this File
Tag Applied By Date/Time
pid controller Arkadiy Turevskiy 22 Sep 2010 09:00:00
pid tuning Arkadiy Turevskiy 22 Sep 2010 09:00:00
pid control Arkadiy Turevskiy 22 Sep 2010 09:00:00
pid Arkadiy Turevskiy 22 Sep 2010 09:00:00
control design Arkadiy Turevskiy 22 Sep 2010 09:00:00
controls Arkadiy Turevskiy 22 Sep 2010 09:00:00
engine control kerkeni hichem 31 May 2011 17:13:31
control design BROWN 08 Feb 2012 22:08:46

Contact us at files@mathworks.com