跳轉至

霍爾耗材線徑感測器

This document describes Filament Width Sensor host module. Hardware used for developing this host module is based on two Hall linear sensors (ss49e for example). Sensors in the body are located on opposite sides. Principle of operation: two hall sensors work in differential mode, temperature drift same for sensor. Special temperature compensation not needed.

你可以在Thingiverse上找到設計,在Youtube上也有一個裝配視訊

要使用霍爾耗材線徑感測器,請閱讀配置參考G-Code 文件

它如何運作?

Sensor generates two analog output based on calculated filament width. Sum of output voltage always equals to detected filament width. Host module monitors voltage changes and adjusts extrusion multiplier. I use the aux2 connector on a ramps-like board with the analog11 and analog12 pins. You can use different pins and different boards.

菜單變數模板

[menu __main __filament __width_current]
type: command
enable: {'hall_filament_width_sensor' in printer}
name: Dia: {'%.2F' % printer.hall_filament_width_sensor.Diameter}
index: 0

[menu __main __filament __raw_width_current]
type: command
enable: {'hall_filament_width_sensor' in printer}
name: Raw: {'%4.0F' % printer.hall_filament_width_sensor.Raw}
index: 1

校準程式

要獲得原始感測器值,你可以使用菜單中的選項或在終端發送QUERY_RAW_FILAMENT_WIDTH命令。

  1. 插入第一根校準棒(1.5毫米直徑),並得到第一個原始感測器值
  2. 插入第二根校準棒(2.0毫米直徑),並得到第二個原始感測器值
  3. 在配置參數Raw_dia1Raw_dia2中寫入原始感測器值

如何啟用感測器

感測器在開機時預設被禁用。

要啟用感測器,發送ENABLE_FILAMENT_WIDTH_SENSOR命令或將enable參數改為true

Use as a runout switch only

By default, the sensor measures filament diameter and adjusts the extrusion multiplier to compensate for variations.

If you want to use the sensor as a runout switch only, set the enable_flow_compensation config parameter to false. In this mode, the sensor will only trigger runout events when filament is not detected, it will not modify the extrusion multiplier.

This is useful for printers where the filament sensor is not accurate enough for flow compensation but can reliably detect filament runout, or when printing with flexible filaments which have unstable diameter characteristics.

Issue ENABLE_FILAMENT_WIDTH_SENSOR FLOW_COMPENSATION=1 to enable flow compensation or ENABLE_FILAMENT_WIDTH_SENSOR FLOW_COMPENSATION=0 to disable it.

Note that disabling filament width compensation automatically resets the extrusion multiplier to 100%.

QUERY_FILAMENT_WIDTH includes the current state of flow compensation in its output.

記錄

直徑記錄在開機時預設被禁用。

發送ENABLE_FILAMENT_WIDTH_LOG命令開始記錄,發送DISABLE_FILAMENT_WIDTH_LOG命令停止記錄。如果想在開機時啟用日誌記錄,請將logging配置參數設定為true

每個測量間隔都會記錄耗材直徑(預設為10毫米)。

Back to top