Let’s keep this thread for solving @KDB’s calibration software issue but that’s a great question
you should put support at the same level as your workpiece for a couple inches
out. you don’t need to support all of the sled, but you need to support a bit.
David Lang
Latest try. Older Mac On safari. Loaded new firmware. It gets further than the other Mac but I don’t see the end results shown in the docs.
It ends with a message of calibration complete followed by CLBM and a boatload of bracketed Measurements. After 20 of waiting nothing more.
If you do come up with a way to speed up calibration, that would be great. Trying to solve a calibration issue and you don’t know if it worked until after an hour of calibrating can be a little bit painful.
Can you copy and paste these? I truly have no idea what this could be coming from
I couldn’t agree more.
[MSG:INFO: Calibration complete]
CLBM:[{bl:1043.88, br:3057.75, tr:3398.81, tl:1809.11},{bl:1138.20, br:3086.24, tr:3339.90, tl:1695.76},{bl:1236.13, br:3123.58, tr:3284.47, tl:1583.79},{bl:1339.18, br:3166.87, tr:3232.67, tl:1473.47},{bl:1446.03, br:3214.01, tr:3184.73, tl:1365.07},{bl:1557.18, br:3266.96, tr:3140.80, tl:1259.18},{bl:1671.80, br:3324.43, tr:3101.04, tl:1156.50},{bl:1788.67, br:3384.36, tr:3065.64, tl:1058.02},{bl:1910.95, br:3452.63, tr:3034.72, tl:964.75},{bl:2010.66, br:3264.82, tr:2811.83, tl:1133.22},{bl:1895.15, br:3195.06, tr:2845.05, tl:1213.08},{bl:1784.03, br:3129.10, tr:2883.12, tl:1299.89},{bl:1676.85, br:3068.76, tr:2925.84, tl:1392.01},{bl:1574.10, br:3013.39, tr:2972.95, tl:1488.47},{bl:1474.74, br:2962.24, tr:3024.26, tl:1588.54},{bl:1381.47, br:2917.51, tr:3079.54, tl:1691.32},{bl:1293.10, br:2880.54, tr:3138.59, tl:1796.49},{bl:1210.93, br:2847.36, tr:3201.21, tl:1903.71},{bl:1391.90, br:2624.88, tr:3008.24, tl:2020.42},{bl:1465.27, br:2664.71, tr:2941.52, tl:1919.68},{bl:1543.48, br:2709.24, tr:2878.42, tl:1821.53},{bl:1628.91, br:2758.36, tr:2819.19, tl:1726.46},{bl:1720.61, br:2812.74, tr:2764.08, tl:1634.90},{bl:1815.82, br:2873.01, tr:2713.38, tl:1547.70},{bl:1915.77, br:2937.91, tr:2667.31, tl:1465.39},{bl:2020.73, br:3006.82, tr:2626.12, tl:1388.96},{bl:2130.11, br:3082.36, tr:2590.09, tl:1319.55},{bl:2261.78, br:2901.81, tr:2369.84, tl:1518.85},{bl:2160.74, br:2824.33, tr:2409.21, tl:1578.90},{bl:2062.61, br:2749.48, tr:2454.06, tl:1646.49},{bl:1969.82, br:2679.85, tr:2504.01, tl:1720.11},{bl:1881.13, br:2616.06, tr:2558.89, tl:1799.05},{bl:1797.20, br:2556.37, tr:2618.34, tl:1882.62},{bl:1720.55, br:2504.66, tr:2681.94, tl:1970.14},{bl:1648.31, br:2458.42, tr:2749.57, tl:2061.19},{bl:1585.12, br:2416.62, tr:2820.81, tl:2155.29},{bl:1784.77, br:2200.63, tr:2640.19, tl:2305.38},{bl:1842.14, br:2249.00, tr:2563.96, tl:2217.54},{bl:1906.90, br:2300.40, tr:2491.29, tl:2133.21},{bl:1977.51, br:2358.49, tr:2422.63, tl:2052.61},{bl:2053.80, br:2422.36, tr:2358.26, tl:1976.33},{bl:2135.28, br:2492.15, tr:2298.72, tl:1904.72},{bl:2222.46, br:2566.47, tr:2244.12, tl:1838.47},{bl:2312.69, br:2646.04, tr:2194.97, tl:1778.36},{bl:2407.08, br:2729.09, tr:2151.77, tl:1725.02},{bl:2565.19, br:2565.22, tr:1936.48, tl:1936.28},{bl:2474.68, br:2473.79, tr:1984.34, tl:1984.28},{bl:2389.36, br:2390.59, tr:2038.45, tl:2038.43},{bl:2309.17, br:2309.36, tr:2098.41, tl:2098.38},{bl:2234.22, br:2234.83, tr:2163.56, tl:2163.55},{bl:2165.19, br:2163.76, tr:2233.49, tl:2233.51},{bl:2101.91, br:2100.41, tr:2307.79, tl:2307.75},{bl:2044.49, br:2041.45, tr:2385.91, tl:2386.03},{bl:1993.31, br:1990.74, tr:2467.71, tl:2467.69},{bl:2202.15, br:1784.55, tr:2305.32, tl:2640.15},{bl:2248.02, br:1842.68, tr:2217.59, tl:2563.90},{bl:2299.80, br:1906.43, tr:2133.23, tl:2491.27},{bl:2359.07, br:1976.83, tr:2052.67, tl:2422.59},{bl:2422.59, br:2053.56, tr:1976.33, tl:2358.26},{bl:2492.18, br:2134.87, tr:1904.80, tl:2298.66},{bl:2566.28, br:2221.22, tr:1838.53, tl:2244.06},{bl:2645.33, br:2309.58, tr:1778.25, tl:2195.04},{bl:2730.65, br:2405.63, tr:1724.69, tl:2151.98},{bl:2903.10, br:2260.40, tr:1518.32, tl:2370.00},{bl:2823.62, br:2160.81, tr:1579.19, tl:2409.19},{bl:2749.01, br:2061.63, tr:1646.47, tl:2454.10},{bl:2678.94, br:1968.53, tr:1720.14, tl:2504.08},{bl:2616.10, br:1879.72, tr:1799.05, tl:2558.96},{bl:2556.77, br:1797.46, tr:1882.64, tl:2618.32},{bl:2503.23, br:1719.74, tr:1970.20, tl:2681.94},{bl:2455.57, br:1648.90, tr:2061.22, tl:2749.55},{bl:2412.65, br:1585.41, tr:2155.33, tl:2820.81},{bl:2628.41, br:1393.39, tr:2020.26, tl:3008.23},{bl:2663.18, br:1464.78, tr:1919.70, tl:2941.52},{bl:2708.26, br:1543.66, tr:1821.56, tl:2878.42},{bl:2758.94, br:1628.36, tr:1726.52, tl:2819.20},{bl:2813.57, br:1720.22, tr:1634.89, tl:2764.10},{bl:2873.35, br:1815.96, tr:1547.61, tl:2713.36},{bl:2937.89, br:1916.06, tr:1465.32, tl:2667.29},{bl:3006.48, br:2018.06, tr:1388.90, tl:2626.16},{bl:3081.70, br:2125.70, tr:1319.42, tl:2590.10},{bl:3264.54, br:2008.86, tr:1132.91, tl:2811.75},{bl:3193.94, br:1893.28, tr:1213.14, tl:2845.00},{bl:3129.00, br:1783.31, tr:1299.71, tl:2883.14},{bl:3068.58, br:1675.51, tr:1391.95, tl:2925.84},{bl:3012.68, br:1572.99, tr:1488.50, tl:2972.96},{bl:2962.19, br:1474.19, tr:1588.44, tl:3024.26},{bl:2916.30, br:1380.02, tr:1691.26, tl:3079.55},{bl:2875.09, br:1291.51, tr:1796.53, tl:3138.59},{bl:2840.85, br:1210.31, tr:1903.78, tl:3201.21},{bl:3057.03, br:1046.19, tr:1809.07, tl:3398.80},{bl:3088.66, br:1137.52, tr:1695.76, tl:3339.91},{bl:3125.62, br:1237.03, tr:1583.89, tl:3284.44},{bl:3168.18, br:1340.05, tr:1473.51, tl:3232.66},{bl:3215.75, br:1446.93, tr:1365.05, tl:3184.73},{bl:3266.90, br:1557.74, tr:1259.16, tl:3140.80},{bl:3323.88, br:1670.71, tr:1156.57, tl:3101.03},{bl:3384.11, br:1786.80, tr:1057.97, tl:3065.64},{bl:3450.52, br:1908.80, tr:964.73, tl:3034.72},]
I’ve found a couple issues as I’ve been investigating this, but I don’t think that any of them are the issue that you are seeing. I am going to keep digging into this until I can figure out what is going on.
In the mean time the good news is that those numbers are the raw data needed to compute the calibration so I was able to compute it for you here if you want to skip figuring it out and jump to the answer.
Fitness: 0.6394170814561981
TLX: 2.8261539845787076,
TLY 2436.220662692549),
TRX: 3661.4228035375863,
TRY: 2431.6915843703505
BRX: 3657.194987003678
I would prefer to figure it out. I rarely end up doing something like this just once.
In the meantime I will use your numbers.
I’ve been playing around with it more and I think that something really interesting is going on here. What I think is happening is that there is something about your frame dimensions that are preventing the calculations from finishing.
The way the calculation works is that it keeps running until the results stop improving…the problem is that with the numbers you gave me the results don’t seem to ever stop improving. The rate of improvement gets slower and slower, but there is still enough improvement that it keeps running (at least for the 40 minutes or so that I was willing to wait).
I’ll dig into the math more deeply and try to understand what’s happening, but for now I think that the fix is to put a cap on the number of iterations it will try at something large like 300k. That way you will always get an answer instead of the current situation where it “thinks” forever.
It would also be great to have more visibility into the process so you can see what it is doing and understand how the computation is progressing.
I’ll try to get a basic fix working for the weekly firmware release tomorrow, but I think it’s also going to be a part of a larger project.
Maybe a user defined set point in the yaml?
I think that is a fantastic idea
@bar does the config file allow comments like any normal programming language …?
If so, can you annotate each of the sets of parameters so we know what they do …??
Even if it’s some sort of ‘# Leave these alone’ or ‘# Set these after calibration’ type comments would be really useful
Unfortunately I tried adding comments and it didn’t seem to work. It’s possible that I was doing it wrong, but my first attempt at it wasn’t successful.
Today’s firmware update will fix that by preventing the motors from moving until all of the belts are extended. The way it works now is that all the motors are prevented from moving until after “Retract all” is pressed so if you turn the machine on you can move Z without that happening. Someone else pointed out that same issue so in the version coming out today the motors won’t do that until after the belts are extended.
The reason that is happening is that whenever the machine is moving one axis it tries to position hold on the other axis and it realizes that the belts are way to short and tries to extend them.
I’m making good progress on your calibration issue and finding some other things to fix along the way. Great tips! I’m hoping to have an update which will fix it today (although not for a few hours yet).
Here is a cool gif of the system working
That is cool.
Search for “whill”in your code.
Fixed, but it will be in next week’s release
Will you give Releases · BarbourSmith/FluidNC · GitHub a try and let me know if it fixes your calibration issues?
I tweaked how things work under the hood quite a bit to allow for faster testing on a small grid like 2x2, but I didn’t quite make it far enough to fully implement reading those settings from the .yaml file. I will have that done in the next version.
@bar Hoping all is well with your mother.
Slightly off-topic, and I apologize if this has been answered elsewhere, but am I correct that accuracy should improve with a larger anchor spread (within reason)- ie 12x8 is better than 10x8?
Working through the update.
For others.
On my Mac it automatically unpacks the .gz on download. Be mindful as that will fail upon upload.
I did not notice at first. Deleted the html and restarted. That brought up a new page for missing files. That new page has a better more obvious design for uploads.
If you find yourself confused on what to upload, delete the html and restart. The page that comes is much more clear for the non literate. .