<p>You can use Klipper tuning tower and change the K value at each layer using Gcodes.
You can find the model here: <a href="https://www.thingiverse.com/thing:3957406" rel="nofollow noreferrer">https://www.thingiverse.com/thing:3957406</a></p>

<p>I find easier to see the best results this way, also you can test way more settings in a single run, while the Marlin pattern generator lets you test only few values at time.</p>

<p>Remember to print without infill.</p>

<p><a href="https://i.sstatic.net/iqW3X.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/iqW3X.png" alt="enter image description here"></a></p>

CC BY-SA 4.0
2020-01-29T17:10:33.783Z
2020-01-29T17:10:33.783Z
FarO
<p>The same effect as Marlin's test pattern, with alternation between fast and slow segments, can be achieved with a skewed tower and Cura's overhang settings, providing the opportunity to interactively adjust K value during the print, or insert changes at particular layers in the gcode for automated test towers.</p>

<p>I'm using the following OpenSCAD to make a skewed cylinder:</p>

<pre><code>multmatrix(
   [[1,0,1/8,0],
    [0,1,0,0],
    [0,0,1,0],
    [0,0,0,1]])
cylinder(d=40,h=40);
</code></pre>

<p>with Cura set to:</p>

<ul>
<li>no top/bottom layers or infill</li>
<li>single walls</li>
<li>treat walls with 1° overhang as overhangs</li>
<li>print overhangs at 25% speed</li>
</ul>

<p>These values can of course be tuned, but the extreme low overhang angle and 8/1 slope is to prevent actual physical overhang-printing considerations from messing up the test.</p>

<p>Vase mode might work even better for this if it supports overhang settings, since it would avoid the layer seam.</p>

CC BY-SA 4.0
2020-01-29T07:48:55.143Z
Nice. I've been using the Marlin pattern in the past for Klipper's Pressure Advance, but there are some *really* disgusting features hidden in the g-code that's generated.
towe
CC BY-SA 4.0
2020-01-28T22:08:09.423Z
2020-01-28T22:08:09.423Z
R.. GitHub STOP HELPING ICE
<p>Marlin has a <a href="http://marlinfw.org/tools/lin_advance/k-factor.html" rel="noreferrer">Linear Advance calibration pattern generator</a>, but I find it's hard to use because:</p>

<ul>
<li>It only prints the initial layer on the bed, where bed irregularities interfere with accurate reading of it.</li>
<li>It doesn't do proper retraction and priming, so a mess of strings and underextruded initial segments/non-adhesion mess up the results.</li>
<li>It's hard to visually evaluate.</li>
<li>Getting a very wide range of K values involves multiple runs.</li>
<li>It's hard to clean up.</li>
</ul>

<p>Is there a better procedure for calibration of K value for linear advance?</p>

CC BY-SA 4.0
2020-01-28T22:12:29.087Z
Note that while this is a self-answer, I'm open to more/better answers too.
R.. GitHub STOP HELPING ICE
<marlin><calibration><print-material>
Linear advance calibration technique
R.. GitHub STOP HELPING ICE
# Linear advance calibration technique

(Asked by: username_0 on 2020-01-28)

Marlin has a [Linear Advance calibration pattern generator](http://marlinfw.org/tools/lin_advance/k-factor.html), but I find it's hard to use because:

* It only prints the initial layer on the bed, where bed irregularities interfere with accurate reading of it.
* It doesn't do proper retraction and priming, so a mess of strings and underextruded initial segments/non-adhesion mess up the results.
* It's hard to visually evaluate.
* Getting a very wide range of K values involves multiple runs.
* It's hard to clean up.

Is there a better procedure for calibration of K value for linear advance?

**Tags:** marlin, calibration, print-material

> **Comments:**
> **username_0**: Note that while this is a self-answer, I'm open to more/better answers too.  

---

## 2 answers

### Answer by username_1 on 2020-01-29. Score: 2

You can use Klipper tuning tower and change the K value at each layer using Gcodes.
You can find the model here: <https://www.thingiverse.com/thing:3957406>

I find easier to see the best results this way, also you can test way more settings in a single run, while the Marlin pattern generator lets you test only few values at time.

Remember to print without infill.

[![enter image description here](https://i.sstatic.net/iqW3X.png)](https://i.sstatic.net/iqW3X.png)


---

### Answer by username_0 on 2020-01-28. Score: 1

The same effect as Marlin's test pattern, with alternation between fast and slow segments, can be achieved with a skewed tower and Cura's overhang settings, providing the opportunity to interactively adjust K value during the print, or insert changes at particular layers in the gcode for automated test towers.

I'm using the following OpenSCAD to make a skewed cylinder:

```
multmatrix(
   [[1,0,1/8,0],
    [0,1,0,0],
    [0,0,1,0],
    [0,0,0,1]])
cylinder(d=40,h=40);

```

with Cura set to:

* no top/bottom layers or infill
* single walls
* treat walls with 1° overhang as overhangs
* print overhangs at 25% speed

These values can of course be tuned, but the extreme low overhang angle and 8/1 slope is to prevent actual physical overhang-printing considerations from messing up the test.

Vase mode might work even better for this if it supports overhang settings, since it would avoid the layer seam.

> **Comments:**
> **username_2**: Nice. I've been using the Marlin pattern in the past for Klipper's Pressure Advance, but there are some *really* disgusting features hidden in the g-code that's generated.  

---

