From bf8f7133b43cbb98b4a9515e43e1a1b7d71e04ea Mon Sep 17 00:00:00 2001 From: TheJoshW <46292721+TheJoshW@users.noreply.github.com> Date: Mon, 15 Mar 2021 12:36:19 +1100 Subject: filament_motion_sensor: Add filament_motion_sensor (#3857) Add functionality to support a Filament Motion Sensor for detecting extruder jams as well as runouts. Works by an encoder toggling the switch_pin 0/1 as the filament is pulled through the sensor. Signed-off-by: Joshua Wherrett --- docs/Config_Reference.md | 28 ++++++++++++++++++++++++++++ docs/G-Codes.md | 2 +- 2 files changed, 29 insertions(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/Config_Reference.md b/docs/Config_Reference.md index c1c09cb7..b27da60b 100644 --- a/docs/Config_Reference.md +++ b/docs/Config_Reference.md @@ -3461,6 +3461,34 @@ information. # provided. ``` +## [filament_motion_sensor] + +Filament Motion Sensor. Support for filament insert and runout +detection using an encoder that toggles the output pin during filament +movement through the sensor. + +See the [command reference](G-Codes.md#filament-sensor) for more +information. + +``` +[filament_motion_sensor my_sensor] +detection_length: 7.0 +# The minimum length of filament pulled through the sensor to trigger +# a state change on the switch_pin +# Default is 7 mm. +extruder: +# The name of the extruder section this sensor is associated with. +# This parameter must be provided. +switch_pin: +#pause_on_runout: +#runout_gcode: +#insert_gcode: +#event_delay: +#pause_delay: +# See the "filament_switch_sensor" section for a description of the +# above parameters. +``` + ## [tsl1401cl_filament_width_sensor] TSLl401CL Based Filament Width Sensor. See the diff --git a/docs/G-Codes.md b/docs/G-Codes.md index 772815fc..00ecdad8 100644 --- a/docs/G-Codes.md +++ b/docs/G-Codes.md @@ -574,7 +574,7 @@ enabled: ## Filament Sensor The following command is available when the -[filament_switch_sensor config section](Config_Reference.md#filament_switch_sensor) +[filament_switch_sensor or filament_motion_sensor config section](Config_Reference.md#filament_switch_sensor) is enabled. - `QUERY_FILAMENT_SENSOR SENSOR=`: Queries the current status of the filament sensor. The data displayed on the terminal -- cgit v1.2.3-70-g09d2