From 49048fdcd6a666bb9cd40497e1c77cfa61ba300b Mon Sep 17 00:00:00 2001 From: Yuri D'Elia Date: Mon, 27 Jun 2022 13:45:58 +0200 Subject: [PATCH] Add temperature model configuration for MK3 --- .../variants/1_75mm_MK3-EINSy10a-E3Dv6full.h | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/Firmware/variants/1_75mm_MK3-EINSy10a-E3Dv6full.h b/Firmware/variants/1_75mm_MK3-EINSy10a-E3Dv6full.h index f31999af..d32369a8 100644 --- a/Firmware/variants/1_75mm_MK3-EINSy10a-E3Dv6full.h +++ b/Firmware/variants/1_75mm_MK3-EINSy10a-E3Dv6full.h @@ -413,6 +413,34 @@ #define TEMP_RUNAWAY_EXTRUDER_HYSTERESIS 15 #define TEMP_RUNAWAY_EXTRUDER_TIMEOUT 45 +// model-based temperature check +#define TEMP_MODEL 1 // enable model-based temperature checks +#define TEMP_MODEL_DEBUG 1 // extended runtime logging + +#define TEMP_MODEL_P 38. // heater power (W) + +#define TEMP_MODEL_C 11. // initial guess for heatblock capacitance (J/K) +#define TEMP_MODEL_Cl 5 // C estimation lower limit +#define TEMP_MODEL_Ch 20 // C estimation upper limit +#define TEMP_MODEL_C_thr 0.01 // C estimation iteration threshold +#define TEMP_MODEL_C_itr 30 // C estimation iteration limit + +#define TEMP_MODEL_R 25 // initial guess for heatblock resistance (K/W) +#define TEMP_MODEL_Rl 5 // R estimation lower limit +#define TEMP_MODEL_Rh 50 // R estimation upper limit +#define TEMP_MODEL_R_thr 0.01 // R estimation iteration threshold +#define TEMP_MODEL_R_itr 30 // R estimation iteration limit + +#define TEMP_MODEL_Ta_corr -7 // Default ambient temperature correction +#define TEMP_MODEL_LAG 2.1 // Temperature transport delay (s) + +#define TEMP_MODEL_W 1.2 // Default warning threshold (K/s) +#define TEMP_MODEL_E 1.74 // Default error threshold (K/s) + +#define TEMP_MODEL_CAL_Th 230 // Default calibration working temperature (C) +#define TEMP_MODEL_CAL_Tl 50 // Default calibration cooling temperature (C) + + /*------------------------------------ MOTOR CURRENT SETTINGS *------------------------------------*/