Extrusion problems related to input shaping

Basic Information:

Printer Model: Flsun SR
MCU / Printerboard: MKS Robin Nano V3.1
Host / SBC
klippy.log

klippy.log (1.7 MB)

Fill out above information and in all cases attach your klippy.log file (use zip to compress it, if too big). Pasting your printer.cfg is not needed
Be sure to check our “Knowledge Base” Category first. Most relevant items, e.g. error messages, are covered there

Describe your issue:

Hi guys, I recently started using input shaping. When I add the shaper settings in printer cfg the extrusion is hugely increased (50mm → ~75mm extruded) but then if I remove that section everything goes back to normal.

Hi,

did you tune it like with orcaslicer calibration or with elis printer tuning guide? Without tuning it will work bad. I guess a bit more intel would help :wink:

At the moment I only managed to measure the resonances and used the graphs to add the recommended settings inside printer.cfg and kept accelerations under the limit, I didn’t modify my slicer settings for now, they worked fine before adding input shaping. I only used ellis tuning guide for pa before. Sorry but I’m pretty new to klipper and this kind of features, what kind of tuning should I do before proceeding?

Input shaping cannot affect the amount of extrusion.
Regardless of the configured input shaping, the G0 E50, should extrude 50mm.

Why do you experience this, this is a question.

-Timofey

I honestly don’t know. Every time I remove it from the configuration I get 50mm as it should, if I add it back again it extrudes a lot more (around 75mm of length)

Your config looks very complex, and I suspect that you’re accidentally breaking something when you modify it (it’s difficult to tell from the log exactly which config corresponds to each state you report.)

E.g. this section in the Back_End macro looks to me like it will ignore the extruder’s configured rotation_distance and set it to 4.5 at runtime:

{% set rotation_distance = printer.save_variables.variables.extruder_rotation_distance %}
SET_EXTRUDER_ROTATION_DISTANCE EXTRUDER=extruder DISTANCE={rotation_distance|default(4.5)}

Your configured rotation_distance is usually 7.71, so if this runtime modification normally happens but your config change results in it being skipped you should see a 50mm extrusion turning into an ~86mm extrusion.

On the other hand the third boot in this log randomly has the configured rotation_distance as 11.56; if the macro is a red herring and these values are actually respected this one boot would have seen a 50mm extrusion turning into an ~75mm extrusion.

1 Like

Yeah, I got this cfg as a starting point when I switched to klipper so that’s why is so complicated and full of macros that I honestly don’t use. I tried removing a lot of stuff when the problem already was showing but didn’t see this one. I’m going to try and modify it tomorrow, thanks

@flowerysong It worked, thank you so much!!!