Auto z offset using sensor

Hello I was wondering if I could do something like this Automatic Z offset calibration with an external sensor - YouTube
And how would I go about it…
I had in mind using an extra end stop sensor I have and mount it to the corner of the bed but I don’t know how I can make an equation that figured out the offset on klipper

You need to first make the sensor and put it as an input to your main board somewhere. Then you just need to write a macro in your config file to put the offset in for the Z height.

You might want to check:

or

1 Like