GithubHelp home page GithubHelp logo

razzmatazzspg / klipper-fastgyroidinfill Goto Github PK

View Code? Open in Web Editor NEW

This project forked from romrider/klipper-fastgyroidinfill

1.0 0.0 0.0 13.37 MB

A set of postprocessing scripts and macro to accelerate the gyroid infill print speed with Klipper

License: MIT License

Python 100.00%

klipper-fastgyroidinfill's Introduction

Fast Infill for Klipper

⚠️ Use at your own risk ⚠️

This is a set of postprocessing scripts for Cura and SuperSlicer to accelerate the gyroid infill printing speed leveraging Klipper's Square Corner Velocity (SQV) feature.

It modifies the value of the SQV only for the infill keeping everything else default. Since the gyroid infill is made of curves, it prints slower by default because this is what the Square Corner Velocity feature does. Increasing this value too high for perimeters will remove details from your print.

This is why, being able to apply a different SQV value for the infill specifically will massively accelerate your prints when you use the gyroid infill while keeping the crisps details on everything else!

Eg:

  • Superslicer was planning a print to last 25h (65% of the print was gyroid infill)

  • it only took 14h using this postprocessing script. It would have taken more than 25h without.

  • This is the result of printing the gyroid infill at 300mm/s with 5k accel with this postprocessing script with a standard SQV of 5 and 20 for infill only (Thanks to @FlorentBroise for the video):

    fast_infill2.mp4

How to use

Klipper setup

This is mandatory, whatever the slicer you use:

  1. Add the save_variable section to your printer.cfg if you don't already have it. For eg.:
    [save_variables]
    filename: ~/klipper_config/saved_variables.cfg
  2. Copy the content of fast_infill.cfg into your printer.cfg
  3. If you use a standard screen (not KlipperScreen), you can also add the content of menu_fast_infill.cfg. This will add 2 entries in your Tune menu to be able to set some values without going to the fluidd/mainsail interface
  4. Once you have added the configuration to your klipper configuration, restart Klipper
  5. When the machine is back online, run the command SET_INFILL_SQV SQV=<VALUE>. This will define the SQV value you want to use during the infill. I suggest a value of 20 if your printer is capable of going very fast (eg. Voron, RatRig VCore-3, ...).

You can update the SQV value for infill while it's printing by using the same command above. It will be applied during the next infill run. If you don't want to modify the infill SQV, just set the value to the same value as your default SQV.

Cura

  1. Copy the fastGyroidInfill.py file from the repository's cura folder into your cura configuration folder -> scripts

    • For Windows, place this file in the folder %APPDATA%\cura\<CURA VERSION>\scripts
    • For Linux, place this file in the folder ~/.local/share/cura/<CURA VERSION>/scripts
    • For MacOS, place this file in the folder ~/Library/Application Support/Cura/<CURA VERSION>/scripts
  2. Add the postprocessing script to Cura

    1. Extensions menu -> Post processing -> Modify GCode
    2. Add the Faster Gyroid Infill with Klipper post processing script
  3. Slice your file as usual

SuperSlicer

  1. Copy the fastGyroidInfill.py file from the repository's superslicer folder in a folder on your computer where superslicer runs. Put it in a folder without any space.
  2. Install Python (if you are using Windows, don't install python from the Microsoft Store, it won't work)
  3. Reference the post processing script into your superslicer configuration. Eg. for Windows: superslicer_config
  4. Run your slicing as usual and export or upload the file to your printer. If everything works as ecpected, you'll see a black terminal window poping up (that is the script running).

How to validates that it works well

If you open the gcode file after postprocessing, you should find references to _USE_INFILL_SQV and _USE_NORMAL_SQV.

klipper-fastgyroidinfill's People

Contributors

romrider avatar

Stargazers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.