-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
Default to no additional temperature smoothing #6317
Conversation
Smoothing of reported temperatures can make the pid less stable. Many printers do not need temperature smoothing, so it is better to not smooth by default. Signed-off-by: Kevin O'Connor <[email protected]>
Thanks for testing and reporting results. It seems we may need to get more tests on various printers before proceeding with this merge. (In general, I think it should be okay for the PWM value to have greater variability as long as the resulting temperature stays relatively steady, but more tests is probably a good thing.) -Kevin |
Hello everyone, Just a quick feedback from me. I did a quick test on my Sidewinder X2 with Manta M8P board. I switched to this patch. Recalibrated the PID with 240°C target. After calibration, heating to 210°C results in temperature fluctuation around 207-209°C. Finally, I switched back to the master branch using the same calibrated PID values, the temperature stays within +-0.2°C. Either at 210°C or 240°C Best Regards |
Thank you for your contribution to Klipper. Unfortunately, a reviewer has not assigned themselves to this GitHub Pull Request. All Pull Requests are reviewed before merging, and a reviewer will need to volunteer. Further information is available at: https://www.klipper3d.org/CONTRIBUTING.html There are some steps that you can take now:
Unfortunately, if a reviewer does not assign themselves to this GitHub Pull Request then it will be automatically closed. If this happens, then it is a good idea to move further discussion to the Klipper Discourse server. Reviewers can reach out on that forum to let you know if they are interested and when they are available. Best regards, PS: I'm just an automated script, not a human being. |
Unfortunately a reviewer has not assigned themselves to this GitHub Pull Request and it is therefore being closed. It is a good idea to move further discussion to the Klipper Discourse server. Reviewers can reach out on that forum to let you know if they are interested and when they are available. Best regards, PS: I'm just an automated script, not a human being. |
The default for heater
smooth_time
used to be 2 seconds; it was reduced to 1 second on 20210903. This PR would further change that default to not perform any extra temperature smoothing.Klipper already has a relatively slow response time of 300ms for heater updates. We've seen in the past that additional "smoothing" time can result in worse PID stability (which was why the default was originally reduced from 2 seconds). I suspect that no additional smoothing may be a better overall default for most printers. That is, I suspect most printers today don't need extra smoothing and could benefit from a more responsive pid.
In particular, many printers today have stable temperature circuits. Also, regardless of the
smooth_time
setting, Klipper already averages 8 measurements on every reported sample. So, in effect, there is already some "smoothing" even with no extrasmooth_time
set.Comments?
@ReXT3D , @dans98 - fyi.
-Kevin
P.S. This is a followup to PR #4646 .