Backlash Compensation
Backlash is the lost motion or "slop" in a mechanical system caused by gaps between mating parts (e.g., a lead screw and nut, or loose belt teeth).
When an axis reverses direction, the motor turns for a brief moment to take up this slack before the load actually moves. This results in:
- Circles that are slightly flat at the quadrants (ovals).
- Undersized features.
- Poor surface finish.
The Golden Rule: Fix Mechanics First!
Software compensation is a band-aid, not a cure. Before enabling compensation:
- Belts: Ensure they are tight (like a guitar string).
- Couplers: Check for loose set screws on motor couplers.
- Anti-Backlash Nuts: Adjust or replace worn anti-backlash nuts on lead screws.
- Pinions: Ensure rack-and-pinion gears differ mesh properly.
Measuring Backlash
To configure compensation, you must first measure the exact amount of backlash on each axis.
Method: Dial Indicator (Best)
- Mount a dial indicator against a solid block on the axis.
- Zero the axis and the indicator.
- Move the axis away (e.g.,
G0 X10). - Move the axis back to zero (
G0 X0). - Read the indicator. The potential difference from zero is your backlash (repeat 5 times and average).
Method: Test Cut
- Cut a 20mm circle.
- Measure the diameter across X and Y.
- Calculate the difference between the expected diameter and the measured diameter.
Configuring Compensation
Note: Backlash compensation must be enabled in your firmware build (#define BACKLASH_COMPENSATION in my_machine.h). If these settings don't stick, you may need a firmware update.
Settings:
$160: X-axis backlash distance (mm)$161: Y-axis backlash distance (mm)$162: Z-axis backlash distance (mm)
Procedure:
- Enter your measured backlash value (e.g.,
$160=0.05for 0.05mm of slop). - Run a test circle.
- Adjust until the circle is perfectly round.
Tip: Be conservative. Compensating too much can cause jerky motion or "clunking" sounds.
Conclusion
You have now completed the core machine calibration! Your machine is:
- Accurate (Steps/mm)
- Fast & Smooth (Motion Tuning)
- Oriented (Homing)
- Precise (Backlash Compensation)
What's Next? Explore our Advanced Guides, such as Probing or Auto Tool Changers.