BTT filament sensor misconfigured? for Ender 3 V2 4.2.2

I’m trying to use the Bigtree Filament Sensor with my Ender 3 V2 on a 4.2.2 board. I’ve tried the firmware from Ender 3 V2 - BLTouch - Marlin Firmware Service for 20210913 and 20210908. I have the BTT sensor hooked to the Ender’s motherboard.

I’ve enabled filament runout with M412 S1. In both firmwares a print will print one layer and then eject the filament and wait for more to be inserted. If I do that, it will print another layer and then eject and wait for more to be loaded.

If I turn the Ender on and insert filament, running command M119 from Octoprint:
Send: M119
Recv: Reporting endstop status
Recv: x_min: open
Recv: y_min: open
Recv: z_min: TRIGGERED
Recv: z_probe: TRIGGERED
Recv: filament: open
Recv: ok P15 B3

Then if I move (push or pull) the filament through the BTT sensor and do another M119:
Send: M119
Recv: Reporting endstop status
Recv: x_min: open
Recv: y_min: open
Recv: z_min: TRIGGERED
Recv: z_probe: TRIGGERED
Recv: filament: TRIGGERED
Recv: ok P15 B3

Is that correct detection?

Thank you,

dark8088

Sounds about right - try setting a longer runout distance and see if this helps.

Try: M412 S1 D15

That will set the max no-pulse distance to 15mm. I believe the default is 7mm - which is sometimes on the very edge of detection. You can experiment with this number to see what works best for your filament and sensor.

I’ll try making it longer than 15. Still no joy.