Topic: Automatic Bed Leveling
Check out this post at the Makergear Google Group -
https://groups.google.com/forum/?fromgr … HU5VEH6YxY
I don't know if his code is in the regular Marlin, there is a command (G29) to probe the bed at 3 spots using an endstop mounted to the extruder. The endstop on the extruder is wired together with the Z endstop. It will return coordinates for each endstop hit to the log, and you can see if they are the same, or if a screw needs to be adjusted somewhere.
G32 will check the 3 coordinates, determine bed's orientation with respect to X and Y, then create a transformation matrix that it will use to adjust Z on the fly to compensate for the bed's level. You could add it to the start code, and never level the bed again, unless it gets so bad that the Z movement starts to slow everything down.
The automatic compensation may not work without Z backlash being eliminated, but the probing by itself would be a great built-in replacement for using a dial gauge to determine level. The only challenge would be finding a way to extend and retract the endstop, because it would get in the way during a print.
Here is a video of a retractable Z probe on a Mendel - http://www.youtube.com/watch?v=uk29TIPouLk
He uses a magnet to hold it in place, and bumps into a screw from one direction to lever it down, and bumps it from the other direction to lever it back up.
