Anonoei / klipper_auto_tap

Automatically find Voron TAP's probe offset
MIT License
45 stars 8 forks source link

Not really an issue: Trident calculating using lead screw rotation distance. #10

Open EightFinger opened 11 months ago

EightFinger commented 11 months ago

Hey, I´m currently trying to make the AUTO_TAP probing more accurate for Trident. I do maybe have an idea that could help with the accuracy. Since the Voron 2.4 you developed this on is belt driven on the Z axis, its almost "unlimited" in Z precision, only the stepper motor step angle (1.8 or 0.9) and the microsteps settings change that. Is that correct? For the Trident with the lead screw, we have another variable to take into consideration, namly the lead of the lead screw. This can range from 2, 4 to 8. But 2 and 4 are mostly used on Tridents, at least thats what I read. The lead says how much lift is generated in one rotation. A lead of 4 means, one rotation equals 4mm of lift. With a 1.8 degree stepper motor, that has 200 steps per rotation, that means that lead screw lifts only 0.02mm per step in a full step manner. Since we can use microstepping in our drivers, often 16 or 32, we can divide the lift per step by the microsteps and get a lift/microstep amount. In my case with 32 microsteps, I get a lift of 0.000625 per microstep. I used that value in your tool in the "step:" setting and a slow probe speed and now it has really accurate calculation because it now checks exactly every microstep if TAP is de-actuated. The stock step settings of 0.005 equal 4 microsteps with a 1.8 degree stepper motor.

Here are some pictures to visualize it a bit better. grafik grafik

I already tested some different combinations, to see if it makes a difference. Like 32 microsteps and 0.00125 or 16 microsteps and the correct corresponding 0.00125, but all those were a little off.

I did home and Z_tilt before every AUTO_TAP usage.

Can some other Trident users please check this too?