[2.0.x] Add endstop noise filter (#10796)
This commit is contained in:
		| @@ -553,6 +553,23 @@ | ||||
| // This will remove the need to poll the interrupt pins, saving many CPU cycles. | ||||
| //#define ENDSTOP_INTERRUPTS_FEATURE | ||||
|  | ||||
| /** | ||||
|  * Endstop Noise Filter | ||||
|  * | ||||
|  * Enable this option if endstops falsely trigger due to noise. | ||||
|  * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing | ||||
|  * will end up at a slightly different position on each G28. This will also | ||||
|  * reduce accuracy of some bed probes. | ||||
|  * For mechanical switches, the better approach to reduce noise is to install | ||||
|  * a 100 nanofarads ceramic capacitor in parallel with the switch, making it | ||||
|  * essentially noise-proof without sacrificing accuracy. | ||||
|  * This option also increases MCU load when endstops or the probe are enabled. | ||||
|  * So this is not recommended. USE AT YOUR OWN RISK. | ||||
|  * (This feature is not required for common micro-switches mounted on PCBs | ||||
|  * based on the Makerbot design, since they already include the 100nF capacitor.) | ||||
|  */ | ||||
| //#define ENDSTOP_NOISE_FILTER | ||||
|  | ||||
| //============================================================================= | ||||
| //============================== Movement Settings ============================ | ||||
| //============================================================================= | ||||
|   | ||||
| @@ -553,6 +553,23 @@ | ||||
| // This will remove the need to poll the interrupt pins, saving many CPU cycles. | ||||
| //#define ENDSTOP_INTERRUPTS_FEATURE | ||||
|  | ||||
| /** | ||||
|  * Endstop Noise Filter | ||||
|  * | ||||
|  * Enable this option if endstops falsely trigger due to noise. | ||||
|  * NOTE: Enabling this feature means adds an error of +/-0.2mm, so homing | ||||
|  * will end up at a slightly different position on each G28. This will also | ||||
|  * reduce accuracy of some bed probes. | ||||
|  * For mechanical switches, the better approach to reduce noise is to install | ||||
|  * a 100 nanofarads ceramic capacitor in parallel with the switch, making it | ||||
|  * essentially noise-proof without sacrificing accuracy. | ||||
|  * This option also increases MCU load when endstops or the probe are enabled. | ||||
|  * So this is not recommended. USE AT YOUR OWN RISK. | ||||
|  * (This feature is not required for common micro-switches mounted on PCBs | ||||
|  * based on the Makerbot design, since they already include the 100nF capacitor.) | ||||
|  */ | ||||
| //#define ENDSTOP_NOISE_FILTER | ||||
|  | ||||
| //============================================================================= | ||||
| //============================== Movement Settings ============================ | ||||
| //============================================================================= | ||||
|   | ||||
		Reference in New Issue
	
	Block a user