Re: New Duet firmware with fast 7-factor delta calibration April 09, 2015 03:59AM |
Registered: 10 years ago Posts: 21 |
Re: New Duet firmware with fast 7-factor delta calibration April 09, 2015 08:27AM |
Registered: 11 years ago Posts: 14,685 |
Re: New Duet firmware with fast 7-factor delta calibration April 09, 2015 01:18PM |
Registered: 10 years ago Posts: 21 |
Re: New Duet firmware with fast 7-factor delta calibration April 09, 2015 02:46PM |
Registered: 11 years ago Posts: 14,685 |
Re: New Duet firmware with fast 7-factor delta calibration April 09, 2015 03:03PM |
Registered: 10 years ago Posts: 21 |
Re: New Duet firmware with fast 7-factor delta calibration April 09, 2015 03:44PM |
Registered: 11 years ago Posts: 14,685 |
Re: New Duet firmware with fast 7-factor delta calibration April 11, 2015 10:28AM |
Registered: 9 years ago Posts: 977 |
Quote
dc42
Quote
AndrewBCN
Quote
dc42
What sort of Z probe are you designing? I will shortly be ordering PCBs for a variant of my differential IR board, reduced in size to fit under the effectors of most delta printers.
Oh, I am simply designing a holder for one of these $1 Makerbot-style mechanical micro switches that will fit my Kossel Mini effector (the same one I am using for the endstops, see my blog).
How are you deploying it?
...
Re: New Duet firmware with fast 7-factor delta calibration April 11, 2015 11:37AM |
Registered: 11 years ago Posts: 14,685 |
Re: New Duet firmware with fast 7-factor delta calibration April 11, 2015 11:41AM |
Registered: 10 years ago Posts: 1,159 |
Quote
dc42
15mm might just be possible if I put the Molex connector right above the sensor head parts n(or use a different connector) and the microcontroller to one side. 10mm looks impossible. Can you post a photo showing how the hot end is mounted on the effector?
Re: New Duet firmware with fast 7-factor delta calibration April 11, 2015 01:34PM |
Registered: 11 years ago Posts: 14,685 |
Re: New Duet firmware with fast 7-factor delta calibration April 14, 2015 05:55AM |
Registered: 11 years ago Posts: 14,685 |
Re: New Duet firmware with fast 7-factor delta calibration April 21, 2015 03:45PM |
Registered: 9 years ago Posts: 76 |
Re: New Duet firmware with fast 7-factor delta calibration April 21, 2015 04:31PM |
Registered: 11 years ago Posts: 14,685 |
Re: New Duet firmware with fast 7-factor delta calibration April 24, 2015 03:57AM |
Registered: 10 years ago Posts: 1,159 |
.Quote
dc42
Of possible interest to readers of this thread is that there is now a second manufacturer of Duet boards. They cost $79.99 plus shipping direct from Hong Kong, see [www.replikeo.com]. Please note, I have no connection with that company, and I have not tried one of their boards yet.
Re: New Duet firmware with fast 7-factor delta calibration June 02, 2015 05:03AM |
Registered: 10 years ago Posts: 210 |
Re: New Duet firmware with fast 7-factor delta calibration June 02, 2015 05:36AM |
Registered: 11 years ago Posts: 14,685 |
Quote
Dejay
Hey DC42, awesome! Really great work.
Quote
Dejay
I've tried to do the same for machinekit a while ago but didn't get it integrated properly and had some bugs with the numerical optimizer and used lengthy formulas. But it worked. Your approach seems so much more elegant. Unfortunately I don't understand any of it Well I figure you write the kinematic solution for Z=0 into a matrix type equation and use a solver for this but I don't quite follow.
Is there a way to explain this more easily to a programmer or will I just have to look up and learn the relevant math stuff?
Quote
Dejay
BTW could your method be expanded to also solve skewed towers? That would be 6 factors more and a little more probing of course. Probably it's not really needed but it might be interesting to improve precision even with none perfectly built deltas (belt tensioning for the kossel mini for example could easily lead to a few degrees of skew or if printed parts didn't come out exact) and it might be interesting for more unusual delta configurations. And it would also compensate correctly if the build plate and not the towers are skewed (same thing). It might not be that important but this final step haunted me for a year now haha. Of course first you'd have to have the inverse / forward kinematics for skewed tower builds.
Quote
Dejay
There are two threads in the delta forum about this too:
[groups.google.com]
[groups.google.com]
Re: New Duet firmware with fast 7-factor delta calibration June 02, 2015 06:33AM |
Registered: 10 years ago Posts: 210 |
Quote
dc42
I am more of a software engineer than a mathematician too. I looked up the technique for solving multi-variable linear least squares on Wikipedia. I am aware that some of the techniques I use are not optimal, for example there are better ways of solving the Gramian matrix equation than using Gauss-Jordan elimination. The numerical differentiation I am using could be replaced by an analytic solution, but I gave up on that because wxMaxima kept crashing, due I think to the long formulae involved. Using numerical differentiation has the advantage that if the delta movement equations are ever changed e.g. to allow for leaning towers, no changes to the calibration algorithm would be needed, other than to support bumping of the additional parameters.
Quote
dc42
In fact the main problem I had with my Mini Kossel build that prompted me to implement the auto calibration was skewed towers. The auto calibration handled the skewed towers adequately. To a first approximation, a skewed tower behaves like a straight tower offset from its correct position slightly, by the amount that the skew causes at the average carriage height. I looked at dealing with skewed towers properly, but complicates the kinematics considerably, so I didn't pursue it. However, it occurs to me that if a tower that is skewed in the radial direction, if we adjust the diagonal rod length to that tower as well as the position, we should get a better approximation of the resulting head movement. So I think the next step in achieving even better calibration may be to have 3 diagonal rod length parameters instead of just one.
Quote
dc42
But in my latest delta build (as shown in the video and described on my blog), I use metal corner pieces in an attempt to avoid skewed towers.
A : (x-xa + ta*xsa)^2 + (y-ya + ta*ysa)^2 + (1-xsa^2-ysa^2)*(ta+oa)^2 - rod1^2 = 0 = z^2 B : (x-xb + tb*xsb)^2 + (y-yb + tb*ysb)^2 + (1-xsa^2-ysa^2)*(tb+ob)^2 - rod2^2 = 0 = z^2 C : (x-xc + tc*xsc)^2 + (y-yc + tc*ysc)^2 + (1-xsa^2-ysa^2)*(tc+oc)^2 - rod3^2 = 0 = z^2
Re: New Duet firmware with fast 7-factor delta calibration June 02, 2015 06:51AM |
Registered: 11 years ago Posts: 14,685 |
Quote
Dejay
So if I understand this correctly you do not have to eliminate the x,y and z coordinates from the kinematic equations? I don't see where the delta kinematic formula is used during the calibration, except for InverseTransform in the ComputeDerivative. Is that all that is needed?
Quote
Dejay
Oh I didn't see any metal corner pieces in the video?
Quote
Dejay
Also a nice UI for the printer. But I still think the ideal printer display would be cheap android tablet showing a webGL website from an integrated webserver running on the controller
Quote
Dejay
Anyway just to dump this somewhere (maybe someone smart will have a look) - the kinematic formula for skewed towers looked like this:
(xa / ya is tower offsets x/y and xsa/ysa are tower skew offsets etc.)
A : (x-xa + ta*xsa)^2 + (y-ya + ta*ysa)^2 + (1-xsa^2-ysa^2)*(ta+oa)^2 - rod1^2 = 0 = z^2 B : (x-xb + tb*xsb)^2 + (y-yb + tb*ysb)^2 + (1-xsa^2-ysa^2)*(tb+ob)^2 - rod2^2 = 0 = z^2 C : (x-xc + tc*xsc)^2 + (y-yc + tc*ysc)^2 + (1-xsa^2-ysa^2)*(tc+oc)^2 - rod3^2 = 0 = z^2
Someone on math.stackexchange helped me eliminate the x and y for the inverse kinematics. But I think you actually have to do it differently because only two equations of the three got used and I think that leads to divisions by zero and problem cases. My resulting code fails to compute the forward / inverse kinematics as soon as the skew variables are non zero.
Re: New Duet firmware with fast 7-factor delta calibration June 05, 2015 11:57AM |
Registered: 10 years ago Posts: 45 |
Re: New Duet firmware with fast 7-factor delta calibration June 05, 2015 12:17PM |
Registered: 11 years ago Posts: 14,685 |
Quote
Cammi
hello DC42 ,
When the autocalibration is performed , is there a way to save the data or do we have to redo the calibration everytime we start the printer?
Re: New Duet firmware with fast 7-factor delta calibration June 21, 2015 12:15PM |
Registered: 10 years ago Posts: 210 |
Quote
dc42
I'm coming to the opinion that it's probably not worth adjusting the diagonal rod length during auto calibration. It's the one parameter that you should be able to get spot-on. When I use 6- instead of 7-factor calibration, the RMS error increases only slightly. If the diagonal rod length gets adjusted too much, then the XY scaling will be wrong.
Re: New Duet firmware with fast 7-factor delta calibration June 21, 2015 04:49PM |
Registered: 11 years ago Posts: 14,685 |
Quote
Dejay
Don't ever doubt the awesomeness of the numerical calibration approach! I didn't follow this problem too closely but anyways - one thing I found with my experiments is that 100% symmetrical probe points can lead to multiple solutions. Simply randomizing the probe points a little bit by +/- 5mm solves this. Or more probe points. This was true for a simulated or "ideal" delta but it might cause problems for a real delta too. The optimization could converge to different local minima (I used random restart). There is probably a mathematical reason for this, a singularity or harmonic or something that fits the same probe points. Maybe this is related to the problem mentioned. Or maybe it doesn't apply to this at all.
Re: New Duet firmware with fast 7-factor delta calibration June 21, 2015 11:49PM |
Registered: 10 years ago Posts: 210 |
Re: New Duet firmware with fast 7-factor delta calibration September 04, 2015 05:33PM |
Registered: 9 years ago Posts: 21 |
Re: New Duet firmware with fast 7-factor delta calibration September 04, 2015 08:09PM |
Registered: 10 years ago Posts: 140 |
Re: New Duet firmware with fast 7-factor delta calibration September 05, 2015 02:23AM |
Registered: 9 years ago Posts: 445 |
Quote
bower-andy
@dc42, I have been using your mini IR sensor board with the n-factor auto-calibration and I'm seeing some strange effects which I'm starting to think are due to the offset of the probe location from the nozzle centre. As I think you have suggested, I have set the probe X, Y offsets to zero:
M558 P1 X0 Y0 Z0.7
even though the actual Y offset is about 8mm.
Now, when I do a 4 factor calibration everything works fine and I get a decent print. See the first photo. If I do a 6 factor calibration, the print is still good (although it looks *slightly* worse than the original) but if I perform a 7 factor, everything goes pear-shaped (almost literally). Hopefully you can see that the x-y dimensions of the nominal 20mm cube are reduced to 18.5mm although the height remains good. The sides are also curved.
best regards
Re: New Duet firmware with fast 7-factor delta calibration September 05, 2015 03:40AM |
Registered: 9 years ago Posts: 21 |
Re: New Duet firmware with fast 7-factor delta calibration September 05, 2015 03:50AM |
Registered: 11 years ago Posts: 14,685 |
Quote
bower-andy
@dc42, I have been using your mini IR sensor board with the n-factor auto-calibration and I'm seeing some strange effects which I'm starting to think are due to the offset of the probe location from the nozzle centre. As I think you have suggested, I have set the probe X, Y offsets to zero:
...
Do you think there is any adjustment necessary to the calibration algorithm to account for the IR sensor offset? I still have the IR sensor attached to my effector so I can switch back if you need me to do any measurements. I'd actually like to go back to using the IR sensor if possible since it will allow me to fix the bed rigidly to the printer base, which isn't possible when using the FSRs.
best regards
Re: New Duet firmware with fast 7-factor delta calibration September 05, 2015 03:52AM |
Registered: 11 years ago Posts: 14,685 |
Quote
3DRapidClone
Hey DC42, is your current branch up to date with the X4 extension boards and the 4 additional extruders?
Re: New Duet firmware with fast 7-factor delta calibration September 05, 2015 03:53AM |
Registered: 11 years ago Posts: 14,685 |
Quote
Koenig
Quote
bower-andy
@dc42, I have been using your mini IR sensor board with the n-factor auto-calibration and I'm seeing some strange effects which I'm starting to think are due to the offset of the probe location from the nozzle centre. As I think you have suggested, I have set the probe X, Y offsets to zero:
M558 P1 X0 Y0 Z0.7
even though the actual Y offset is about 8mm.
Now, when I do a 4 factor calibration everything works fine and I get a decent print. See the first photo. If I do a 6 factor calibration, the print is still good (although it looks *slightly* worse than the original) but if I perform a 7 factor, everything goes pear-shaped (almost literally). Hopefully you can see that the x-y dimensions of the nominal 20mm cube are reduced to 18.5mm although the height remains good. The sides are also curved.
best regards
Don't think the M558 command is used the set the offset, see this: [reprap.org]