Posted on 2 Comments

Pressure Advance: The Easy Way, “Just use the new tool”

Linear Advance Calibration Pattern | Marlin Firmware (marlinfw.org)

The tools tab now has native generators on it.

This is a basic guide on making a PA (Pressure Advance) gcode file. I plan on forking the code and changing it to natively generate the gcode for RRF and Klipper, but it’s easy, so I am not making that a priority. Just use the above-linked tools.

  1. Generate the gcode for marlin inputting your settings for the filament and nozzle you are using. You want .005 steps ranging from 0 to .1 for most nozzles and filaments. If your filament is very soft or your nozzle is small, then .2 may be better as a maximum value.
  2. Add a G32 after the G28 in the side panel.
  3. Add a T2000 after the P500 on the acceleration line.
  4. Download and open in notepad, or some other simple editor that does not format text.
  5. Use find and replace to find M900 K and replace it with the respective values:
    1. Klipper is SET_PRESSURE_ADVANCE ADVANCE=
    2. RRF is M572 D0 S
  6. Save the file, making sure the extension is .gcode.
  7. Upload to the printer and print.
  8. Find the line that stays most uniform at the speed changes marked by the top two vertical lines.
  9. Enter the corresponding value in your slicer’s filament gcode override. If slicer does not have that, then enter it into your start code and name that profile for the filament you calibrated.

I found some cool diagrams that show the improvements with Klipper pressure advance compared to regular Linear Advance (LA) and PA with the smooth pressure advance algorithm. With direct drive, it does not matter as much, but with Bowden and high values, Marlin and RRF have a hard time keeping up and end up slowing the print a lot to maintain the max acceleration for the extruder in firmware. So, a stock 300 really needs 1.9 and that doubles print times on RRF. With Klipper, it is not a problem and it does not reduce the acceleration as the extruder hits its ceiling. Instead, it smooths out the max values and extends them slightly to the same end result. You can configure the smoothing time if you really are pushing things, but the stock value is adequate. We do not want to reach the point where we start reducing the effectiveness of the pressure advance. This all is not important if running direct drive since we rarely need more than .1 seconds of Pressure Advance with the Orbiter or most other high-end solutions. I just figured it would be interesting to give some background on what is happening under the hood.

https://github.com/KevinOConnor/klipper/issues/1260

2 thoughts on “Pressure Advance: The Easy Way, “Just use the new tool”

  1. Could you please upload your latest Fusion 360 model for the gantry and extruder/dragon setup?

    1. yes ill put on the gdrive and tag you

Leave a Reply

Your email address will not be published. Required fields are marked *