Switch pin for filament runout sensor

Basic Information:

Printer Model: Creality Ender 3 v2
MCU / Printerboard: Creality 4.2.7. Silent board

Hi,

I tried to install my Creality original Filament runout sensor. As I’m new with Klipper and in cura there was no need for any setting, I’m now searching how to find the switch_pin Number.

From creality I should insert following code:

[filament_switch_sensor filament_sensor]
pause_on_runout: true
switch_pink
Notice! switch_pin needs to be confirmed as the connection PIN for the filamtent run-out sensor

But now I wonder how to find the right switch_pin, as for ^!PC15 I got an runout message.

Can anyone please explain how to find the right pin? (Creality 4.2.7. Board has a separate plug for this)

Thanks for you help

Guido

See Creality Board 4.2.2 and 4.2.7 Schematics

1 Like

Top!!!

That’s exact what I needed :wink:

Hi again,

the filamentsensor is now running :slight_smile:

But I get following message:

$ QUERY_FILAMENT_SENSOR SENSOR=filament_sensor
11:39:36 // Filament Sensor filament_sensor: filament detected
11:40:15 // {“code”:“key61, “msg”:“Unknown command:/”, “values”: [”/"]}

I’ve no Idea what {“code”:“key61, “msg”:“Unknown command:/”, “values”: [”/"]} is!?
Can someone explain and help?

Many thanks

Guido

He wich pin did you use for the runout sensor?

I think I figured it out for me and I have the same board as the OP did. I am also using the Creality Filament runout sensor (I don’t know if it makes a difference)

But with following lines, and some trial and error I came up with:
switch_pin: PA4

The bang character/exclamation mark (!) appears to invert the signal filament detected vs filament missing. I still don’t know what the carat (^) does that I see in a few examples.

Hello @Earththing !

You may look here:

https://www.klipper3d.org/Config_Reference.html#micro-controller-configuration

1 Like