霍尔耗材线径传感器¶
本文件介绍了耗材直径传感器的主机模块。用于开发该主机模块的硬件基于两个霍尔线性传感器(例如,ss49e)。霍尔传感器位于相对耗材直径模块的两侧。工作原理:两个霍尔传感器以差分模式工作,由于传感器的温度漂移相同,不需要特殊的温度补偿。
你可以在Thingiverse上找到设计,在Youtube上也有一个装配视频
要使用霍尔耗材线径传感器,请阅读配置参考和G-Code 文档。
它如何运作?¶
传感器基于两个模拟输出计算出耗材直径。检测到的电压之和始终对应耗材直径。主机模块监测电压变化并调整挤出倍率。例如可以在类似ramps的控制板上使用 aux2 连接器的 analog11和analog12引脚,你也可以使用不同的引脚和不同的控制板。
菜单变量模板¶
[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.5毫米直径),并得到第一个原始传感器值
- 插入第二根校准棒(2.0毫米直径),并得到第二个原始传感器值
- 在配置参数
Raw_dia1和Raw_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毫米)。