This page is under construction and may not have complete or up-to-date information.

yourname

Temperature - Hotend

Hotend Temperature options

temperature, pid, mpc, firmware

Hotend Temperature settings control how the hotend temperature is regulated:

  1. Bang‑bang – simple on/off heating (default when no switch is defined).
  2. PIDTEMP – a classic PID loop with optional per‑hotend tuning parameters.
  3. MPCTEMP – a Model‑Predictive Control engine that can be autotuned at runtime.

#define PIDTEMP bool

Enable PID temperature control.

If defined, the firmware uses a PID loop (~4K runtime).
Leave undefined for bang‑bang heating.
See the PID Tuning Guide at https://reprap.org/wiki/PID_Tuning.

👁️ Example
#define PIDTEMP true

#define PID_PARAMS_PER_HOTEND bool

Use separate PID parameters for each extruder.

When defined, you can set individual Kp/Ki/Kd values for each hotend.
Use G‑code M301 E<extruder> <Kp Ki Kd> to read/write.

👁️ Example
#define PID_PARAMS_PER_HOTEND true

#define DEFAULT_KP_LIST { float, … }

List of Kp values per hotend.

#define DEFAULT_KI_LIST { float, … }

List of Ki values per hotend.

#define DEFAULT_KD_LIST { float, … }

List of Kd values per hotend.

#define DEFAULT_KP float

Default proportional gain.

#define DEFAULT_KI float

Default integral gain.

#define DEFAULT_KD float

Default derivative gain.

#define MIN_POWER int

Minimum power to improve PID stability.

Range 0–PID_MAX.
Typical values: P*2‑20 to P*2‑10.

#define PID_DEBUG bool

Print PID debug data to the serial port.

#define PID_MAX int

Max hotend current while PID is active (0–255).

#define PID_K1 float

Smoothing factor within any PID loop.

#define BANG_MAX int

Max hotend current while in bang‑bang mode.