How to wiring filament runout sensor - markniu/PandaPi GitHub Wiki

PandaPI V2.0

PandaPI V2.5

Run out sensor Pin:

Channel 0, Pin C (DEBUG_SCL PA14 in schematic)

Channel 1, Pin D (DEBUG_SDA PA13 in schematic)

Gnd, Pin G

make sure the "FILAMENT_RUNOUT_SENSOR" and "NOZZLE_PARK_FEATURE" are enabled in configuration.h

#define FILAMENT_RUNOUT_SENSOR
#define NOZZLE_PARK_FEATURE

make sure the "ADVANCED_PAUSE_FEATURE" is enabled in configuration_adv.h

#define ADVANCED_PAUSE_FEATURE

If you want to debug and find more, you can search "FILAMENT_RUNOUT_SENSOR" in the temperature.cpp and "poll_runout_pins" in the runout.h.

note:

those runout pins will work only the temperature of hotend0 above the 120 degrees.because they are remaped from the SWD flash firmware pins and for easly flash the firmware next.

you can see the firmware code here, seach "Extruder.tar_temper[0]>1200" https://github.com/markniu/PandaPi/blob/master/firmware/pandapi_stm32f103/src/main.c