Input shaping is a motion-control technique in printer firmware that modifies the commanded movement so that it does not excite the mechanical resonances of the machine, which suppresses the ringing or ghosting that fast moves leave on printed walls. In 3D printer hardware and firmware, it is one of the main reasons modern machines in 3D printing & making can print at accelerations several times higher than earlier designs.
The technique is also called resonance compensation. It originated in industrial control of cranes and robot arms, and it reached desktop printers through Klipper, RepRapFirmware and Marlin, as well as in closed implementations on many commercial machines.
Why printers ring
Every printer frame, gantry and belt drive behaves like a spring and mass system with one or more natural frequencies. When the toolhead changes direction sharply, the sudden change in force excites these frequencies, and the nozzle keeps oscillating for a short time after the corner. The oscillation is printed into the wall as a series of fading ripples just after sharp edges and embossed features.
The spacing of the ripples reveals the frequency: dividing the print speed by the ripple spacing gives the resonant frequency in hertz. Typical values range from about 30 Hz on heavy bed slingers to 70 to 120 Hz on stiff CoreXY machines, and each axis usually has its own frequency.
Ringing becomes worse as acceleration rises, because a larger change in force puts more energy into the oscillation. Before input shaping, the usual remedy was to lower acceleration and jerk limits, which reduced artifacts but lengthened every print. Heavier toolheads, taller gantries and moving beds all lower the natural frequency and make the problem more visible.
How input shaping cancels vibration
An input shaper splits each motion command into several smaller impulses, timed so that the vibrations they excite cancel one another. The simplest shaper, ZV, applies two impulses half a resonance period apart; the second impulse produces a vibration in opposite phase to the first, so the residual motion is close to zero.
Mathematically, the firmware convolves the planned motion with a short sequence of weighted impulses. The trade-off is smoothing: the shaped motion lags slightly behind the original, which rounds sharp corners. Shapers that tolerate a wider band of frequencies use more impulses, last longer and smooth more, so they demand lower maximum acceleration to keep corners crisp.
| Shaper | Duration in resonance periods | Robustness to frequency error | Smoothing |
|---|---|---|---|
| ZV | 0.5 | Low | Lowest |
| MZV | 0.75 | Moderate | Low |
| ZVD | 1.0 | Moderate | Moderate |
| EI | 1.0 | High | Moderate |
| 2HUMP_EI | 1.5 | Very high | High |
| 3HUMP_EI | 2.0 | Very high | Highest |
Measuring resonance frequencies
A shaper only works when it is tuned to the actual resonant frequency of each axis. There are two common ways to find it. The manual method prints a ringing tower at increasing accelerations and measures ripple spacing. The automatic method mounts an accelerometer such as the ADXL345 on the toolhead and bed, sweeps the axes through a range of frequencies and records the response.
Accelerometer measurements produce a frequency response graph that shows peaks at each resonance. Klipper analyzes the data, recommends a shaper type and frequency for each axis, and estimates the highest acceleration that keeps smoothing acceptable. Many commercial printers run a similar vibration calibration automatically before the first print.
| Method | Equipment | Accuracy | Best suited to |
|---|---|---|---|
| Ringing tower test print | Calipers and a test model | Moderate | Printers without sensors |
| External accelerometer | ADXL345 or LIS2DW board | High | Klipper and RepRapFirmware users |
| Built-in sensor calibration | Integrated accelerometer | High | Commercial closed printers |
Firmware support and configuration
Input shaping is now available in all major open printer firmwares, although the depth of the feature differs. Klipper offers the widest choice of shapers and built-in analysis tools; Marlin added ZV and later MZV and related options; RepRapFirmware supports several shapers configured through G-code commands.
| Firmware | Shaper options | Tuning workflow |
|---|---|---|
| Klipper | ZV, MZV, ZVD, EI, 2HUMP_EI, 3HUMP_EI | Accelerometer scripts with automatic recommendation |
| RepRapFirmware | ZVD, MZV, EI and others | Accelerometer data or manual frequency entry |
| Marlin | ZV and later variants | Manual frequency and damping settings |
Typical configuration sets a shaper type and frequency for each axis separately. A bed slinger usually needs a lower Y frequency because the moving bed is heavy, while a CoreXY machine often shows similar frequencies on both axes. After a mechanical change, such as a new toolhead or belt tension adjustment, the measurement should be repeated.
Limits and common mistakes
Input shaping reduces the symptoms of resonance but does not fix a weak frame. Loose belts, wobbling wheels and flexible mounts create broad or multiple resonance peaks that a single shaper cannot cancel. Mechanical stiffness remains the foundation, and shaping works best on a printer that is already well assembled.
- Using a stale frequency after hardware changes leaves ringing only partly suppressed.
- Choosing an aggressive shaper with excessive acceleration rounds corners and blurs fine detail.
- Measuring with a loose accelerometer mount produces misleading peaks.
- Expecting a fix for layer shifts is a misconception, because shifts come from skipped steps, not vibration.
Input shaping also interacts with pressure advance, which compensates for extruder lag. Both should be tuned, and pressure advance is usually checked again after enabling a new shaper, because the effective acceleration profile changes.
The idea in brief
When a printer head stops or turns quickly, the whole machine wobbles a little, like a shelf after a door slams. That wobble leaves faint waves on the printed object. They are easy to see next to sharp corners and raised letters.
Input shaping is a clever timing trick. The printer splits each push into small, carefully timed pushes. The second push cancels the wobble from the first. The result is cleaner prints at higher speed, much like a waiter who carries a full tray smoothly by starting and stopping gently.
A practical scenario
A small workshop runs a CoreXY printer with Klipper to produce enclosure parts for customers. At 5,000 mm/s² acceleration, the parts show visible ripples next to every embossed logo, so the operator had kept acceleration near 2,000 mm/s², and each batch took most of a working day.
The operator mounts an ADXL345 accelerometer on the toolhead and runs the resonance test. The analysis finds peaks at 58 Hz on X and 47 Hz on Y and recommends MZV for both axes with a maximum acceleration of about 7,000 mm/s². With the shaper enabled at 6,000 mm/s², the ripples disappear and batch print time drops by about 30 percent without loss of surface quality.