The faster a 3D printer accelerates and brakes, the more strongly changes of direction excite the mechanics into vibration. This shows up as waves and shadows behind corners, holes and lettering – known as ghosting, ringing or rippling. Input shaping, also called resonance compensation, reshapes the firmware’s motion commands so that these natural oscillations largely cancel each other out. In this guide, 3D Bäckerei explains how the principle works, which shaper types exist, how to determine the resonance frequencies with an ADXL345 accelerometer or a test tower, which mechanical prerequisites must be met and how to tune accelerations sensibly in the slicer – including a troubleshooting table.
Contents
- 1. Mechanical resonance: how input shaping cancels vibrations
- 2. Recognising and distinguishing ghosting, ringing & rippling
- 3. Preparing the mechanics: belts, frame and print head
- 4. Shaper types compared: ZV, MZV, ZVD, EI, 2HUMP_EI & 3HUMP_EI
- 5. Step by step: resonance measurement with the ADXL345 in Klipper
- 6. Calibration without a sensor: ringing tower and calculation
- 7. Input shaping in Marlin, RepRapFirmware and complete systems
- 8. Tuning acceleration, cornering speed & Pressure Advance
- 9. Defects & solutions
- 10. Frequently asked questions (FAQ)
1. Mechanical resonance: how input shaping cancels vibrations
The print head, print bed, toothed belts, linear guides and frame together form a spring-mass system capable of oscillating. The belts act as springs, the print head or bed as the mass. Each of these systems has one or more characteristic natural frequencies. When the print head is braked abruptly at a corner and accelerated in a new direction, it briefly oscillates – much like a weight on a spring. This decaying motion is transferred to the freshly deposited plastic track and leaves a periodic wave pattern on the wall.
In FDM printing at low accelerations, this residual oscillation is barely noticeable. Modern printers, however, work with considerably higher accelerations, and that is precisely where resonance becomes the limiting factor for surface quality. In the past, the only remedies were to reduce acceleration or to make the mechanics heavier and stiffer. Input shaping takes a different approach: the firmware modifies the motion commands themselves.
Put simply, the shaper splits every change in acceleration into several time-shifted partial impulses. The spacing of these impulses is matched to the natural frequency of the axis. The oscillation excited by the first impulse is overlaid exactly in antiphase by the second (and, where applicable, further) impulses and is thus largely cancelled. The principle resembles active noise cancellation in headphones – with the difference that no counter-oscillation is generated from outside; instead, the motion is planned from the outset so that the resonance is barely excited.
This leads to an important limitation: input shaping only works well if the configured frequency matches the actual resonance. If the mechanics change – for example due to new belt tension, a heavier print head or a different location – the frequency shifts and the compensation has to be determined again. Furthermore, the shaper combats vibrations; it does not replace sound mechanics. Loose screws, wobbling wheels or unevenly tensioned belts cannot be calculated away.
2. Recognising and distinguishing ghosting, ringing & rippling
Before you calibrate input shaping, it is worth taking a close look at the print. Resonance artefacts have a typical appearance:
- Ringing / ghosting: Several decaying waves directly behind a corner, a hole or raised lettering. The waves become weaker with increasing distance from the corner.
- Rippling: Fine, regular stripes on longer walls after changes of direction, often more pronounced on one axis than on the other.
- Echo of features: Lettering or a notch appears as a faint shadow a few millimetres beside it.
Not every pattern on the wall is resonance. The following overview helps you tell them apart:
| Appearance | Probable cause | Does input shaping help? |
|---|---|---|
| Decaying waves behind corners in X or Y | Axis resonance (ringing) | Yes, this is exactly what it is designed for |
| Horizontal grooves at regular height intervals across the entire part | Z-banding / Z-wobble caused by the lead screw or coupling | No, check the mechanical Z axis |
| Bulging corners and thin areas after corners | Pressure in the nozzle, missing Pressure Advance | No, calibrate Pressure Advance |
| Very fine, uniform vertical stripes even on straight walls without corners | Stepper motor or belt tooth artefacts (often referred to as VFA) | Hardly, check speed, belts and motor control instead |
| Entire layers shifted sideways | Lost steps, excessive acceleration or a collision | No, check the drive system and limits |
Horizontal grooves at regular height intervals are covered in the guide Eliminating Z-banding & Z-wobble, bulging at corners in the guide Calibrating Pressure Advance & Linear Advance. A practical test: print a cube with lettering on all sides. If the pattern appears only on the faces of one axis and fades out behind corners, resonance is the most likely cause.
3. Preparing the mechanics: belts, frame and print head
Input shaping measures and compensates for the current state of the mechanics. If that state is poor, the sensor measures an unclean spectrum with several peaks, and the algorithm has to choose an aggressive shaper that rounds corners more heavily. That is why it pays to check the basics before measuring:
- Belt tension: The belts should be tensioned as specified by the manufacturer. On CoreXY printers it is also important that both belts are tensioned equally, as uneven tension leads to skewed resonances and dimensional errors. Many manufacturers specify the tension as a vibration frequency for a defined free belt length, which can be checked with a tuner app or a measuring device. These values only apply to the printer model in question.
- Screws and guides: Loose frame screws, worn wheels, misadjusted eccentric nuts or dirty linear guides create play and additional resonances.
- Squareness of the axes: A warped frame not only causes dimensional errors but can also reduce stiffness. Check squareness with a test print and correct it if necessary, either mechanically or via skew correction in the firmware.
- Mass of the print head or bed: The heavier the moving mass, the lower the natural frequency. Cable chains, heavy fans or add-ons change the result.
- Mounting surface: A wobbly table can contribute its own vibrations. A stable, heavy base makes sense; whether damper feet help depends on the printer and should be verified by measuring again.
If layer shifts occur alongside ringing, you should first examine the drive system, belts and motor drivers. You will find advice on this in the guide Fixing layer shifts & lost steps.
4. Shaper types compared: ZV, MZV, ZVD, EI, 2HUMP_EI & 3HUMP_EI
Klipper and other firmwares offer several shaper algorithms. They differ in how wide a frequency range they dampen and how strongly they smooth the motion in the process. Broadband shapers are more forgiving of measurement inaccuracies and fluctuating resonances, but round corners more heavily and limit the useful acceleration. The following overview is qualitative – how much smoothing actually occurs depends on the measured frequency and the configured acceleration.
| Shaper | Damping range | Smoothing | Typical use |
|---|---|---|---|
| ZV (Zero Vibration) | narrow | very low | stiff printers with a clearly defined, stable resonance peak |
| MZV (Modified ZV) | medium | low | frequently recommended compromise for many printers |
| ZVD (ZV and Derivative) | medium | medium | more robust than ZV, occasionally suggested by the analysis |
| EI (Extra Insensitive) | wide | medium | fluctuating resonances, such as the Y axis of bed slingers with varying part mass |
| 2HUMP_EI | very wide | high | several closely spaced peaks or a very noisy spectrum |
| 3HUMP_EI | widest | very high | exceptional cases; it is usually better to improve the mechanics |
Every Klipper analysis lists two key figures: the remaining vibrations as a percentage and the recommended maximum acceleration. The latter is the value up to which the smoothing of the respective shaper does not yet noticeably round the contours. The higher the measured resonance frequency, the less the same shaper smooths – a stiffer printer can therefore work with narrower shapers and higher accelerations. The recommendation from the analysis is a good starting point. If corners seem too soft to you, you can try a narrower shaper on a trial basis, provided the ringing does not return.
5. Step by step: resonance measurement with the ADXL345 in Klipper
The most accurate method is measurement with an accelerometer. In addition to the widely used ADXL345, Klipper supports other sensors such as the LIS2DW and MPU variants, as well as ready-made USB sensor boards. Many toolhead boards already have an accelerometer built in. The procedure:
- Mount the sensor: Attach the sensor to the print head without play and as close to the nozzle as possible. On bed slingers, the Y axis is measured on the print bed. A wobbly mount distorts the measurement.
- Connect and configure: The sensor is connected via SPI to the Raspberry Pi, the mainboard or the toolhead board. In
printer.cfg, create an[adxl345]section with the appropriatecs_pinand a[resonance_tester]section withaccel_chipandprobe_points(usually the centre of the bed). Refer to your board’s documentation for the exact pins. - Test the connection: Use
ACCELEROMETER_QUERYto check whether plausible values are returned.MEASURE_AXES_NOISEshows the background noise with the axes stationary – if it is conspicuously high, running fans or a loose mounting are often the cause. - Automatic calibration: The
SHAPER_CALIBRATEcommand runs a frequency sweep for both axes (by default up to around 133 Hz), analyses the spectrum and suggests the shaper type, frequency and maximum acceleration.SAVE_CONFIGsaves the values in the[input_shaper]section. - Optional manual analysis: Alternatively, record raw data with
TEST_RESONANCES AXIS=XandTEST_RESONANCES AXIS=Yand use the bundledcalibrate_shaper.pyscript to create power spectral density charts. This is helpful for identifying multiple resonance peaks or interference. - Test print: Then print a test part with corners and lettering, such as a ringing tower, and compare it with a print made without a shaper.
On CoreXY printers, measurements along the diagonals (TEST_RESONANCES AXIS=1,1 and AXIS=1,-1) also let you compare whether both belts show a similar resonance pattern. Markedly different curves indicate uneven belt tension or a mechanical problem in one belt path. A clean chart ideally shows one clearly identifiable main peak per axis; many small peaks or a very broad spectrum are a sign that you should check the mechanics before the next measurement.
6. Calibration without a sensor: ringing tower and calculation
If no sensor is available, the resonance frequency can also be determined via a test print. For this purpose, the Klipper documentation describes a ringing tower that is printed at a constant speed but with acceleration increasing layer by layer. Proceed as follows:
- Disable input shaping and set the cornering speed and Pressure Advance to the values given in the instructions for the test, so that they do not distort the result.
- Print the test tower at a high, constant speed and with an acceleration that increases with height – in Klipper, for example, via the
TUNING_TOWERcommand with theACCELparameter. - Choose a height: Look for a height at which the waves are distinct but still easy to count.
- Measure the waves: Using a calliper, measure the distance across several waves behind a corner and count the waves over this distance.
- Calculate the frequency: Frequency = speed × number of waves ÷ measured distance. Measure X and Y separately.
Worked example: At a print speed of 100 mm/s and a wave spacing of 2.4 mm (i.e. one wave per 2.4 mm), the result is 100 ÷ 2.4 ≈ 42 Hz. If you measure across several waves, the result becomes more accurate because reading errors are spread out.
Then enter the frequencies in the firmware and print the tower again with the shaper active in order to compare different shaper types. The manual method is more laborious and less accurate than sensor measurement, but works well for printers with a clear resonance peak. For bed slingers with strongly fluctuating Y resonance, the sensor has a clear advantage.
7. Input shaping in Marlin, RepRapFirmware and complete systems
Input shaping is not limited to Klipper. However, the range of functions differs:
- Klipper: The widest choice of shapers, sensor support and automatic analysis. The values are saved in
printer.cfgand can be tested at runtime withSET_INPUT_SHAPER. - Marlin: Newer 2.1.x versions offer input shaping, which must be enabled in the firmware. Frequency and damping are set with
M593and saved withM500. Which shaper types are available, and whether sensor support is available, depends on the version and configuration. - RepRapFirmware: Also configurable via
M593, with a choice of different shaper types; accelerometers are supported. - Complete systems: Many current printers determine resonances automatically, either at the factory or via a calibration routine. Here it is usually sufficient to run the calibration again after modifications, transport or work on the belts.
Regardless of the firmware: measure first, then enter the values, then check with a test print. Note down the values you determine so that you can spot changes after maintenance work.
8. Tuning acceleration, cornering speed & Pressure Advance
With input shaping working properly, you can use higher accelerations without ringing becoming visible. It makes sense to grade them by part region:
- Outer walls: This is where the appearance is decided. Choose an acceleration well below the recommended maximum acceleration so that corners stay sharp.
- Inner walls and infill: These areas are not visible and can be printed with higher values, as long as the printer does not lose steps.
- First layer, bridges and overhangs: Moderate values, since adhesion and cooling matter more than speed here.
- Upper limit: The maximum acceleration from the shaper analysis is a sensible guideline for the threshold above which contours become noticeably rounded.
In Klipper, square_corner_velocity (default 5 mm/s) controls the speed at which the print head travels through a 90° corner. Higher values shorten print time but excite vibrations more strongly. The minimum_cruise_ratio parameter (formerly max_accel_to_decel) limits how hard the printer accelerates on short moves. Both values should only be adjusted after shaper calibration and assessed with test prints.
Input shaping and Pressure Advance complement each other: the shaper prevents waves after corners, while Pressure Advance balances the pressure in the nozzle and prevents bulges and gaps. Since both interact at corners, you should check Pressure Advance after changing the shaper or the accelerations. In addition, the melting capacity of the hotend sets a limit: higher accelerations only result in shorter print times if the hotend can deliver the required amount of material. The guide Volumetric flow (Max Flow Rate) explains how to determine this limit.
For dimensionally critical parts, it is worth taking an additional look at smoothing. A very broadband shaper combined with high acceleration can slightly round small radii and corners. This applies to glossy standard filaments as well as to carbon-fibre-reinforced plastics, whose matt surface visually conceals slight waves but does not change the dimensions. The guide Dimensional accuracy & XY compensation describes how to measure dimensional deviations and compensate for them in the slicer.
Clean surfaces without doing your own calibration?
Upload your STL or 3MF file, choose the process, material and quantity – the price is calculated instantly online. This applies to individual parts in rapid prototyping as well as to small batches – for customers throughout Berlin, for example in Mitte or Charlottenburg.
9. Defects & solutions
The following table summarises typical problems relating to input shaping and resonances:
| Defect | Possible cause | Solution |
|---|---|---|
| Ringing despite input shaping being active | Frequency no longer matches, mechanics have changed | Measure again, especially after changes to the belts or print head |
| Corners look soft or rounded | Shaper too broadband or acceleration above the recommendation | Reduce acceleration below the recommended limit, test a narrower shaper |
| Resonance chart with many peaks | Loose sensor mounting, play in the mechanics, running fans | Mount the sensor firmly, check screws and wheels, switch off fans during measurement |
| Sensor returns no values or nonsensical values | Incorrect pins, wiring or SPI configuration | Test with ACCELEROMETER_QUERY, check the board’s pin assignment |
| CoreXY diagonals show very different curves | Uneven belt tension or a problem in one belt path | Equalise the belts according to the manufacturer’s specification, check idler pulleys |
| Ringing only on large, heavy parts on the Y axis | Bed mass increases, resonance shifts (bed slinger) | Choose a more broadband shaper such as EI, reduce Y acceleration |
| Layer shifts after increasing acceleration | Motors are losing steps | Reduce acceleration, check motor current and belts |
| Bulging at corners despite input shaping | Pressure Advance missing or set incorrectly | Calibrate Pressure Advance |
| Matt, under-extruded areas at high accelerations | Hotend melting capacity exceeded | Determine Max Flow and limit speed |
| Results worse after moving the printer | Mounting surface resonates as well | Use a stable base and repeat the calibration |
10. Frequently asked questions (FAQ)
What is input shaping in 3D printing?
Input shaping is a printer firmware function that reshapes motion commands so that the natural oscillations of the print head and print bed are barely excited. As a result, wave patterns behind corners largely disappear, and the printer can work with higher accelerations.
Does input shaping impair the dimensional accuracy of edges?
Every shaper smooths the motion slightly. With a suitably chosen shaper and accelerations below the recommended limit, this is barely visible. However, very broadband shapers such as 2HUMP_EI or 3HUMP_EI combined with high acceleration can noticeably round corners.
Does input shaping need to be recalibrated after tensioning the belts?
Yes. Belt tension largely determines the stiffness of the axis and therefore its resonance frequency. You should also measure again after changing the print head, adding heavier attachments or moving the printer.
Can input shaping be set up without a sensor?
Yes, using a ringing tower. You measure the spacing of the waves behind a corner and calculate the frequency from the speed, number of waves and distance. This provides usable approximate values, but is more laborious and less accurate than measuring with an accelerometer.
Which shaper type is the best?
There is no universally best one. MZV is a frequently recommended compromise, EI is suitable for fluctuating resonances, and ZV for very stiff printers with a clear resonance peak. The automatic analysis in Klipper is a good starting point and can be verified with a test print.
Where should the ADXL345 be mounted?
On the print head, as free of play and as close to the nozzle as possible. On printers with a moving bed, known as bed slingers, the Y axis is measured on the print bed. A loose mounting leads to noisy and unusable measurement results.
What is the difference between ghosting and Z-wobble?
Ghosting occurs in the X and Y directions after changes of direction and fades out behind corners. Z-wobble and Z-banding appear as horizontal grooves at regular height intervals across the entire part and are caused by the lead screw, coupling or Z guide.
Does input shaping replace Pressure Advance?
No. Input shaping combats mechanical vibrations, while Pressure Advance compensates for the material pressure in the nozzle during speed changes. The two functions complement each other and should each be calibrated.
Does a heavy table help against ringing?
A stable, heavy base can prevent the table itself from vibrating along and improve the measurement result. However, it replaces neither correctly tensioned mechanics nor calibration. It is best to check the effect by measuring again.

