Excellent question! This is a common point of confusion as both are critical calibration steps.
The short and definitive answer is: Perform bed leveling before you run input shaping calibration.
Here’s the detailed breakdown of the recommended workflow and the reasoning behind it.
The Correct Workflow
- Mechanical Check: Ensure your printer's frame is square, belts are properly tensioned, and there are no loose screws or wobbly parts. A solid foundation is key.
- Bed Leveling (Tramming): Physically level the print bed so that it is as parallel as possible to the gantry's X and Y axes of movement.
- Z-Offset Calibration: Set the correct distance between the nozzle and the print bed. This is crucial for first-layer adhesion and is the most important step for preventing a crash during the next phase.
- Input Shaping Calibration: Run the resonance measurement process (usually with an accelerometer). The printer will perform fast, sweeping movements to find the resonant frequencies of the X and Y axes.
- Save Configuration: Save the results to your printer's configuration file (e.g.,
printer.cfg in Klipper).
- Test Print: Print a ringing/ghosting test tower to confirm the results.
The "Why" Explained
Think of it in terms of dependencies and safety.
1. Safety: Collision Avoidance is Paramount
- What happens during input shaping calibration? The printer moves the toolhead very rapidly along the X and Y axes to excite vibrations and measure them with an accelerometer.
- What happens if you haven't leveled or set the Z-offset? The printer doesn't know the correct height of the print bed. During the fast test movements, the nozzle can easily crash into the print surface, bed clips, or even the bed probe itself. This can damage your nozzle, your build plate, and your sanity.
By leveling and setting the Z-offset first, you are teaching the printer its physical boundaries, ensuring it can perform the high-speed input shaping tests safely without collision.
2. Logic: One Process Doesn't Affect the Other's Results
-
Does Leveling Affect Input Shaping Results? No. Input shaping measures the resonant frequencies of your printer's motion system. These frequencies are determined by the mass of the moving parts (toolhead, gantry), the stiffness of the frame, and the tension of the belts. Changing the Z-offset by a fraction of a millimeter does not change these fundamental physical properties. The vibration profile of your X-axis will be the same whether the nozzle is at Z=0.2mm or Z=50mm.
-
Does Input Shaping Affect Leveling? Not directly. Input shaping is a software algorithm that modifies the movement commands sent to the motors. It doesn't physically alter the height of the bed or the nozzle. Once you've calibrated it, it works in the background. You won't need to re-level your bed just because you enabled input shaping.
Summary Table
| Step | What It Does | Why It Comes First |
|---|
| 1. Bed Leveling & Z-Offset | Establishes the physical Z=0 plane of your printer. Sets the safe operating area. | Safety First! Prevents the nozzle from crashing into the bed during the fast movements of the input shaping test. |
| 2. Input Shaping | Measures the inherent vibrations of the printer's X and Y axes and creates a compensation algorithm. | This process is independent of the Z-height, but it requires a safe Z-height to run without causing physical damage. |
Conclusion: Always get your printer's physical setup and safety boundaries defined first. That means leveling your bed and setting your Z-offset before you proceed with advanced motion system tuning like input shaping.