-
-
Notifications
You must be signed in to change notification settings - Fork 19.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Informational: script to calibrate k-factor #8079
Comments
You could submit PRs to the project adding the script here in these 2 branches:
-=dave |
What is the EXTRUSION_FACTOR? |
This script is excellent. Many thanks for sharing it. Wouldn't it be an option to bake such a calibration pattern right into Marlin, i.e. analog to the UBL validation pattern? |
I'm not sure how to do all the math to come up with the extrusion values for each distance, and I doubt it would be feasible to do it in bash anyway. So I took a sample and isolated the value in mm of filament to a 1mm linear for that case (0.4mm nozzle, 0.2mm layer height and 1.75mm filament). I believe that is the most used config. But I didn't want to make it hardcoded and left as a variable so you can change it if you want to calculate for other situations. Ideally I could have a bunch of values for the user to choose. |
Excellent, great idea to turn the pattern into a script 👍 |
Here is the script a html variant: https://github.com/Sineos/k-factorjs All credits go to @Sebastianv650 and @token47 |
@token47 This script seems very nice... However, I have a 3mm filament and need to set the EXTRUSION_FACTOR? What is the relation between nozzle size, the layer height and the diameter of the filament... The script says : Thanks in advance. |
It's the relation between mm movement of the nozzle and mm filament extruded to give the wanted line width. Seems like @token47 was assuming 0.45mm line width: If you keep 0.2mm layer height and 0.45mm line width but with 3mm filament, the new factor would be 0.012732. |
I took a sample GCODE and isolated the value, didn't really know how to do the math. Thank you for the explanation. |
@Sebastianv650 |
Usually you want to go a bit higher. 1.05x nozzle diameter is the smallest I use for a clean extrusion. I would take 1.2x nozzle diameter or 1.1x. |
Thanks @Sebastianv650 Added filament and nozzle size to the html variant. |
@token47 So, I'll submit the whole BASH procedure here bellow... Note that this is able to run in the "git bash" screen in Windows... so this is a quick and easy way to generate a code either from linux or from windows (I have no clear idea for mac world) I also put a warning about heating the printer before issuing G28... I know at least one machine (myne) that would be damaged if G28 is issued while bed and/or hot-end is over plastic softening point... I realy think this process should find it's way into the Marlin share scripts... procedure deleted... was wrong. |
Please disregard previous previous procedure... I copied the wrong one... (deleted by now) Here is the correct one.
|
Our preference is Javascript, so that we can provide a web page at marlinfw.org for easy access. See the Bitmap Converter, for example. |
This one can be closed --> http://marlinfw.org/tools/lin_advance/k-factor.html |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
I just made a (bash) script to ease the generation of GCODE to calibrate the k-factor on the LIN_ADVANCE. I was inspired after @Sebastianv650 's script and I hope I have improved it somehow (if not just made it more complicated :-P)
Any contributions are welcome. I was going to write it in another language (probably python) but thought it should be more accessible this way. If anyone has the time and skill it would be amazing to put it online on a kfactor-o-matic style to generate and download the result on demand.
https://github.com/token47/k-factor
The text was updated successfully, but these errors were encountered: