[Feature Request] Fan failure state based on tachometer reading

You have the ability to specify a tachometer pin and it displays the RPM of the fan. But it would be fantastic for it to enter an error state if the fan speed enters below a threshold % value.

It’s more complex than that for sure, because each fan’s RPM curve will be different. But in the case of a hotend fan, I want that to always be running at a fixed speed when printing. And nothing worse than failing a print due to a fan dying mid print, and having to unclog that seized up hotend :see_no_evil:

Perhaps you can specify tachometer_failure_rpm and it can be relatively low, like for example 1000 if your fan is capable of 5k/rpm.

Or perhaps even calibrating the fan and taking a range of normal RPM speeds at % speed values, and if it deviates from that for X seconds, it’s a failure state.

1 Like

See heater_fan: Add Heater Fan Self Check Logic by cneshi · Pull Request #6364 · Klipper3d/klipper · GitHub

1 Like

Awesome stuff thank you!

I see it was closed due to lack of review :frowning_face: How do you add motivation to this feature? It’s something that could have saved me lots of pain.