# Triangular Calibration Review

**URL:** <https://forums.maslowcnc.com/t/triangular-calibration-review/2995>\
**Category:** Technical Details\
**Created:** [March 29, 2018, 9:00pm UTC](https://forums.maslowcnc.com/t/triangular-calibration-review/2995 "2018-03-29T21:00:51Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [March 29, 2018, 9:00pm UTC](https://forums.maslowcnc.com/t/triangular-calibration-review/2995/1 "2018-03-29T21:00:51Z")

</div>

Created a new topic to discuss this potential issue.

> [@Fully Calibrated but Oblong Circles](https://forums.maslowcnc.com/t/fully-calibrated-but-oblong-circles/2695/117):
>
> the measurements to the outer cuts is finding the effects of chain sag but we need to do two central cuts so that we can solve the different triangles to figure out the proper rotation radius. If we leave this out, and try to just figure out the rotation radius from the effects on the outer cuts (where the chain sag effect is maximized), we are not going to accurately figure out the rotation radius.
> 
> In the earliest version, we did a cut in the top center area. This was moved down to the lower center area because Bar was getting bad results due to his frame flexing.
> 
> We cut wide to maximize the effect of chain sag. we should cut high center and low center to maximize the effect of the rotation radius
> 
> This is one additional measurement, but without it, you seriously reduce the resulting accuracy.

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [March 29, 2018, 9:27pm UTC](https://forums.maslowcnc.com/t/triangular-calibration-review/2995/2 "2018-03-29T21:27:10Z")

</div>

In the top center, an error of 1mm in chain length (or actual rotation radius)  
can translate into an error of 2+mm, so if we have a measurement between the  
points of two triangles, with one having it’s vertex in the top center, and  
another having it’s vertex mid or low center, and we assume the measurement is  
accurate to 0.5 mm, we should be able to get a final calculated rotation radius  
error down somewhere around 0.1mm.

This is what we did in the small window where we added the proper triangulated  
calibration and before we added chain sag compensation.

The wide measurements are trying to measure errors are trying to measure the  
much smaller error caused by chain sag (combined with the effects of the  
rotation radius of the triangulation kit)

---

<div class="post-metadata">

**Author:** ![rjon17469](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@rjon17469](https://forums.maslowcnc.com/u/rjon17469)\
**Post date:** [March 29, 2018, 11:18pm UTC](https://forums.maslowcnc.com/t/triangular-calibration-review/2995/3 "2018-03-29T23:18:41Z")

</div>

Keep in mind, this is what the top measurement does (the measurement between cuts 1 and 2). It can be horizontal or vertical. If you make the measurement in the vertical direction then you’ll introduce error in the horizontal direction.

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [March 29, 2018, 11:37pm UTC](https://forums.maslowcnc.com/t/triangular-calibration-review/2995/4 "2018-03-29T23:37:27Z")

</div>

I disagree.

the math to figure out the rotation radius depends on knowing the chains being  
equal lengths and knowing the difference in height of two triangles that are  
formed.

doing this in the center means that small differences in the effective chain  
length (including the rotation radius added by the triangulation kit) are  
multiplied to larger differences in the sled location.

When you are out to the side, the sled position effects of small differences in  
the effective chain length are much smaller, and the effects of the effective  
chain length are mixed by the chain sag effects, which are much larger in this  
area.

If measuring a vertical distance makes the resulting calibration wrong in the  
horizontal distance, then the calibration strategy is incomplete.

can we add a second cut on the center line and the measurement between the two  
cuts on the center line and see what this does with the resulting calibration  
results?

---

<div class="post-metadata">

**Author:** ![rjon17469](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@rjon17469](https://forums.maslowcnc.com/u/rjon17469)\
**Post date:** [March 29, 2018, 11:55pm UTC](https://forums.maslowcnc.com/t/triangular-calibration-review/2995/5 "2018-03-29T23:55:43Z")

</div>

I disagree, in part. The effects of chain sag are minimal at the cut 1 and 2 locations. This can be confirmed by playing with the simulator. We can use the center vertical measurement to determine the rotation radius, but it will just introduce error into other areas of the bed.

> [@dlang](#):
>
> If measuring a vertical distance makes the resulting calibration wrong in the horizontal distance, then the calibration strategy is incomplete.

It’s not the calibration strategy, it’s the kinematics. If the kinematics don’t have the ability to completely accurately position over the entire work area, then the calibration routine can’t make it accurate over the entire work area, nor could _any_ combination of parameters.

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [March 30, 2018, 12:44am UTC](https://forums.maslowcnc.com/t/triangular-calibration-review/2995/6 "2018-03-30T00:44:54Z")

</div>

I don’t believe that the kinematics prevent us from getting accurate positioning  
over the entire work area.

And I don’t believe that getting a more accurate rotation radius will make the  
rest of the system less accurate, I don’t see how more accurately modeling the  
chain length can cause other things to be less accurate

---

<div class="post-metadata">

**Author:** ![rjon17469](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@rjon17469](https://forums.maslowcnc.com/u/rjon17469)\
**Post date:** [March 30, 2018, 12:52am UTC](https://forums.maslowcnc.com/t/triangular-calibration-review/2995/7 "2018-03-30T00:52:31Z")

</div>

> [@dlang](#):
>
> And I don’t believe that getting a more accurate rotation radius will make the rest of the system less accurate, I don’t see how more accurately modeling the chain length can cause other things to be less accurate

This is easy to test. Perform the accuracy benchmark test for the calibration-determined parameters and the other rotation radius values, and see how they compare.

Assuming that the rotation radius, motor offset, and chain sag values are kept positive, then only one unique solution exists for the data. I tried to see if I could find alternate solutions by adjusting the weight of the parameters, and always got the same results.

This means that any change of the parameters will introduce error into those portions of the work area.

---

<div class="post-metadata">

**Author:** ![rjon17469](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@rjon17469](https://forums.maslowcnc.com/u/rjon17469)\
**Post date:** [March 30, 2018, 12:57am UTC](https://forums.maslowcnc.com/t/triangular-calibration-review/2995/8 "2018-03-30T00:57:38Z")

</div>

I may be wrong though, I would say try it out!

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [March 30, 2018, 1:16am UTC](https://forums.maslowcnc.com/t/triangular-calibration-review/2995/9 "2018-03-30T01:16:00Z")

</div>

first off, I’m not sure that only one unique solution is possible, especially  
since we are doing ‘iterate until we are close enough’ rather than an actual  
calculated solution, and the fact that our measurements are not that precise.

I think we should have the vertical measurement between two triangles as that  
will be far more sensitive to rotation radius changes and far less sensitive to  
chain sag changes, so if someone is off a bit in the long measurements (the ones  
hardest to do), they are going to be less likely to get horribly bad results

David Lang

---

<div class="post-metadata">

**Author:** ![rjon17469](https://avatars.discourse-cdn.com/v4/letter/r/5f8ce5/32.png) [@rjon17469](https://forums.maslowcnc.com/u/rjon17469)\
**Post date:** [March 30, 2018, 1:34am UTC](https://forums.maslowcnc.com/t/triangular-calibration-review/2995/10 "2018-03-30T01:34:36Z")

</div>

I spent some time on this, both iteratively as well as algebraically, and could not find a second set of values that satisfied the criteria. Not saying they don’t exist, but I at least wasn’t able to find them. I’m definitely open to being proven wrong though, and am happy to assist in any way!

I did develop a version of the calibration routine that used the vertical measurement. I found it to be a double-edged sword. The negative side was that each 0.5mm of measurement of the vertical cuts created a larger difference in rotation radius than a 0.5mm difference in measurement for the horizontal cuts. So effectively, we had less resolution with the vertical cuts. But it’s not hard if someone wants to try it out.

---

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [March 30, 2018, 2:08pm UTC](https://forums.maslowcnc.com/t/triangular-calibration-review/2995/11 "2018-03-30T14:08:19Z")

</div>

Which PR changed how the cuts were made? I’m having a hard time finding it… I think it must before files were moved into the new directory and it’s making it hard for me to locate.

_Edit: nm… found it… change was made when chain sag correction was added_

---

<div class="post-metadata">

**Author:** ![madgrizzle](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/madgrizzle/32/1372_2.png) [@madgrizzle](https://forums.maslowcnc.com/u/madgrizzle)\
**Post date:** [April 1, 2018, 12:04pm UTC](https://forums.maslowcnc.com/t/triangular-calibration-review/2995/12 "2018-04-01T12:04:30Z")

</div>

So… do we need to do a vertical measurement or not? Seems like the conversation stalled. I don’t understand the calibration routine enough to have a position. Can someone possibly diagram out the “triangles” that are getting measured and how they relate to the variables? I know this might be a lot of work. Personally I would like to see this well documented because its so critical to the operation of the machine. I’m working on a way to do this optically and will need to understand how the calibration is performed. Trying to figure it out from code, the posts here and on github is a challenge for me.

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [April 1, 2018, 4:25pm UTC](https://forums.maslowcnc.com/t/triangular-calibration-review/2995/13 "2018-04-01T16:25:02Z")

</div>

> [@madgrizzle](#):
>
> do we need to do a vertical measurement or not?

@rjon17469 has written a version that adds a pair of vertical cuts, see the PR [here](https://github.com/MaslowCNC/GroundControl/pull/679).

The more people that test it, the more we will know. If you’re willing, download the test version [here](https://github.com/reecej/GroundControl/archive/Triangular-Calibration-Motor-Spacing.zip) and test it.

The test could be as simple as marking the sled outline with a pencil then traversing a distance (12 inches? ) in each direction from the center and measuring the resulting travel. Large accuracy issues that show up over a moderate distance in the middle might be a reasonable first level of check. If the accuracy looks good, cutting a [9-inch-circle.nc](https://forums.maslowcnc.com/uploads/maslowcnc/original/2X/1/12655d44571ebfcc5d0508e31fef7bd24cf37acf.nc) would compare with the results folks have posted in the ‘…Oblong Circles’ thread.

Be sure to report [your results in the comments to the PR comments](https://github.com/MaslowCNC/GroundControl/pull/679), to keep the information specific to that test together.

---

<div class="post-metadata">

**Author:** ![arnoldcp](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@arnoldcp](https://forums.maslowcnc.com/u/arnoldcp)\
**Post date:** [April 2, 2018, 12:56pm UTC](https://forums.maslowcnc.com/t/triangular-calibration-review/2995/14 "2018-04-02T12:56:06Z")

</div>

So if I unzip that file into my ground control folder the calibration routine will add the vertical measurement cuts and then use those in the calibration? I will try it tonight.  
My weekend wasn’t as free as I thought it would be so I didn’t actually get to cut anything. I did fiddle with my sled and frame quite a bit though.

---

<div class="post-metadata">

**Author:** ![blurfl](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/blurfl/32/9_2.png) [@blurfl](https://forums.maslowcnc.com/u/blurfl)\
**Post date:** [April 2, 2018, 3:18pm UTC](https://forums.maslowcnc.com/t/triangular-calibration-review/2995/15 "2018-04-02T15:18:14Z")

</div>

Perhaps you should hold off on trying it. @rjon17469 has put the PR on hold for now. As to where to unzip, that varies between the operating systems, and I always try to keep ‘testing’ versions separate from the current release version.  
I know what you mean, weekends do fill up and often don’t contain as much cutting time as fiddling time. 😁

---

<div class="post-metadata">

**Author:** ![arnoldcp](https://avatars.discourse-cdn.com/v4/letter/a/ecb155/32.png) [@arnoldcp](https://forums.maslowcnc.com/u/arnoldcp)\
**Post date:** [April 2, 2018, 5:16pm UTC](https://forums.maslowcnc.com/t/triangular-calibration-review/2995/16 "2018-04-02T17:16:35Z")

</div>

I shall hold off on the new routine. I’ll just do a normal calibration and cut a circle 😉

I have a good feeling about it tonight.

---

<div class="post-metadata">

**Author:** ![Steve\_Hall](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/steve_hall/32/13610_2.png) [@Steve\_Hall](https://forums.maslowcnc.com/u/Steve_Hall)\
**Post date:** [April 5, 2018, 2:09am UTC](https://forums.maslowcnc.com/t/triangular-calibration-review/2995/17 "2018-04-05T02:09:48Z")

</div>

I am using the new default frame with a ring kit. Attempting to move the bit 4 inches in the x and y. The actual distance moved by the bit is 4.25 in the x, and 3.5 in the y. I have tried the calibration a number of times. Any thoughts?

---

<div class="post-metadata">

**Author:** ![iltstb](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/iltstb/32/2291_2.png) [@iltstb](https://forums.maslowcnc.com/u/iltstb)\
**Post date:** [April 5, 2018, 3:03am UTC](https://forums.maslowcnc.com/t/triangular-calibration-review/2995/18 "2018-04-05T03:03:34Z")

</div>

DL,

I would like to know if someone would maybe design a drawing extension for the Maslow that weighed approximately the same as the router (a tall bottle of water could come close to weight). If we were to attach a bottle to a sharpie marker, and secure it with a 3d printed “jig” we could measure the fluctuations in precision using something that is essentially repeatable and inexpensive. We could even use large format post it notes to provide clean writing surfaces. I think that making cuts for calibration seems is a bit final.

---

<div class="post-metadata">

**Author:** ![mrfugu](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/mrfugu/32/22_2.png) [@mrfugu](https://forums.maslowcnc.com/u/mrfugu)\
**Post date:** [April 5, 2018, 3:29am UTC](https://forums.maslowcnc.com/t/triangular-calibration-review/2995/19 "2018-04-05T03:29:51Z")

</div>

There are a few different designs/hacks for putting a pen into the router housing. Check [the Wiki](https://github.com/MaslowCNC/Mechanics/wiki/Pen-and-Pencil-Drawing).

I don’t think any have yet taken into account the weight of the missing router, but it’s probably pretty easy to retrofit most of the ideas.

---

<div class="post-metadata">

**Author:** ![dlang](https://yyz1.discourse-cdn.com/flex031/user_avatar/forums.maslowcnc.com/dlang/32/859_2.png) [@dlang](https://forums.maslowcnc.com/u/dlang)\
**Post date:** [April 5, 2018, 3:33am UTC](https://forums.maslowcnc.com/t/triangular-calibration-review/2995/20 "2018-04-05T03:33:54Z")

</div>

what are teh results of your calibration (the numbers that it finds)?

David Lang

[Next page](https://forums.maslowcnc.com/t/triangular-calibration-review/2995.md?page=2)
