I've tried connecting my Tronxy X5ST filament sensor to my OctoPi, and it works.
It's a three-pin sensor with LED, and it's wired as follows:
VCC = pin 17 (3.3V)
SIG = pin 18 (GPIO 24)
GND = pin 20
Using "gpio readall", I can see the following output:
Without filament: GPIO 24 = HIGH
With filament: GPIO 24 = LOW
As soon as I install a filament plugin (I've tested Filament Sensor Reloaded, Filament Sensor Encore and Filament Sensor NG), and every time I start a print, it instantly cancels the print.
As soon as I remove the filament sensor plugin, prints work fine again.
With the Filament Sensor Reloaded plugin, my octoprint.log was full of
octoprint.plugins.filamentreload - INFO - Sensor callback but no trigger state change.
I've tried setting the switch-type to both
Normal Open and
Normal Closed but it makes no difference in any way.
Can anyone assist me?