The marlin 2.1 release MPC function to prevent PID overcome.
Do klipper have plan to develop this feature?
3 Likes
Sounds cool. I’m quite happy how Klipper’s PID is performing on my printer but if it is an improvement, why not
1 Like
Yes please, i asked about this as well. I have MPC tune running on my other Marlin printers and it is quite impressive. can be tuned per filament, with and without fans and a few other settings. However it is currently only available for the hotend.
2 Likes
Agree. MPC is awesome, but only available for the hotend is enough, since the pid has been doing a great job in controling the heat bed. There are not many factors could affect it
MPC has been ported from Marlin to the DangerKlipper fork. Currently under Beta testing and tuning with some excellent results.
Functional for hotends with cartridge or PTC heaters and Beds with/without bed fans.
Here is a link to the beta documentation if you are interested.
# Model Predictive Control
Model Predictive Control (MPC) is an advanced temperature control method that offers an alternative to traditional PID control. MPC leverages a system model to simulate the temperature of the hotend and adjusts the heater power to align with the target temperature.
Unlike reactive methods, MPC operates proactively, making adjustments in anticipation of temperature fluctuations. It utilizes a model of the hotend, taking into account factors such as the thermal masses of the system, heater power, heat loss to ambient air and fans, and heat transfer into the filament. This model allows MPC to predict the amount of heat energy that will be dissipated from the hotend over a given duration, and it compensates for this by adjusting the heater power accordingly. As a result, MPC can accurately calculate the necessary heat energy input to maintain a steady temperature or to transition to a new temperature.
MPC offers several advantages over PID control:
- **Faster and more responsive temperature control:** MPC’s proactive approach allows it to respond more quickly and accurately to changes in temperature.
- **Broad functionality with single calibration:** Once calibrated, MPC functions effectively across a wide range of print temperatures.
- **Simplified calibration process:** MPC is easier to calibrate compared to traditional PID control.
- **Compatibility with all hotend sensor types:** MPC works with all types of hotend sensors, including those that produce noisy temperature readings
- **Versatility with heater types:** MPC performs equally well with standard cartridge heaters and PTC heaters.
- **Applicable to both hotends and beds:** MPC can be used to control the temperature of both hotends and beds.
- **Effective for high and low flow hotends:** Regardless of the flow rate of the hotend, MPC maintains effective temperature control.
> [!CAUTION]
> This feature controls the portions of the 3D printer that can get very hot. All standard Danger Klipper warnings apply. Please report all issues and bugs to github or discord.
# Installation
This file has been truncated. show original
Active feature discussion on the armchair engineering discord.