Skip to content

Positive temperature compensation (PTC) for MPC #27911

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

Merged
merged 5 commits into from
Jun 14, 2025

Conversation

tombrazier
Copy link
Contributor

Description

MPC (model predictive control) for the hotend does not always work well with PTC hotend heaters. This PR adds some logic for MPC to adjust its power levels for PTC hotends and also forces use of the differential method of tuning when PTC hotends exist.

Requirements

PTC hotend.

Benefits

Makes MPC more widely available.

Configurations

Enable MPC_PTC in Configuration.h.

Related Issues

#27223

@thinkyhead
Copy link
Member

Keep in mind that the plan is to refactor EEPROM settings to localize the data storage, handling, init, reset, and sanity-checking within each feature. If possible, put all MPC data that gets stored to EEPROM into a structure in the header and work off of that. The more complete refactor will have all EEPROM data structures inherit from a yet-to-be-written class that will make it easier for features to init/read/write stuff in EEPROM independent of one another. We'll work out all the details in #27145.

thinkyhead added a commit to MarlinFirmware/Configurations that referenced this pull request Jun 14, 2025
@thinkyhead thinkyhead merged commit 89416a5 into MarlinFirmware:bugfix-2.1.x Jun 14, 2025
66 checks passed
thinkyhead added a commit that referenced this pull request Jun 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FR] Improved MPC support for PTC hotends
3 participants