浏览代码

Update SKR mini configs

Scott Lahteine 4 年前
父节点
当前提交
4d8e7cdb30

+ 52
- 0
config/examples/BigTreeTech/SKR Mini E3 1.0/Configuration_adv.h 查看文件

@@ -197,6 +197,56 @@
197 197
     #define DEFAULT_Kc (100) //heating power=Kc*(e_speed)
198 198
     #define LPQ_MAX_LEN 50
199 199
   #endif
200
+
201
+  /**
202
+   * Add an experimental additional term to the heater power, proportional to the fan speed.
203
+   * A well-chosen Kf value should add just enough power to compensate for power-loss from the cooling fan.
204
+   * You can either just add a constant compensation with the DEFAULT_Kf value
205
+   * or follow the instruction below to get speed-dependent compensation.
206
+   *
207
+   * Constant compensation (use only with fanspeeds of 0% and 100%)
208
+   * ---------------------------------------------------------------------
209
+   * A good starting point for the Kf-value comes from the calculation:
210
+   *   kf = (power_fan * eff_fan) / power_heater * 255
211
+   * where eff_fan is between 0.0 and 1.0, based on fan-efficiency and airflow to the nozzle / heater.
212
+   *
213
+   * Example:
214
+   *   Heater: 40W, Fan: 0.1A * 24V = 2.4W, eff_fan = 0.8
215
+   *   Kf = (2.4W * 0.8) / 40W * 255 = 12.24
216
+   *
217
+   * Fan-speed dependent compensation
218
+   * --------------------------------
219
+   * 1. To find a good Kf value, set the hotend temperature, wait for it to settle, and enable the fan (100%).
220
+   *    Make sure PID_FAN_SCALING_LIN_FACTOR is 0 and PID_FAN_SCALING_ALTERNATIVE_DEFINITION is not enabled.
221
+   *    If you see the temperature drop repeat the test, increasing the Kf value slowly, until the temperature
222
+   *    drop goes away. If the temperature overshoots after enabling the fan, the Kf value is too big.
223
+   * 2. Note the Kf-value for fan-speed at 100%
224
+   * 3. Determine a good value for PID_FAN_SCALING_MIN_SPEED, which is around the speed, where the fan starts moving.
225
+   * 4. Repeat step 1. and 2. for this fan speed.
226
+   * 5. Enable PID_FAN_SCALING_ALTERNATIVE_DEFINITION and enter the two identified Kf-values in
227
+   *    PID_FAN_SCALING_AT_FULL_SPEED and PID_FAN_SCALING_AT_MIN_SPEED. Enter the minimum speed in PID_FAN_SCALING_MIN_SPEED
228
+   */
229
+  //#define PID_FAN_SCALING
230
+  #if ENABLED(PID_FAN_SCALING)
231
+    //#define PID_FAN_SCALING_ALTERNATIVE_DEFINITION
232
+    #if ENABLED(PID_FAN_SCALING_ALTERNATIVE_DEFINITION)
233
+      // The alternative definition is used for an easier configuration.
234
+      // Just figure out Kf at fullspeed (255) and PID_FAN_SCALING_MIN_SPEED.
235
+      // DEFAULT_Kf and PID_FAN_SCALING_LIN_FACTOR are calculated accordingly.
236
+
237
+      #define PID_FAN_SCALING_AT_FULL_SPEED 13.0        //=PID_FAN_SCALING_LIN_FACTOR*255+DEFAULT_Kf
238
+      #define PID_FAN_SCALING_AT_MIN_SPEED 6.0          //=PID_FAN_SCALING_LIN_FACTOR*PID_FAN_SCALING_MIN_SPEED+DEFAULT_Kf
239
+      #define PID_FAN_SCALING_MIN_SPEED 10.0            // Minimum fan speed at which to enable PID_FAN_SCALING
240
+
241
+      #define DEFAULT_Kf (255.0*PID_FAN_SCALING_AT_MIN_SPEED-PID_FAN_SCALING_AT_FULL_SPEED*PID_FAN_SCALING_MIN_SPEED)/(255.0-PID_FAN_SCALING_MIN_SPEED)
242
+      #define PID_FAN_SCALING_LIN_FACTOR (PID_FAN_SCALING_AT_FULL_SPEED-DEFAULT_Kf)/255.0
243
+
244
+    #else
245
+      #define PID_FAN_SCALING_LIN_FACTOR (0)             // Power loss due to cooling = Kf * (fan_speed)
246
+      #define DEFAULT_Kf 10                              // A constant value added to the PID-tuner
247
+      #define PID_FAN_SCALING_MIN_SPEED 10               // Minimum fan speed at which to enable PID_FAN_SCALING
248
+    #endif
249
+  #endif
200 250
 #endif
201 251
 
202 252
 /**
@@ -960,6 +1010,8 @@
960 1010
    */
961 1011
   //#define POWER_LOSS_RECOVERY
962 1012
   #if ENABLED(POWER_LOSS_RECOVERY)
1013
+    //#define BACKUP_POWER_SUPPLY       // Backup power / UPS to move the steppers on power loss
1014
+    //#define POWER_LOSS_ZRAISE       2 // (mm) Z axis raise on resume (on power loss with UPS)
963 1015
     //#define POWER_LOSS_PIN         44 // Pin to detect power loss
964 1016
     //#define POWER_LOSS_STATE     HIGH // State of pin indicating power loss
965 1017
     //#define POWER_LOSS_PULL           // Set pullup / pulldown as appropriate

+ 50
- 0
config/examples/BigTreeTech/SKR Mini E3 1.2/Configuration_adv.h 查看文件

@@ -197,6 +197,56 @@
197 197
     #define DEFAULT_Kc (100) //heating power=Kc*(e_speed)
198 198
     #define LPQ_MAX_LEN 50
199 199
   #endif
200
+
201
+  /**
202
+   * Add an experimental additional term to the heater power, proportional to the fan speed.
203
+   * A well-chosen Kf value should add just enough power to compensate for power-loss from the cooling fan.
204
+   * You can either just add a constant compensation with the DEFAULT_Kf value
205
+   * or follow the instruction below to get speed-dependent compensation.
206
+   *
207
+   * Constant compensation (use only with fanspeeds of 0% and 100%)
208
+   * ---------------------------------------------------------------------
209
+   * A good starting point for the Kf-value comes from the calculation:
210
+   *   kf = (power_fan * eff_fan) / power_heater * 255
211
+   * where eff_fan is between 0.0 and 1.0, based on fan-efficiency and airflow to the nozzle / heater.
212
+   *
213
+   * Example:
214
+   *   Heater: 40W, Fan: 0.1A * 24V = 2.4W, eff_fan = 0.8
215
+   *   Kf = (2.4W * 0.8) / 40W * 255 = 12.24
216
+   *
217
+   * Fan-speed dependent compensation
218
+   * --------------------------------
219
+   * 1. To find a good Kf value, set the hotend temperature, wait for it to settle, and enable the fan (100%).
220
+   *    Make sure PID_FAN_SCALING_LIN_FACTOR is 0 and PID_FAN_SCALING_ALTERNATIVE_DEFINITION is not enabled.
221
+   *    If you see the temperature drop repeat the test, increasing the Kf value slowly, until the temperature
222
+   *    drop goes away. If the temperature overshoots after enabling the fan, the Kf value is too big.
223
+   * 2. Note the Kf-value for fan-speed at 100%
224
+   * 3. Determine a good value for PID_FAN_SCALING_MIN_SPEED, which is around the speed, where the fan starts moving.
225
+   * 4. Repeat step 1. and 2. for this fan speed.
226
+   * 5. Enable PID_FAN_SCALING_ALTERNATIVE_DEFINITION and enter the two identified Kf-values in
227
+   *    PID_FAN_SCALING_AT_FULL_SPEED and PID_FAN_SCALING_AT_MIN_SPEED. Enter the minimum speed in PID_FAN_SCALING_MIN_SPEED
228
+   */
229
+  //#define PID_FAN_SCALING
230
+  #if ENABLED(PID_FAN_SCALING)
231
+    //#define PID_FAN_SCALING_ALTERNATIVE_DEFINITION
232
+    #if ENABLED(PID_FAN_SCALING_ALTERNATIVE_DEFINITION)
233
+      // The alternative definition is used for an easier configuration.
234
+      // Just figure out Kf at fullspeed (255) and PID_FAN_SCALING_MIN_SPEED.
235
+      // DEFAULT_Kf and PID_FAN_SCALING_LIN_FACTOR are calculated accordingly.
236
+
237
+      #define PID_FAN_SCALING_AT_FULL_SPEED 13.0        //=PID_FAN_SCALING_LIN_FACTOR*255+DEFAULT_Kf
238
+      #define PID_FAN_SCALING_AT_MIN_SPEED 6.0          //=PID_FAN_SCALING_LIN_FACTOR*PID_FAN_SCALING_MIN_SPEED+DEFAULT_Kf
239
+      #define PID_FAN_SCALING_MIN_SPEED 10.0            // Minimum fan speed at which to enable PID_FAN_SCALING
240
+
241
+      #define DEFAULT_Kf (255.0*PID_FAN_SCALING_AT_MIN_SPEED-PID_FAN_SCALING_AT_FULL_SPEED*PID_FAN_SCALING_MIN_SPEED)/(255.0-PID_FAN_SCALING_MIN_SPEED)
242
+      #define PID_FAN_SCALING_LIN_FACTOR (PID_FAN_SCALING_AT_FULL_SPEED-DEFAULT_Kf)/255.0
243
+
244
+    #else
245
+      #define PID_FAN_SCALING_LIN_FACTOR (0)             // Power loss due to cooling = Kf * (fan_speed)
246
+      #define DEFAULT_Kf 10                              // A constant value added to the PID-tuner
247
+      #define PID_FAN_SCALING_MIN_SPEED 10               // Minimum fan speed at which to enable PID_FAN_SCALING
248
+    #endif
249
+  #endif
200 250
 #endif
201 251
 
202 252
 /**

正在加载...
取消
保存