Browse Source

Expose: Homing Validation and Endstop Noise Threshold (#11912)

Scott Lahteine 6 years ago
parent
commit
5490a664f5
No account linked to committer's email address
80 changed files with 1079 additions and 1073 deletions
  1. 14
    14
      Marlin/Configuration.h
  2. 14
    14
      Marlin/src/config/default/Configuration.h
  3. 14
    14
      Marlin/src/config/examples/AlephObjects/TAZ4/Configuration.h
  4. 14
    14
      Marlin/src/config/examples/AliExpress/CL-260/Configuration.h
  5. 14
    14
      Marlin/src/config/examples/Anet/A2/Configuration.h
  6. 14
    14
      Marlin/src/config/examples/Anet/A2plus/Configuration.h
  7. 14
    14
      Marlin/src/config/examples/Anet/A6/Configuration.h
  8. 14
    14
      Marlin/src/config/examples/Anet/A8/Configuration.h
  9. 14
    14
      Marlin/src/config/examples/Azteeg/X5GT/Configuration.h
  10. 14
    14
      Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration.h
  11. 14
    14
      Marlin/src/config/examples/BIBO/TouchX/default/Configuration.h
  12. 14
    14
      Marlin/src/config/examples/BQ/Hephestos/Configuration.h
  13. 14
    14
      Marlin/src/config/examples/BQ/Hephestos_2/Configuration.h
  14. 14
    14
      Marlin/src/config/examples/BQ/WITBOX/Configuration.h
  15. 14
    14
      Marlin/src/config/examples/Cartesio/Configuration.h
  16. 14
    14
      Marlin/src/config/examples/Creality/CR-10/Configuration.h
  17. 14
    14
      Marlin/src/config/examples/Creality/CR-10S/Configuration.h
  18. 14
    14
      Marlin/src/config/examples/Creality/CR-10mini/Configuration.h
  19. 14
    14
      Marlin/src/config/examples/Creality/CR-8/Configuration.h
  20. 14
    14
      Marlin/src/config/examples/Creality/Ender-2/Configuration.h
  21. 14
    14
      Marlin/src/config/examples/Creality/Ender-3/Configuration.h
  22. 14
    14
      Marlin/src/config/examples/Creality/Ender-4/Configuration.h
  23. 14
    14
      Marlin/src/config/examples/Einstart-S/Configuration.h
  24. 14
    14
      Marlin/src/config/examples/Felix/Configuration.h
  25. 14
    14
      Marlin/src/config/examples/Felix/DUAL/Configuration.h
  26. 14
    14
      Marlin/src/config/examples/FolgerTech/i3-2020/Configuration.h
  27. 14
    14
      Marlin/src/config/examples/Formbot/T-Rex_2+/Configuration.h
  28. 14
    14
      Marlin/src/config/examples/Formbot/T_Rex_3/Configuration.h
  29. 14
    14
      Marlin/src/config/examples/Geeetech/GT2560/Configuration.h
  30. 14
    14
      Marlin/src/config/examples/Geeetech/I3_Pro_X-GT2560/Configuration.h
  31. 14
    14
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/bltouch/Configuration.h
  32. 14
    14
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/noprobe/Configuration.h
  33. 14
    14
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration.h
  34. 14
    14
      Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration.h
  35. 14
    14
      Marlin/src/config/examples/Infitary/i3-M508/Configuration.h
  36. 14
    14
      Marlin/src/config/examples/JGAurora/A5/Configuration.h
  37. 14
    14
      Marlin/src/config/examples/MakerParts/Configuration.h
  38. 14
    14
      Marlin/src/config/examples/Malyan/M150/Configuration.h
  39. 14
    14
      Marlin/src/config/examples/Malyan/M200/Configuration.h
  40. 14
    14
      Marlin/src/config/examples/Micromake/C1/basic/Configuration.h
  41. 14
    14
      Marlin/src/config/examples/Micromake/C1/enhanced/Configuration.h
  42. 14
    14
      Marlin/src/config/examples/Mks/Sbase/Configuration.h
  43. 14
    14
      Marlin/src/config/examples/RepRapPro/Huxley/Configuration.h
  44. 14
    14
      Marlin/src/config/examples/RepRapWorld/Megatronics/Configuration.h
  45. 14
    14
      Marlin/src/config/examples/RigidBot/Configuration.h
  46. 14
    14
      Marlin/src/config/examples/SCARA/Configuration.h
  47. 14
    14
      Marlin/src/config/examples/STM32F10/Configuration.h
  48. 14
    14
      Marlin/src/config/examples/STM32F4/Configuration.h
  49. 14
    14
      Marlin/src/config/examples/Sanguinololu/Configuration.h
  50. 14
    14
      Marlin/src/config/examples/TheBorg/Configuration.h
  51. 14
    14
      Marlin/src/config/examples/TinyBoy2/Configuration.h
  52. 14
    14
      Marlin/src/config/examples/Tronxy/X1/Configuration.h
  53. 14
    14
      Marlin/src/config/examples/Tronxy/X3A/Configuration.h
  54. 14
    14
      Marlin/src/config/examples/Tronxy/X5S/Configuration.h
  55. 14
    14
      Marlin/src/config/examples/Tronxy/XY100/Configuration.h
  56. 14
    14
      Marlin/src/config/examples/UltiMachine/Archim2/Configuration.h
  57. 14
    14
      Marlin/src/config/examples/Velleman/K8200/Configuration.h
  58. 14
    14
      Marlin/src/config/examples/Velleman/K8400/Configuration.h
  59. 14
    14
      Marlin/src/config/examples/Velleman/K8400/Dual-head/Configuration.h
  60. 14
    14
      Marlin/src/config/examples/Wanhao/Duplicator 6/Configuration.h
  61. 14
    14
      Marlin/src/config/examples/adafruit/ST7565/Configuration.h
  62. 14
    14
      Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration.h
  63. 14
    14
      Marlin/src/config/examples/delta/FLSUN/auto_calibrate/Configuration.h
  64. 14
    14
      Marlin/src/config/examples/delta/FLSUN/kossel/Configuration.h
  65. 14
    14
      Marlin/src/config/examples/delta/FLSUN/kossel_mini/Configuration.h
  66. 15
    15
      Marlin/src/config/examples/delta/Hatchbox_Alpha/Configuration.h
  67. 14
    14
      Marlin/src/config/examples/delta/generic/Configuration.h
  68. 14
    14
      Marlin/src/config/examples/delta/kossel_mini/Configuration.h
  69. 15
    15
      Marlin/src/config/examples/delta/kossel_pro/Configuration.h
  70. 14
    14
      Marlin/src/config/examples/delta/kossel_xl/Configuration.h
  71. 14
    14
      Marlin/src/config/examples/gCreate/gMax1.5+/Configuration.h
  72. 14
    14
      Marlin/src/config/examples/makibox/Configuration.h
  73. 14
    14
      Marlin/src/config/examples/stm32f103ret6/Configuration.h
  74. 14
    14
      Marlin/src/config/examples/tvrrug/Round2/Configuration.h
  75. 14
    14
      Marlin/src/config/examples/wt150/Configuration.h
  76. 8
    2
      Marlin/src/inc/SanityCheck.h
  77. 5
    4
      Marlin/src/module/endstops.cpp
  78. 2
    4
      Marlin/src/module/endstops.h
  79. 11
    0
      buildroot/share/tests/DUE_tests
  80. 1
    11
      buildroot/share/tests/megaatmega2560_tests

+ 14
- 14
Marlin/Configuration.h View File

603
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 //#define ENDSTOP_INTERRUPTS_FEATURE
604
 
604
 
605
 /**
605
 /**
606
- * Endstop Noise Filter
607
- *
608
- * Enable this option if endstops falsely trigger due to noise.
609
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
610
- * will end up at a slightly different position on each G28. This will also
611
- * reduce accuracy of some bed probes.
612
- * For mechanical switches, the better approach to reduce noise is to install
613
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
614
- * essentially noise-proof without sacrificing accuracy.
615
- * This option also increases MCU load when endstops or the probe are enabled.
616
- * So this is not recommended. USE AT YOUR OWN RISK.
617
- * (This feature is not required for common micro-switches mounted on PCBs
618
- * based on the Makerbot design, since they already include the 100nF capacitor.)
606
+ * Endstop Noise Threshold
607
+ *
608
+ * Enable if your probe or endstops falsely trigger due to noise.
609
+ *
610
+ * - Higher values may affect repeatability or accuracy of some bed probes.
611
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
612
+ * - This feature is not required for common micro-switches mounted on PCBs
613
+ *   based on the Makerbot design, which already have the 100nF capacitor.
614
+ *
615
+ * :[2,3,4,5,6,7]
619
  */
616
  */
620
-//#define ENDSTOP_NOISE_FILTER
617
+//#define ENDSTOP_NOISE_THRESHOLD 2
621
 
618
 
622
 //=============================================================================
619
 //=============================================================================
623
 //============================== Movement Settings ============================
620
 //============================== Movement Settings ============================
1194
 #define HOMING_FEEDRATE_XY (50*60)
1191
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_Z  (4*60)
1192
 #define HOMING_FEEDRATE_Z  (4*60)
1196
 
1193
 
1194
+// Validate that endstops are triggered on homing moves
1195
+#define VALIDATE_HOMING_ENDSTOPS
1196
+
1197
 // @section calibrate
1197
 // @section calibrate
1198
 
1198
 
1199
 /**
1199
 /**

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

603
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 //#define ENDSTOP_INTERRUPTS_FEATURE
604
 
604
 
605
 /**
605
 /**
606
- * Endstop Noise Filter
607
- *
608
- * Enable this option if endstops falsely trigger due to noise.
609
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
610
- * will end up at a slightly different position on each G28. This will also
611
- * reduce accuracy of some bed probes.
612
- * For mechanical switches, the better approach to reduce noise is to install
613
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
614
- * essentially noise-proof without sacrificing accuracy.
615
- * This option also increases MCU load when endstops or the probe are enabled.
616
- * So this is not recommended. USE AT YOUR OWN RISK.
617
- * (This feature is not required for common micro-switches mounted on PCBs
618
- * based on the Makerbot design, since they already include the 100nF capacitor.)
606
+ * Endstop Noise Threshold
607
+ *
608
+ * Enable if your probe or endstops falsely trigger due to noise.
609
+ *
610
+ * - Higher values may affect repeatability or accuracy of some bed probes.
611
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
612
+ * - This feature is not required for common micro-switches mounted on PCBs
613
+ *   based on the Makerbot design, which already have the 100nF capacitor.
614
+ *
615
+ * :[2,3,4,5,6,7]
619
  */
616
  */
620
-//#define ENDSTOP_NOISE_FILTER
617
+//#define ENDSTOP_NOISE_THRESHOLD 2
621
 
618
 
622
 //=============================================================================
619
 //=============================================================================
623
 //============================== Movement Settings ============================
620
 //============================== Movement Settings ============================
1194
 #define HOMING_FEEDRATE_XY (50*60)
1191
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_Z  (4*60)
1192
 #define HOMING_FEEDRATE_Z  (4*60)
1196
 
1193
 
1194
+// Validate that endstops are triggered on homing moves
1195
+#define VALIDATE_HOMING_ENDSTOPS
1196
+
1197
 // @section calibrate
1197
 // @section calibrate
1198
 
1198
 
1199
 /**
1199
 /**

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

623
 //#define ENDSTOP_INTERRUPTS_FEATURE
623
 //#define ENDSTOP_INTERRUPTS_FEATURE
624
 
624
 
625
 /**
625
 /**
626
- * Endstop Noise Filter
627
- *
628
- * Enable this option if endstops falsely trigger due to noise.
629
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
630
- * will end up at a slightly different position on each G28. This will also
631
- * reduce accuracy of some bed probes.
632
- * For mechanical switches, the better approach to reduce noise is to install
633
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
634
- * essentially noise-proof without sacrificing accuracy.
635
- * This option also increases MCU load when endstops or the probe are enabled.
636
- * So this is not recommended. USE AT YOUR OWN RISK.
637
- * (This feature is not required for common micro-switches mounted on PCBs
638
- * based on the Makerbot design, since they already include the 100nF capacitor.)
626
+ * Endstop Noise Threshold
627
+ *
628
+ * Enable if your probe or endstops falsely trigger due to noise.
629
+ *
630
+ * - Higher values may affect repeatability or accuracy of some bed probes.
631
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
632
+ * - This feature is not required for common micro-switches mounted on PCBs
633
+ *   based on the Makerbot design, which already have the 100nF capacitor.
634
+ *
635
+ * :[2,3,4,5,6,7]
639
  */
636
  */
640
-//#define ENDSTOP_NOISE_FILTER
637
+//#define ENDSTOP_NOISE_THRESHOLD 2
641
 
638
 
642
 //=============================================================================
639
 //=============================================================================
643
 //============================== Movement Settings ============================
640
 //============================== Movement Settings ============================
1214
 #define HOMING_FEEDRATE_XY (50*60)
1211
 #define HOMING_FEEDRATE_XY (50*60)
1215
 #define HOMING_FEEDRATE_Z  (8*60)
1212
 #define HOMING_FEEDRATE_Z  (8*60)
1216
 
1213
 
1214
+// Validate that endstops are triggered on homing moves
1215
+#define VALIDATE_HOMING_ENDSTOPS
1216
+
1217
 // @section calibrate
1217
 // @section calibrate
1218
 
1218
 
1219
 /**
1219
 /**

+ 14
- 14
Marlin/src/config/examples/AliExpress/CL-260/Configuration.h View File

603
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 //#define ENDSTOP_INTERRUPTS_FEATURE
604
 
604
 
605
 /**
605
 /**
606
- * Endstop Noise Filter
607
- *
608
- * Enable this option if endstops falsely trigger due to noise.
609
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
610
- * will end up at a slightly different position on each G28. This will also
611
- * reduce accuracy of some bed probes.
612
- * For mechanical switches, the better approach to reduce noise is to install
613
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
614
- * essentially noise-proof without sacrificing accuracy.
615
- * This option also increases MCU load when endstops or the probe are enabled.
616
- * So this is not recommended. USE AT YOUR OWN RISK.
617
- * (This feature is not required for common micro-switches mounted on PCBs
618
- * based on the Makerbot design, since they already include the 100nF capacitor.)
606
+ * Endstop Noise Threshold
607
+ *
608
+ * Enable if your probe or endstops falsely trigger due to noise.
609
+ *
610
+ * - Higher values may affect repeatability or accuracy of some bed probes.
611
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
612
+ * - This feature is not required for common micro-switches mounted on PCBs
613
+ *   based on the Makerbot design, which already have the 100nF capacitor.
614
+ *
615
+ * :[2,3,4,5,6,7]
619
  */
616
  */
620
-//#define ENDSTOP_NOISE_FILTER
617
+//#define ENDSTOP_NOISE_THRESHOLD 2
621
 
618
 
622
 //=============================================================================
619
 //=============================================================================
623
 //============================== Movement Settings ============================
620
 //============================== Movement Settings ============================
1194
 #define HOMING_FEEDRATE_XY (50*60)
1191
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_Z  (4*60)
1192
 #define HOMING_FEEDRATE_Z  (4*60)
1196
 
1193
 
1194
+// Validate that endstops are triggered on homing moves
1195
+#define VALIDATE_HOMING_ENDSTOPS
1196
+
1197
 // @section calibrate
1197
 // @section calibrate
1198
 
1198
 
1199
 /**
1199
 /**

+ 14
- 14
Marlin/src/config/examples/Anet/A2/Configuration.h View File

586
 #define ENDSTOP_INTERRUPTS_FEATURE
586
 #define ENDSTOP_INTERRUPTS_FEATURE
587
 
587
 
588
 /**
588
 /**
589
- * Endstop Noise Filter
590
- *
591
- * Enable this option if endstops falsely trigger due to noise.
592
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
593
- * will end up at a slightly different position on each G28. This will also
594
- * reduce accuracy of some bed probes.
595
- * For mechanical switches, the better approach to reduce noise is to install
596
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
597
- * essentially noise-proof without sacrificing accuracy.
598
- * This option also increases MCU load when endstops or the probe are enabled.
599
- * So this is not recommended. USE AT YOUR OWN RISK.
600
- * (This feature is not required for common micro-switches mounted on PCBs
601
- * based on the Makerbot design, since they already include the 100nF capacitor.)
589
+ * Endstop Noise Threshold
590
+ *
591
+ * Enable if your probe or endstops falsely trigger due to noise.
592
+ *
593
+ * - Higher values may affect repeatability or accuracy of some bed probes.
594
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
595
+ * - This feature is not required for common micro-switches mounted on PCBs
596
+ *   based on the Makerbot design, which already have the 100nF capacitor.
597
+ *
598
+ * :[2,3,4,5,6,7]
602
  */
599
  */
603
-//#define ENDSTOP_NOISE_FILTER
600
+//#define ENDSTOP_NOISE_THRESHOLD 2
604
 
601
 
605
 //=============================================================================
602
 //=============================================================================
606
 //============================== Movement Settings ============================
603
 //============================== Movement Settings ============================
1177
 #define HOMING_FEEDRATE_XY (50*60)
1174
 #define HOMING_FEEDRATE_XY (50*60)
1178
 #define HOMING_FEEDRATE_Z  (4*60)
1175
 #define HOMING_FEEDRATE_Z  (4*60)
1179
 
1176
 
1177
+// Validate that endstops are triggered on homing moves
1178
+#define VALIDATE_HOMING_ENDSTOPS
1179
+
1180
 // @section calibrate
1180
 // @section calibrate
1181
 
1181
 
1182
 /**
1182
 /**

+ 14
- 14
Marlin/src/config/examples/Anet/A2plus/Configuration.h View File

586
 #define ENDSTOP_INTERRUPTS_FEATURE
586
 #define ENDSTOP_INTERRUPTS_FEATURE
587
 
587
 
588
 /**
588
 /**
589
- * Endstop Noise Filter
590
- *
591
- * Enable this option if endstops falsely trigger due to noise.
592
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
593
- * will end up at a slightly different position on each G28. This will also
594
- * reduce accuracy of some bed probes.
595
- * For mechanical switches, the better approach to reduce noise is to install
596
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
597
- * essentially noise-proof without sacrificing accuracy.
598
- * This option also increases MCU load when endstops or the probe are enabled.
599
- * So this is not recommended. USE AT YOUR OWN RISK.
600
- * (This feature is not required for common micro-switches mounted on PCBs
601
- * based on the Makerbot design, since they already include the 100nF capacitor.)
589
+ * Endstop Noise Threshold
590
+ *
591
+ * Enable if your probe or endstops falsely trigger due to noise.
592
+ *
593
+ * - Higher values may affect repeatability or accuracy of some bed probes.
594
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
595
+ * - This feature is not required for common micro-switches mounted on PCBs
596
+ *   based on the Makerbot design, which already have the 100nF capacitor.
597
+ *
598
+ * :[2,3,4,5,6,7]
602
  */
599
  */
603
-//#define ENDSTOP_NOISE_FILTER
600
+//#define ENDSTOP_NOISE_THRESHOLD 2
604
 
601
 
605
 //=============================================================================
602
 //=============================================================================
606
 //============================== Movement Settings ============================
603
 //============================== Movement Settings ============================
1177
 #define HOMING_FEEDRATE_XY (50*60)
1174
 #define HOMING_FEEDRATE_XY (50*60)
1178
 #define HOMING_FEEDRATE_Z  (4*60)
1175
 #define HOMING_FEEDRATE_Z  (4*60)
1179
 
1176
 
1177
+// Validate that endstops are triggered on homing moves
1178
+#define VALIDATE_HOMING_ENDSTOPS
1179
+
1180
 // @section calibrate
1180
 // @section calibrate
1181
 
1181
 
1182
 /**
1182
 /**

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

623
 #define ENDSTOP_INTERRUPTS_FEATURE
623
 #define ENDSTOP_INTERRUPTS_FEATURE
624
 
624
 
625
 /**
625
 /**
626
- * Endstop Noise Filter
627
- *
628
- * Enable this option if endstops falsely trigger due to noise.
629
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
630
- * will end up at a slightly different position on each G28. This will also
631
- * reduce accuracy of some bed probes.
632
- * For mechanical switches, the better approach to reduce noise is to install
633
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
634
- * essentially noise-proof without sacrificing accuracy.
635
- * This option also increases MCU load when endstops or the probe are enabled.
636
- * So this is not recommended. USE AT YOUR OWN RISK.
637
- * (This feature is not required for common micro-switches mounted on PCBs
638
- * based on the Makerbot design, since they already include the 100nF capacitor.)
626
+ * Endstop Noise Threshold
627
+ *
628
+ * Enable if your probe or endstops falsely trigger due to noise.
629
+ *
630
+ * - Higher values may affect repeatability or accuracy of some bed probes.
631
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
632
+ * - This feature is not required for common micro-switches mounted on PCBs
633
+ *   based on the Makerbot design, which already have the 100nF capacitor.
634
+ *
635
+ * :[2,3,4,5,6,7]
639
  */
636
  */
640
-//#define ENDSTOP_NOISE_FILTER
637
+//#define ENDSTOP_NOISE_THRESHOLD 2
641
 
638
 
642
 //=============================================================================
639
 //=============================================================================
643
 //============================== Movement Settings ============================
640
 //============================== Movement Settings ============================
1347
 #define HOMING_FEEDRATE_XY (50*60)
1344
 #define HOMING_FEEDRATE_XY (50*60)
1348
 #define HOMING_FEEDRATE_Z  (4*60)
1345
 #define HOMING_FEEDRATE_Z  (4*60)
1349
 
1346
 
1347
+// Validate that endstops are triggered on homing moves
1348
+#define VALIDATE_HOMING_ENDSTOPS
1349
+
1350
 // @section calibrate
1350
 // @section calibrate
1351
 
1351
 
1352
 /**
1352
 /**

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

610
 #define ENDSTOP_INTERRUPTS_FEATURE
610
 #define ENDSTOP_INTERRUPTS_FEATURE
611
 
611
 
612
 /**
612
 /**
613
- * Endstop Noise Filter
614
- *
615
- * Enable this option if endstops falsely trigger due to noise.
616
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
617
- * will end up at a slightly different position on each G28. This will also
618
- * reduce accuracy of some bed probes.
619
- * For mechanical switches, the better approach to reduce noise is to install
620
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
621
- * essentially noise-proof without sacrificing accuracy.
622
- * This option also increases MCU load when endstops or the probe are enabled.
623
- * So this is not recommended. USE AT YOUR OWN RISK.
624
- * (This feature is not required for common micro-switches mounted on PCBs
625
- * based on the Makerbot design, since they already include the 100nF capacitor.)
613
+ * Endstop Noise Threshold
614
+ *
615
+ * Enable if your probe or endstops falsely trigger due to noise.
616
+ *
617
+ * - Higher values may affect repeatability or accuracy of some bed probes.
618
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
619
+ * - This feature is not required for common micro-switches mounted on PCBs
620
+ *   based on the Makerbot design, which already have the 100nF capacitor.
621
+ *
622
+ * :[2,3,4,5,6,7]
626
  */
623
  */
627
-//#define ENDSTOP_NOISE_FILTER
624
+//#define ENDSTOP_NOISE_THRESHOLD 2
628
 
625
 
629
 //=============================================================================
626
 //=============================================================================
630
 //============================== Movement Settings ============================
627
 //============================== Movement Settings ============================
1201
 #define HOMING_FEEDRATE_XY (100*60)
1198
 #define HOMING_FEEDRATE_XY (100*60)
1202
 #define HOMING_FEEDRATE_Z  (4*60)
1199
 #define HOMING_FEEDRATE_Z  (4*60)
1203
 
1200
 
1201
+// Validate that endstops are triggered on homing moves
1202
+#define VALIDATE_HOMING_ENDSTOPS
1203
+
1204
 // @section calibrate
1204
 // @section calibrate
1205
 
1205
 
1206
 /**
1206
 /**

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

603
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 //#define ENDSTOP_INTERRUPTS_FEATURE
604
 
604
 
605
 /**
605
 /**
606
- * Endstop Noise Filter
607
- *
608
- * Enable this option if endstops falsely trigger due to noise.
609
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
610
- * will end up at a slightly different position on each G28. This will also
611
- * reduce accuracy of some bed probes.
612
- * For mechanical switches, the better approach to reduce noise is to install
613
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
614
- * essentially noise-proof without sacrificing accuracy.
615
- * This option also increases MCU load when endstops or the probe are enabled.
616
- * So this is not recommended. USE AT YOUR OWN RISK.
617
- * (This feature is not required for common micro-switches mounted on PCBs
618
- * based on the Makerbot design, since they already include the 100nF capacitor.)
606
+ * Endstop Noise Threshold
607
+ *
608
+ * Enable if your probe or endstops falsely trigger due to noise.
609
+ *
610
+ * - Higher values may affect repeatability or accuracy of some bed probes.
611
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
612
+ * - This feature is not required for common micro-switches mounted on PCBs
613
+ *   based on the Makerbot design, which already have the 100nF capacitor.
614
+ *
615
+ * :[2,3,4,5,6,7]
619
  */
616
  */
620
-//#define ENDSTOP_NOISE_FILTER
617
+//#define ENDSTOP_NOISE_THRESHOLD 2
621
 
618
 
622
 //=============================================================================
619
 //=============================================================================
623
 //============================== Movement Settings ============================
620
 //============================== Movement Settings ============================
1194
 #define HOMING_FEEDRATE_XY (50*60)
1191
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_Z  (4*60)
1192
 #define HOMING_FEEDRATE_Z  (4*60)
1196
 
1193
 
1194
+// Validate that endstops are triggered on homing moves
1195
+#define VALIDATE_HOMING_ENDSTOPS
1196
+
1197
 // @section calibrate
1197
 // @section calibrate
1198
 
1198
 
1199
 /**
1199
 /**

+ 14
- 14
Marlin/src/config/examples/BIBO/TouchX/cyclops/Configuration.h View File

575
 //#define ENDSTOP_INTERRUPTS_FEATURE
575
 //#define ENDSTOP_INTERRUPTS_FEATURE
576
 
576
 
577
 /**
577
 /**
578
- * Endstop Noise Filter
579
- *
580
- * Enable this option if endstops falsely trigger due to noise.
581
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
582
- * will end up at a slightly different position on each G28. This will also
583
- * reduce accuracy of some bed probes.
584
- * For mechanical switches, the better approach to reduce noise is to install
585
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
586
- * essentially noise-proof without sacrificing accuracy.
587
- * This option also increases MCU load when endstops or the probe are enabled.
588
- * So this is not recommended. USE AT YOUR OWN RISK.
589
- * (This feature is not required for common micro-switches mounted on PCBs
590
- * based on the Makerbot design, since they already include the 100nF capacitor.)
578
+ * Endstop Noise Threshold
579
+ *
580
+ * Enable if your probe or endstops falsely trigger due to noise.
581
+ *
582
+ * - Higher values may affect repeatability or accuracy of some bed probes.
583
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
584
+ * - This feature is not required for common micro-switches mounted on PCBs
585
+ *   based on the Makerbot design, which already have the 100nF capacitor.
586
+ *
587
+ * :[2,3,4,5,6,7]
591
  */
588
  */
592
-//#define ENDSTOP_NOISE_FILTER
589
+//#define ENDSTOP_NOISE_THRESHOLD 2
593
 
590
 
594
 //=============================================================================
591
 //=============================================================================
595
 //============================== Movement Settings ============================
592
 //============================== Movement Settings ============================
1166
 #define HOMING_FEEDRATE_XY (25*60)
1163
 #define HOMING_FEEDRATE_XY (25*60)
1167
 #define HOMING_FEEDRATE_Z  (6*60)
1164
 #define HOMING_FEEDRATE_Z  (6*60)
1168
 
1165
 
1166
+// Validate that endstops are triggered on homing moves
1167
+#define VALIDATE_HOMING_ENDSTOPS
1168
+
1169
 // @section calibrate
1169
 // @section calibrate
1170
 
1170
 
1171
 /**
1171
 /**

+ 14
- 14
Marlin/src/config/examples/BIBO/TouchX/default/Configuration.h View File

575
 //#define ENDSTOP_INTERRUPTS_FEATURE
575
 //#define ENDSTOP_INTERRUPTS_FEATURE
576
 
576
 
577
 /**
577
 /**
578
- * Endstop Noise Filter
579
- *
580
- * Enable this option if endstops falsely trigger due to noise.
581
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
582
- * will end up at a slightly different position on each G28. This will also
583
- * reduce accuracy of some bed probes.
584
- * For mechanical switches, the better approach to reduce noise is to install
585
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
586
- * essentially noise-proof without sacrificing accuracy.
587
- * This option also increases MCU load when endstops or the probe are enabled.
588
- * So this is not recommended. USE AT YOUR OWN RISK.
589
- * (This feature is not required for common micro-switches mounted on PCBs
590
- * based on the Makerbot design, since they already include the 100nF capacitor.)
578
+ * Endstop Noise Threshold
579
+ *
580
+ * Enable if your probe or endstops falsely trigger due to noise.
581
+ *
582
+ * - Higher values may affect repeatability or accuracy of some bed probes.
583
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
584
+ * - This feature is not required for common micro-switches mounted on PCBs
585
+ *   based on the Makerbot design, which already have the 100nF capacitor.
586
+ *
587
+ * :[2,3,4,5,6,7]
591
  */
588
  */
592
-//#define ENDSTOP_NOISE_FILTER
589
+//#define ENDSTOP_NOISE_THRESHOLD 2
593
 
590
 
594
 //=============================================================================
591
 //=============================================================================
595
 //============================== Movement Settings ============================
592
 //============================== Movement Settings ============================
1166
 #define HOMING_FEEDRATE_XY (15*60)
1163
 #define HOMING_FEEDRATE_XY (15*60)
1167
 #define HOMING_FEEDRATE_Z  (4*60)
1164
 #define HOMING_FEEDRATE_Z  (4*60)
1168
 
1165
 
1166
+// Validate that endstops are triggered on homing moves
1167
+#define VALIDATE_HOMING_ENDSTOPS
1168
+
1169
 // @section calibrate
1169
 // @section calibrate
1170
 
1170
 
1171
 /**
1171
 /**

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

591
 //#define ENDSTOP_INTERRUPTS_FEATURE
591
 //#define ENDSTOP_INTERRUPTS_FEATURE
592
 
592
 
593
 /**
593
 /**
594
- * Endstop Noise Filter
595
- *
596
- * Enable this option if endstops falsely trigger due to noise.
597
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
598
- * will end up at a slightly different position on each G28. This will also
599
- * reduce accuracy of some bed probes.
600
- * For mechanical switches, the better approach to reduce noise is to install
601
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
602
- * essentially noise-proof without sacrificing accuracy.
603
- * This option also increases MCU load when endstops or the probe are enabled.
604
- * So this is not recommended. USE AT YOUR OWN RISK.
605
- * (This feature is not required for common micro-switches mounted on PCBs
606
- * based on the Makerbot design, since they already include the 100nF capacitor.)
594
+ * Endstop Noise Threshold
595
+ *
596
+ * Enable if your probe or endstops falsely trigger due to noise.
597
+ *
598
+ * - Higher values may affect repeatability or accuracy of some bed probes.
599
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
600
+ * - This feature is not required for common micro-switches mounted on PCBs
601
+ *   based on the Makerbot design, which already have the 100nF capacitor.
602
+ *
603
+ * :[2,3,4,5,6,7]
607
  */
604
  */
608
-//#define ENDSTOP_NOISE_FILTER
605
+//#define ENDSTOP_NOISE_THRESHOLD 2
609
 
606
 
610
 //=============================================================================
607
 //=============================================================================
611
 //============================== Movement Settings ============================
608
 //============================== Movement Settings ============================
1182
 #define HOMING_FEEDRATE_XY 2000
1179
 #define HOMING_FEEDRATE_XY 2000
1183
 #define HOMING_FEEDRATE_Z  150
1180
 #define HOMING_FEEDRATE_Z  150
1184
 
1181
 
1182
+// Validate that endstops are triggered on homing moves
1183
+#define VALIDATE_HOMING_ENDSTOPS
1184
+
1185
 // @section calibrate
1185
 // @section calibrate
1186
 
1186
 
1187
 /**
1187
 /**

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

604
 #define ENDSTOP_INTERRUPTS_FEATURE
604
 #define ENDSTOP_INTERRUPTS_FEATURE
605
 
605
 
606
 /**
606
 /**
607
- * Endstop Noise Filter
608
- *
609
- * Enable this option if endstops falsely trigger due to noise.
610
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
611
- * will end up at a slightly different position on each G28. This will also
612
- * reduce accuracy of some bed probes.
613
- * For mechanical switches, the better approach to reduce noise is to install
614
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
615
- * essentially noise-proof without sacrificing accuracy.
616
- * This option also increases MCU load when endstops or the probe are enabled.
617
- * So this is not recommended. USE AT YOUR OWN RISK.
618
- * (This feature is not required for common micro-switches mounted on PCBs
619
- * based on the Makerbot design, since they already include the 100nF capacitor.)
607
+ * Endstop Noise Threshold
608
+ *
609
+ * Enable if your probe or endstops falsely trigger due to noise.
610
+ *
611
+ * - Higher values may affect repeatability or accuracy of some bed probes.
612
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
613
+ * - This feature is not required for common micro-switches mounted on PCBs
614
+ *   based on the Makerbot design, which already have the 100nF capacitor.
615
+ *
616
+ * :[2,3,4,5,6,7]
620
  */
617
  */
621
-//#define ENDSTOP_NOISE_FILTER
618
+//#define ENDSTOP_NOISE_THRESHOLD 2
622
 
619
 
623
 //=============================================================================
620
 //=============================================================================
624
 //============================== Movement Settings ============================
621
 //============================== Movement Settings ============================
1194
 #define HOMING_FEEDRATE_XY (50*60)
1191
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_Z  ( 4*60)
1192
 #define HOMING_FEEDRATE_Z  ( 4*60)
1196
 
1193
 
1194
+// Validate that endstops are triggered on homing moves
1195
+#define VALIDATE_HOMING_ENDSTOPS
1196
+
1197
 // @section calibrate
1197
 // @section calibrate
1198
 
1198
 
1199
 /**
1199
 /**

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

591
 //#define ENDSTOP_INTERRUPTS_FEATURE
591
 //#define ENDSTOP_INTERRUPTS_FEATURE
592
 
592
 
593
 /**
593
 /**
594
- * Endstop Noise Filter
595
- *
596
- * Enable this option if endstops falsely trigger due to noise.
597
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
598
- * will end up at a slightly different position on each G28. This will also
599
- * reduce accuracy of some bed probes.
600
- * For mechanical switches, the better approach to reduce noise is to install
601
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
602
- * essentially noise-proof without sacrificing accuracy.
603
- * This option also increases MCU load when endstops or the probe are enabled.
604
- * So this is not recommended. USE AT YOUR OWN RISK.
605
- * (This feature is not required for common micro-switches mounted on PCBs
606
- * based on the Makerbot design, since they already include the 100nF capacitor.)
594
+ * Endstop Noise Threshold
595
+ *
596
+ * Enable if your probe or endstops falsely trigger due to noise.
597
+ *
598
+ * - Higher values may affect repeatability or accuracy of some bed probes.
599
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
600
+ * - This feature is not required for common micro-switches mounted on PCBs
601
+ *   based on the Makerbot design, which already have the 100nF capacitor.
602
+ *
603
+ * :[2,3,4,5,6,7]
607
  */
604
  */
608
-//#define ENDSTOP_NOISE_FILTER
605
+//#define ENDSTOP_NOISE_THRESHOLD 2
609
 
606
 
610
 //=============================================================================
607
 //=============================================================================
611
 //============================== Movement Settings ============================
608
 //============================== Movement Settings ============================
1182
 #define HOMING_FEEDRATE_XY (120*60)
1179
 #define HOMING_FEEDRATE_XY (120*60)
1183
 #define HOMING_FEEDRATE_Z  432
1180
 #define HOMING_FEEDRATE_Z  432
1184
 
1181
 
1182
+// Validate that endstops are triggered on homing moves
1183
+#define VALIDATE_HOMING_ENDSTOPS
1184
+
1185
 // @section calibrate
1185
 // @section calibrate
1186
 
1186
 
1187
 /**
1187
 /**

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

602
 //#define ENDSTOP_INTERRUPTS_FEATURE
602
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 
603
 
604
 /**
604
 /**
605
- * Endstop Noise Filter
606
- *
607
- * Enable this option if endstops falsely trigger due to noise.
608
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
609
- * will end up at a slightly different position on each G28. This will also
610
- * reduce accuracy of some bed probes.
611
- * For mechanical switches, the better approach to reduce noise is to install
612
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
613
- * essentially noise-proof without sacrificing accuracy.
614
- * This option also increases MCU load when endstops or the probe are enabled.
615
- * So this is not recommended. USE AT YOUR OWN RISK.
616
- * (This feature is not required for common micro-switches mounted on PCBs
617
- * based on the Makerbot design, since they already include the 100nF capacitor.)
605
+ * Endstop Noise Threshold
606
+ *
607
+ * Enable if your probe or endstops falsely trigger due to noise.
608
+ *
609
+ * - Higher values may affect repeatability or accuracy of some bed probes.
610
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
611
+ * - This feature is not required for common micro-switches mounted on PCBs
612
+ *   based on the Makerbot design, which already have the 100nF capacitor.
613
+ *
614
+ * :[2,3,4,5,6,7]
618
  */
615
  */
619
-//#define ENDSTOP_NOISE_FILTER
616
+//#define ENDSTOP_NOISE_THRESHOLD 2
620
 
617
 
621
 //=============================================================================
618
 //=============================================================================
622
 //============================== Movement Settings ============================
619
 //============================== Movement Settings ============================
1193
 #define HOMING_FEEDRATE_XY (50*60)
1190
 #define HOMING_FEEDRATE_XY (50*60)
1194
 #define HOMING_FEEDRATE_Z  (10*60)
1191
 #define HOMING_FEEDRATE_Z  (10*60)
1195
 
1192
 
1193
+// Validate that endstops are triggered on homing moves
1194
+#define VALIDATE_HOMING_ENDSTOPS
1195
+
1196
 // @section calibrate
1196
 // @section calibrate
1197
 
1197
 
1198
 /**
1198
 /**

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

613
 //#define ENDSTOP_INTERRUPTS_FEATURE
613
 //#define ENDSTOP_INTERRUPTS_FEATURE
614
 
614
 
615
 /**
615
 /**
616
- * Endstop Noise Filter
617
- *
618
- * Enable this option if endstops falsely trigger due to noise.
619
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
620
- * will end up at a slightly different position on each G28. This will also
621
- * reduce accuracy of some bed probes.
622
- * For mechanical switches, the better approach to reduce noise is to install
623
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
624
- * essentially noise-proof without sacrificing accuracy.
625
- * This option also increases MCU load when endstops or the probe are enabled.
626
- * So this is not recommended. USE AT YOUR OWN RISK.
627
- * (This feature is not required for common micro-switches mounted on PCBs
628
- * based on the Makerbot design, since they already include the 100nF capacitor.)
616
+ * Endstop Noise Threshold
617
+ *
618
+ * Enable if your probe or endstops falsely trigger due to noise.
619
+ *
620
+ * - Higher values may affect repeatability or accuracy of some bed probes.
621
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
622
+ * - This feature is not required for common micro-switches mounted on PCBs
623
+ *   based on the Makerbot design, which already have the 100nF capacitor.
624
+ *
625
+ * :[2,3,4,5,6,7]
629
  */
626
  */
630
-//#define ENDSTOP_NOISE_FILTER
627
+//#define ENDSTOP_NOISE_THRESHOLD 2
631
 
628
 
632
 //=============================================================================
629
 //=============================================================================
633
 //============================== Movement Settings ============================
630
 //============================== Movement Settings ============================
1204
 #define HOMING_FEEDRATE_XY (50*60)
1201
 #define HOMING_FEEDRATE_XY (50*60)
1205
 #define HOMING_FEEDRATE_Z  (4*60)
1202
 #define HOMING_FEEDRATE_Z  (4*60)
1206
 
1203
 
1204
+// Validate that endstops are triggered on homing moves
1205
+#define VALIDATE_HOMING_ENDSTOPS
1206
+
1207
 // @section calibrate
1207
 // @section calibrate
1208
 
1208
 
1209
 /**
1209
 /**

+ 14
- 14
Marlin/src/config/examples/Creality/CR-10S/Configuration.h View File

607
 //#define ENDSTOP_INTERRUPTS_FEATURE
607
 //#define ENDSTOP_INTERRUPTS_FEATURE
608
 
608
 
609
 /**
609
 /**
610
- * Endstop Noise Filter
611
- *
612
- * Enable this option if endstops falsely trigger due to noise.
613
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
614
- * will end up at a slightly different position on each G28. This will also
615
- * reduce accuracy of some bed probes.
616
- * For mechanical switches, the better approach to reduce noise is to install
617
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
618
- * essentially noise-proof without sacrificing accuracy.
619
- * This option also increases MCU load when endstops or the probe are enabled.
620
- * So this is not recommended. USE AT YOUR OWN RISK.
621
- * (This feature is not required for common micro-switches mounted on PCBs
622
- * based on the Makerbot design, since they already include the 100nF capacitor.)
610
+ * Endstop Noise Threshold
611
+ *
612
+ * Enable if your probe or endstops falsely trigger due to noise.
613
+ *
614
+ * - Higher values may affect repeatability or accuracy of some bed probes.
615
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
616
+ * - This feature is not required for common micro-switches mounted on PCBs
617
+ *   based on the Makerbot design, which already have the 100nF capacitor.
618
+ *
619
+ * :[2,3,4,5,6,7]
623
  */
620
  */
624
-//#define ENDSTOP_NOISE_FILTER
621
+//#define ENDSTOP_NOISE_THRESHOLD 2
625
 
622
 
626
 //=============================================================================
623
 //=============================================================================
627
 //============================== Movement Settings ============================
624
 //============================== Movement Settings ============================
1199
 #define HOMING_FEEDRATE_XY (50*60)
1196
 #define HOMING_FEEDRATE_XY (50*60)
1200
 #define HOMING_FEEDRATE_Z  (4*60)
1197
 #define HOMING_FEEDRATE_Z  (4*60)
1201
 
1198
 
1199
+// Validate that endstops are triggered on homing moves
1200
+#define VALIDATE_HOMING_ENDSTOPS
1201
+
1202
 // @section calibrate
1202
 // @section calibrate
1203
 
1203
 
1204
 /**
1204
 /**

+ 14
- 14
Marlin/src/config/examples/Creality/CR-10mini/Configuration.h View File

622
 //#define ENDSTOP_INTERRUPTS_FEATURE
622
 //#define ENDSTOP_INTERRUPTS_FEATURE
623
 
623
 
624
 /**
624
 /**
625
- * Endstop Noise Filter
626
- *
627
- * Enable this option if endstops falsely trigger due to noise.
628
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
629
- * will end up at a slightly different position on each G28. This will also
630
- * reduce accuracy of some bed probes.
631
- * For mechanical switches, the better approach to reduce noise is to install
632
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
633
- * essentially noise-proof without sacrificing accuracy.
634
- * This option also increases MCU load when endstops or the probe are enabled.
635
- * So this is not recommended. USE AT YOUR OWN RISK.
636
- * (This feature is not required for common micro-switches mounted on PCBs
637
- * based on the Makerbot design, since they already include the 100nF capacitor.)
625
+ * Endstop Noise Threshold
626
+ *
627
+ * Enable if your probe or endstops falsely trigger due to noise.
628
+ *
629
+ * - Higher values may affect repeatability or accuracy of some bed probes.
630
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
631
+ * - This feature is not required for common micro-switches mounted on PCBs
632
+ *   based on the Makerbot design, which already have the 100nF capacitor.
633
+ *
634
+ * :[2,3,4,5,6,7]
638
  */
635
  */
639
-//#define ENDSTOP_NOISE_FILTER
636
+//#define ENDSTOP_NOISE_THRESHOLD 2
640
 
637
 
641
 //=============================================================================
638
 //=============================================================================
642
 //============================== Movement Settings ============================
639
 //============================== Movement Settings ============================
1213
 #define HOMING_FEEDRATE_XY (50*60)
1210
 #define HOMING_FEEDRATE_XY (50*60)
1214
 #define HOMING_FEEDRATE_Z  (4*60)
1211
 #define HOMING_FEEDRATE_Z  (4*60)
1215
 
1212
 
1213
+// Validate that endstops are triggered on homing moves
1214
+#define VALIDATE_HOMING_ENDSTOPS
1215
+
1216
 // @section calibrate
1216
 // @section calibrate
1217
 
1217
 
1218
 /**
1218
 /**

+ 14
- 14
Marlin/src/config/examples/Creality/CR-8/Configuration.h View File

613
 //#define ENDSTOP_INTERRUPTS_FEATURE
613
 //#define ENDSTOP_INTERRUPTS_FEATURE
614
 
614
 
615
 /**
615
 /**
616
- * Endstop Noise Filter
617
- *
618
- * Enable this option if endstops falsely trigger due to noise.
619
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
620
- * will end up at a slightly different position on each G28. This will also
621
- * reduce accuracy of some bed probes.
622
- * For mechanical switches, the better approach to reduce noise is to install
623
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
624
- * essentially noise-proof without sacrificing accuracy.
625
- * This option also increases MCU load when endstops or the probe are enabled.
626
- * So this is not recommended. USE AT YOUR OWN RISK.
627
- * (This feature is not required for common micro-switches mounted on PCBs
628
- * based on the Makerbot design, since they already include the 100nF capacitor.)
616
+ * Endstop Noise Threshold
617
+ *
618
+ * Enable if your probe or endstops falsely trigger due to noise.
619
+ *
620
+ * - Higher values may affect repeatability or accuracy of some bed probes.
621
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
622
+ * - This feature is not required for common micro-switches mounted on PCBs
623
+ *   based on the Makerbot design, which already have the 100nF capacitor.
624
+ *
625
+ * :[2,3,4,5,6,7]
629
  */
626
  */
630
-//#define ENDSTOP_NOISE_FILTER
627
+//#define ENDSTOP_NOISE_THRESHOLD 2
631
 
628
 
632
 //=============================================================================
629
 //=============================================================================
633
 //============================== Movement Settings ============================
630
 //============================== Movement Settings ============================
1204
 #define HOMING_FEEDRATE_XY (50*60)
1201
 #define HOMING_FEEDRATE_XY (50*60)
1205
 #define HOMING_FEEDRATE_Z  (4*60)
1202
 #define HOMING_FEEDRATE_Z  (4*60)
1206
 
1203
 
1204
+// Validate that endstops are triggered on homing moves
1205
+#define VALIDATE_HOMING_ENDSTOPS
1206
+
1207
 // @section calibrate
1207
 // @section calibrate
1208
 
1208
 
1209
 /**
1209
 /**

+ 14
- 14
Marlin/src/config/examples/Creality/Ender-2/Configuration.h View File

607
 //#define ENDSTOP_INTERRUPTS_FEATURE
607
 //#define ENDSTOP_INTERRUPTS_FEATURE
608
 
608
 
609
 /**
609
 /**
610
- * Endstop Noise Filter
611
- *
612
- * Enable this option if endstops falsely trigger due to noise.
613
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
614
- * will end up at a slightly different position on each G28. This will also
615
- * reduce accuracy of some bed probes.
616
- * For mechanical switches, the better approach to reduce noise is to install
617
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
618
- * essentially noise-proof without sacrificing accuracy.
619
- * This option also increases MCU load when endstops or the probe are enabled.
620
- * So this is not recommended. USE AT YOUR OWN RISK.
621
- * (This feature is not required for common micro-switches mounted on PCBs
622
- * based on the Makerbot design, since they already include the 100nF capacitor.)
610
+ * Endstop Noise Threshold
611
+ *
612
+ * Enable if your probe or endstops falsely trigger due to noise.
613
+ *
614
+ * - Higher values may affect repeatability or accuracy of some bed probes.
615
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
616
+ * - This feature is not required for common micro-switches mounted on PCBs
617
+ *   based on the Makerbot design, which already have the 100nF capacitor.
618
+ *
619
+ * :[2,3,4,5,6,7]
623
  */
620
  */
624
-//#define ENDSTOP_NOISE_FILTER
621
+//#define ENDSTOP_NOISE_THRESHOLD 2
625
 
622
 
626
 //=============================================================================
623
 //=============================================================================
627
 //============================== Movement Settings ============================
624
 //============================== Movement Settings ============================
1198
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_XY (50*60)
1199
 #define HOMING_FEEDRATE_Z  (4*60)
1196
 #define HOMING_FEEDRATE_Z  (4*60)
1200
 
1197
 
1198
+// Validate that endstops are triggered on homing moves
1199
+#define VALIDATE_HOMING_ENDSTOPS
1200
+
1201
 // @section calibrate
1201
 // @section calibrate
1202
 
1202
 
1203
 /**
1203
 /**

+ 14
- 14
Marlin/src/config/examples/Creality/Ender-3/Configuration.h View File

607
 //#define ENDSTOP_INTERRUPTS_FEATURE
607
 //#define ENDSTOP_INTERRUPTS_FEATURE
608
 
608
 
609
 /**
609
 /**
610
- * Endstop Noise Filter
611
- *
612
- * Enable this option if endstops falsely trigger due to noise.
613
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
614
- * will end up at a slightly different position on each G28. This will also
615
- * reduce accuracy of some bed probes.
616
- * For mechanical switches, the better approach to reduce noise is to install
617
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
618
- * essentially noise-proof without sacrificing accuracy.
619
- * This option also increases MCU load when endstops or the probe are enabled.
620
- * So this is not recommended. USE AT YOUR OWN RISK.
621
- * (This feature is not required for common micro-switches mounted on PCBs
622
- * based on the Makerbot design, since they already include the 100nF capacitor.)
610
+ * Endstop Noise Threshold
611
+ *
612
+ * Enable if your probe or endstops falsely trigger due to noise.
613
+ *
614
+ * - Higher values may affect repeatability or accuracy of some bed probes.
615
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
616
+ * - This feature is not required for common micro-switches mounted on PCBs
617
+ *   based on the Makerbot design, which already have the 100nF capacitor.
618
+ *
619
+ * :[2,3,4,5,6,7]
623
  */
620
  */
624
-//#define ENDSTOP_NOISE_FILTER
621
+//#define ENDSTOP_NOISE_THRESHOLD 2
625
 
622
 
626
 //=============================================================================
623
 //=============================================================================
627
 //============================== Movement Settings ============================
624
 //============================== Movement Settings ============================
1198
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_XY (50*60)
1199
 #define HOMING_FEEDRATE_Z  (4*60)
1196
 #define HOMING_FEEDRATE_Z  (4*60)
1200
 
1197
 
1198
+// Validate that endstops are triggered on homing moves
1199
+#define VALIDATE_HOMING_ENDSTOPS
1200
+
1201
 // @section calibrate
1201
 // @section calibrate
1202
 
1202
 
1203
 /**
1203
 /**

+ 14
- 14
Marlin/src/config/examples/Creality/Ender-4/Configuration.h View File

613
 //#define ENDSTOP_INTERRUPTS_FEATURE
613
 //#define ENDSTOP_INTERRUPTS_FEATURE
614
 
614
 
615
 /**
615
 /**
616
- * Endstop Noise Filter
617
- *
618
- * Enable this option if endstops falsely trigger due to noise.
619
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
620
- * will end up at a slightly different position on each G28. This will also
621
- * reduce accuracy of some bed probes.
622
- * For mechanical switches, the better approach to reduce noise is to install
623
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
624
- * essentially noise-proof without sacrificing accuracy.
625
- * This option also increases MCU load when endstops or the probe are enabled.
626
- * So this is not recommended. USE AT YOUR OWN RISK.
627
- * (This feature is not required for common micro-switches mounted on PCBs
628
- * based on the Makerbot design, since they already include the 100nF capacitor.)
616
+ * Endstop Noise Threshold
617
+ *
618
+ * Enable if your probe or endstops falsely trigger due to noise.
619
+ *
620
+ * - Higher values may affect repeatability or accuracy of some bed probes.
621
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
622
+ * - This feature is not required for common micro-switches mounted on PCBs
623
+ *   based on the Makerbot design, which already have the 100nF capacitor.
624
+ *
625
+ * :[2,3,4,5,6,7]
629
  */
626
  */
630
-//#define ENDSTOP_NOISE_FILTER
627
+//#define ENDSTOP_NOISE_THRESHOLD 2
631
 
628
 
632
 //=============================================================================
629
 //=============================================================================
633
 //============================== Movement Settings ============================
630
 //============================== Movement Settings ============================
1204
 #define HOMING_FEEDRATE_XY (50*60)
1201
 #define HOMING_FEEDRATE_XY (50*60)
1205
 #define HOMING_FEEDRATE_Z  (4*60)
1202
 #define HOMING_FEEDRATE_Z  (4*60)
1206
 
1203
 
1204
+// Validate that endstops are triggered on homing moves
1205
+#define VALIDATE_HOMING_ENDSTOPS
1206
+
1207
 // @section calibrate
1207
 // @section calibrate
1208
 
1208
 
1209
 /**
1209
 /**

+ 14
- 14
Marlin/src/config/examples/Einstart-S/Configuration.h View File

615
 //#define ENDSTOP_INTERRUPTS_FEATURE
615
 //#define ENDSTOP_INTERRUPTS_FEATURE
616
 
616
 
617
 /**
617
 /**
618
- * Endstop Noise Filter
619
- *
620
- * Enable this option if endstops falsely trigger due to noise.
621
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
622
- * will end up at a slightly different position on each G28. This will also
623
- * reduce accuracy of some bed probes.
624
- * For mechanical switches, the better approach to reduce noise is to install
625
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
626
- * essentially noise-proof without sacrificing accuracy.
627
- * This option also increases MCU load when endstops or the probe are enabled.
628
- * So this is not recommended. USE AT YOUR OWN RISK.
629
- * (This feature is not required for common micro-switches mounted on PCBs
630
- * based on the Makerbot design, since they already include the 100nF capacitor.)
618
+ * Endstop Noise Threshold
619
+ *
620
+ * Enable if your probe or endstops falsely trigger due to noise.
621
+ *
622
+ * - Higher values may affect repeatability or accuracy of some bed probes.
623
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
624
+ * - This feature is not required for common micro-switches mounted on PCBs
625
+ *   based on the Makerbot design, which already have the 100nF capacitor.
626
+ *
627
+ * :[2,3,4,5,6,7]
631
  */
628
  */
632
-//#define ENDSTOP_NOISE_FILTER
629
+//#define ENDSTOP_NOISE_THRESHOLD 2
633
 
630
 
634
 //=============================================================================
631
 //=============================================================================
635
 //============================== Movement Settings ============================
632
 //============================== Movement Settings ============================
1204
 #define HOMING_FEEDRATE_XY (50*60)
1201
 #define HOMING_FEEDRATE_XY (50*60)
1205
 #define HOMING_FEEDRATE_Z  (4*60)
1202
 #define HOMING_FEEDRATE_Z  (4*60)
1206
 
1203
 
1204
+// Validate that endstops are triggered on homing moves
1205
+#define VALIDATE_HOMING_ENDSTOPS
1206
+
1207
 // @section calibrate
1207
 // @section calibrate
1208
 
1208
 
1209
 /**
1209
 /**

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

584
 //#define ENDSTOP_INTERRUPTS_FEATURE
584
 //#define ENDSTOP_INTERRUPTS_FEATURE
585
 
585
 
586
 /**
586
 /**
587
- * Endstop Noise Filter
588
- *
589
- * Enable this option if endstops falsely trigger due to noise.
590
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
591
- * will end up at a slightly different position on each G28. This will also
592
- * reduce accuracy of some bed probes.
593
- * For mechanical switches, the better approach to reduce noise is to install
594
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
595
- * essentially noise-proof without sacrificing accuracy.
596
- * This option also increases MCU load when endstops or the probe are enabled.
597
- * So this is not recommended. USE AT YOUR OWN RISK.
598
- * (This feature is not required for common micro-switches mounted on PCBs
599
- * based on the Makerbot design, since they already include the 100nF capacitor.)
587
+ * Endstop Noise Threshold
588
+ *
589
+ * Enable if your probe or endstops falsely trigger due to noise.
590
+ *
591
+ * - Higher values may affect repeatability or accuracy of some bed probes.
592
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
593
+ * - This feature is not required for common micro-switches mounted on PCBs
594
+ *   based on the Makerbot design, which already have the 100nF capacitor.
595
+ *
596
+ * :[2,3,4,5,6,7]
600
  */
597
  */
601
-//#define ENDSTOP_NOISE_FILTER
598
+//#define ENDSTOP_NOISE_THRESHOLD 2
602
 
599
 
603
 //=============================================================================
600
 //=============================================================================
604
 //============================== Movement Settings ============================
601
 //============================== Movement Settings ============================
1176
 #define HOMING_FEEDRATE_XY (50*60)
1173
 #define HOMING_FEEDRATE_XY (50*60)
1177
 #define HOMING_FEEDRATE_Z  (4*60)
1174
 #define HOMING_FEEDRATE_Z  (4*60)
1178
 
1175
 
1176
+// Validate that endstops are triggered on homing moves
1177
+#define VALIDATE_HOMING_ENDSTOPS
1178
+
1179
 // @section calibrate
1179
 // @section calibrate
1180
 
1180
 
1181
 /**
1181
 /**

+ 14
- 14
Marlin/src/config/examples/Felix/DUAL/Configuration.h View File

584
 //#define ENDSTOP_INTERRUPTS_FEATURE
584
 //#define ENDSTOP_INTERRUPTS_FEATURE
585
 
585
 
586
 /**
586
 /**
587
- * Endstop Noise Filter
588
- *
589
- * Enable this option if endstops falsely trigger due to noise.
590
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
591
- * will end up at a slightly different position on each G28. This will also
592
- * reduce accuracy of some bed probes.
593
- * For mechanical switches, the better approach to reduce noise is to install
594
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
595
- * essentially noise-proof without sacrificing accuracy.
596
- * This option also increases MCU load when endstops or the probe are enabled.
597
- * So this is not recommended. USE AT YOUR OWN RISK.
598
- * (This feature is not required for common micro-switches mounted on PCBs
599
- * based on the Makerbot design, since they already include the 100nF capacitor.)
587
+ * Endstop Noise Threshold
588
+ *
589
+ * Enable if your probe or endstops falsely trigger due to noise.
590
+ *
591
+ * - Higher values may affect repeatability or accuracy of some bed probes.
592
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
593
+ * - This feature is not required for common micro-switches mounted on PCBs
594
+ *   based on the Makerbot design, which already have the 100nF capacitor.
595
+ *
596
+ * :[2,3,4,5,6,7]
600
  */
597
  */
601
-//#define ENDSTOP_NOISE_FILTER
598
+//#define ENDSTOP_NOISE_THRESHOLD 2
602
 
599
 
603
 //=============================================================================
600
 //=============================================================================
604
 //============================== Movement Settings ============================
601
 //============================== Movement Settings ============================
1176
 #define HOMING_FEEDRATE_XY (50*60)
1173
 #define HOMING_FEEDRATE_XY (50*60)
1177
 #define HOMING_FEEDRATE_Z  (4*60)
1174
 #define HOMING_FEEDRATE_Z  (4*60)
1178
 
1175
 
1176
+// Validate that endstops are triggered on homing moves
1177
+#define VALIDATE_HOMING_ENDSTOPS
1178
+
1179
 // @section calibrate
1179
 // @section calibrate
1180
 
1180
 
1181
 /**
1181
 /**

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

608
 //#define ENDSTOP_INTERRUPTS_FEATURE
608
 //#define ENDSTOP_INTERRUPTS_FEATURE
609
 
609
 
610
 /**
610
 /**
611
- * Endstop Noise Filter
612
- *
613
- * Enable this option if endstops falsely trigger due to noise.
614
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
615
- * will end up at a slightly different position on each G28. This will also
616
- * reduce accuracy of some bed probes.
617
- * For mechanical switches, the better approach to reduce noise is to install
618
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
619
- * essentially noise-proof without sacrificing accuracy.
620
- * This option also increases MCU load when endstops or the probe are enabled.
621
- * So this is not recommended. USE AT YOUR OWN RISK.
622
- * (This feature is not required for common micro-switches mounted on PCBs
623
- * based on the Makerbot design, since they already include the 100nF capacitor.)
611
+ * Endstop Noise Threshold
612
+ *
613
+ * Enable if your probe or endstops falsely trigger due to noise.
614
+ *
615
+ * - Higher values may affect repeatability or accuracy of some bed probes.
616
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
617
+ * - This feature is not required for common micro-switches mounted on PCBs
618
+ *   based on the Makerbot design, which already have the 100nF capacitor.
619
+ *
620
+ * :[2,3,4,5,6,7]
624
  */
621
  */
625
-//#define ENDSTOP_NOISE_FILTER
622
+//#define ENDSTOP_NOISE_THRESHOLD 2
626
 
623
 
627
 //=============================================================================
624
 //=============================================================================
628
 //============================== Movement Settings ============================
625
 //============================== Movement Settings ============================
1200
 #define HOMING_FEEDRATE_XY (40*60)
1197
 #define HOMING_FEEDRATE_XY (40*60)
1201
 #define HOMING_FEEDRATE_Z  (55)
1198
 #define HOMING_FEEDRATE_Z  (55)
1202
 
1199
 
1200
+// Validate that endstops are triggered on homing moves
1201
+#define VALIDATE_HOMING_ENDSTOPS
1202
+
1203
 // @section calibrate
1203
 // @section calibrate
1204
 
1204
 
1205
 /**
1205
 /**

+ 14
- 14
Marlin/src/config/examples/Formbot/T-Rex_2+/Configuration.h View File

615
 //#define ENDSTOP_INTERRUPTS_FEATURE
615
 //#define ENDSTOP_INTERRUPTS_FEATURE
616
 
616
 
617
 /**
617
 /**
618
- * Endstop Noise Filter
619
- *
620
- * Enable this option if endstops falsely trigger due to noise.
621
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
622
- * will end up at a slightly different position on each G28. This will also
623
- * reduce accuracy of some bed probes.
624
- * For mechanical switches, the better approach to reduce noise is to install
625
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
626
- * essentially noise-proof without sacrificing accuracy.
627
- * This option also increases MCU load when endstops or the probe are enabled.
628
- * So this is not recommended. USE AT YOUR OWN RISK.
629
- * (This feature is not required for common micro-switches mounted on PCBs
630
- * based on the Makerbot design, since they already include the 100nF capacitor.)
618
+ * Endstop Noise Threshold
619
+ *
620
+ * Enable if your probe or endstops falsely trigger due to noise.
621
+ *
622
+ * - Higher values may affect repeatability or accuracy of some bed probes.
623
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
624
+ * - This feature is not required for common micro-switches mounted on PCBs
625
+ *   based on the Makerbot design, which already have the 100nF capacitor.
626
+ *
627
+ * :[2,3,4,5,6,7]
631
  */
628
  */
632
-//#define ENDSTOP_NOISE_FILTER
629
+//#define ENDSTOP_NOISE_THRESHOLD 2
633
 
630
 
634
 //=============================================================================
631
 //=============================================================================
635
 //============================== Movement Settings ============================
632
 //============================== Movement Settings ============================
1231
 #define HOMING_FEEDRATE_XY (50*60)
1228
 #define HOMING_FEEDRATE_XY (50*60)
1232
 #define HOMING_FEEDRATE_Z  (4*60)
1229
 #define HOMING_FEEDRATE_Z  (4*60)
1233
 
1230
 
1231
+// Validate that endstops are triggered on homing moves
1232
+#define VALIDATE_HOMING_ENDSTOPS
1233
+
1234
 // @section calibrate
1234
 // @section calibrate
1235
 
1235
 
1236
 /**
1236
 /**

+ 14
- 14
Marlin/src/config/examples/Formbot/T_Rex_3/Configuration.h View File

626
 //#define ENDSTOP_INTERRUPTS_FEATURE
626
 //#define ENDSTOP_INTERRUPTS_FEATURE
627
 
627
 
628
 /**
628
 /**
629
- * Endstop Noise Filter
630
- *
631
- * Enable this option if endstops falsely trigger due to noise.
632
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
633
- * will end up at a slightly different position on each G28. This will also
634
- * reduce accuracy of some bed probes.
635
- * For mechanical switches, the better approach to reduce noise is to install
636
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
637
- * essentially noise-proof without sacrificing accuracy.
638
- * This option also increases MCU load when endstops or the probe are enabled.
639
- * So this is not recommended. USE AT YOUR OWN RISK.
640
- * (This feature is not required for common micro-switches mounted on PCBs
641
- * based on the Makerbot design, since they already include the 100nF capacitor.)
629
+ * Endstop Noise Threshold
630
+ *
631
+ * Enable if your probe or endstops falsely trigger due to noise.
632
+ *
633
+ * - Higher values may affect repeatability or accuracy of some bed probes.
634
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
635
+ * - This feature is not required for common micro-switches mounted on PCBs
636
+ *   based on the Makerbot design, which already have the 100nF capacitor.
637
+ *
638
+ * :[2,3,4,5,6,7]
642
  */
639
  */
643
-//#define ENDSTOP_NOISE_FILTER
640
+//#define ENDSTOP_NOISE_THRESHOLD 2
644
 
641
 
645
 //=============================================================================
642
 //=============================================================================
646
 //============================== Movement Settings ============================
643
 //============================== Movement Settings ============================
1247
 #define HOMING_FEEDRATE_XY (50*60)
1244
 #define HOMING_FEEDRATE_XY (50*60)
1248
 #define HOMING_FEEDRATE_Z  (4*60)
1245
 #define HOMING_FEEDRATE_Z  (4*60)
1249
 
1246
 
1247
+// Validate that endstops are triggered on homing moves
1248
+#define VALIDATE_HOMING_ENDSTOPS
1249
+
1250
 // @section calibrate
1250
 // @section calibrate
1251
 
1251
 
1252
 /**
1252
 /**

+ 14
- 14
Marlin/src/config/examples/Geeetech/GT2560/Configuration.h View File

618
 //#define ENDSTOP_INTERRUPTS_FEATURE
618
 //#define ENDSTOP_INTERRUPTS_FEATURE
619
 
619
 
620
 /**
620
 /**
621
- * Endstop Noise Filter
622
- *
623
- * Enable this option if endstops falsely trigger due to noise.
624
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
625
- * will end up at a slightly different position on each G28. This will also
626
- * reduce accuracy of some bed probes.
627
- * For mechanical switches, the better approach to reduce noise is to install
628
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
629
- * essentially noise-proof without sacrificing accuracy.
630
- * This option also increases MCU load when endstops or the probe are enabled.
631
- * So this is not recommended. USE AT YOUR OWN RISK.
632
- * (This feature is not required for common micro-switches mounted on PCBs
633
- * based on the Makerbot design, since they already include the 100nF capacitor.)
621
+ * Endstop Noise Threshold
622
+ *
623
+ * Enable if your probe or endstops falsely trigger due to noise.
624
+ *
625
+ * - Higher values may affect repeatability or accuracy of some bed probes.
626
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
627
+ * - This feature is not required for common micro-switches mounted on PCBs
628
+ *   based on the Makerbot design, which already have the 100nF capacitor.
629
+ *
630
+ * :[2,3,4,5,6,7]
634
  */
631
  */
635
-//#define ENDSTOP_NOISE_FILTER
632
+//#define ENDSTOP_NOISE_THRESHOLD 2
636
 
633
 
637
 //=============================================================================
634
 //=============================================================================
638
 //============================== Movement Settings ============================
635
 //============================== Movement Settings ============================
1209
 #define HOMING_FEEDRATE_XY (50*60)
1206
 #define HOMING_FEEDRATE_XY (50*60)
1210
 #define HOMING_FEEDRATE_Z  (4*60)
1207
 #define HOMING_FEEDRATE_Z  (4*60)
1211
 
1208
 
1209
+// Validate that endstops are triggered on homing moves
1210
+#define VALIDATE_HOMING_ENDSTOPS
1211
+
1212
 // @section calibrate
1212
 // @section calibrate
1213
 
1213
 
1214
 /**
1214
 /**

+ 14
- 14
Marlin/src/config/examples/Geeetech/I3_Pro_X-GT2560/Configuration.h View File

603
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 //#define ENDSTOP_INTERRUPTS_FEATURE
604
 
604
 
605
 /**
605
 /**
606
- * Endstop Noise Filter
607
- *
608
- * Enable this option if endstops falsely trigger due to noise.
609
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
610
- * will end up at a slightly different position on each G28. This will also
611
- * reduce accuracy of some bed probes.
612
- * For mechanical switches, the better approach to reduce noise is to install
613
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
614
- * essentially noise-proof without sacrificing accuracy.
615
- * This option also increases MCU load when endstops or the probe are enabled.
616
- * So this is not recommended. USE AT YOUR OWN RISK.
617
- * (This feature is not required for common micro-switches mounted on PCBs
618
- * based on the Makerbot design, since they already include the 100nF capacitor.)
606
+ * Endstop Noise Threshold
607
+ *
608
+ * Enable if your probe or endstops falsely trigger due to noise.
609
+ *
610
+ * - Higher values may affect repeatability or accuracy of some bed probes.
611
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
612
+ * - This feature is not required for common micro-switches mounted on PCBs
613
+ *   based on the Makerbot design, which already have the 100nF capacitor.
614
+ *
615
+ * :[2,3,4,5,6,7]
619
  */
616
  */
620
-//#define ENDSTOP_NOISE_FILTER
617
+//#define ENDSTOP_NOISE_THRESHOLD 2
621
 
618
 
622
 //=============================================================================
619
 //=============================================================================
623
 //============================== Movement Settings ============================
620
 //============================== Movement Settings ============================
1194
 #define HOMING_FEEDRATE_XY (50*60)
1191
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_Z  (4*60)
1192
 #define HOMING_FEEDRATE_Z  (4*60)
1196
 
1193
 
1194
+// Validate that endstops are triggered on homing moves
1195
+#define VALIDATE_HOMING_ENDSTOPS
1196
+
1197
 // @section calibrate
1197
 // @section calibrate
1198
 
1198
 
1199
 /**
1199
 /**

+ 14
- 14
Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/bltouch/Configuration.h View File

618
 //#define ENDSTOP_INTERRUPTS_FEATURE
618
 //#define ENDSTOP_INTERRUPTS_FEATURE
619
 
619
 
620
 /**
620
 /**
621
- * Endstop Noise Filter
622
- *
623
- * Enable this option if endstops falsely trigger due to noise.
624
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
625
- * will end up at a slightly different position on each G28. This will also
626
- * reduce accuracy of some bed probes.
627
- * For mechanical switches, the better approach to reduce noise is to install
628
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
629
- * essentially noise-proof without sacrificing accuracy.
630
- * This option also increases MCU load when endstops or the probe are enabled.
631
- * So this is not recommended. USE AT YOUR OWN RISK.
632
- * (This feature is not required for common micro-switches mounted on PCBs
633
- * based on the Makerbot design, since they already include the 100nF capacitor.)
621
+ * Endstop Noise Threshold
622
+ *
623
+ * Enable if your probe or endstops falsely trigger due to noise.
624
+ *
625
+ * - Higher values may affect repeatability or accuracy of some bed probes.
626
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
627
+ * - This feature is not required for common micro-switches mounted on PCBs
628
+ *   based on the Makerbot design, which already have the 100nF capacitor.
629
+ *
630
+ * :[2,3,4,5,6,7]
634
  */
631
  */
635
-//#define ENDSTOP_NOISE_FILTER
632
+//#define ENDSTOP_NOISE_THRESHOLD 2
636
 
633
 
637
 //=============================================================================
634
 //=============================================================================
638
 //============================== Movement Settings ============================
635
 //============================== Movement Settings ============================
1210
 #define HOMING_FEEDRATE_XY (50*60)
1207
 #define HOMING_FEEDRATE_XY (50*60)
1211
 #define HOMING_FEEDRATE_Z  (4*60)
1208
 #define HOMING_FEEDRATE_Z  (4*60)
1212
 
1209
 
1210
+// Validate that endstops are triggered on homing moves
1211
+#define VALIDATE_HOMING_ENDSTOPS
1212
+
1213
 // @section calibrate
1213
 // @section calibrate
1214
 
1214
 
1215
 /**
1215
 /**

+ 14
- 14
Marlin/src/config/examples/Geeetech/Prusa i3 Pro B/noprobe/Configuration.h View File

618
 //#define ENDSTOP_INTERRUPTS_FEATURE
618
 //#define ENDSTOP_INTERRUPTS_FEATURE
619
 
619
 
620
 /**
620
 /**
621
- * Endstop Noise Filter
622
- *
623
- * Enable this option if endstops falsely trigger due to noise.
624
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
625
- * will end up at a slightly different position on each G28. This will also
626
- * reduce accuracy of some bed probes.
627
- * For mechanical switches, the better approach to reduce noise is to install
628
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
629
- * essentially noise-proof without sacrificing accuracy.
630
- * This option also increases MCU load when endstops or the probe are enabled.
631
- * So this is not recommended. USE AT YOUR OWN RISK.
632
- * (This feature is not required for common micro-switches mounted on PCBs
633
- * based on the Makerbot design, since they already include the 100nF capacitor.)
621
+ * Endstop Noise Threshold
622
+ *
623
+ * Enable if your probe or endstops falsely trigger due to noise.
624
+ *
625
+ * - Higher values may affect repeatability or accuracy of some bed probes.
626
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
627
+ * - This feature is not required for common micro-switches mounted on PCBs
628
+ *   based on the Makerbot design, which already have the 100nF capacitor.
629
+ *
630
+ * :[2,3,4,5,6,7]
634
  */
631
  */
635
-//#define ENDSTOP_NOISE_FILTER
632
+//#define ENDSTOP_NOISE_THRESHOLD 2
636
 
633
 
637
 //=============================================================================
634
 //=============================================================================
638
 //============================== Movement Settings ============================
635
 //============================== Movement Settings ============================
1209
 #define HOMING_FEEDRATE_XY (50*60)
1206
 #define HOMING_FEEDRATE_XY (50*60)
1210
 #define HOMING_FEEDRATE_Z  (4*60)
1207
 #define HOMING_FEEDRATE_Z  (4*60)
1211
 
1208
 
1209
+// Validate that endstops are triggered on homing moves
1210
+#define VALIDATE_HOMING_ENDSTOPS
1211
+
1212
 // @section calibrate
1212
 // @section calibrate
1213
 
1213
 
1214
 /**
1214
 /**

+ 14
- 14
Marlin/src/config/examples/Geeetech/Prusa i3 Pro C/Configuration.h View File

603
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 //#define ENDSTOP_INTERRUPTS_FEATURE
604
 
604
 
605
 /**
605
 /**
606
- * Endstop Noise Filter
607
- *
608
- * Enable this option if endstops falsely trigger due to noise.
609
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
610
- * will end up at a slightly different position on each G28. This will also
611
- * reduce accuracy of some bed probes.
612
- * For mechanical switches, the better approach to reduce noise is to install
613
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
614
- * essentially noise-proof without sacrificing accuracy.
615
- * This option also increases MCU load when endstops or the probe are enabled.
616
- * So this is not recommended. USE AT YOUR OWN RISK.
617
- * (This feature is not required for common micro-switches mounted on PCBs
618
- * based on the Makerbot design, since they already include the 100nF capacitor.)
606
+ * Endstop Noise Threshold
607
+ *
608
+ * Enable if your probe or endstops falsely trigger due to noise.
609
+ *
610
+ * - Higher values may affect repeatability or accuracy of some bed probes.
611
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
612
+ * - This feature is not required for common micro-switches mounted on PCBs
613
+ *   based on the Makerbot design, which already have the 100nF capacitor.
614
+ *
615
+ * :[2,3,4,5,6,7]
619
  */
616
  */
620
-//#define ENDSTOP_NOISE_FILTER
617
+//#define ENDSTOP_NOISE_THRESHOLD 2
621
 
618
 
622
 //=============================================================================
619
 //=============================================================================
623
 //============================== Movement Settings ============================
620
 //============================== Movement Settings ============================
1194
 #define HOMING_FEEDRATE_XY (50*60)
1191
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_Z  (4*60)
1192
 #define HOMING_FEEDRATE_Z  (4*60)
1196
 
1193
 
1194
+// Validate that endstops are triggered on homing moves
1195
+#define VALIDATE_HOMING_ENDSTOPS
1196
+
1197
 // @section calibrate
1197
 // @section calibrate
1198
 
1198
 
1199
 /**
1199
 /**

+ 14
- 14
Marlin/src/config/examples/Geeetech/Prusa i3 Pro W/Configuration.h View File

603
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 //#define ENDSTOP_INTERRUPTS_FEATURE
604
 
604
 
605
 /**
605
 /**
606
- * Endstop Noise Filter
607
- *
608
- * Enable this option if endstops falsely trigger due to noise.
609
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
610
- * will end up at a slightly different position on each G28. This will also
611
- * reduce accuracy of some bed probes.
612
- * For mechanical switches, the better approach to reduce noise is to install
613
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
614
- * essentially noise-proof without sacrificing accuracy.
615
- * This option also increases MCU load when endstops or the probe are enabled.
616
- * So this is not recommended. USE AT YOUR OWN RISK.
617
- * (This feature is not required for common micro-switches mounted on PCBs
618
- * based on the Makerbot design, since they already include the 100nF capacitor.)
606
+ * Endstop Noise Threshold
607
+ *
608
+ * Enable if your probe or endstops falsely trigger due to noise.
609
+ *
610
+ * - Higher values may affect repeatability or accuracy of some bed probes.
611
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
612
+ * - This feature is not required for common micro-switches mounted on PCBs
613
+ *   based on the Makerbot design, which already have the 100nF capacitor.
614
+ *
615
+ * :[2,3,4,5,6,7]
619
  */
616
  */
620
-//#define ENDSTOP_NOISE_FILTER
617
+//#define ENDSTOP_NOISE_THRESHOLD 2
621
 
618
 
622
 //=============================================================================
619
 //=============================================================================
623
 //============================== Movement Settings ============================
620
 //============================== Movement Settings ============================
1194
 #define HOMING_FEEDRATE_XY (50*60)
1191
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_Z  (4*60)
1192
 #define HOMING_FEEDRATE_Z  (4*60)
1196
 
1193
 
1194
+// Validate that endstops are triggered on homing moves
1195
+#define VALIDATE_HOMING_ENDSTOPS
1196
+
1197
 // @section calibrate
1197
 // @section calibrate
1198
 
1198
 
1199
 /**
1199
 /**

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

607
 //#define ENDSTOP_INTERRUPTS_FEATURE
607
 //#define ENDSTOP_INTERRUPTS_FEATURE
608
 
608
 
609
 /**
609
 /**
610
- * Endstop Noise Filter
611
- *
612
- * Enable this option if endstops falsely trigger due to noise.
613
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
614
- * will end up at a slightly different position on each G28. This will also
615
- * reduce accuracy of some bed probes.
616
- * For mechanical switches, the better approach to reduce noise is to install
617
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
618
- * essentially noise-proof without sacrificing accuracy.
619
- * This option also increases MCU load when endstops or the probe are enabled.
620
- * So this is not recommended. USE AT YOUR OWN RISK.
621
- * (This feature is not required for common micro-switches mounted on PCBs
622
- * based on the Makerbot design, since they already include the 100nF capacitor.)
610
+ * Endstop Noise Threshold
611
+ *
612
+ * Enable if your probe or endstops falsely trigger due to noise.
613
+ *
614
+ * - Higher values may affect repeatability or accuracy of some bed probes.
615
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
616
+ * - This feature is not required for common micro-switches mounted on PCBs
617
+ *   based on the Makerbot design, which already have the 100nF capacitor.
618
+ *
619
+ * :[2,3,4,5,6,7]
623
  */
620
  */
624
-//#define ENDSTOP_NOISE_FILTER
621
+//#define ENDSTOP_NOISE_THRESHOLD 2
625
 
622
 
626
 //=============================================================================
623
 //=============================================================================
627
 //============================== Movement Settings ============================
624
 //============================== Movement Settings ============================
1198
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_XY (50*60)
1199
 #define HOMING_FEEDRATE_Z  (4*60)
1196
 #define HOMING_FEEDRATE_Z  (4*60)
1200
 
1197
 
1198
+// Validate that endstops are triggered on homing moves
1199
+#define VALIDATE_HOMING_ENDSTOPS
1200
+
1201
 // @section calibrate
1201
 // @section calibrate
1202
 
1202
 
1203
 /**
1203
 /**

+ 14
- 14
Marlin/src/config/examples/JGAurora/A5/Configuration.h View File

615
 //#define ENDSTOP_INTERRUPTS_FEATURE
615
 //#define ENDSTOP_INTERRUPTS_FEATURE
616
 
616
 
617
 /**
617
 /**
618
- * Endstop Noise Filter
619
- *
620
- * Enable this option if endstops falsely trigger due to noise.
621
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
622
- * will end up at a slightly different position on each G28. This will also
623
- * reduce accuracy of some bed probes.
624
- * For mechanical switches, the better approach to reduce noise is to install
625
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
626
- * essentially noise-proof without sacrificing accuracy.
627
- * This option also increases MCU load when endstops or the probe are enabled.
628
- * So this is not recommended. USE AT YOUR OWN RISK.
629
- * (This feature is not required for common micro-switches mounted on PCBs
630
- * based on the Makerbot design, since they already include the 100nF capacitor.)
618
+ * Endstop Noise Threshold
619
+ *
620
+ * Enable if your probe or endstops falsely trigger due to noise.
621
+ *
622
+ * - Higher values may affect repeatability or accuracy of some bed probes.
623
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
624
+ * - This feature is not required for common micro-switches mounted on PCBs
625
+ *   based on the Makerbot design, which already have the 100nF capacitor.
626
+ *
627
+ * :[2,3,4,5,6,7]
631
  */
628
  */
632
-//#define ENDSTOP_NOISE_FILTER
629
+//#define ENDSTOP_NOISE_THRESHOLD 2
633
 
630
 
634
 //=============================================================================
631
 //=============================================================================
635
 //============================== Movement Settings ============================
632
 //============================== Movement Settings ============================
1205
 #define HOMING_FEEDRATE_XY (80*60)
1202
 #define HOMING_FEEDRATE_XY (80*60)
1206
 #define HOMING_FEEDRATE_Z  (12*60)
1203
 #define HOMING_FEEDRATE_Z  (12*60)
1207
 
1204
 
1205
+// Validate that endstops are triggered on homing moves
1206
+#define VALIDATE_HOMING_ENDSTOPS
1207
+
1208
 // @section calibrate
1208
 // @section calibrate
1209
 
1209
 
1210
 /**
1210
 /**

+ 14
- 14
Marlin/src/config/examples/MakerParts/Configuration.h View File

623
 //#define ENDSTOP_INTERRUPTS_FEATURE
623
 //#define ENDSTOP_INTERRUPTS_FEATURE
624
 
624
 
625
 /**
625
 /**
626
- * Endstop Noise Filter
627
- *
628
- * Enable this option if endstops falsely trigger due to noise.
629
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
630
- * will end up at a slightly different position on each G28. This will also
631
- * reduce accuracy of some bed probes.
632
- * For mechanical switches, the better approach to reduce noise is to install
633
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
634
- * essentially noise-proof without sacrificing accuracy.
635
- * This option also increases MCU load when endstops or the probe are enabled.
636
- * So this is not recommended. USE AT YOUR OWN RISK.
637
- * (This feature is not required for common micro-switches mounted on PCBs
638
- * based on the Makerbot design, since they already include the 100nF capacitor.)
626
+ * Endstop Noise Threshold
627
+ *
628
+ * Enable if your probe or endstops falsely trigger due to noise.
629
+ *
630
+ * - Higher values may affect repeatability or accuracy of some bed probes.
631
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
632
+ * - This feature is not required for common micro-switches mounted on PCBs
633
+ *   based on the Makerbot design, which already have the 100nF capacitor.
634
+ *
635
+ * :[2,3,4,5,6,7]
639
  */
636
  */
640
-//#define ENDSTOP_NOISE_FILTER
637
+//#define ENDSTOP_NOISE_THRESHOLD 2
641
 
638
 
642
 //=============================================================================
639
 //=============================================================================
643
 //============================== Movement Settings ============================
640
 //============================== Movement Settings ============================
1214
 #define HOMING_FEEDRATE_XY (50*60)
1211
 #define HOMING_FEEDRATE_XY (50*60)
1215
 #define HOMING_FEEDRATE_Z  (4*60)
1212
 #define HOMING_FEEDRATE_Z  (4*60)
1216
 
1213
 
1214
+// Validate that endstops are triggered on homing moves
1215
+#define VALIDATE_HOMING_ENDSTOPS
1216
+
1217
 // @section calibrate
1217
 // @section calibrate
1218
 
1218
 
1219
 /**
1219
 /**

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

584
 //#define ENDSTOP_INTERRUPTS_FEATURE
584
 //#define ENDSTOP_INTERRUPTS_FEATURE
585
 
585
 
586
 /**
586
 /**
587
- * Endstop Noise Filter
588
- *
589
- * Enable this option if endstops falsely trigger due to noise.
590
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
591
- * will end up at a slightly different position on each G28. This will also
592
- * reduce accuracy of some bed probes.
593
- * For mechanical switches, the better approach to reduce noise is to install
594
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
595
- * essentially noise-proof without sacrificing accuracy.
596
- * This option also increases MCU load when endstops or the probe are enabled.
597
- * So this is not recommended. USE AT YOUR OWN RISK.
598
- * (This feature is not required for common micro-switches mounted on PCBs
599
- * based on the Makerbot design, since they already include the 100nF capacitor.)
587
+ * Endstop Noise Threshold
588
+ *
589
+ * Enable if your probe or endstops falsely trigger due to noise.
590
+ *
591
+ * - Higher values may affect repeatability or accuracy of some bed probes.
592
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
593
+ * - This feature is not required for common micro-switches mounted on PCBs
594
+ *   based on the Makerbot design, which already have the 100nF capacitor.
595
+ *
596
+ * :[2,3,4,5,6,7]
600
  */
597
  */
601
-//#define ENDSTOP_NOISE_FILTER
598
+//#define ENDSTOP_NOISE_THRESHOLD 2
602
 
599
 
603
 //=============================================================================
600
 //=============================================================================
604
 //============================== Movement Settings ============================
601
 //============================== Movement Settings ============================
1194
 #define HOMING_FEEDRATE_XY (50*60)
1191
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_Z  (4*60)
1192
 #define HOMING_FEEDRATE_Z  (4*60)
1196
 
1193
 
1194
+// Validate that endstops are triggered on homing moves
1195
+#define VALIDATE_HOMING_ENDSTOPS
1196
+
1197
 // @section calibrate
1197
 // @section calibrate
1198
 
1198
 
1199
 /**
1199
 /**

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

602
 //#define ENDSTOP_INTERRUPTS_FEATURE
602
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 
603
 
604
 /**
604
 /**
605
- * Endstop Noise Filter
606
- *
607
- * Enable this option if endstops falsely trigger due to noise.
608
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
609
- * will end up at a slightly different position on each G28. This will also
610
- * reduce accuracy of some bed probes.
611
- * For mechanical switches, the better approach to reduce noise is to install
612
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
613
- * essentially noise-proof without sacrificing accuracy.
614
- * This option also increases MCU load when endstops or the probe are enabled.
615
- * So this is not recommended. USE AT YOUR OWN RISK.
616
- * (This feature is not required for common micro-switches mounted on PCBs
617
- * based on the Makerbot design, since they already include the 100nF capacitor.)
605
+ * Endstop Noise Threshold
606
+ *
607
+ * Enable if your probe or endstops falsely trigger due to noise.
608
+ *
609
+ * - Higher values may affect repeatability or accuracy of some bed probes.
610
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
611
+ * - This feature is not required for common micro-switches mounted on PCBs
612
+ *   based on the Makerbot design, which already have the 100nF capacitor.
613
+ *
614
+ * :[2,3,4,5,6,7]
618
  */
615
  */
619
-//#define ENDSTOP_NOISE_FILTER
616
+//#define ENDSTOP_NOISE_THRESHOLD 2
620
 
617
 
621
 //=============================================================================
618
 //=============================================================================
622
 //============================== Movement Settings ============================
619
 //============================== Movement Settings ============================
1193
 #define HOMING_FEEDRATE_XY (50*60)
1190
 #define HOMING_FEEDRATE_XY (50*60)
1194
 #define HOMING_FEEDRATE_Z  (4*60)
1191
 #define HOMING_FEEDRATE_Z  (4*60)
1195
 
1192
 
1193
+// Validate that endstops are triggered on homing moves
1194
+#define VALIDATE_HOMING_ENDSTOPS
1195
+
1196
 // @section calibrate
1196
 // @section calibrate
1197
 
1197
 
1198
 /**
1198
 /**

+ 14
- 14
Marlin/src/config/examples/Micromake/C1/basic/Configuration.h View File

603
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 //#define ENDSTOP_INTERRUPTS_FEATURE
604
 
604
 
605
 /**
605
 /**
606
- * Endstop Noise Filter
607
- *
608
- * Enable this option if endstops falsely trigger due to noise.
609
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
610
- * will end up at a slightly different position on each G28. This will also
611
- * reduce accuracy of some bed probes.
612
- * For mechanical switches, the better approach to reduce noise is to install
613
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
614
- * essentially noise-proof without sacrificing accuracy.
615
- * This option also increases MCU load when endstops or the probe are enabled.
616
- * So this is not recommended. USE AT YOUR OWN RISK.
617
- * (This feature is not required for common micro-switches mounted on PCBs
618
- * based on the Makerbot design, since they already include the 100nF capacitor.)
606
+ * Endstop Noise Threshold
607
+ *
608
+ * Enable if your probe or endstops falsely trigger due to noise.
609
+ *
610
+ * - Higher values may affect repeatability or accuracy of some bed probes.
611
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
612
+ * - This feature is not required for common micro-switches mounted on PCBs
613
+ *   based on the Makerbot design, which already have the 100nF capacitor.
614
+ *
615
+ * :[2,3,4,5,6,7]
619
  */
616
  */
620
-//#define ENDSTOP_NOISE_FILTER
617
+//#define ENDSTOP_NOISE_THRESHOLD 2
621
 
618
 
622
 //=============================================================================
619
 //=============================================================================
623
 //============================== Movement Settings ============================
620
 //============================== Movement Settings ============================
1198
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_XY (50*60)
1199
 #define HOMING_FEEDRATE_Z  (4*60)
1196
 #define HOMING_FEEDRATE_Z  (4*60)
1200
 
1197
 
1198
+// Validate that endstops are triggered on homing moves
1199
+#define VALIDATE_HOMING_ENDSTOPS
1200
+
1201
 // @section calibrate
1201
 // @section calibrate
1202
 
1202
 
1203
 /**
1203
 /**

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

603
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 //#define ENDSTOP_INTERRUPTS_FEATURE
604
 
604
 
605
 /**
605
 /**
606
- * Endstop Noise Filter
607
- *
608
- * Enable this option if endstops falsely trigger due to noise.
609
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
610
- * will end up at a slightly different position on each G28. This will also
611
- * reduce accuracy of some bed probes.
612
- * For mechanical switches, the better approach to reduce noise is to install
613
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
614
- * essentially noise-proof without sacrificing accuracy.
615
- * This option also increases MCU load when endstops or the probe are enabled.
616
- * So this is not recommended. USE AT YOUR OWN RISK.
617
- * (This feature is not required for common micro-switches mounted on PCBs
618
- * based on the Makerbot design, since they already include the 100nF capacitor.)
606
+ * Endstop Noise Threshold
607
+ *
608
+ * Enable if your probe or endstops falsely trigger due to noise.
609
+ *
610
+ * - Higher values may affect repeatability or accuracy of some bed probes.
611
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
612
+ * - This feature is not required for common micro-switches mounted on PCBs
613
+ *   based on the Makerbot design, which already have the 100nF capacitor.
614
+ *
615
+ * :[2,3,4,5,6,7]
619
  */
616
  */
620
-//#define ENDSTOP_NOISE_FILTER
617
+//#define ENDSTOP_NOISE_THRESHOLD 2
621
 
618
 
622
 //=============================================================================
619
 //=============================================================================
623
 //============================== Movement Settings ============================
620
 //============================== Movement Settings ============================
1198
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_XY (50*60)
1199
 #define HOMING_FEEDRATE_Z  (4*60)
1196
 #define HOMING_FEEDRATE_Z  (4*60)
1200
 
1197
 
1198
+// Validate that endstops are triggered on homing moves
1199
+#define VALIDATE_HOMING_ENDSTOPS
1200
+
1201
 // @section calibrate
1201
 // @section calibrate
1202
 
1202
 
1203
 /**
1203
 /**

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

603
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 //#define ENDSTOP_INTERRUPTS_FEATURE
604
 
604
 
605
 /**
605
 /**
606
- * Endstop Noise Filter
607
- *
608
- * Enable this option if endstops falsely trigger due to noise.
609
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
610
- * will end up at a slightly different position on each G28. This will also
611
- * reduce accuracy of some bed probes.
612
- * For mechanical switches, the better approach to reduce noise is to install
613
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
614
- * essentially noise-proof without sacrificing accuracy.
615
- * This option also increases MCU load when endstops or the probe are enabled.
616
- * So this is not recommended. USE AT YOUR OWN RISK.
617
- * (This feature is not required for common micro-switches mounted on PCBs
618
- * based on the Makerbot design, since they already include the 100nF capacitor.)
606
+ * Endstop Noise Threshold
607
+ *
608
+ * Enable if your probe or endstops falsely trigger due to noise.
609
+ *
610
+ * - Higher values may affect repeatability or accuracy of some bed probes.
611
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
612
+ * - This feature is not required for common micro-switches mounted on PCBs
613
+ *   based on the Makerbot design, which already have the 100nF capacitor.
614
+ *
615
+ * :[2,3,4,5,6,7]
619
  */
616
  */
620
-//#define ENDSTOP_NOISE_FILTER
617
+//#define ENDSTOP_NOISE_THRESHOLD 2
621
 
618
 
622
 //=============================================================================
619
 //=============================================================================
623
 //============================== Movement Settings ============================
620
 //============================== Movement Settings ============================
1194
 #define HOMING_FEEDRATE_XY (50*60)
1191
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_Z  (4*60)
1192
 #define HOMING_FEEDRATE_Z  (4*60)
1196
 
1193
 
1194
+// Validate that endstops are triggered on homing moves
1195
+#define VALIDATE_HOMING_ENDSTOPS
1196
+
1197
 // @section calibrate
1197
 // @section calibrate
1198
 
1198
 
1199
 /**
1199
 /**

+ 14
- 14
Marlin/src/config/examples/RepRapPro/Huxley/Configuration.h View File

603
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 //#define ENDSTOP_INTERRUPTS_FEATURE
604
 
604
 
605
 /**
605
 /**
606
- * Endstop Noise Filter
607
- *
608
- * Enable this option if endstops falsely trigger due to noise.
609
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
610
- * will end up at a slightly different position on each G28. This will also
611
- * reduce accuracy of some bed probes.
612
- * For mechanical switches, the better approach to reduce noise is to install
613
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
614
- * essentially noise-proof without sacrificing accuracy.
615
- * This option also increases MCU load when endstops or the probe are enabled.
616
- * So this is not recommended. USE AT YOUR OWN RISK.
617
- * (This feature is not required for common micro-switches mounted on PCBs
618
- * based on the Makerbot design, since they already include the 100nF capacitor.)
606
+ * Endstop Noise Threshold
607
+ *
608
+ * Enable if your probe or endstops falsely trigger due to noise.
609
+ *
610
+ * - Higher values may affect repeatability or accuracy of some bed probes.
611
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
612
+ * - This feature is not required for common micro-switches mounted on PCBs
613
+ *   based on the Makerbot design, which already have the 100nF capacitor.
614
+ *
615
+ * :[2,3,4,5,6,7]
619
  */
616
  */
620
-//#define ENDSTOP_NOISE_FILTER
617
+//#define ENDSTOP_NOISE_THRESHOLD 2
621
 
618
 
622
 //=============================================================================
619
 //=============================================================================
623
 //============================== Movement Settings ============================
620
 //============================== Movement Settings ============================
1243
 #define HOMING_FEEDRATE_XY (50*60)
1240
 #define HOMING_FEEDRATE_XY (50*60)
1244
 #define HOMING_FEEDRATE_Z  (DEFAULT_MAX_Z_FEEDRATE*60)
1241
 #define HOMING_FEEDRATE_Z  (DEFAULT_MAX_Z_FEEDRATE*60)
1245
 
1242
 
1243
+// Validate that endstops are triggered on homing moves
1244
+#define VALIDATE_HOMING_ENDSTOPS
1245
+
1246
 // @section calibrate
1246
 // @section calibrate
1247
 
1247
 
1248
 /**
1248
 /**

+ 14
- 14
Marlin/src/config/examples/RepRapWorld/Megatronics/Configuration.h View File

603
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 //#define ENDSTOP_INTERRUPTS_FEATURE
604
 
604
 
605
 /**
605
 /**
606
- * Endstop Noise Filter
607
- *
608
- * Enable this option if endstops falsely trigger due to noise.
609
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
610
- * will end up at a slightly different position on each G28. This will also
611
- * reduce accuracy of some bed probes.
612
- * For mechanical switches, the better approach to reduce noise is to install
613
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
614
- * essentially noise-proof without sacrificing accuracy.
615
- * This option also increases MCU load when endstops or the probe are enabled.
616
- * So this is not recommended. USE AT YOUR OWN RISK.
617
- * (This feature is not required for common micro-switches mounted on PCBs
618
- * based on the Makerbot design, since they already include the 100nF capacitor.)
606
+ * Endstop Noise Threshold
607
+ *
608
+ * Enable if your probe or endstops falsely trigger due to noise.
609
+ *
610
+ * - Higher values may affect repeatability or accuracy of some bed probes.
611
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
612
+ * - This feature is not required for common micro-switches mounted on PCBs
613
+ *   based on the Makerbot design, which already have the 100nF capacitor.
614
+ *
615
+ * :[2,3,4,5,6,7]
619
  */
616
  */
620
-//#define ENDSTOP_NOISE_FILTER
617
+//#define ENDSTOP_NOISE_THRESHOLD 2
621
 
618
 
622
 //=============================================================================
619
 //=============================================================================
623
 //============================== Movement Settings ============================
620
 //============================== Movement Settings ============================
1194
 #define HOMING_FEEDRATE_XY (50*60)
1191
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_Z  (4*60)
1192
 #define HOMING_FEEDRATE_Z  (4*60)
1196
 
1193
 
1194
+// Validate that endstops are triggered on homing moves
1195
+#define VALIDATE_HOMING_ENDSTOPS
1196
+
1197
 // @section calibrate
1197
 // @section calibrate
1198
 
1198
 
1199
 /**
1199
 /**

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

599
 //#define ENDSTOP_INTERRUPTS_FEATURE
599
 //#define ENDSTOP_INTERRUPTS_FEATURE
600
 
600
 
601
 /**
601
 /**
602
- * Endstop Noise Filter
603
- *
604
- * Enable this option if endstops falsely trigger due to noise.
605
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
606
- * will end up at a slightly different position on each G28. This will also
607
- * reduce accuracy of some bed probes.
608
- * For mechanical switches, the better approach to reduce noise is to install
609
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
610
- * essentially noise-proof without sacrificing accuracy.
611
- * This option also increases MCU load when endstops or the probe are enabled.
612
- * So this is not recommended. USE AT YOUR OWN RISK.
613
- * (This feature is not required for common micro-switches mounted on PCBs
614
- * based on the Makerbot design, since they already include the 100nF capacitor.)
602
+ * Endstop Noise Threshold
603
+ *
604
+ * Enable if your probe or endstops falsely trigger due to noise.
605
+ *
606
+ * - Higher values may affect repeatability or accuracy of some bed probes.
607
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
608
+ * - This feature is not required for common micro-switches mounted on PCBs
609
+ *   based on the Makerbot design, which already have the 100nF capacitor.
610
+ *
611
+ * :[2,3,4,5,6,7]
615
  */
612
  */
616
-//#define ENDSTOP_NOISE_FILTER
613
+//#define ENDSTOP_NOISE_THRESHOLD 2
617
 
614
 
618
 //=============================================================================
615
 //=============================================================================
619
 //============================== Movement Settings ============================
616
 //============================== Movement Settings ============================
1192
 #define HOMING_FEEDRATE_XY (50*60)
1189
 #define HOMING_FEEDRATE_XY (50*60)
1193
 #define HOMING_FEEDRATE_Z  (15*60)
1190
 #define HOMING_FEEDRATE_Z  (15*60)
1194
 
1191
 
1192
+// Validate that endstops are triggered on homing moves
1193
+#define VALIDATE_HOMING_ENDSTOPS
1194
+
1195
 // @section calibrate
1195
 // @section calibrate
1196
 
1196
 
1197
 /**
1197
 /**

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

616
 //#define ENDSTOP_INTERRUPTS_FEATURE
616
 //#define ENDSTOP_INTERRUPTS_FEATURE
617
 
617
 
618
 /**
618
 /**
619
- * Endstop Noise Filter
620
- *
621
- * Enable this option if endstops falsely trigger due to noise.
622
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
623
- * will end up at a slightly different position on each G28. This will also
624
- * reduce accuracy of some bed probes.
625
- * For mechanical switches, the better approach to reduce noise is to install
626
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
627
- * essentially noise-proof without sacrificing accuracy.
628
- * This option also increases MCU load when endstops or the probe are enabled.
629
- * So this is not recommended. USE AT YOUR OWN RISK.
630
- * (This feature is not required for common micro-switches mounted on PCBs
631
- * based on the Makerbot design, since they already include the 100nF capacitor.)
619
+ * Endstop Noise Threshold
620
+ *
621
+ * Enable if your probe or endstops falsely trigger due to noise.
622
+ *
623
+ * - Higher values may affect repeatability or accuracy of some bed probes.
624
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
625
+ * - This feature is not required for common micro-switches mounted on PCBs
626
+ *   based on the Makerbot design, which already have the 100nF capacitor.
627
+ *
628
+ * :[2,3,4,5,6,7]
632
  */
629
  */
633
-//#define ENDSTOP_NOISE_FILTER
630
+//#define ENDSTOP_NOISE_THRESHOLD 2
634
 
631
 
635
 //=============================================================================
632
 //=============================================================================
636
 //============================== Movement Settings ============================
633
 //============================== Movement Settings ============================
1207
 #define HOMING_FEEDRATE_XY (40*60)
1204
 #define HOMING_FEEDRATE_XY (40*60)
1208
 #define HOMING_FEEDRATE_Z  (10*60)
1205
 #define HOMING_FEEDRATE_Z  (10*60)
1209
 
1206
 
1207
+// Validate that endstops are triggered on homing moves
1208
+#define VALIDATE_HOMING_ENDSTOPS
1209
+
1210
 // @section calibrate
1210
 // @section calibrate
1211
 
1211
 
1212
 /**
1212
 /**

+ 14
- 14
Marlin/src/config/examples/STM32F10/Configuration.h View File

605
 //#define ENDSTOP_INTERRUPTS_FEATURE
605
 //#define ENDSTOP_INTERRUPTS_FEATURE
606
 
606
 
607
 /**
607
 /**
608
- * Endstop Noise Filter
609
- *
610
- * Enable this option if endstops falsely trigger due to noise.
611
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
612
- * will end up at a slightly different position on each G28. This will also
613
- * reduce accuracy of some bed probes.
614
- * For mechanical switches, the better approach to reduce noise is to install
615
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
616
- * essentially noise-proof without sacrificing accuracy.
617
- * This option also increases MCU load when endstops or the probe are enabled.
618
- * So this is not recommended. USE AT YOUR OWN RISK.
619
- * (This feature is not required for common micro-switches mounted on PCBs
620
- * based on the Makerbot design, since they already include the 100nF capacitor.)
608
+ * Endstop Noise Threshold
609
+ *
610
+ * Enable if your probe or endstops falsely trigger due to noise.
611
+ *
612
+ * - Higher values may affect repeatability or accuracy of some bed probes.
613
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
614
+ * - This feature is not required for common micro-switches mounted on PCBs
615
+ *   based on the Makerbot design, which already have the 100nF capacitor.
616
+ *
617
+ * :[2,3,4,5,6,7]
621
  */
618
  */
622
-//#define ENDSTOP_NOISE_FILTER
619
+//#define ENDSTOP_NOISE_THRESHOLD 2
623
 
620
 
624
 //=============================================================================
621
 //=============================================================================
625
 //============================== Movement Settings ============================
622
 //============================== Movement Settings ============================
1196
 #define HOMING_FEEDRATE_XY (50*60)
1193
 #define HOMING_FEEDRATE_XY (50*60)
1197
 #define HOMING_FEEDRATE_Z  (4*60)
1194
 #define HOMING_FEEDRATE_Z  (4*60)
1198
 
1195
 
1196
+// Validate that endstops are triggered on homing moves
1197
+#define VALIDATE_HOMING_ENDSTOPS
1198
+
1199
 // @section calibrate
1199
 // @section calibrate
1200
 
1200
 
1201
 /**
1201
 /**

+ 14
- 14
Marlin/src/config/examples/STM32F4/Configuration.h View File

603
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 //#define ENDSTOP_INTERRUPTS_FEATURE
604
 
604
 
605
 /**
605
 /**
606
- * Endstop Noise Filter
607
- *
608
- * Enable this option if endstops falsely trigger due to noise.
609
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
610
- * will end up at a slightly different position on each G28. This will also
611
- * reduce accuracy of some bed probes.
612
- * For mechanical switches, the better approach to reduce noise is to install
613
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
614
- * essentially noise-proof without sacrificing accuracy.
615
- * This option also increases MCU load when endstops or the probe are enabled.
616
- * So this is not recommended. USE AT YOUR OWN RISK.
617
- * (This feature is not required for common micro-switches mounted on PCBs
618
- * based on the Makerbot design, since they already include the 100nF capacitor.)
606
+ * Endstop Noise Threshold
607
+ *
608
+ * Enable if your probe or endstops falsely trigger due to noise.
609
+ *
610
+ * - Higher values may affect repeatability or accuracy of some bed probes.
611
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
612
+ * - This feature is not required for common micro-switches mounted on PCBs
613
+ *   based on the Makerbot design, which already have the 100nF capacitor.
614
+ *
615
+ * :[2,3,4,5,6,7]
619
  */
616
  */
620
-//#define ENDSTOP_NOISE_FILTER
617
+//#define ENDSTOP_NOISE_THRESHOLD 2
621
 
618
 
622
 //=============================================================================
619
 //=============================================================================
623
 //============================== Movement Settings ============================
620
 //============================== Movement Settings ============================
1194
 #define HOMING_FEEDRATE_XY (50*60)
1191
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_Z  (4*60)
1192
 #define HOMING_FEEDRATE_Z  (4*60)
1196
 
1193
 
1194
+// Validate that endstops are triggered on homing moves
1195
+#define VALIDATE_HOMING_ENDSTOPS
1196
+
1197
 // @section calibrate
1197
 // @section calibrate
1198
 
1198
 
1199
 /**
1199
 /**

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

603
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 //#define ENDSTOP_INTERRUPTS_FEATURE
604
 
604
 
605
 /**
605
 /**
606
- * Endstop Noise Filter
607
- *
608
- * Enable this option if endstops falsely trigger due to noise.
609
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
610
- * will end up at a slightly different position on each G28. This will also
611
- * reduce accuracy of some bed probes.
612
- * For mechanical switches, the better approach to reduce noise is to install
613
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
614
- * essentially noise-proof without sacrificing accuracy.
615
- * This option also increases MCU load when endstops or the probe are enabled.
616
- * So this is not recommended. USE AT YOUR OWN RISK.
617
- * (This feature is not required for common micro-switches mounted on PCBs
618
- * based on the Makerbot design, since they already include the 100nF capacitor.)
606
+ * Endstop Noise Threshold
607
+ *
608
+ * Enable if your probe or endstops falsely trigger due to noise.
609
+ *
610
+ * - Higher values may affect repeatability or accuracy of some bed probes.
611
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
612
+ * - This feature is not required for common micro-switches mounted on PCBs
613
+ *   based on the Makerbot design, which already have the 100nF capacitor.
614
+ *
615
+ * :[2,3,4,5,6,7]
619
  */
616
  */
620
-//#define ENDSTOP_NOISE_FILTER
617
+//#define ENDSTOP_NOISE_THRESHOLD 2
621
 
618
 
622
 //=============================================================================
619
 //=============================================================================
623
 //============================== Movement Settings ============================
620
 //============================== Movement Settings ============================
1225
 #define HOMING_FEEDRATE_XY (50*60)
1222
 #define HOMING_FEEDRATE_XY (50*60)
1226
 #define HOMING_FEEDRATE_Z  (6*60)
1223
 #define HOMING_FEEDRATE_Z  (6*60)
1227
 
1224
 
1225
+// Validate that endstops are triggered on homing moves
1226
+#define VALIDATE_HOMING_ENDSTOPS
1227
+
1228
 // @section calibrate
1228
 // @section calibrate
1229
 
1229
 
1230
 /**
1230
 /**

+ 14
- 14
Marlin/src/config/examples/TheBorg/Configuration.h View File

603
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 //#define ENDSTOP_INTERRUPTS_FEATURE
604
 
604
 
605
 /**
605
 /**
606
- * Endstop Noise Filter
607
- *
608
- * Enable this option if endstops falsely trigger due to noise.
609
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
610
- * will end up at a slightly different position on each G28. This will also
611
- * reduce accuracy of some bed probes.
612
- * For mechanical switches, the better approach to reduce noise is to install
613
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
614
- * essentially noise-proof without sacrificing accuracy.
615
- * This option also increases MCU load when endstops or the probe are enabled.
616
- * So this is not recommended. USE AT YOUR OWN RISK.
617
- * (This feature is not required for common micro-switches mounted on PCBs
618
- * based on the Makerbot design, since they already include the 100nF capacitor.)
606
+ * Endstop Noise Threshold
607
+ *
608
+ * Enable if your probe or endstops falsely trigger due to noise.
609
+ *
610
+ * - Higher values may affect repeatability or accuracy of some bed probes.
611
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
612
+ * - This feature is not required for common micro-switches mounted on PCBs
613
+ *   based on the Makerbot design, which already have the 100nF capacitor.
614
+ *
615
+ * :[2,3,4,5,6,7]
619
  */
616
  */
620
-//#define ENDSTOP_NOISE_FILTER
617
+//#define ENDSTOP_NOISE_THRESHOLD 2
621
 
618
 
622
 //=============================================================================
619
 //=============================================================================
623
 //============================== Movement Settings ============================
620
 //============================== Movement Settings ============================
1194
 #define HOMING_FEEDRATE_XY (50*60)
1191
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_Z  (4*60)
1192
 #define HOMING_FEEDRATE_Z  (4*60)
1196
 
1193
 
1194
+// Validate that endstops are triggered on homing moves
1195
+#define VALIDATE_HOMING_ENDSTOPS
1196
+
1197
 // @section calibrate
1197
 // @section calibrate
1198
 
1198
 
1199
 /**
1199
 /**

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

654
 //#define ENDSTOP_INTERRUPTS_FEATURE
654
 //#define ENDSTOP_INTERRUPTS_FEATURE
655
 
655
 
656
 /**
656
 /**
657
- * Endstop Noise Filter
658
- *
659
- * Enable this option if endstops falsely trigger due to noise.
660
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
661
- * will end up at a slightly different position on each G28. This will also
662
- * reduce accuracy of some bed probes.
663
- * For mechanical switches, the better approach to reduce noise is to install
664
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
665
- * essentially noise-proof without sacrificing accuracy.
666
- * This option also increases MCU load when endstops or the probe are enabled.
667
- * So this is not recommended. USE AT YOUR OWN RISK.
668
- * (This feature is not required for common micro-switches mounted on PCBs
669
- * based on the Makerbot design, since they already include the 100nF capacitor.)
657
+ * Endstop Noise Threshold
658
+ *
659
+ * Enable if your probe or endstops falsely trigger due to noise.
660
+ *
661
+ * - Higher values may affect repeatability or accuracy of some bed probes.
662
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
663
+ * - This feature is not required for common micro-switches mounted on PCBs
664
+ *   based on the Makerbot design, which already have the 100nF capacitor.
665
+ *
666
+ * :[2,3,4,5,6,7]
670
  */
667
  */
671
-//#define ENDSTOP_NOISE_FILTER
668
+//#define ENDSTOP_NOISE_THRESHOLD 2
672
 
669
 
673
 //=============================================================================
670
 //=============================================================================
674
 //============================== Movement Settings ============================
671
 //============================== Movement Settings ============================
1250
 #define HOMING_FEEDRATE_XY (40*60)
1247
 #define HOMING_FEEDRATE_XY (40*60)
1251
 #define HOMING_FEEDRATE_Z  (3*60)
1248
 #define HOMING_FEEDRATE_Z  (3*60)
1252
 
1249
 
1250
+// Validate that endstops are triggered on homing moves
1251
+#define VALIDATE_HOMING_ENDSTOPS
1252
+
1253
 // @section calibrate
1253
 // @section calibrate
1254
 
1254
 
1255
 /**
1255
 /**

+ 14
- 14
Marlin/src/config/examples/Tronxy/X1/Configuration.h View File

603
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 //#define ENDSTOP_INTERRUPTS_FEATURE
604
 
604
 
605
 /**
605
 /**
606
- * Endstop Noise Filter
607
- *
608
- * Enable this option if endstops falsely trigger due to noise.
609
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
610
- * will end up at a slightly different position on each G28. This will also
611
- * reduce accuracy of some bed probes.
612
- * For mechanical switches, the better approach to reduce noise is to install
613
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
614
- * essentially noise-proof without sacrificing accuracy.
615
- * This option also increases MCU load when endstops or the probe are enabled.
616
- * So this is not recommended. USE AT YOUR OWN RISK.
617
- * (This feature is not required for common micro-switches mounted on PCBs
618
- * based on the Makerbot design, since they already include the 100nF capacitor.)
606
+ * Endstop Noise Threshold
607
+ *
608
+ * Enable if your probe or endstops falsely trigger due to noise.
609
+ *
610
+ * - Higher values may affect repeatability or accuracy of some bed probes.
611
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
612
+ * - This feature is not required for common micro-switches mounted on PCBs
613
+ *   based on the Makerbot design, which already have the 100nF capacitor.
614
+ *
615
+ * :[2,3,4,5,6,7]
619
  */
616
  */
620
-//#define ENDSTOP_NOISE_FILTER
617
+//#define ENDSTOP_NOISE_THRESHOLD 2
621
 
618
 
622
 //=============================================================================
619
 //=============================================================================
623
 //============================== Movement Settings ============================
620
 //============================== Movement Settings ============================
1194
 #define HOMING_FEEDRATE_XY (50*60)
1191
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_Z  (4*60)
1192
 #define HOMING_FEEDRATE_Z  (4*60)
1196
 
1193
 
1194
+// Validate that endstops are triggered on homing moves
1195
+#define VALIDATE_HOMING_ENDSTOPS
1196
+
1197
 // @section calibrate
1197
 // @section calibrate
1198
 
1198
 
1199
 /**
1199
 /**

+ 14
- 14
Marlin/src/config/examples/Tronxy/X3A/Configuration.h View File

603
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 //#define ENDSTOP_INTERRUPTS_FEATURE
604
 
604
 
605
 /**
605
 /**
606
- * Endstop Noise Filter
607
- *
608
- * Enable this option if endstops falsely trigger due to noise.
609
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
610
- * will end up at a slightly different position on each G28. This will also
611
- * reduce accuracy of some bed probes.
612
- * For mechanical switches, the better approach to reduce noise is to install
613
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
614
- * essentially noise-proof without sacrificing accuracy.
615
- * This option also increases MCU load when endstops or the probe are enabled.
616
- * So this is not recommended. USE AT YOUR OWN RISK.
617
- * (This feature is not required for common micro-switches mounted on PCBs
618
- * based on the Makerbot design, since they already include the 100nF capacitor.)
606
+ * Endstop Noise Threshold
607
+ *
608
+ * Enable if your probe or endstops falsely trigger due to noise.
609
+ *
610
+ * - Higher values may affect repeatability or accuracy of some bed probes.
611
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
612
+ * - This feature is not required for common micro-switches mounted on PCBs
613
+ *   based on the Makerbot design, which already have the 100nF capacitor.
614
+ *
615
+ * :[2,3,4,5,6,7]
619
  */
616
  */
620
-//#define ENDSTOP_NOISE_FILTER
617
+//#define ENDSTOP_NOISE_THRESHOLD 2
621
 
618
 
622
 //=============================================================================
619
 //=============================================================================
623
 //============================== Movement Settings ============================
620
 //============================== Movement Settings ============================
1198
 #define HOMING_FEEDRATE_XY (100*60)
1195
 #define HOMING_FEEDRATE_XY (100*60)
1199
 #define HOMING_FEEDRATE_Z  (4*60)
1196
 #define HOMING_FEEDRATE_Z  (4*60)
1200
 
1197
 
1198
+// Validate that endstops are triggered on homing moves
1199
+#define VALIDATE_HOMING_ENDSTOPS
1200
+
1201
 // @section calibrate
1201
 // @section calibrate
1202
 
1202
 
1203
 /**
1203
 /**

+ 14
- 14
Marlin/src/config/examples/Tronxy/X5S/Configuration.h View File

603
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 //#define ENDSTOP_INTERRUPTS_FEATURE
604
 
604
 
605
 /**
605
 /**
606
- * Endstop Noise Filter
607
- *
608
- * Enable this option if endstops falsely trigger due to noise.
609
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
610
- * will end up at a slightly different position on each G28. This will also
611
- * reduce accuracy of some bed probes.
612
- * For mechanical switches, the better approach to reduce noise is to install
613
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
614
- * essentially noise-proof without sacrificing accuracy.
615
- * This option also increases MCU load when endstops or the probe are enabled.
616
- * So this is not recommended. USE AT YOUR OWN RISK.
617
- * (This feature is not required for common micro-switches mounted on PCBs
618
- * based on the Makerbot design, since they already include the 100nF capacitor.)
606
+ * Endstop Noise Threshold
607
+ *
608
+ * Enable if your probe or endstops falsely trigger due to noise.
609
+ *
610
+ * - Higher values may affect repeatability or accuracy of some bed probes.
611
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
612
+ * - This feature is not required for common micro-switches mounted on PCBs
613
+ *   based on the Makerbot design, which already have the 100nF capacitor.
614
+ *
615
+ * :[2,3,4,5,6,7]
619
  */
616
  */
620
-//#define ENDSTOP_NOISE_FILTER
617
+//#define ENDSTOP_NOISE_THRESHOLD 2
621
 
618
 
622
 //=============================================================================
619
 //=============================================================================
623
 //============================== Movement Settings ============================
620
 //============================== Movement Settings ============================
1194
 #define HOMING_FEEDRATE_XY (50*60)
1191
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_Z  (4*60)
1192
 #define HOMING_FEEDRATE_Z  (4*60)
1196
 
1193
 
1194
+// Validate that endstops are triggered on homing moves
1195
+#define VALIDATE_HOMING_ENDSTOPS
1196
+
1197
 // @section calibrate
1197
 // @section calibrate
1198
 
1198
 
1199
 /**
1199
 /**

+ 14
- 14
Marlin/src/config/examples/Tronxy/XY100/Configuration.h View File

614
 //#define ENDSTOP_INTERRUPTS_FEATURE
614
 //#define ENDSTOP_INTERRUPTS_FEATURE
615
 
615
 
616
 /**
616
 /**
617
- * Endstop Noise Filter
618
- *
619
- * Enable this option if endstops falsely trigger due to noise.
620
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
621
- * will end up at a slightly different position on each G28. This will also
622
- * reduce accuracy of some bed probes.
623
- * For mechanical switches, the better approach to reduce noise is to install
624
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
625
- * essentially noise-proof without sacrificing accuracy.
626
- * This option also increases MCU load when endstops or the probe are enabled.
627
- * So this is not recommended. USE AT YOUR OWN RISK.
628
- * (This feature is not required for common micro-switches mounted on PCBs
629
- * based on the Makerbot design, since they already include the 100nF capacitor.)
617
+ * Endstop Noise Threshold
618
+ *
619
+ * Enable if your probe or endstops falsely trigger due to noise.
620
+ *
621
+ * - Higher values may affect repeatability or accuracy of some bed probes.
622
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
623
+ * - This feature is not required for common micro-switches mounted on PCBs
624
+ *   based on the Makerbot design, which already have the 100nF capacitor.
625
+ *
626
+ * :[2,3,4,5,6,7]
630
  */
627
  */
631
-//#define ENDSTOP_NOISE_FILTER
628
+//#define ENDSTOP_NOISE_THRESHOLD 2
632
 
629
 
633
 //=============================================================================
630
 //=============================================================================
634
 //============================== Movement Settings ============================
631
 //============================== Movement Settings ============================
1205
 #define HOMING_FEEDRATE_XY (50*60)
1202
 #define HOMING_FEEDRATE_XY (50*60)
1206
 #define HOMING_FEEDRATE_Z  (4*60)
1203
 #define HOMING_FEEDRATE_Z  (4*60)
1207
 
1204
 
1205
+// Validate that endstops are triggered on homing moves
1206
+#define VALIDATE_HOMING_ENDSTOPS
1207
+
1208
 // @section calibrate
1208
 // @section calibrate
1209
 
1209
 
1210
 /**
1210
 /**

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

603
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 //#define ENDSTOP_INTERRUPTS_FEATURE
604
 
604
 
605
 /**
605
 /**
606
- * Endstop Noise Filter
607
- *
608
- * Enable this option if endstops falsely trigger due to noise.
609
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
610
- * will end up at a slightly different position on each G28. This will also
611
- * reduce accuracy of some bed probes.
612
- * For mechanical switches, the better approach to reduce noise is to install
613
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
614
- * essentially noise-proof without sacrificing accuracy.
615
- * This option also increases MCU load when endstops or the probe are enabled.
616
- * So this is not recommended. USE AT YOUR OWN RISK.
617
- * (This feature is not required for common micro-switches mounted on PCBs
618
- * based on the Makerbot design, since they already include the 100nF capacitor.)
606
+ * Endstop Noise Threshold
607
+ *
608
+ * Enable if your probe or endstops falsely trigger due to noise.
609
+ *
610
+ * - Higher values may affect repeatability or accuracy of some bed probes.
611
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
612
+ * - This feature is not required for common micro-switches mounted on PCBs
613
+ *   based on the Makerbot design, which already have the 100nF capacitor.
614
+ *
615
+ * :[2,3,4,5,6,7]
619
  */
616
  */
620
-//#define ENDSTOP_NOISE_FILTER
617
+//#define ENDSTOP_NOISE_THRESHOLD 2
621
 
618
 
622
 //=============================================================================
619
 //=============================================================================
623
 //============================== Movement Settings ============================
620
 //============================== Movement Settings ============================
1194
 #define HOMING_FEEDRATE_XY (50*60)
1191
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_Z  (4*60)
1192
 #define HOMING_FEEDRATE_Z  (4*60)
1196
 
1193
 
1194
+// Validate that endstops are triggered on homing moves
1195
+#define VALIDATE_HOMING_ENDSTOPS
1196
+
1197
 // @section calibrate
1197
 // @section calibrate
1198
 
1198
 
1199
 /**
1199
 /**

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

633
 //#define ENDSTOP_INTERRUPTS_FEATURE
633
 //#define ENDSTOP_INTERRUPTS_FEATURE
634
 
634
 
635
 /**
635
 /**
636
- * Endstop Noise Filter
637
- *
638
- * Enable this option if endstops falsely trigger due to noise.
639
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
640
- * will end up at a slightly different position on each G28. This will also
641
- * reduce accuracy of some bed probes.
642
- * For mechanical switches, the better approach to reduce noise is to install
643
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
644
- * essentially noise-proof without sacrificing accuracy.
645
- * This option also increases MCU load when endstops or the probe are enabled.
646
- * So this is not recommended. USE AT YOUR OWN RISK.
647
- * (This feature is not required for common micro-switches mounted on PCBs
648
- * based on the Makerbot design, since they already include the 100nF capacitor.)
636
+ * Endstop Noise Threshold
637
+ *
638
+ * Enable if your probe or endstops falsely trigger due to noise.
639
+ *
640
+ * - Higher values may affect repeatability or accuracy of some bed probes.
641
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
642
+ * - This feature is not required for common micro-switches mounted on PCBs
643
+ *   based on the Makerbot design, which already have the 100nF capacitor.
644
+ *
645
+ * :[2,3,4,5,6,7]
649
  */
646
  */
650
-//#define ENDSTOP_NOISE_FILTER
647
+//#define ENDSTOP_NOISE_THRESHOLD 2
651
 
648
 
652
 //=============================================================================
649
 //=============================================================================
653
 //============================== Movement Settings ============================
650
 //============================== Movement Settings ============================
1224
 #define HOMING_FEEDRATE_XY (50*60)
1221
 #define HOMING_FEEDRATE_XY (50*60)
1225
 #define HOMING_FEEDRATE_Z  (4*60)
1222
 #define HOMING_FEEDRATE_Z  (4*60)
1226
 
1223
 
1224
+// Validate that endstops are triggered on homing moves
1225
+#define VALIDATE_HOMING_ENDSTOPS
1226
+
1227
 // @section calibrate
1227
 // @section calibrate
1228
 
1228
 
1229
 /**
1229
 /**

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

603
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 //#define ENDSTOP_INTERRUPTS_FEATURE
604
 
604
 
605
 /**
605
 /**
606
- * Endstop Noise Filter
607
- *
608
- * Enable this option if endstops falsely trigger due to noise.
609
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
610
- * will end up at a slightly different position on each G28. This will also
611
- * reduce accuracy of some bed probes.
612
- * For mechanical switches, the better approach to reduce noise is to install
613
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
614
- * essentially noise-proof without sacrificing accuracy.
615
- * This option also increases MCU load when endstops or the probe are enabled.
616
- * So this is not recommended. USE AT YOUR OWN RISK.
617
- * (This feature is not required for common micro-switches mounted on PCBs
618
- * based on the Makerbot design, since they already include the 100nF capacitor.)
606
+ * Endstop Noise Threshold
607
+ *
608
+ * Enable if your probe or endstops falsely trigger due to noise.
609
+ *
610
+ * - Higher values may affect repeatability or accuracy of some bed probes.
611
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
612
+ * - This feature is not required for common micro-switches mounted on PCBs
613
+ *   based on the Makerbot design, which already have the 100nF capacitor.
614
+ *
615
+ * :[2,3,4,5,6,7]
619
  */
616
  */
620
-//#define ENDSTOP_NOISE_FILTER
617
+//#define ENDSTOP_NOISE_THRESHOLD 2
621
 
618
 
622
 //=============================================================================
619
 //=============================================================================
623
 //============================== Movement Settings ============================
620
 //============================== Movement Settings ============================
1194
 #define HOMING_FEEDRATE_XY (50*60)
1191
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_Z  (8*60)
1192
 #define HOMING_FEEDRATE_Z  (8*60)
1196
 
1193
 
1194
+// Validate that endstops are triggered on homing moves
1195
+#define VALIDATE_HOMING_ENDSTOPS
1196
+
1197
 // @section calibrate
1197
 // @section calibrate
1198
 
1198
 
1199
 /**
1199
 /**

+ 14
- 14
Marlin/src/config/examples/Velleman/K8400/Dual-head/Configuration.h View File

603
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 //#define ENDSTOP_INTERRUPTS_FEATURE
604
 
604
 
605
 /**
605
 /**
606
- * Endstop Noise Filter
607
- *
608
- * Enable this option if endstops falsely trigger due to noise.
609
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
610
- * will end up at a slightly different position on each G28. This will also
611
- * reduce accuracy of some bed probes.
612
- * For mechanical switches, the better approach to reduce noise is to install
613
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
614
- * essentially noise-proof without sacrificing accuracy.
615
- * This option also increases MCU load when endstops or the probe are enabled.
616
- * So this is not recommended. USE AT YOUR OWN RISK.
617
- * (This feature is not required for common micro-switches mounted on PCBs
618
- * based on the Makerbot design, since they already include the 100nF capacitor.)
606
+ * Endstop Noise Threshold
607
+ *
608
+ * Enable if your probe or endstops falsely trigger due to noise.
609
+ *
610
+ * - Higher values may affect repeatability or accuracy of some bed probes.
611
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
612
+ * - This feature is not required for common micro-switches mounted on PCBs
613
+ *   based on the Makerbot design, which already have the 100nF capacitor.
614
+ *
615
+ * :[2,3,4,5,6,7]
619
  */
616
  */
620
-//#define ENDSTOP_NOISE_FILTER
617
+//#define ENDSTOP_NOISE_THRESHOLD 2
621
 
618
 
622
 //=============================================================================
619
 //=============================================================================
623
 //============================== Movement Settings ============================
620
 //============================== Movement Settings ============================
1194
 #define HOMING_FEEDRATE_XY (50*60)
1191
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_Z  (8*60)
1192
 #define HOMING_FEEDRATE_Z  (8*60)
1196
 
1193
 
1194
+// Validate that endstops are triggered on homing moves
1195
+#define VALIDATE_HOMING_ENDSTOPS
1196
+
1197
 // @section calibrate
1197
 // @section calibrate
1198
 
1198
 
1199
 /**
1199
 /**

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

613
 //#define ENDSTOP_INTERRUPTS_FEATURE
613
 //#define ENDSTOP_INTERRUPTS_FEATURE
614
 
614
 
615
 /**
615
 /**
616
- * Endstop Noise Filter
617
- *
618
- * Enable this option if endstops falsely trigger due to noise.
619
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
620
- * will end up at a slightly different position on each G28. This will also
621
- * reduce accuracy of some bed probes.
622
- * For mechanical switches, the better approach to reduce noise is to install
623
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
624
- * essentially noise-proof without sacrificing accuracy.
625
- * This option also increases MCU load when endstops or the probe are enabled.
626
- * So this is not recommended. USE AT YOUR OWN RISK.
627
- * (This feature is not required for common micro-switches mounted on PCBs
628
- * based on the Makerbot design, since they already include the 100nF capacitor.)
616
+ * Endstop Noise Threshold
617
+ *
618
+ * Enable if your probe or endstops falsely trigger due to noise.
619
+ *
620
+ * - Higher values may affect repeatability or accuracy of some bed probes.
621
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
622
+ * - This feature is not required for common micro-switches mounted on PCBs
623
+ *   based on the Makerbot design, which already have the 100nF capacitor.
624
+ *
625
+ * :[2,3,4,5,6,7]
629
  */
626
  */
630
-//#define ENDSTOP_NOISE_FILTER
627
+//#define ENDSTOP_NOISE_THRESHOLD 2
631
 
628
 
632
 //=============================================================================
629
 //=============================================================================
633
 //============================== Movement Settings ============================
630
 //============================== Movement Settings ============================
1204
 #define HOMING_FEEDRATE_XY (50*60)
1201
 #define HOMING_FEEDRATE_XY (50*60)
1205
 #define HOMING_FEEDRATE_Z  (4*60)
1202
 #define HOMING_FEEDRATE_Z  (4*60)
1206
 
1203
 
1204
+// Validate that endstops are triggered on homing moves
1205
+#define VALIDATE_HOMING_ENDSTOPS
1206
+
1207
 // @section calibrate
1207
 // @section calibrate
1208
 
1208
 
1209
 /**
1209
 /**

+ 14
- 14
Marlin/src/config/examples/adafruit/ST7565/Configuration.h View File

603
 //#define ENDSTOP_INTERRUPTS_FEATURE
603
 //#define ENDSTOP_INTERRUPTS_FEATURE
604
 
604
 
605
 /**
605
 /**
606
- * Endstop Noise Filter
607
- *
608
- * Enable this option if endstops falsely trigger due to noise.
609
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
610
- * will end up at a slightly different position on each G28. This will also
611
- * reduce accuracy of some bed probes.
612
- * For mechanical switches, the better approach to reduce noise is to install
613
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
614
- * essentially noise-proof without sacrificing accuracy.
615
- * This option also increases MCU load when endstops or the probe are enabled.
616
- * So this is not recommended. USE AT YOUR OWN RISK.
617
- * (This feature is not required for common micro-switches mounted on PCBs
618
- * based on the Makerbot design, since they already include the 100nF capacitor.)
606
+ * Endstop Noise Threshold
607
+ *
608
+ * Enable if your probe or endstops falsely trigger due to noise.
609
+ *
610
+ * - Higher values may affect repeatability or accuracy of some bed probes.
611
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
612
+ * - This feature is not required for common micro-switches mounted on PCBs
613
+ *   based on the Makerbot design, which already have the 100nF capacitor.
614
+ *
615
+ * :[2,3,4,5,6,7]
619
  */
616
  */
620
-//#define ENDSTOP_NOISE_FILTER
617
+//#define ENDSTOP_NOISE_THRESHOLD 2
621
 
618
 
622
 //=============================================================================
619
 //=============================================================================
623
 //============================== Movement Settings ============================
620
 //============================== Movement Settings ============================
1194
 #define HOMING_FEEDRATE_XY (50*60)
1191
 #define HOMING_FEEDRATE_XY (50*60)
1195
 #define HOMING_FEEDRATE_Z  (4*60)
1192
 #define HOMING_FEEDRATE_Z  (4*60)
1196
 
1193
 
1194
+// Validate that endstops are triggered on homing moves
1195
+#define VALIDATE_HOMING_ENDSTOPS
1196
+
1197
 // @section calibrate
1197
 // @section calibrate
1198
 
1198
 
1199
 /**
1199
 /**

+ 14
- 14
Marlin/src/config/examples/delta/Anycubic/Kossel/Configuration.h View File

711
 //#define ENDSTOP_INTERRUPTS_FEATURE
711
 //#define ENDSTOP_INTERRUPTS_FEATURE
712
 
712
 
713
 /**
713
 /**
714
- * Endstop Noise Filter
715
- *
716
- * Enable this option if endstops falsely trigger due to noise.
717
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
718
- * will end up at a slightly different position on each G28. This will also
719
- * reduce accuracy of some bed probes.
720
- * For mechanical switches, the better approach to reduce noise is to install
721
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
722
- * essentially noise-proof without sacrificing accuracy.
723
- * This option also increases MCU load when endstops or the probe are enabled.
724
- * So this is not recommended. USE AT YOUR OWN RISK.
725
- * (This feature is not required for common micro-switches mounted on PCBs
726
- * based on the Makerbot design, since they already include the 100nF capacitor.)
714
+ * Endstop Noise Threshold
715
+ *
716
+ * Enable if your probe or endstops falsely trigger due to noise.
717
+ *
718
+ * - Higher values may affect repeatability or accuracy of some bed probes.
719
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
720
+ * - This feature is not required for common micro-switches mounted on PCBs
721
+ *   based on the Makerbot design, which already have the 100nF capacitor.
722
+ *
723
+ * :[2,3,4,5,6,7]
727
  */
724
  */
728
-//#define ENDSTOP_NOISE_FILTER
725
+//#define ENDSTOP_NOISE_THRESHOLD 2
729
 
726
 
730
 //=============================================================================
727
 //=============================================================================
731
 //============================== Movement Settings ============================
728
 //============================== Movement Settings ============================
1371
 // Delta only homes to Z
1368
 // Delta only homes to Z
1372
 #define HOMING_FEEDRATE_Z  (100*60)
1369
 #define HOMING_FEEDRATE_Z  (100*60)
1373
 
1370
 
1371
+// Validate that endstops are triggered on homing moves
1372
+#define VALIDATE_HOMING_ENDSTOPS
1373
+
1374
 // @section calibrate
1374
 // @section calibrate
1375
 
1375
 
1376
 /**
1376
 /**

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

676
 //#define ENDSTOP_INTERRUPTS_FEATURE
676
 //#define ENDSTOP_INTERRUPTS_FEATURE
677
 
677
 
678
 /**
678
 /**
679
- * Endstop Noise Filter
680
- *
681
- * Enable this option if endstops falsely trigger due to noise.
682
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
683
- * will end up at a slightly different position on each G28. This will also
684
- * reduce accuracy of some bed probes.
685
- * For mechanical switches, the better approach to reduce noise is to install
686
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
687
- * essentially noise-proof without sacrificing accuracy.
688
- * This option also increases MCU load when endstops or the probe are enabled.
689
- * So this is not recommended. USE AT YOUR OWN RISK.
690
- * (This feature is not required for common micro-switches mounted on PCBs
691
- * based on the Makerbot design, since they already include the 100nF capacitor.)
679
+ * Endstop Noise Threshold
680
+ *
681
+ * Enable if your probe or endstops falsely trigger due to noise.
682
+ *
683
+ * - Higher values may affect repeatability or accuracy of some bed probes.
684
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
685
+ * - This feature is not required for common micro-switches mounted on PCBs
686
+ *   based on the Makerbot design, which already have the 100nF capacitor.
687
+ *
688
+ * :[2,3,4,5,6,7]
692
  */
689
  */
693
-//#define ENDSTOP_NOISE_FILTER
690
+//#define ENDSTOP_NOISE_THRESHOLD 2
694
 
691
 
695
 //=============================================================================
692
 //=============================================================================
696
 //============================== Movement Settings ============================
693
 //============================== Movement Settings ============================
1322
 // Delta only homes to Z
1319
 // Delta only homes to Z
1323
 #define HOMING_FEEDRATE_Z  (100*60)
1320
 #define HOMING_FEEDRATE_Z  (100*60)
1324
 
1321
 
1322
+// Validate that endstops are triggered on homing moves
1323
+#define VALIDATE_HOMING_ENDSTOPS
1324
+
1325
 // @section calibrate
1325
 // @section calibrate
1326
 
1326
 
1327
 /**
1327
 /**

+ 14
- 14
Marlin/src/config/examples/delta/FLSUN/kossel/Configuration.h View File

676
 //#define ENDSTOP_INTERRUPTS_FEATURE
676
 //#define ENDSTOP_INTERRUPTS_FEATURE
677
 
677
 
678
 /**
678
 /**
679
- * Endstop Noise Filter
680
- *
681
- * Enable this option if endstops falsely trigger due to noise.
682
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
683
- * will end up at a slightly different position on each G28. This will also
684
- * reduce accuracy of some bed probes.
685
- * For mechanical switches, the better approach to reduce noise is to install
686
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
687
- * essentially noise-proof without sacrificing accuracy.
688
- * This option also increases MCU load when endstops or the probe are enabled.
689
- * So this is not recommended. USE AT YOUR OWN RISK.
690
- * (This feature is not required for common micro-switches mounted on PCBs
691
- * based on the Makerbot design, since they already include the 100nF capacitor.)
679
+ * Endstop Noise Threshold
680
+ *
681
+ * Enable if your probe or endstops falsely trigger due to noise.
682
+ *
683
+ * - Higher values may affect repeatability or accuracy of some bed probes.
684
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
685
+ * - This feature is not required for common micro-switches mounted on PCBs
686
+ *   based on the Makerbot design, which already have the 100nF capacitor.
687
+ *
688
+ * :[2,3,4,5,6,7]
692
  */
689
  */
693
-//#define ENDSTOP_NOISE_FILTER
690
+//#define ENDSTOP_NOISE_THRESHOLD 2
694
 
691
 
695
 //=============================================================================
692
 //=============================================================================
696
 //============================== Movement Settings ============================
693
 //============================== Movement Settings ============================
1321
 // Delta only homes to Z
1318
 // Delta only homes to Z
1322
 #define HOMING_FEEDRATE_Z  (100*60)
1319
 #define HOMING_FEEDRATE_Z  (100*60)
1323
 
1320
 
1321
+// Validate that endstops are triggered on homing moves
1322
+#define VALIDATE_HOMING_ENDSTOPS
1323
+
1324
 // @section calibrate
1324
 // @section calibrate
1325
 
1325
 
1326
 /**
1326
 /**

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

676
 //#define ENDSTOP_INTERRUPTS_FEATURE
676
 //#define ENDSTOP_INTERRUPTS_FEATURE
677
 
677
 
678
 /**
678
 /**
679
- * Endstop Noise Filter
680
- *
681
- * Enable this option if endstops falsely trigger due to noise.
682
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
683
- * will end up at a slightly different position on each G28. This will also
684
- * reduce accuracy of some bed probes.
685
- * For mechanical switches, the better approach to reduce noise is to install
686
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
687
- * essentially noise-proof without sacrificing accuracy.
688
- * This option also increases MCU load when endstops or the probe are enabled.
689
- * So this is not recommended. USE AT YOUR OWN RISK.
690
- * (This feature is not required for common micro-switches mounted on PCBs
691
- * based on the Makerbot design, since they already include the 100nF capacitor.)
679
+ * Endstop Noise Threshold
680
+ *
681
+ * Enable if your probe or endstops falsely trigger due to noise.
682
+ *
683
+ * - Higher values may affect repeatability or accuracy of some bed probes.
684
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
685
+ * - This feature is not required for common micro-switches mounted on PCBs
686
+ *   based on the Makerbot design, which already have the 100nF capacitor.
687
+ *
688
+ * :[2,3,4,5,6,7]
692
  */
689
  */
693
-//#define ENDSTOP_NOISE_FILTER
690
+//#define ENDSTOP_NOISE_THRESHOLD 2
694
 
691
 
695
 //=============================================================================
692
 //=============================================================================
696
 //============================== Movement Settings ============================
693
 //============================== Movement Settings ============================
1321
 // Delta only homes to Z
1318
 // Delta only homes to Z
1322
 #define HOMING_FEEDRATE_Z  (45*60)
1319
 #define HOMING_FEEDRATE_Z  (45*60)
1323
 
1320
 
1321
+// Validate that endstops are triggered on homing moves
1322
+#define VALIDATE_HOMING_ENDSTOPS
1323
+
1324
 // @section calibrate
1324
 // @section calibrate
1325
 
1325
 
1326
 /**
1326
 /**

+ 15
- 15
Marlin/src/config/examples/delta/Hatchbox_Alpha/Configuration.h View File

681
 //#define ENDSTOP_INTERRUPTS_FEATURE
681
 //#define ENDSTOP_INTERRUPTS_FEATURE
682
 
682
 
683
 /**
683
 /**
684
- * Endstop Noise Filter
685
- *
686
- * Enable this option if endstops falsely trigger due to noise.
687
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
688
- * will end up at a slightly different position on each G28. This will also
689
- * reduce accuracy of some bed probes.
690
- * For mechanical switches, the better approach to reduce noise is to install
691
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
692
- * essentially noise-proof without sacrificing accuracy.
693
- * This option also increases MCU load when endstops or the probe are enabled.
694
- * So this is not recommended. USE AT YOUR OWN RISK.
695
- * (This feature is not required for common micro-switches mounted on PCBs
696
- * based on the Makerbot design, since they already include the 100nF capacitor.)
697
- */
698
-//#define ENDSTOP_NOISE_FILTER
684
+ * Endstop Noise Threshold
685
+ *
686
+ * Enable if your probe or endstops falsely trigger due to noise.
687
+ *
688
+ * - Higher values may affect repeatability or accuracy of some bed probes.
689
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
690
+ * - This feature is not required for common micro-switches mounted on PCBs
691
+ *   based on the Makerbot design, which already have the 100nF capacitor.
692
+ *
693
+ * :[2,3,4,5,6,7]
694
+ */
695
+//#define ENDSTOP_NOISE_THRESHOLD 2
699
 
696
 
700
 //=============================================================================
697
 //=============================================================================
701
 //============================== Movement Settings ============================
698
 //============================== Movement Settings ============================
1324
 // Delta only homes to Z
1321
 // Delta only homes to Z
1325
 #define HOMING_FEEDRATE_Z  (200*60)
1322
 #define HOMING_FEEDRATE_Z  (200*60)
1326
 
1323
 
1324
+// Validate that endstops are triggered on homing moves
1325
+#define VALIDATE_HOMING_ENDSTOPS
1326
+
1327
 // @section calibrate
1327
 // @section calibrate
1328
 
1328
 
1329
 /**
1329
 /**

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

666
 //#define ENDSTOP_INTERRUPTS_FEATURE
666
 //#define ENDSTOP_INTERRUPTS_FEATURE
667
 
667
 
668
 /**
668
 /**
669
- * Endstop Noise Filter
670
- *
671
- * Enable this option if endstops falsely trigger due to noise.
672
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
673
- * will end up at a slightly different position on each G28. This will also
674
- * reduce accuracy of some bed probes.
675
- * For mechanical switches, the better approach to reduce noise is to install
676
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
677
- * essentially noise-proof without sacrificing accuracy.
678
- * This option also increases MCU load when endstops or the probe are enabled.
679
- * So this is not recommended. USE AT YOUR OWN RISK.
680
- * (This feature is not required for common micro-switches mounted on PCBs
681
- * based on the Makerbot design, since they already include the 100nF capacitor.)
669
+ * Endstop Noise Threshold
670
+ *
671
+ * Enable if your probe or endstops falsely trigger due to noise.
672
+ *
673
+ * - Higher values may affect repeatability or accuracy of some bed probes.
674
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
675
+ * - This feature is not required for common micro-switches mounted on PCBs
676
+ *   based on the Makerbot design, which already have the 100nF capacitor.
677
+ *
678
+ * :[2,3,4,5,6,7]
682
  */
679
  */
683
-//#define ENDSTOP_NOISE_FILTER
680
+//#define ENDSTOP_NOISE_THRESHOLD 2
684
 
681
 
685
 //=============================================================================
682
 //=============================================================================
686
 //============================== Movement Settings ============================
683
 //============================== Movement Settings ============================
1309
 // Delta only homes to Z
1306
 // Delta only homes to Z
1310
 #define HOMING_FEEDRATE_Z  (200*60)
1307
 #define HOMING_FEEDRATE_Z  (200*60)
1311
 
1308
 
1309
+// Validate that endstops are triggered on homing moves
1310
+#define VALIDATE_HOMING_ENDSTOPS
1311
+
1312
 // @section calibrate
1312
 // @section calibrate
1313
 
1313
 
1314
 /**
1314
 /**

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

666
 //#define ENDSTOP_INTERRUPTS_FEATURE
666
 //#define ENDSTOP_INTERRUPTS_FEATURE
667
 
667
 
668
 /**
668
 /**
669
- * Endstop Noise Filter
670
- *
671
- * Enable this option if endstops falsely trigger due to noise.
672
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
673
- * will end up at a slightly different position on each G28. This will also
674
- * reduce accuracy of some bed probes.
675
- * For mechanical switches, the better approach to reduce noise is to install
676
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
677
- * essentially noise-proof without sacrificing accuracy.
678
- * This option also increases MCU load when endstops or the probe are enabled.
679
- * So this is not recommended. USE AT YOUR OWN RISK.
680
- * (This feature is not required for common micro-switches mounted on PCBs
681
- * based on the Makerbot design, since they already include the 100nF capacitor.)
669
+ * Endstop Noise Threshold
670
+ *
671
+ * Enable if your probe or endstops falsely trigger due to noise.
672
+ *
673
+ * - Higher values may affect repeatability or accuracy of some bed probes.
674
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
675
+ * - This feature is not required for common micro-switches mounted on PCBs
676
+ *   based on the Makerbot design, which already have the 100nF capacitor.
677
+ *
678
+ * :[2,3,4,5,6,7]
682
  */
679
  */
683
-//#define ENDSTOP_NOISE_FILTER
680
+//#define ENDSTOP_NOISE_THRESHOLD 2
684
 
681
 
685
 //=============================================================================
682
 //=============================================================================
686
 //============================== Movement Settings ============================
683
 //============================== Movement Settings ============================
1311
 // Delta only homes to Z
1308
 // Delta only homes to Z
1312
 #define HOMING_FEEDRATE_Z  (200*60)
1309
 #define HOMING_FEEDRATE_Z  (200*60)
1313
 
1310
 
1311
+// Validate that endstops are triggered on homing moves
1312
+#define VALIDATE_HOMING_ENDSTOPS
1313
+
1314
 // @section calibrate
1314
 // @section calibrate
1315
 
1315
 
1316
 /**
1316
 /**

+ 15
- 15
Marlin/src/config/examples/delta/kossel_pro/Configuration.h View File

652
 //#define ENDSTOP_INTERRUPTS_FEATURE
652
 //#define ENDSTOP_INTERRUPTS_FEATURE
653
 
653
 
654
 /**
654
 /**
655
- * Endstop Noise Filter
656
- *
657
- * Enable this option if endstops falsely trigger due to noise.
658
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
659
- * will end up at a slightly different position on each G28. This will also
660
- * reduce accuracy of some bed probes.
661
- * For mechanical switches, the better approach to reduce noise is to install
662
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
663
- * essentially noise-proof without sacrificing accuracy.
664
- * This option also increases MCU load when endstops or the probe are enabled.
665
- * So this is not recommended. USE AT YOUR OWN RISK.
666
- * (This feature is not required for common micro-switches mounted on PCBs
667
- * based on the Makerbot design, since they already include the 100nF capacitor.)
668
- */
669
-//#define ENDSTOP_NOISE_FILTER
655
+ * Endstop Noise Threshold
656
+ *
657
+ * Enable if your probe or endstops falsely trigger due to noise.
658
+ *
659
+ * - Higher values may affect repeatability or accuracy of some bed probes.
660
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
661
+ * - This feature is not required for common micro-switches mounted on PCBs
662
+ *   based on the Makerbot design, which already have the 100nF capacitor.
663
+ *
664
+ * :[2,3,4,5,6,7]
665
+ */
666
+//#define ENDSTOP_NOISE_THRESHOLD 2
670
 
667
 
671
 //=============================================================================
668
 //=============================================================================
672
 //============================== Movement Settings ============================
669
 //============================== Movement Settings ============================
1312
 // Delta only homes to Z
1309
 // Delta only homes to Z
1313
 #define HOMING_FEEDRATE_Z  (200*60)
1310
 #define HOMING_FEEDRATE_Z  (200*60)
1314
 
1311
 
1312
+// Validate that endstops are triggered on homing moves
1313
+#define VALIDATE_HOMING_ENDSTOPS
1314
+
1315
 // @section calibrate
1315
 // @section calibrate
1316
 
1316
 
1317
 /**
1317
 /**

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

670
 //#define ENDSTOP_INTERRUPTS_FEATURE
670
 //#define ENDSTOP_INTERRUPTS_FEATURE
671
 
671
 
672
 /**
672
 /**
673
- * Endstop Noise Filter
674
- *
675
- * Enable this option if endstops falsely trigger due to noise.
676
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
677
- * will end up at a slightly different position on each G28. This will also
678
- * reduce accuracy of some bed probes.
679
- * For mechanical switches, the better approach to reduce noise is to install
680
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
681
- * essentially noise-proof without sacrificing accuracy.
682
- * This option also increases MCU load when endstops or the probe are enabled.
683
- * So this is not recommended. USE AT YOUR OWN RISK.
684
- * (This feature is not required for common micro-switches mounted on PCBs
685
- * based on the Makerbot design, since they already include the 100nF capacitor.)
673
+ * Endstop Noise Threshold
674
+ *
675
+ * Enable if your probe or endstops falsely trigger due to noise.
676
+ *
677
+ * - Higher values may affect repeatability or accuracy of some bed probes.
678
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
679
+ * - This feature is not required for common micro-switches mounted on PCBs
680
+ *   based on the Makerbot design, which already have the 100nF capacitor.
681
+ *
682
+ * :[2,3,4,5,6,7]
686
  */
683
  */
687
-//#define ENDSTOP_NOISE_FILTER
684
+//#define ENDSTOP_NOISE_THRESHOLD 2
688
 
685
 
689
 //=============================================================================
686
 //=============================================================================
690
 //============================== Movement Settings ============================
687
 //============================== Movement Settings ============================
1312
 // Delta only homes to Z
1309
 // Delta only homes to Z
1313
 #define HOMING_FEEDRATE_Z  (60*60)
1310
 #define HOMING_FEEDRATE_Z  (60*60)
1314
 
1311
 
1312
+// Validate that endstops are triggered on homing moves
1313
+#define VALIDATE_HOMING_ENDSTOPS
1314
+
1315
 // @section calibrate
1315
 // @section calibrate
1316
 
1316
 
1317
 /**
1317
 /**

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

616
 //#define ENDSTOP_INTERRUPTS_FEATURE
616
 //#define ENDSTOP_INTERRUPTS_FEATURE
617
 
617
 
618
 /**
618
 /**
619
- * Endstop Noise Filter
620
- *
621
- * Enable this option if endstops falsely trigger due to noise.
622
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
623
- * will end up at a slightly different position on each G28. This will also
624
- * reduce accuracy of some bed probes.
625
- * For mechanical switches, the better approach to reduce noise is to install
626
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
627
- * essentially noise-proof without sacrificing accuracy.
628
- * This option also increases MCU load when endstops or the probe are enabled.
629
- * So this is not recommended. USE AT YOUR OWN RISK.
630
- * (This feature is not required for common micro-switches mounted on PCBs
631
- * based on the Makerbot design, since they already include the 100nF capacitor.)
619
+ * Endstop Noise Threshold
620
+ *
621
+ * Enable if your probe or endstops falsely trigger due to noise.
622
+ *
623
+ * - Higher values may affect repeatability or accuracy of some bed probes.
624
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
625
+ * - This feature is not required for common micro-switches mounted on PCBs
626
+ *   based on the Makerbot design, which already have the 100nF capacitor.
627
+ *
628
+ * :[2,3,4,5,6,7]
632
  */
629
  */
633
-//#define ENDSTOP_NOISE_FILTER
630
+//#define ENDSTOP_NOISE_THRESHOLD 2
634
 
631
 
635
 //=============================================================================
632
 //=============================================================================
636
 //============================== Movement Settings ============================
633
 //============================== Movement Settings ============================
1208
 #define HOMING_FEEDRATE_XY (60*60)
1205
 #define HOMING_FEEDRATE_XY (60*60)
1209
 #define HOMING_FEEDRATE_Z  (14*60)
1206
 #define HOMING_FEEDRATE_Z  (14*60)
1210
 
1207
 
1208
+// Validate that endstops are triggered on homing moves
1209
+#define VALIDATE_HOMING_ENDSTOPS
1210
+
1211
 // @section calibrate
1211
 // @section calibrate
1212
 
1212
 
1213
 /**
1213
 /**

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

606
 //#define ENDSTOP_INTERRUPTS_FEATURE
606
 //#define ENDSTOP_INTERRUPTS_FEATURE
607
 
607
 
608
 /**
608
 /**
609
- * Endstop Noise Filter
610
- *
611
- * Enable this option if endstops falsely trigger due to noise.
612
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
613
- * will end up at a slightly different position on each G28. This will also
614
- * reduce accuracy of some bed probes.
615
- * For mechanical switches, the better approach to reduce noise is to install
616
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
617
- * essentially noise-proof without sacrificing accuracy.
618
- * This option also increases MCU load when endstops or the probe are enabled.
619
- * So this is not recommended. USE AT YOUR OWN RISK.
620
- * (This feature is not required for common micro-switches mounted on PCBs
621
- * based on the Makerbot design, since they already include the 100nF capacitor.)
609
+ * Endstop Noise Threshold
610
+ *
611
+ * Enable if your probe or endstops falsely trigger due to noise.
612
+ *
613
+ * - Higher values may affect repeatability or accuracy of some bed probes.
614
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
615
+ * - This feature is not required for common micro-switches mounted on PCBs
616
+ *   based on the Makerbot design, which already have the 100nF capacitor.
617
+ *
618
+ * :[2,3,4,5,6,7]
622
  */
619
  */
623
-//#define ENDSTOP_NOISE_FILTER
620
+//#define ENDSTOP_NOISE_THRESHOLD 2
624
 
621
 
625
 //=============================================================================
622
 //=============================================================================
626
 //============================== Movement Settings ============================
623
 //============================== Movement Settings ============================
1197
 #define HOMING_FEEDRATE_XY 1500
1194
 #define HOMING_FEEDRATE_XY 1500
1198
 #define HOMING_FEEDRATE_Z  (2*60)
1195
 #define HOMING_FEEDRATE_Z  (2*60)
1199
 
1196
 
1197
+// Validate that endstops are triggered on homing moves
1198
+#define VALIDATE_HOMING_ENDSTOPS
1199
+
1200
 // @section calibrate
1200
 // @section calibrate
1201
 
1201
 
1202
 /**
1202
 /**

+ 14
- 14
Marlin/src/config/examples/stm32f103ret6/Configuration.h View File

605
 //#define ENDSTOP_INTERRUPTS_FEATURE
605
 //#define ENDSTOP_INTERRUPTS_FEATURE
606
 
606
 
607
 /**
607
 /**
608
- * Endstop Noise Filter
609
- *
610
- * Enable this option if endstops falsely trigger due to noise.
611
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
612
- * will end up at a slightly different position on each G28. This will also
613
- * reduce accuracy of some bed probes.
614
- * For mechanical switches, the better approach to reduce noise is to install
615
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
616
- * essentially noise-proof without sacrificing accuracy.
617
- * This option also increases MCU load when endstops or the probe are enabled.
618
- * So this is not recommended. USE AT YOUR OWN RISK.
619
- * (This feature is not required for common micro-switches mounted on PCBs
620
- * based on the Makerbot design, since they already include the 100nF capacitor.)
608
+ * Endstop Noise Threshold
609
+ *
610
+ * Enable if your probe or endstops falsely trigger due to noise.
611
+ *
612
+ * - Higher values may affect repeatability or accuracy of some bed probes.
613
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
614
+ * - This feature is not required for common micro-switches mounted on PCBs
615
+ *   based on the Makerbot design, which already have the 100nF capacitor.
616
+ *
617
+ * :[2,3,4,5,6,7]
621
  */
618
  */
622
-//#define ENDSTOP_NOISE_FILTER
619
+//#define ENDSTOP_NOISE_THRESHOLD 2
623
 
620
 
624
 //=============================================================================
621
 //=============================================================================
625
 //============================== Movement Settings ============================
622
 //============================== Movement Settings ============================
1196
 #define HOMING_FEEDRATE_XY (50*60)
1193
 #define HOMING_FEEDRATE_XY (50*60)
1197
 #define HOMING_FEEDRATE_Z  (4*60)
1194
 #define HOMING_FEEDRATE_Z  (4*60)
1198
 
1195
 
1196
+// Validate that endstops are triggered on homing moves
1197
+#define VALIDATE_HOMING_ENDSTOPS
1198
+
1199
 // @section calibrate
1199
 // @section calibrate
1200
 
1200
 
1201
 /**
1201
 /**

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

592
 //#define ENDSTOP_INTERRUPTS_FEATURE
592
 //#define ENDSTOP_INTERRUPTS_FEATURE
593
 
593
 
594
 /**
594
 /**
595
- * Endstop Noise Filter
596
- *
597
- * Enable this option if endstops falsely trigger due to noise.
598
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
599
- * will end up at a slightly different position on each G28. This will also
600
- * reduce accuracy of some bed probes.
601
- * For mechanical switches, the better approach to reduce noise is to install
602
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
603
- * essentially noise-proof without sacrificing accuracy.
604
- * This option also increases MCU load when endstops or the probe are enabled.
605
- * So this is not recommended. USE AT YOUR OWN RISK.
606
- * (This feature is not required for common micro-switches mounted on PCBs
607
- * based on the Makerbot design, since they already include the 100nF capacitor.)
595
+ * Endstop Noise Threshold
596
+ *
597
+ * Enable if your probe or endstops falsely trigger due to noise.
598
+ *
599
+ * - Higher values may affect repeatability or accuracy of some bed probes.
600
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
601
+ * - This feature is not required for common micro-switches mounted on PCBs
602
+ *   based on the Makerbot design, which already have the 100nF capacitor.
603
+ *
604
+ * :[2,3,4,5,6,7]
608
  */
605
  */
609
-//#define ENDSTOP_NOISE_FILTER
606
+//#define ENDSTOP_NOISE_THRESHOLD 2
610
 
607
 
611
 //=============================================================================
608
 //=============================================================================
612
 //============================== Movement Settings ============================
609
 //============================== Movement Settings ============================
1189
 #define HOMING_FEEDRATE_XY (50*60)
1186
 #define HOMING_FEEDRATE_XY (50*60)
1190
 #define HOMING_FEEDRATE_Z  (4*60)
1187
 #define HOMING_FEEDRATE_Z  (4*60)
1191
 
1188
 
1189
+// Validate that endstops are triggered on homing moves
1190
+#define VALIDATE_HOMING_ENDSTOPS
1191
+
1192
 // @section calibrate
1192
 // @section calibrate
1193
 
1193
 
1194
 /**
1194
 /**

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

608
 //#define ENDSTOP_INTERRUPTS_FEATURE
608
 //#define ENDSTOP_INTERRUPTS_FEATURE
609
 
609
 
610
 /**
610
 /**
611
- * Endstop Noise Filter
612
- *
613
- * Enable this option if endstops falsely trigger due to noise.
614
- * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing
615
- * will end up at a slightly different position on each G28. This will also
616
- * reduce accuracy of some bed probes.
617
- * For mechanical switches, the better approach to reduce noise is to install
618
- * a 100 nanofarads ceramic capacitor in parallel with the switch, making it
619
- * essentially noise-proof without sacrificing accuracy.
620
- * This option also increases MCU load when endstops or the probe are enabled.
621
- * So this is not recommended. USE AT YOUR OWN RISK.
622
- * (This feature is not required for common micro-switches mounted on PCBs
623
- * based on the Makerbot design, since they already include the 100nF capacitor.)
611
+ * Endstop Noise Threshold
612
+ *
613
+ * Enable if your probe or endstops falsely trigger due to noise.
614
+ *
615
+ * - Higher values may affect repeatability or accuracy of some bed probes.
616
+ * - To fix noise install a 100nF ceramic capacitor inline with the switch.
617
+ * - This feature is not required for common micro-switches mounted on PCBs
618
+ *   based on the Makerbot design, which already have the 100nF capacitor.
619
+ *
620
+ * :[2,3,4,5,6,7]
624
  */
621
  */
625
-//#define ENDSTOP_NOISE_FILTER
622
+//#define ENDSTOP_NOISE_THRESHOLD 2
626
 
623
 
627
 //=============================================================================
624
 //=============================================================================
628
 //============================== Movement Settings ============================
625
 //============================== Movement Settings ============================
1199
 #define HOMING_FEEDRATE_XY (50*60)
1196
 #define HOMING_FEEDRATE_XY (50*60)
1200
 #define HOMING_FEEDRATE_Z  (4*60)
1197
 #define HOMING_FEEDRATE_Z  (4*60)
1201
 
1198
 
1199
+// Validate that endstops are triggered on homing moves
1200
+#define VALIDATE_HOMING_ENDSTOPS
1201
+
1202
 // @section calibrate
1202
 // @section calibrate
1203
 
1203
 
1204
 /**
1204
 /**

+ 8
- 2
Marlin/src/inc/SanityCheck.h View File

307
   #error "MAX7219_DEBUG_STEPPER_TAIL is now MAX7219_DEBUG_PLANNER_TAIL. Please update your configuration."
307
   #error "MAX7219_DEBUG_STEPPER_TAIL is now MAX7219_DEBUG_PLANNER_TAIL. Please update your configuration."
308
 #elif defined(MAX7219_DEBUG_STEPPER_QUEUE)
308
 #elif defined(MAX7219_DEBUG_STEPPER_QUEUE)
309
   #error "MAX7219_DEBUG_STEPPER_QUEUE is now MAX7219_DEBUG_PLANNER_QUEUE. Please update your configuration."
309
   #error "MAX7219_DEBUG_STEPPER_QUEUE is now MAX7219_DEBUG_PLANNER_QUEUE. Please update your configuration."
310
+#elif defined(ENDSTOP_NOISE_FILTER)
311
+  #error "ENDSTOP_NOISE_FILTER is now ENDSTOP_NOISE_THRESHOLD [2-7]. Please update your configuration."
310
 #endif
312
 #endif
311
 
313
 
312
 #define BOARD_MKS_13     -47
314
 #define BOARD_MKS_13     -47
1505
   #endif
1507
   #endif
1506
 #endif
1508
 #endif
1507
 
1509
 
1510
+#if defined(ENDSTOP_NOISE_THRESHOLD) && !WITHIN(ENDSTOP_NOISE_THRESHOLD, 2, 7)
1511
+  #error "ENDSTOP_NOISE_THRESHOLD must be an integer from 2 to 7."
1512
+#endif
1513
+
1508
 /**
1514
 /**
1509
  * emergency-command parser
1515
  * emergency-command parser
1510
  */
1516
  */
1726
     #error "SENSORLESS_HOMING requires Z_MIN_ENDSTOP_INVERTING and ENDSTOPPULLUP_ZMIN when homing to Z_MIN."
1732
     #error "SENSORLESS_HOMING requires Z_MIN_ENDSTOP_INVERTING and ENDSTOPPULLUP_ZMIN when homing to Z_MIN."
1727
   #elif Z_SENSORLESS && Z_HOME_DIR ==  1 && (DISABLED(Z_MAX_ENDSTOP_INVERTING) || DISABLED(ENDSTOPPULLUP_ZMAX))
1733
   #elif Z_SENSORLESS && Z_HOME_DIR ==  1 && (DISABLED(Z_MAX_ENDSTOP_INVERTING) || DISABLED(ENDSTOPPULLUP_ZMAX))
1728
     #error "SENSORLESS_HOMING requires Z_MAX_ENDSTOP_INVERTING and ENDSTOPPULLUP_ZMAX when homing to Z_MAX."
1734
     #error "SENSORLESS_HOMING requires Z_MAX_ENDSTOP_INVERTING and ENDSTOPPULLUP_ZMAX when homing to Z_MAX."
1729
-  #elif ENABLED(ENDSTOP_NOISE_FILTER)
1730
-    #error "SENSORLESS_HOMING is incompatible with ENDSTOP_NOISE_FILTER."
1735
+  #elif ENDSTOP_NOISE_THRESHOLD
1736
+    #error "SENSORLESS_HOMING is incompatible with ENDSTOP_NOISE_THRESHOLD."
1731
   #endif
1737
   #endif
1732
 #endif
1738
 #endif
1733
 
1739
 

+ 5
- 4
Marlin/src/module/endstops.cpp View File

45
 
45
 
46
 Endstops::esbits_t Endstops::live_state = 0;
46
 Endstops::esbits_t Endstops::live_state = 0;
47
 
47
 
48
-#if ENABLED(ENDSTOP_NOISE_FILTER)
48
+#if ENDSTOP_NOISE_THRESHOLD
49
   Endstops::esbits_t Endstops::validated_live_state;
49
   Endstops::esbits_t Endstops::validated_live_state;
50
   uint8_t Endstops::endstop_poll_count;
50
   uint8_t Endstops::endstop_poll_count;
51
 #endif
51
 #endif
479
 // Check endstops - Could be called from Temperature ISR!
479
 // Check endstops - Could be called from Temperature ISR!
480
 void Endstops::update() {
480
 void Endstops::update() {
481
 
481
 
482
-  #if DISABLED(ENDSTOP_NOISE_FILTER)
482
+  #if !ENDSTOP_NOISE_THRESHOLD
483
     if (!abort_enabled()) return;
483
     if (!abort_enabled()) return;
484
   #endif
484
   #endif
485
 
485
 
622
     #endif
622
     #endif
623
   #endif
623
   #endif
624
 
624
 
625
-  #if ENABLED(ENDSTOP_NOISE_FILTER)
625
+  #if ENDSTOP_NOISE_THRESHOLD
626
+
626
     /**
627
     /**
627
      * Filtering out noise on endstops requires a delayed decision. Let's assume, due to noise,
628
      * Filtering out noise on endstops requires a delayed decision. Let's assume, due to noise,
628
      * that 50% of endstop signal samples are good and 50% are bad (assuming normal distribution
629
      * that 50% of endstop signal samples are good and 50% are bad (assuming normal distribution
635
      */
636
      */
636
     static esbits_t old_live_state;
637
     static esbits_t old_live_state;
637
     if (old_live_state != live_state) {
638
     if (old_live_state != live_state) {
638
-      endstop_poll_count = 7;
639
+      endstop_poll_count = ENDSTOP_NOISE_THRESHOLD;
639
       old_live_state = live_state;
640
       old_live_state = live_state;
640
     }
641
     }
641
     else if (endstop_poll_count && !--endstop_poll_count)
642
     else if (endstop_poll_count && !--endstop_poll_count)

+ 2
- 4
Marlin/src/module/endstops.h View File

30
 #include "../inc/MarlinConfig.h"
30
 #include "../inc/MarlinConfig.h"
31
 #include <stdint.h>
31
 #include <stdint.h>
32
 
32
 
33
-#define VALIDATE_HOMING_ENDSTOPS
34
-
35
 enum EndstopEnum : char {
33
 enum EndstopEnum : char {
36
   X_MIN,
34
   X_MIN,
37
   Y_MIN,
35
   Y_MIN,
77
     static esbits_t live_state;
75
     static esbits_t live_state;
78
     static volatile uint8_t hit_state;      // Use X_MIN, Y_MIN, Z_MIN and Z_MIN_PROBE as BIT index
76
     static volatile uint8_t hit_state;      // Use X_MIN, Y_MIN, Z_MIN and Z_MIN_PROBE as BIT index
79
 
77
 
80
-    #if ENABLED(ENDSTOP_NOISE_FILTER)
78
+    #if ENDSTOP_NOISE_THRESHOLD
81
       static esbits_t validated_live_state;
79
       static esbits_t validated_live_state;
82
       static uint8_t endstop_poll_count;    // Countdown from threshold for polling
80
       static uint8_t endstop_poll_count;    // Countdown from threshold for polling
83
     #endif
81
     #endif
123
      */
121
      */
124
     FORCE_INLINE static esbits_t state() {
122
     FORCE_INLINE static esbits_t state() {
125
       return
123
       return
126
-        #if ENABLED(ENDSTOP_NOISE_FILTER)
124
+        #if ENDSTOP_NOISE_THRESHOLD
127
           validated_live_state
125
           validated_live_state
128
         #else
126
         #else
129
           live_state
127
           live_state

+ 11
- 0
buildroot/share/tests/DUE_tests View File

21
 opt_add_adv Z2_MAX_PIN 2
21
 opt_add_adv Z2_MAX_PIN 2
22
 opt_add_adv Z3_MAX_PIN 3
22
 opt_add_adv Z3_MAX_PIN 3
23
 exec_test $1 $2 "RADDS Z_TRIPLE"
23
 exec_test $1 $2 "RADDS Z_TRIPLE"
24
+
25
+#
26
+# Test SWITCHING_EXTRUDER
27
+#
28
+restore_configs
29
+opt_set MOTHERBOARD BOARD_RAMPS4DUE_EEF
30
+opt_set EXTRUDERS 2
31
+opt_enable NUM_SERVOS
32
+opt_set NUM_SERVOS 1
33
+opt_enable SWITCHING_EXTRUDER ULTIMAKERCONTROLLER
34
+exec_test $1 $2 "SWITCHING_EXTRUDER"

+ 1
- 11
buildroot/share/tests/megaatmega2560_tests View File

121
 #opt_set LCD_FEEDBACK_FREQUENCY_HZ 100
121
 #opt_set LCD_FEEDBACK_FREQUENCY_HZ 100
122
 #opt_enable BQ_LCD_SMART_CONTROLLER SPEAKER
122
 #opt_enable BQ_LCD_SMART_CONTROLLER SPEAKER
123
 #
123
 #
124
-# Test SWITCHING_EXTRUDER
125
-#
126
-restore_configs
127
-opt_set MOTHERBOARD BOARD_RUMBA
128
-opt_set EXTRUDERS 2
129
-opt_enable NUM_SERVOS
130
-opt_set NUM_SERVOS 1
131
-opt_enable SWITCHING_EXTRUDER ULTIMAKERCONTROLLER
132
-exec_test $1 $2 "SWITCHING_EXTRUDER"
133
-#
134
 # Enable COREXY
124
 # Enable COREXY
135
 #
125
 #
136
 #restore_configs
126
 #restore_configs
152
 opt_enable_adv MENU_ADDAUTOSTART SDCARD_SORT_ALPHA
142
 opt_enable_adv MENU_ADDAUTOSTART SDCARD_SORT_ALPHA
153
 opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER BABYSTEPPING DAC_MOTOR_CURRENT_DEFAULT
143
 opt_enable REPRAP_DISCOUNT_SMART_CONTROLLER BABYSTEPPING DAC_MOTOR_CURRENT_DEFAULT
154
 opt_enable FILAMENT_LCD_DISPLAY FILAMENT_WIDTH_SENSOR
144
 opt_enable FILAMENT_LCD_DISPLAY FILAMENT_WIDTH_SENSOR
155
-opt_enable ENDSTOP_INTERRUPTS_FEATURE FAN_SOFT_PWM SDSUPPORT
145
+opt_enable ENDSTOP_INTERRUPTS_FEATURE ENDSTOP_NOISE_THRESHOLD FAN_SOFT_PWM SDSUPPORT
156
 opt_enable USE_XMAX_PLUG
146
 opt_enable USE_XMAX_PLUG
157
 opt_enable SWITCHING_TOOLHEAD NUM_SERVOS DEBUG_LEVELING_FEATURE
147
 opt_enable SWITCHING_TOOLHEAD NUM_SERVOS DEBUG_LEVELING_FEATURE
158
 opt_set EXTRUDERS 2
148
 opt_set EXTRUDERS 2

Loading…
Cancel
Save