[filament_motion_sensor filament]
detection_length: 25.0 #The minimum length of filament pulled through the sensor to trigger a state change on the switch_pin.
extruder: extruder #The name of the extruder section this sensor is associated with.
switch_pin: ^PG12 #The pin on which the switch is connected.
pause_on_runout: True
runout_gcode:
M117 Filament out
_RUNOUT_INFO
[gcode_macro _RUNOUT_INFO]
gcode:
{% if 'filament_motion_sensor filament' in printer.configfile.settings %}
{% set enable = printer['filament_motion_sensor filament'].enabled %}
{% set detect = printer['filament_motion_sensor filament'].filament_detected %}
{action_respond_info("RUNOUT Motion Sensor:
Enabled: %s
Detect Filament: %s" % (enable|lower,detect|lower))}
{% endif %}
Cool. Thanks.I used wiring harness that comes with the sensor to connect it to BTT Octopus using pin PG12. Here is my config:
Code:[filament_motion_sensor filament] detection_length: 25.0 #The minimum length of filament pulled through the sensor to trigger a state change on the switch_pin. extruder: extruder #The name of the extruder section this sensor is associated with. switch_pin: ^PG12 #The pin on which the switch is connected. pause_on_runout: True runout_gcode: M117 Filament out _RUNOUT_INFO [gcode_macro _RUNOUT_INFO] gcode: {% if 'filament_motion_sensor filament' in printer.configfile.settings %} {% set enable = printer['filament_motion_sensor filament'].enabled %} {% set detect = printer['filament_motion_sensor filament'].filament_detected %} {action_respond_info("RUNOUT Motion Sensor: Enabled: %s Detect Filament: %s" % (enable|lower,detect|lower))} {% endif %}
Is your 25.0 detection length a number from experience with the sensor? The reason for asking, if I am not mistaken, BTT suggest 7mm. I normally end up at about 10mm to avoid error triggers.I used wiring harness that comes with the sensor to connect it to BTT Octopus using pin PG12. Here is my config:
Code:[filament_motion_sensor filament] detection_length: 25.0 #The minimum length of filament pulled through the sensor to trigger a state change on the switch_pin. extruder: extruder #The name of the extruder section this sensor is associated with. switch_pin: ^PG12 #The pin on which the switch is connected. pause_on_runout: True runout_gcode: M117 Filament out _RUNOUT_INFO [gcode_macro _RUNOUT_INFO] gcode: {% if 'filament_motion_sensor filament' in printer.configfile.settings %} {% set enable = printer['filament_motion_sensor filament'].enabled %} {% set detect = printer['filament_motion_sensor filament'].filament_detected %} {action_respond_info("RUNOUT Motion Sensor: Enabled: %s Detect Filament: %s" % (enable|lower,detect|lower))} {% endif %}
You're right - It's pretty much all you need to get going. Thanks for the reference.Pretty much all the info you need is here: https://github.com/samwiseg0/Voron-.../howto/samwiseg0/btt_smart_filament_sensor.md
Yep. I got false alarms so I put 25 mm length.Is your 25.0 detection length a number from experience with the sensor? The reason for asking, if I am not mistaken, BTT suggest 7mm. I normally end up at about 10mm to avoid error triggers.
switch_pin
every so often. I don't know how often that is since I am not sure that BTT document it. On every toggle, Klipper updates the filament trigger point to be the current extruder position + the detection distance. Extruder position seems to mean "the amount of filament (in mm) that the extruder has pushed so far".BTT Github - Manual for SFS 2.0Somebody knows how to connect the BTT SFS 2.0 to the octopus?
It has 2 sensors but i can not find to which ports it have to connect.
#####################################################################
# BTT Smart Filament Sensor 2.0
#####################################################################
[filament_switch_sensor switch_sensor]
switch_pin: ^PG12
pause_on_runout: False
runout_gcode:
PAUSE # [pause_resume] is required in printer.cfg
M117 Filament switch runout
insert_gcode:
M117 Filament switch inserted
[filament_motion_sensor filament_sensor]
switch_pin: ^PG13
detection_length: 5
extruder: extruder
pause_on_runout: False
event_delay: 3.0
pause_delay: 1.0 #0.5
runout_gcode:
M117 Runout Detected!
runout_gcode:
PAUSE # [pause_resume] is required in printer.cfg
M117 Filament encoder runout
insert_gcode:
M117 Filament encoder inserted