Skip to content
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

Not an issue, but an idea about autocalibrating switch_offset value #42

Closed
falcon14141 opened this issue Mar 7, 2022 · 4 comments
Closed

Comments

@falcon14141
Copy link

falcon14141 commented Mar 7, 2022

Hi,

I successfully use your code on my Voron2 equipped with a klicky probe.
Manual calibration of the switch_offset works fine, but is still a hassle.

I recently had to change my klicky probe to a spare one, and unfortunately, the switch_offset wasn't the same on the 2nd microswitch.

This gave me an idea on a possible way to try, and maybe achieve autocalibration of the swith offset:

On a voron we have to "endstops" being the z_endstop end the probe.
If we probe the magprobe two times, we could maybe get the relative distance travelled by the microswitch.

I'll try to explain my idea further with the description of a calibration sequence:

  • probe nozzle on Z-endstop
  • attach magprobe
  • probe magprobe main microswitch body on Z-endstop
  • probe magprobe microswitch actuator on Z-endstop and wait for having both Z_endstop and probe endstop triggered

We should now have the means to compute both relative distances between all required values.

Unofrtunately, I lack the base knowledge on klipper to implement this idea, and would appreciate your insights

@gongloo
Copy link

gongloo commented Mar 10, 2022

I was just thinking the same thing, but a step further: if we probe the two end stops right on top of each other as you describe, then we don't need to probe the body of the mag probe at all. Thoughts?

@TitusLabs
Copy link
Member

TitusLabs commented Mar 25, 2022

I'm sorry, this will not work! Please read the switch section. I had this discussion already many times!
How would this solve your intention to measure or eliminate the switch offset? Can you tell what exactly would happen if you do so? I cannot.. it depends on so many things and even if it does what you think it would be very fragile. It would just work out in a perfect world where both switches always trigger at the exact same time..

@jangrewe
Copy link

I had the same idea, but just because the Z Endstop's switch triggers, doesn't mean that it doesn't travel further down after being triggered - potentially falsifying the actual travel distance. Same for the magprobe. Depends on who triggers easier.

This would (maybe) work if both switch trigger and have 0 travel of the switch actuator afterwards... or not, i need to read up on that again. ;-)

@TitusLabs
Copy link
Member

Correct! And, even if there would be no overtravel, the probe has to trigger before the endstop - reliably! The latter one could be achieved by a sexbolt endstop with a spring...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants