Python Forum
Tuning PID controller - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Tuning PID controller (/thread-30800.html)



Tuning PID controller - Sancho_Pansa - Nov-06-2020

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


RE: Tuning PID controller - deanhystad - Nov-06-2020

In Python or are you open to using Matlab/Simulink or C/C++?


RE: Tuning PID controller - Larz60+ - Nov-06-2020

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+controller+%2B+tuning&o=


RE: Tuning PID controller - Sancho_Pansa - Nov-09-2020

(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++.


RE: Tuning PID controller - Sancho_Pansa - Nov-09-2020

(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+controller+%2B+tuning&o=
Ok, thanks