Replies: 3 comments
-
Thanks for creating the Control P-I-D library. I am using it to create a PID controller. I have no experience with PID controllers and control theory, but I am studying it. |
Beta Was this translation helpful? Give feedback.
-
If You are using My code then use:
to turn off I-action (and of antiwindup) - You get then only propotional action ( by default D-action is off ) Antiwindup is not for prevent overshoots it is used to prevent and reduce control value saturation and the time in which he resides ( i.e when controller will try to put control value more than 230 value(in Your case) then antifindup will try reduce that, for any control value below 230 antiwindup will not fork. for setup:
You get propotional controller and there will be always under/over shoot Now:
If something is not understandable - ask, |
Beta Was this translation helpful? Give feedback.
-
Thanks for sharing. |
Beta Was this translation helpful? Give feedback.
-
I published small P-I-D control library in micropython for esp32 ( for other platforms should work too):
https://github.com/2dof/esp_control
It is based typical on functional code (as base to OOP) and provide PID algorithms and signal processing based on industrial standard implementation ( but without alarms).
Also I added a curve generator for Setpoint generation in thermal proces control.
from my test and simulations library should be used for proces samplins Ts > 0.1 sec.
In the furture I will add other algorithms (auto tuning mechanism, pole placement etc) and 'user-end-implementations' examples.
I hope description is clear and someone will find it usefull.
Originally posted by @2dof in #10975
Beta Was this translation helpful? Give feedback.
All reactions