I’ve read quite carefully the documentation and browsed a bit the source code(s) and I found that filament width is NOT associated to a specific extruder.
Therefore it seems that you can have just one sensor installed and if you want to use it into multiextruder machines you must unload it every time there is an extruder switching (would be blooooody slooooow).
…am I wrong ?
Thank you!
AFAIK, you are right.
It indeed looks like that Klipper does only support one filament width sensor, whereas multiple filament switch sensors are supported.
It seems that this sensor has been somewhat neglected and could do with some love (also WRT its documentation). Somehow understandable, since I would think that it is not the most popular sensor and actually quite rarely deployed.
At least for X-in-1-out setups, a hacky workaround would be to install it close to the hotend. Everything beyond that would require some development work.
Filament width sensor are somewhat bulky and placing on the hotend is not practical.
Printhead vibration and acceleration may harm the precision of the readings.
If there are no planned developements then I will try hacking my own solution, probably involving canbus.
Drop this in your klippy/extras folder on your Pi and test it.
I don’t have multiple extruders or hall sensors so no way to test it myself.
hall_filament_width_sensor.zip (2.5 KB)
The FILAMENT_SENSOR_WIDTH gcode commands now take an additional argument SENSOR
as in “QUERY_FILAMENT_WIDTH SENSOR=sensor1”
and when you declare a hall filament width sensor do it like this…
[hall_filament_width_sensor sensor1]
Edit: If that works and you can round up some additional testers, I can submit a PR to get it included in the mainline klipper. But it needs to be proven to work first and to benefit a majority of people because it will throw an error for people using existing filament width sensors declared the old way. There might be a way to make it backwards compatible with that but I literally threw that together in 20 mins so haven’t dug into it much.
Wow, looks very close to what I am looking for.
I am now starting to prepare the hw to perform first tests (CANBUS sensors) - will get in touch soon!
Thank you for helping me !
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.