Python Forum

Full Version: Tuning PID controller
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

Does exist a particular PID library that facilitate PID controller tuning.
Let's say realize following scenario:

  1. specify some guess values for Kp, Ki, Kd
  2. apply some kind of perturbation (e.g. step) on settle point
  3. measure output
  4. extract from measurements optimized Kp, Ki, Kd parameters according some constaraints (e.g. settling time less than 1us, overshoot less than certain value, etc.)

Thanks.
Sincerely,
Sancho
In Python or are you open to using Matlab/Simulink or C/C++?
There are several PID controller tuning packages in this group.
Since I haven't used any of them, I cannot reccommend one over another.
https://pypi.org/search/?q=PID+%2B+contr...B+tuning&o=
(Nov-06-2020, 04:35 PM)deanhystad Wrote: [ -> ]In Python or are you open to using Matlab/Simulink or C/C++?
Matlab/Simulink probably not.
Python or C/C++.
(Nov-06-2020, 06:56 PM)Larz60+ Wrote: [ -> ]There are several PID controller tuning packages in this group.
Since I haven't used any of them, I cannot reccommend one over another.
https://pypi.org/search/?q=PID+%2B+contr...B+tuning&o=
Ok, thanks