-
-
Notifications
You must be signed in to change notification settings - Fork 5.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
extras: Add automatic z calibration extension #4614
Conversation
docs/Z_Calibration.md
Outdated
``` | ||
[z_calibration] | ||
... | ||
start_gcode: DETACH_PROBE # replace with the name of your specific attach macro |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it's ATTACH_PROBE there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, changed it!
docs/G-Codes.md
Outdated
(also see the [Z-Calibration guide](Z_Calibration.md)): | ||
- `CALIBRATE_Z`: This calibrates the current offset between the nozzle and | ||
the print surface. | ||
- `PROBE_Z_ACCURACY [PROBE_SPEED=<mm/s>] [Lift_SPEED=<mm/s>] [SAMPLES=<count>] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: LIFT_SPEED
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, changed it!
docs/Z_Calibration.md
Outdated
``` | ||
[z_calibration] | ||
... | ||
before_switch_gcode: DETACH_PROBE # replace with the name of your specific attach macro |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it's ATTACH_PROBE there too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, changed it!
c8ccc63
to
bb1f931
Compare
Interesting. Thanks. Due to timing, however, this does not look like it will be something we can merge prior to the v0.10.0 release of Klipper ( https://klipper.discourse.group/t/upcoming-v0-10-0-release/791 ). Realistically, this means an October/November timeframe for this change. At a high-level, is this module specific to Voron users that have the z endstop pin and have a "klicky" probe? -Kevin |
@KevinOConnor any printer running an z endstop (that is probed with the nozzle) and a mechanical probe can run it. I know Voron and Annex printers running it |
bb1f931
to
850082b
Compare
docs/Z_Calibration.md
Outdated
|
||
If a bed mesh is used, the coordinates for probing on the print bed must be | ||
exactly the relative reference index point of the mesh since this is the point | ||
zero of the mesh! But, it is possible to ommit these properties completely and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo: ommit -> omit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I changed it, thanks!
850082b
to
eb1fc62
Compare
Since |
@wlhlm the problem with using home_xy_position that than the order of the blocks is important, so that is not a good idea. I would like a relative definition but I fear many people will have problems to define a relative X,Y definition and you need both |
Ahh, I see how that could be confusing. Then that would speak for a mechanism to allow using variables for regular config options other than gcode blocks |
eb1fc62
to
91c3fd6
Compare
91c3fd6
to
3bd7d47
Compare
3bd7d47
to
114174e
Compare
I see the discussion you are having here on the Z endstop position and I crashed my machine today because of that. The funny thing is that I already faced the same issue a couple of weeks ago but with the probing point on the bed : protoloft/klipper_z_calibration#20 The issue here could be easily generalized to allow setting almost all the value of the z calibration plugin at the runtime as arguments to the CALIBRATE_Z command. |
114174e
to
7b14710
Compare
7b14710
to
5b125ae
Compare
Thanks. I'm not sure what the state of this PR is. FWIW, I don't really understand what this module does. I get the impression this is a tool for Voron printers to align the calibration between the "nozzle mouse switch probe" and the "toolhead z probe". I suspect a reviewer ( https://www.klipper3d.org/Contact.html ) will need to volunteer to review this PR. FYI, a good place to discuss this PR, get testers, and engage a reviewer is on the Klipper Discourse server ( https://www.klipper3d.org/Contact.html ). -Kevin |
Hello Kevin, this is already heavily tested at least at Voron printers. Currently for testing it is linked as an extra module via https://github.com/protoloft/klipper_z_calibration. Best regards Alex |
This PR is derived from my Klipper extension at https://github.com/protoloft/klipper_z_calibration (as zellneralex already said). So, any printer having this setup with a magnetic switch probe and a second switch as z-endstop, which is probed by the nozzle, will work (however, not all kinematics are supported so far). Most of the code is for probing on these two switches and getting the standard parameters for doing this. Additionally, the probed positions need to be configured. And GCode hooks can be configured to attach/detach the probe in different stages. The calculation in the end is trivial. I tried to be compatible to this #4328 for such micro-switch-probes from @mental405 I can only speak for the Voron community, but it is already heavily used there. Currently, my github repo has 236 stars and on the Voron Discord the search for klipper_z_calibraton returns 446 result (and these are only the github links). |
5b125ae
to
68820f9
Compare
Signed-off-by: Titus Meyer <tm@protoloft.org>
68820f9
to
d767ac8
Compare
Unfortunately a reviewer has not assigned themselves to this GitHub Pull Request and it is therefore being closed. It is a good idea to move further discussion to the Klipper Discourse server. Reviewers can reach out on that forum to let you know if they are interested and when they are available. Best regards, PS: I'm just an automated script, not a human being. |
@KevinOConnor that is highly used at least in the Voron community and affects much more than 100 printers ... The feature is tested insight the community more than 6 month now, that tests started well before the PR was done (and also your changes to the rules by modifying your Contribution guidelines) . See https://github.com/protoloft/klipper_z_calibration It would be highly appreciated if some one of the reviewer team would volunteer and review it. |
With this pull request, I want to integrate my automatic z calibration into Klipper which is already widely used.
More on this can be found here: https://github.com/protoloft/klipper_z_calibration