-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PID autotune does not work correctly #93
Comments
Depending on phisical behavior of the system, heatting power isolation etc, the autotune get lost detecting the cycles, this is first problem, second values calculated in general (my system with 5kw heater and kettles isolated that means long cycles) are over memory capacity. Is possible to calculate by hand and is better to reduce noise value to 0.1 or less, getting max and min values excluding first 2 cycles. I changed to another library much better |
Hi @felipeserta, Thanks for the info, I will have a look at this autotune lib. I am well aware of Ziegler Nichols and PID control in general. Have done quite a lot of it in my life. I will take a deep dive into it this weekend to figure out where it goes wrong. At first glance, I see nothing to explain why this version is misbehaving in this way. The thing is, from my observations, the autotune algorithm did not behave as expected, it cycled only once, it should cycle at least 3 times. It just occurred to me that I may have used a lower sensor resolution previously but I cant remember exactly, this will also implicitly affect the noise level. Something to experiment with at least. With regards to my system, I have a 70l kettle (mostly doing 40-50l batches) with a 4.5kW element, no insulation at the moment. Oscillation period is typically around 6 minutes. |
@lekrom nice! The kind of test i did at the past was adding some serial.prints at the code monitoring max min and tu(period),cycle etc, some pidautotunelookback parameters and pidautotunenoise changes also. I use arduino ide to monitor because VS code had some limitation deppending of license. Simulate by holding the main sensor and let go when heat is of (relay method ) using smal setpoint 31C for instance. Looking at the trends judge if its ok. Good luck |
The PID autotune algorithm behaves erattically.
The autotune cycle completes prematurely without cycling through the setpoint as it should. The PID params derived are nonsensical and unrepeatable. Not working at all.
The text was updated successfully, but these errors were encountered: