Java PID example

R

Thread Starter

Roberto Carabajal

Hello:

I am teaching PID control and I would like to obtain a Java implementation of a classic PID controller with source code. It could be an example of a relative simple task: liquid tank level control, or heated tank control.

I would appreciate any help to find this software.

My best regards.
Roberto
 
J

James Ingraham

Google turned up a few things. This one looks interesting:

http://www.codeproject.com/Articles/36459/PID-process-control-a-Cruise-Control-example

Also, I found an very nice article that uses C. With a few minor exceptions (e.g. "unsigned long") the code is practically identical to what the Java code would be.

http://brettbeauregard.com/blog/2011/04/improving-the-beginners-pid-introduction/

Hope that helps,
James Ingraham
Sage Automation, Inc.

<b>Moderator's Note:</b> When copying a pasting long URLs, please delete any spaces placed in the URL by the forum software.
 
Top