Browse Source

Add M915 configuration option

teemuatlut 7 years ago
parent
commit
cdc61ebf53
37 changed files with 590 additions and 43 deletions
  1. 14
    0
      Marlin/Configuration_adv.h
  2. 14
    0
      Marlin/src/config/default/Configuration_adv.h
  3. 14
    0
      Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h
  4. 14
    0
      Marlin/src/config/examples/Anet/A6/Configuration_adv.h
  5. 14
    0
      Marlin/src/config/examples/Anet/A8/Configuration_adv.h
  6. 14
    0
      Marlin/src/config/examples/Azteeg/X5GT/Configuration_adv.h
  7. 14
    0
      Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h
  8. 14
    0
      Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h
  9. 14
    0
      Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h
  10. 14
    0
      Marlin/src/config/examples/Cartesio/Configuration_adv.h
  11. 14
    0
      Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h
  12. 14
    0
      Marlin/src/config/examples/Felix/Configuration_adv.h
  13. 14
    0
      Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h
  14. 14
    0
      Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h
  15. 86
    43
      Marlin/src/config/examples/MakerParts/Configuration_adv.h
  16. 14
    0
      Marlin/src/config/examples/Malyan/M150/Configuration_adv.h
  17. 14
    0
      Marlin/src/config/examples/Malyan/M200/Configuration_adv.h
  18. 14
    0
      Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h
  19. 14
    0
      Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h
  20. 14
    0
      Marlin/src/config/examples/RigidBot/Configuration_adv.h
  21. 14
    0
      Marlin/src/config/examples/SCARA/Configuration_adv.h
  22. 14
    0
      Marlin/src/config/examples/Sanguinololu/Configuration_adv.h
  23. 14
    0
      Marlin/src/config/examples/TinyBoy2/Configuration_adv.h
  24. 14
    0
      Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h
  25. 14
    0
      Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h
  26. 14
    0
      Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h
  27. 14
    0
      Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h
  28. 14
    0
      Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h
  29. 14
    0
      Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h
  30. 14
    0
      Marlin/src/config/examples/delta/generic/Configuration_adv.h
  31. 14
    0
      Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h
  32. 14
    0
      Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h
  33. 14
    0
      Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h
  34. 14
    0
      Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h
  35. 14
    0
      Marlin/src/config/examples/makibox/Configuration_adv.h
  36. 14
    0
      Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h
  37. 14
    0
      Marlin/src/config/examples/wt150/Configuration_adv.h

+ 14
- 0
Marlin/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/default/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/AlephObjects/TAZ4/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/Anet/A6/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/Anet/A8/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/Azteeg/X5GT/Configuration_adv.h View File

@@ -1149,6 +1149,20 @@
1149 1149
    */
1150 1150
   //#define TMC_DEBUG
1151 1151
 
1152
+  /*
1153
+   * Enable M915 Z axis calibration.
1154
+   * Marlin will first adjust Z stepper current and then drive
1155
+   * the Z axis to its' physical maximum. Finally it will home
1156
+   * the Z axis to account for the lost steps. Use
1157
+   * M915 S### to specify the current and
1158
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1159
+   */
1160
+  //#define TMC_Z_CALIBRATION
1161
+  #if ENABLED(TMC_Z_CALIBRATION)
1162
+    #define CALIBRATION_CURRENT 250
1163
+    #define CALIBRATION_EXTRA_HEIGHT 10
1164
+  #endif
1165
+
1152 1166
   /**
1153 1167
    * You can set your own advanced settings by filling in predefined functions.
1154 1168
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/BQ/Hephestos/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/BQ/Hephestos_2/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/BQ/WITBOX/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/Cartesio/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/Creality/CR-10/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/Felix/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/FolgerTech/i3-2020/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/Infitary/i3-M508/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 86
- 43
Marlin/src/config/examples/MakerParts/Configuration_adv.h View File

@@ -985,7 +985,7 @@
985 985
 
986 986
 #endif
987 987
 
988
-// @section TMC2130
988
+// @section TMC2130, TMC2208
989 989
 
990 990
 /**
991 991
  * Enable this for SilentStepStick Trinamic TMC2130 SPI-configurable stepper drivers.
@@ -999,7 +999,19 @@
999 999
  */
1000 1000
 //#define HAVE_TMC2130
1001 1001
 
1002
-#if ENABLED(HAVE_TMC2130)
1002
+/**
1003
+ * Enable this for SilentStepStick Trinamic TMC2208 UART-configurable stepper drivers.
1004
+ * Connect #_SERIAL_TX_PIN to the driver side PDN_UART pin.
1005
+ * To use the reading capabilities, also connect #_SERIAL_RX_PIN
1006
+ * to #_SERIAL_TX_PIN with a 1K resistor.
1007
+ * The drivers can also be used with hardware serial.
1008
+ *
1009
+ * You'll also need the TMC2208Stepper Arduino library
1010
+ * (https://github.com/teemuatlut/TMC2208Stepper).
1011
+ */
1012
+//#define HAVE_TMC2208
1013
+
1014
+#if ENABLED(HAVE_TMC2130) || ENABLED(HAVE_TMC2208)
1003 1015
 
1004 1016
   // CHOOSE YOUR MOTORS HERE, THIS IS MANDATORY
1005 1017
   //#define X_IS_TMC2130
@@ -1014,46 +1026,58 @@
1014 1026
   //#define E3_IS_TMC2130
1015 1027
   //#define E4_IS_TMC2130
1016 1028
 
1029
+  //#define X_IS_TMC2208
1030
+  //#define X2_IS_TMC2208
1031
+  //#define Y_IS_TMC2208
1032
+  //#define Y2_IS_TMC2208
1033
+  //#define Z_IS_TMC2208
1034
+  //#define Z2_IS_TMC2208
1035
+  //#define E0_IS_TMC2208
1036
+  //#define E1_IS_TMC2208
1037
+  //#define E2_IS_TMC2208
1038
+  //#define E3_IS_TMC2208
1039
+  //#define E4_IS_TMC2208
1040
+
1017 1041
   /**
1018 1042
    * Stepper driver settings
1019 1043
    */
1020 1044
 
1021 1045
   #define R_SENSE           0.11  // R_sense resistor for SilentStepStick2130
1022 1046
   #define HOLD_MULTIPLIER    0.5  // Scales down the holding current from run current
1023
-  #define INTERPOLATE          1  // Interpolate X/Y/Z_MICROSTEPS to 256
1047
+  #define INTERPOLATE       true  // Interpolate X/Y/Z_MICROSTEPS to 256
1024 1048
 
1025
-  #define X_CURRENT         1000  // rms current in mA. Multiply by 1.41 for peak current.
1049
+  #define X_CURRENT          800  // rms current in mA. Multiply by 1.41 for peak current.
1026 1050
   #define X_MICROSTEPS        16  // 0..256
1027 1051
 
1028
-  #define Y_CURRENT         1000
1052
+  #define Y_CURRENT          800
1029 1053
   #define Y_MICROSTEPS        16
1030 1054
 
1031
-  #define Z_CURRENT         1000
1055
+  #define Z_CURRENT          800
1032 1056
   #define Z_MICROSTEPS        16
1033 1057
 
1034
-  //#define X2_CURRENT      1000
1035
-  //#define X2_MICROSTEPS     16
1058
+  #define X2_CURRENT         800
1059
+  #define X2_MICROSTEPS       16
1036 1060
 
1037
-  //#define Y2_CURRENT      1000
1038
-  //#define Y2_MICROSTEPS     16
1061
+  #define Y2_CURRENT         800
1062
+  #define Y2_MICROSTEPS       16
1039 1063
 
1040
-  //#define Z2_CURRENT      1000
1041
-  //#define Z2_MICROSTEPS     16
1064
+  #define Z2_CURRENT         800
1065
+  #define Z2_MICROSTEPS       16
1042 1066
 
1043
-  //#define E0_CURRENT      1000
1044
-  //#define E0_MICROSTEPS     16
1067
+  #define E0_CURRENT         800
1068
+  #define E0_MICROSTEPS       16
1045 1069
 
1046
-  //#define E1_CURRENT      1000
1047
-  //#define E1_MICROSTEPS     16
1070
+  #define E1_CURRENT         800
1071
+  #define E1_MICROSTEPS       16
1048 1072
 
1049
-  //#define E2_CURRENT      1000
1050
-  //#define E2_MICROSTEPS     16
1073
+  #define E2_CURRENT         800
1074
+  #define E2_MICROSTEPS       16
1051 1075
 
1052
-  //#define E3_CURRENT      1000
1053
-  //#define E3_MICROSTEPS     16
1076
+  #define E3_CURRENT         800
1077
+  #define E3_MICROSTEPS       16
1054 1078
 
1055
-  //#define E4_CURRENT      1000
1056
-  //#define E4_MICROSTEPS     16
1079
+  #define E4_CURRENT         800
1080
+  #define E4_MICROSTEPS       16
1057 1081
 
1058 1082
   /**
1059 1083
    * Use Trinamic's ultra quiet stepping mode.
@@ -1062,24 +1086,22 @@
1062 1086
   #define STEALTHCHOP
1063 1087
 
1064 1088
   /**
1065
-   * Let Marlin automatically control stepper current.
1066
-   * This is still an experimental feature.
1067
-   * Increase current every 5s by CURRENT_STEP until stepper temperature prewarn gets triggered,
1068
-   * then decrease current by CURRENT_STEP until temperature prewarn is cleared.
1069
-   * Adjusting starts from X/Y/Z/E_CURRENT but will not increase over AUTO_ADJUST_MAX
1089
+   * Monitor Trinamic TMC2130 and TMC2208 drivers for error conditions,
1090
+   * like overtemperature and short to ground. TMC2208 requires hardware serial.
1091
+   * In the case of overtemperature Marlin can decrease the driver current until error condition clears.
1092
+   * Other detected conditions can be used to stop the current print.
1070 1093
    * Relevant g-codes:
1071 1094
    * M906 - Set or get motor current in milliamps using axis codes X, Y, Z, E. Report values if no axis codes given.
1072
-   * M906 S1 - Start adjusting current
1073
-   * M906 S0 - Stop adjusting current
1074 1095
    * M911 - Report stepper driver overtemperature pre-warn condition.
1075 1096
    * M912 - Clear stepper driver overtemperature pre-warn condition flag.
1097
+   * M122 S0/1 - Report driver parameters (Requires TMC_DEBUG)
1076 1098
    */
1077
-  //#define AUTOMATIC_CURRENT_CONTROL
1099
+  //#define MONITOR_DRIVER_STATUS
1078 1100
 
1079
-  #if ENABLED(AUTOMATIC_CURRENT_CONTROL)
1080
-    #define CURRENT_STEP          50  // [mA]
1081
-    #define AUTO_ADJUST_MAX     1300  // [mA], 1300mA_rms = 1840mA_peak
1101
+  #if ENABLED(MONITOR_DRIVER_STATUS)
1102
+    #define CURRENT_STEP_DOWN     50  // [mA]
1082 1103
     #define REPORT_CURRENT_CHANGE
1104
+    #define STOP_ON_ERROR
1083 1105
   #endif
1084 1106
 
1085 1107
   /**
@@ -1094,8 +1116,8 @@
1094 1116
   #define X2_HYBRID_THRESHOLD    100
1095 1117
   #define Y_HYBRID_THRESHOLD     100
1096 1118
   #define Y2_HYBRID_THRESHOLD    100
1097
-  #define Z_HYBRID_THRESHOLD       4
1098
-  #define Z2_HYBRID_THRESHOLD      4
1119
+  #define Z_HYBRID_THRESHOLD       3
1120
+  #define Z2_HYBRID_THRESHOLD      3
1099 1121
   #define E0_HYBRID_THRESHOLD     30
1100 1122
   #define E1_HYBRID_THRESHOLD     30
1101 1123
   #define E2_HYBRID_THRESHOLD     30
@@ -1105,7 +1127,7 @@
1105 1127
   /**
1106 1128
    * Use stallGuard2 to sense an obstacle and trigger an endstop.
1107 1129
    * You need to place a wire from the driver's DIAG1 pin to the X/Y endstop pin.
1108
-   * If used along with STEALTHCHOP, the movement will be louder when homing. This is normal.
1130
+   * X and Y homing will always be done in spreadCycle mode.
1109 1131
    *
1110 1132
    * X/Y_HOMING_SENSITIVITY is used for tuning the trigger sensitivity.
1111 1133
    * Higher values make the system LESS sensitive.
@@ -1114,27 +1136,48 @@
1114 1136
    * It is advised to set X/Y_HOME_BUMP_MM to 0.
1115 1137
    * M914 X/Y to live tune the setting
1116 1138
    */
1117
-  //#define SENSORLESS_HOMING
1139
+  //#define SENSORLESS_HOMING // TMC2130 only
1118 1140
 
1119 1141
   #if ENABLED(SENSORLESS_HOMING)
1120
-    #define X_HOMING_SENSITIVITY  19
1121
-    #define Y_HOMING_SENSITIVITY  19
1142
+    #define X_HOMING_SENSITIVITY  8
1143
+    #define Y_HOMING_SENSITIVITY  8
1144
+  #endif
1145
+
1146
+  /**
1147
+   * Enable M122 debugging command for TMC stepper drivers.
1148
+   * M122 S0/1 will enable continous reporting.
1149
+   */
1150
+  //#define TMC_DEBUG
1151
+
1152
+  /*
1153
+   * Enable M915 Z axis calibration.
1154
+   * Marlin will first adjust Z stepper current and then drive
1155
+   * the Z axis to its' physical maximum. Finally it will home
1156
+   * the Z axis to account for the lost steps. Use
1157
+   * M915 S### to specify the current and
1158
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1159
+   */
1160
+  //#define TMC_Z_CALIBRATION
1161
+  #if ENABLED(TMC_Z_CALIBRATION)
1162
+    #define CALIBRATION_CURRENT 250
1163
+    #define CALIBRATION_EXTRA_HEIGHT 10
1122 1164
   #endif
1123 1165
 
1124 1166
   /**
1125 1167
    * You can set your own advanced settings by filling in predefined functions.
1126 1168
    * A list of available functions can be found on the library github page
1127 1169
    * https://github.com/teemuatlut/TMC2130Stepper
1170
+   * https://github.com/teemuatlut/TMC2208Stepper
1128 1171
    *
1129 1172
    * Example:
1130
-   * #define TMC2130_ADV() { \
1173
+   * #define TMC_ADV() { \
1131 1174
    *   stepperX.diag0_temp_prewarn(1); \
1132
-   *   stepperX.interpolate(0); \
1175
+   *   stepperY.interpolate(0); \
1133 1176
    * }
1134 1177
    */
1135
-  #define  TMC2130_ADV() {  }
1178
+  #define  TMC_ADV() {  }
1136 1179
 
1137
-#endif // HAVE_TMC2130
1180
+#endif // TMC2130 || TMC2208
1138 1181
 
1139 1182
 // @section L6470
1140 1183
 

+ 14
- 0
Marlin/src/config/examples/Malyan/M150/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/Malyan/M200/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/Micromake/C1/enhanced/Configuration_adv.h View File

@@ -1149,6 +1149,20 @@
1149 1149
    */
1150 1150
   //#define TMC_DEBUG
1151 1151
 
1152
+  /*
1153
+   * Enable M915 Z axis calibration.
1154
+   * Marlin will first adjust Z stepper current and then drive
1155
+   * the Z axis to its' physical maximum. Finally it will home
1156
+   * the Z axis to account for the lost steps. Use
1157
+   * M915 S### to specify the current and
1158
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1159
+   */
1160
+  //#define TMC_Z_CALIBRATION
1161
+  #if ENABLED(TMC_Z_CALIBRATION)
1162
+    #define CALIBRATION_CURRENT 250
1163
+    #define CALIBRATION_EXTRA_HEIGHT 10
1164
+  #endif
1165
+
1152 1166
   /**
1153 1167
    * You can set your own advanced settings by filling in predefined functions.
1154 1168
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/Mks/Sbase/Configuration_adv.h View File

@@ -1156,6 +1156,20 @@
1156 1156
    */
1157 1157
   //#define TMC_DEBUG
1158 1158
 
1159
+  /*
1160
+   * Enable M915 Z axis calibration.
1161
+   * Marlin will first adjust Z stepper current and then drive
1162
+   * the Z axis to its' physical maximum. Finally it will home
1163
+   * the Z axis to account for the lost steps. Use
1164
+   * M915 S### to specify the current and
1165
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1166
+   */
1167
+  //#define TMC_Z_CALIBRATION
1168
+  #if ENABLED(TMC_Z_CALIBRATION)
1169
+    #define CALIBRATION_CURRENT 250
1170
+    #define CALIBRATION_EXTRA_HEIGHT 10
1171
+  #endif
1172
+
1159 1173
   /**
1160 1174
    * You can set your own advanced settings by filling in predefined functions.
1161 1175
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/RigidBot/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/SCARA/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/Sanguinololu/Configuration_adv.h View File

@@ -1137,6 +1137,20 @@
1137 1137
    */
1138 1138
   //#define TMC_DEBUG
1139 1139
 
1140
+  /*
1141
+   * Enable M915 Z axis calibration.
1142
+   * Marlin will first adjust Z stepper current and then drive
1143
+   * the Z axis to its' physical maximum. Finally it will home
1144
+   * the Z axis to account for the lost steps. Use
1145
+   * M915 S### to specify the current and
1146
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1147
+   */
1148
+  //#define TMC_Z_CALIBRATION
1149
+  #if ENABLED(TMC_Z_CALIBRATION)
1150
+    #define CALIBRATION_CURRENT 250
1151
+    #define CALIBRATION_EXTRA_HEIGHT 10
1152
+  #endif
1153
+
1140 1154
   /**
1141 1155
    * You can set your own advanced settings by filling in predefined functions.
1142 1156
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/TinyBoy2/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/UltiMachine/Archim2/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/Velleman/K8200/Configuration_adv.h View File

@@ -1159,6 +1159,20 @@
1159 1159
    */
1160 1160
   //#define TMC_DEBUG
1161 1161
 
1162
+  /*
1163
+   * Enable M915 Z axis calibration.
1164
+   * Marlin will first adjust Z stepper current and then drive
1165
+   * the Z axis to its' physical maximum. Finally it will home
1166
+   * the Z axis to account for the lost steps. Use
1167
+   * M915 S### to specify the current and
1168
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1169
+   */
1170
+  //#define TMC_Z_CALIBRATION
1171
+  #if ENABLED(TMC_Z_CALIBRATION)
1172
+    #define CALIBRATION_CURRENT 250
1173
+    #define CALIBRATION_EXTRA_HEIGHT 10
1174
+  #endif
1175
+
1162 1176
   /**
1163 1177
    * You can set your own advanced settings by filling in predefined functions.
1164 1178
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/Velleman/K8400/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration_adv.h View File

@@ -1150,6 +1150,20 @@
1150 1150
    */
1151 1151
   //#define TMC_DEBUG
1152 1152
 
1153
+  /*
1154
+   * Enable M915 Z axis calibration.
1155
+   * Marlin will first adjust Z stepper current and then drive
1156
+   * the Z axis to its' physical maximum. Finally it will home
1157
+   * the Z axis to account for the lost steps. Use
1158
+   * M915 S### to specify the current and
1159
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1160
+   */
1161
+  //#define TMC_Z_CALIBRATION
1162
+  #if ENABLED(TMC_Z_CALIBRATION)
1163
+    #define CALIBRATION_CURRENT 250
1164
+    #define CALIBRATION_EXTRA_HEIGHT 10
1165
+  #endif
1166
+
1153 1167
   /**
1154 1168
    * You can set your own advanced settings by filling in predefined functions.
1155 1169
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration_adv.h View File

@@ -1150,6 +1150,20 @@
1150 1150
    */
1151 1151
   //#define TMC_DEBUG
1152 1152
 
1153
+  /*
1154
+   * Enable M915 Z axis calibration.
1155
+   * Marlin will first adjust Z stepper current and then drive
1156
+   * the Z axis to its' physical maximum. Finally it will home
1157
+   * the Z axis to account for the lost steps. Use
1158
+   * M915 S### to specify the current and
1159
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1160
+   */
1161
+  //#define TMC_Z_CALIBRATION
1162
+  #if ENABLED(TMC_Z_CALIBRATION)
1163
+    #define CALIBRATION_CURRENT 250
1164
+    #define CALIBRATION_EXTRA_HEIGHT 10
1165
+  #endif
1166
+
1153 1167
   /**
1154 1168
    * You can set your own advanced settings by filling in predefined functions.
1155 1169
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration_adv.h View File

@@ -1150,6 +1150,20 @@
1150 1150
    */
1151 1151
   //#define TMC_DEBUG
1152 1152
 
1153
+  /*
1154
+   * Enable M915 Z axis calibration.
1155
+   * Marlin will first adjust Z stepper current and then drive
1156
+   * the Z axis to its' physical maximum. Finally it will home
1157
+   * the Z axis to account for the lost steps. Use
1158
+   * M915 S### to specify the current and
1159
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1160
+   */
1161
+  //#define TMC_Z_CALIBRATION
1162
+  #if ENABLED(TMC_Z_CALIBRATION)
1163
+    #define CALIBRATION_CURRENT 250
1164
+    #define CALIBRATION_EXTRA_HEIGHT 10
1165
+  #endif
1166
+
1153 1167
   /**
1154 1168
    * You can set your own advanced settings by filling in predefined functions.
1155 1169
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/delta/generic/Configuration_adv.h View File

@@ -1150,6 +1150,20 @@
1150 1150
    */
1151 1151
   //#define TMC_DEBUG
1152 1152
 
1153
+  /*
1154
+   * Enable M915 Z axis calibration.
1155
+   * Marlin will first adjust Z stepper current and then drive
1156
+   * the Z axis to its' physical maximum. Finally it will home
1157
+   * the Z axis to account for the lost steps. Use
1158
+   * M915 S### to specify the current and
1159
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1160
+   */
1161
+  //#define TMC_Z_CALIBRATION
1162
+  #if ENABLED(TMC_Z_CALIBRATION)
1163
+    #define CALIBRATION_CURRENT 250
1164
+    #define CALIBRATION_EXTRA_HEIGHT 10
1165
+  #endif
1166
+
1153 1167
   /**
1154 1168
    * You can set your own advanced settings by filling in predefined functions.
1155 1169
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/delta/kossel_mini/Configuration_adv.h View File

@@ -1150,6 +1150,20 @@
1150 1150
    */
1151 1151
   //#define TMC_DEBUG
1152 1152
 
1153
+  /*
1154
+   * Enable M915 Z axis calibration.
1155
+   * Marlin will first adjust Z stepper current and then drive
1156
+   * the Z axis to its' physical maximum. Finally it will home
1157
+   * the Z axis to account for the lost steps. Use
1158
+   * M915 S### to specify the current and
1159
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1160
+   */
1161
+  //#define TMC_Z_CALIBRATION
1162
+  #if ENABLED(TMC_Z_CALIBRATION)
1163
+    #define CALIBRATION_CURRENT 250
1164
+    #define CALIBRATION_EXTRA_HEIGHT 10
1165
+  #endif
1166
+
1153 1167
   /**
1154 1168
    * You can set your own advanced settings by filling in predefined functions.
1155 1169
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/delta/kossel_pro/Configuration_adv.h View File

@@ -1155,6 +1155,20 @@
1155 1155
    */
1156 1156
   //#define TMC_DEBUG
1157 1157
 
1158
+  /*
1159
+   * Enable M915 Z axis calibration.
1160
+   * Marlin will first adjust Z stepper current and then drive
1161
+   * the Z axis to its' physical maximum. Finally it will home
1162
+   * the Z axis to account for the lost steps. Use
1163
+   * M915 S### to specify the current and
1164
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1165
+   */
1166
+  //#define TMC_Z_CALIBRATION
1167
+  #if ENABLED(TMC_Z_CALIBRATION)
1168
+    #define CALIBRATION_CURRENT 250
1169
+    #define CALIBRATION_EXTRA_HEIGHT 10
1170
+  #endif
1171
+
1158 1172
   /**
1159 1173
    * You can set your own advanced settings by filling in predefined functions.
1160 1174
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/delta/kossel_xl/Configuration_adv.h View File

@@ -1150,6 +1150,20 @@
1150 1150
    */
1151 1151
   //#define TMC_DEBUG
1152 1152
 
1153
+  /*
1154
+   * Enable M915 Z axis calibration.
1155
+   * Marlin will first adjust Z stepper current and then drive
1156
+   * the Z axis to its' physical maximum. Finally it will home
1157
+   * the Z axis to account for the lost steps. Use
1158
+   * M915 S### to specify the current and
1159
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1160
+   */
1161
+  //#define TMC_Z_CALIBRATION
1162
+  #if ENABLED(TMC_Z_CALIBRATION)
1163
+    #define CALIBRATION_CURRENT 250
1164
+    #define CALIBRATION_EXTRA_HEIGHT 10
1165
+  #endif
1166
+
1153 1167
   /**
1154 1168
    * You can set your own advanced settings by filling in predefined functions.
1155 1169
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/gCreate/gMax1.5+/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/makibox/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/tvrrug/Round2/Configuration_adv.h View File

@@ -1148,6 +1148,20 @@
1148 1148
    */
1149 1149
   //#define TMC_DEBUG
1150 1150
 
1151
+  /*
1152
+   * Enable M915 Z axis calibration.
1153
+   * Marlin will first adjust Z stepper current and then drive
1154
+   * the Z axis to its' physical maximum. Finally it will home
1155
+   * the Z axis to account for the lost steps. Use
1156
+   * M915 S### to specify the current and
1157
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1158
+   */
1159
+  //#define TMC_Z_CALIBRATION
1160
+  #if ENABLED(TMC_Z_CALIBRATION)
1161
+    #define CALIBRATION_CURRENT 250
1162
+    #define CALIBRATION_EXTRA_HEIGHT 10
1163
+  #endif
1164
+
1151 1165
   /**
1152 1166
    * You can set your own advanced settings by filling in predefined functions.
1153 1167
    * A list of available functions can be found on the library github page

+ 14
- 0
Marlin/src/config/examples/wt150/Configuration_adv.h View File

@@ -1149,6 +1149,20 @@
1149 1149
    */
1150 1150
   //#define TMC_DEBUG
1151 1151
 
1152
+  /*
1153
+   * Enable M915 Z axis calibration.
1154
+   * Marlin will first adjust Z stepper current and then drive
1155
+   * the Z axis to its' physical maximum. Finally it will home
1156
+   * the Z axis to account for the lost steps. Use
1157
+   * M915 S### to specify the current and
1158
+   * M925 Z## to specify the extra Z height that's added to Z_MAX_POS.
1159
+   */
1160
+  //#define TMC_Z_CALIBRATION
1161
+  #if ENABLED(TMC_Z_CALIBRATION)
1162
+    #define CALIBRATION_CURRENT 250
1163
+    #define CALIBRATION_EXTRA_HEIGHT 10
1164
+  #endif
1165
+
1152 1166
   /**
1153 1167
    * You can set your own advanced settings by filling in predefined functions.
1154 1168
    * A list of available functions can be found on the library github page

Loading…
Cancel
Save