Prusa Slicer Pressure Advance Test

This is a model & a web tool that modifies PrusaSlicer GCode to add a pressure advance test pattern.
237
2438
26
7918
updated December 5, 2023

Description

PDF

How To

  1. Download this model
  2. Import it into Prusa Slicer and place it in the middle of the bed.
    1. Use the same Print Setting and Filament that you want to print with. Select the Extruder that you want the test to print on.
    2. Export the .gcode file to your computer
  3. Go to the Prusa Slicer Pressure Advance Calibration page. Drag and Drop the file onto the page.
    1. Enter the range of pressure advance values you want to test.
    2. Click the 'Download Calibration GCode' button and save the gcode with the calibration lines.
  4. Print the GCode on your printer.
  5. Back at Prusa Slicer Pressure Advance Calibration, enter the best PA value and generate a conditional statement to update your Filament Start GCode.

FAQ

How Does It Work?

When you slice the model you are exporting all of the settings from Prusa Slicer, as well as your printers start and end GCode, into the .gcode file. This tool snips out the sliced model and inserts the GCode for a Pressure Advance tuning pattern based on your printers settings. It knows what your expected speeds and accelerations are, as well as the nozzle size, temperatures and everything else you set up in Prusa Slicer. Its looking at 33 different settings so far. It uses all of this to pick good configuration options for the pressure advance test generation.

The test gcode is generated and spliced into the original gcode file and then you download it and print it.

A mini-tool is provided to generate the conditional GCode statements to go back into the filament config in the slicer.

I found a problem!

Thanks for taking the time to try this out! Please open an issue on github. I will also try to check comments/makes here from time to time as well.

Will this work with my printer?

If your printer runs one of the open source firmwares then likely yes. This tool targets:

  • All Prusa firmwares (legacy and 32bit, Input Shaper and non Input Shaper variants)
  • Marlin
  • Klipper
  • RepRapFirmware

If your printer is running one of these and you have selected that firmware variant in PrusaSlicer you should be supported.

The tool accepts plain text GCode and Prusa's new Binary Gcode.

How does it tell where the test object is in the GCode?

The comment ;AFTER_LAYER_CHANGE in the printers gcode is used as the start of the object. By default this is a comment that notes the layer z. If you have custom GCode here, put the comment at the end of the block.

The comment ; Filament-specific end gcode marks the spot where the object has finished. This is found in the Filament specific gcode.

Both of these comments are defaults in Prusa Slicer and should be there, unless you removed them. If the tool cant find these comments it will report an error.

Do I need to slice this specific model?

You don't, but using the this model will give you an approximate print time and a nice preview image on the LCD so you can know what this print is later.

Is this an official Prusa Product?

No. This is not affiliated with Prusa Research in any way.

Have you seen the Marlin K-factor Calibration Pattern?

The Marlin K-factor Calibration Pattern can be found here. This tool started with some of the GCode generation tooling from that work.

However, that test generates startup GCode for your printer. Since it was never designed to work specifically with your printer, it might not correctly perform tasks like bed heating, leveling, nozzle wiping purging etc. that make your printer safe and reliable. This is especially true if you have a complex printer like the Prusa XL or a printer that runs something other than Marlin (e.g. Klipper).

The goal of this tool is to keep what is good about Marlin K-factor Calibration Pattern while leaving start/end gcode up to you and the slicer.

The K-factor pattern also only works on Marlin. This tool supports Marlin, but also Klipper, RRF and Prusa's new Input Shaper firmware which all require different gcodes.

Tags



Model origin

The author marked this model as their own original creation.

License