Welcome! Log In Create A New Profile

Advanced

How would I edit Marlin so Auto Level (G29) probes areas twice?

Posted by MrMeeeseeeks 
How would I edit Marlin so Auto Level (G29) probes areas twice?
December 05, 2015 03:57PM
I want it to prob it, move up, then probe it again and take it's average. Can this be done?
Re: How would I edit Marlin so Auto Level (G29) probes areas twice?
December 05, 2015 05:34PM
Rich Cattell's Marlin by default probes then confirms the probed position by performing a repeatability test ie a second probe, before moving on to the next point.
Re: How would I edit Marlin so Auto Level (G29) probes areas twice?
December 06, 2015 06:15AM
I wrote a simple macro in pronterface to probe the towers three times with G30. The result got printed out in the status window, and I could average the numbers myself.

Tower A:
G1 F4000 X-124.8 Y-72 Z20
g30
g0 z20
g30
g0 z20
g30
g0 x0 y0 z100

Maybe you have to replace the coordinates to match your printer.
-Olaf
Re: How would I edit Marlin so Auto Level (G29) probes areas twice?
December 06, 2015 07:22AM
If you do not understand C at least a bit then this post is not for you.
Here is a patch which probes each point 5 times and uses results only from the middle 3 probes (ignoring the first and the last one).
[github.com]
It would be better to ignore probes with the biggest and the smallest deviation but I did not bother in Marlin. I have that in Repetier though. You can modify the Marlin patch the same way.
Re: How would I edit Marlin so Auto Level (G29) probes areas twice?
December 06, 2015 12:48PM
Quote
hercek
If you do not understand C at least a bit then this post is not for you.
Here is a patch which probes each point 5 times and uses results only from the middle 3 probes (ignoring the first and the last one).
[github.com]
It would be better to ignore probes with the biggest and the smallest deviation but I did not bother in Marlin. I have that in Repetier though. You can modify the Marlin patch the same way.

This worked perfectly! Thank you. I might put my own twist on this too
Re: How would I edit Marlin so Auto Level (G29) probes areas twice?
December 06, 2015 02:42PM
Go on improve it whatever way you like smiling smiley
I think the best thing would be to either remove properly the probe which led to maximum difference and the probe which led the minimum difference and then compute the average (as I have it on Repetier). Or remove only the first probing, or none.

Anyway it prints what values were probed in sorted order so you can look quite easily how well your probe (and the printer) works.
I know from the printed values that my probe measures the same value almost always. Sometimes there is one micro-step difference. And it is a very simple microswitch probe. Nothing fancy.
Sorry, only registered users may post in this forum.

Click here to login