Motion dynamics workbench

Ghosting Resonance Frequency Calculator

Ghosting is a machine problem printed into the surface. Measure the distance between ripples and the speed that produced them, and the tool solves for the resonance frequency, picks a Klipper Input Shaper type, and sets a safe acceleration ceiling for Marlin or your slicer.

Live waveform

Ringing decay, drawn from your measurement

Example loaded — edit any input
0.5 tight4.08.0 wide
20 slow110200 fast
200 gentle30006000 aggressive
Resonance frequency—
Klipper shaper type—
Safe acceleration limit—
Ringing decay distance—
Ringing decays within budget The current acceleration stays below the frequency limit of this axis. Ringing is a vibration that keeps echoing after a direction change; input shaping and acceleration are the two ways to control it.
Slicer action In Klipper, add [input_shaper] with shaper_freq_x 25.0 and shaper_type ei, then run SHAPER_CALIBRATE.

Ringing appears as faint copies trailing behind a sharp corner, and most attempts to remove it start in the wrong place. People lower speed, add cooling, or tighten belts in turn, hoping one is the cause. The marks carry the answer. Measure the distance from one ripple to the next and the speed that produced them, and the vibration frequency is already determined. Everything else in this tool follows from that number.

Measure the ripple before opening the slicer

Pick a vertical wall with a crisp corner and a clear run of echoes. Measure along the direction the affected axis travelled, across four or five ripples, then divide the total by the count. A single gap is easy to misread because the first ripple after a corner is often wider than the ones behind it. Use a caliper or a photograph taken square to the wall, and record the speed used for that wall: outer walls often run at half the slicer's nominal value.

Note which axis produced the marks. Echoes that repeat left and right on a front face come from the X axis; marks that repeat in depth on a side face come from Y. The two axes have different masses, belt lengths and frame stiffness, so they rarely share a frequency. A printer can ring badly on Y and be perfectly clean on X. Enter the axis you actually measured, because the acceleration advice is axis-specific even though the slicer often exposes a single acceleration field for both. The machine preset and drive type in the tool set the baseline stiffness used for the multipliers below.

Speed divided by spacing is a frequency

The relation is deliberately simple. A vibration that completes one cycle every time the nozzle travels a distance λ, while moving at speed v, oscillates at v divided by λ cycles per second. With a 2.4 mm ripple printed at 60 mm per second, that is 25 hertz. This is the natural frequency of the mechanical system being excited: the toolhead, belts, motor rotor and frame behaving as one spring-mass system. It is not a property of the plastic and it does not change with layer height. The layer height input matters here only because it sets how much surface movement is tolerable before the echo becomes visible.

Frequency explains why a print looks clean at one speed and ghosts badly at another. A faster outer wall shifts the excitation toward the natural frequency and the amplitude rises sharply; move away in either direction and the marks fade. Cooling and filament colour do nothing because neither alters mechanical frequency. The waveform redraws as you change inputs, with peak spacing taken from the solved frequency, so a higher frequency visibly packs the echoes closer.

What the number tells an input shaper

Klipper's Input Shaper does not remove the resonance; it shapes the command sent to the steppers so the movement ends without leaving energy in the system. Each shaper needs the frequency of the axis and a choice of type. A high frequency above roughly 38 hertz can use MZV, which adds very little smoothing and preserves corners. The middle band around 20 to 38 hertz is best served by EI, which tolerates more damping at the cost of a small rounding of sharp details. Below 20 hertz the two-hump EI shaper handles the longer ringing period without excessive smoothing. The tool reports the type it would start with, based purely on the measured frequency.

Those values are starting points, not a substitute for measurement. Run SHAPER_CALIBRATE after configuring the axis: the sweep refines frequency and damping on your machine and recommends a type for each axis. Accept it unless you prefer less smoothing. A shaper tuned to the wrong frequency makes ghosting worse by adding its own timing corrections. If you change belts or the toolhead, measure again.

From frequency to a safe acceleration ceiling

Acceleration sets how abruptly motion energy is injected into the system. Treating the axis as a spring-mass system, the displacement left behind after a step in acceleration is roughly the acceleration divided by the square of the angular frequency. If you decide how much ripple you can accept — a quarter of one layer height is a reasonable budget — the maximum acceptable acceleration follows directly. Double the frequency and the acceptable acceleration rises by a factor of four, which is why a stiff printer can run several thousand millimetres per second squared while a loose Cartesian frame struggles above a few hundred.

The tool computes that ceiling from the solved frequency and the layer height budget, then reduces it for a tall part, a loose belt, a leadscrew drive or an open frame. A tall print acts like a longer lever on the same structure; a loose belt lowers damping and lets the ringing persist; a heated chamber changes the effective stiffness slightly. The resulting number is a ceiling for the affected axis, not a target. Staying a little below it leaves room for the slicer's own jerk or square corner velocity settings, which inject a second impulse at every direction change.

Belt tension, drive type and part height

Tension changes both the frequency and the damping. A firm belt that still has a little give rings at a higher pitch and settles quickly. A slack belt lowers the frequency and lets each echo survive across many millimetres, which is why the same acceleration can be fine one week and ghost badly the next. Over-tightening is not the fix: it loads the bearings, flattens the belt teeth and can introduce a different vibration from the motor pulley. The tension input in the tool adjusts both the decay length drawn in the waveform and the acceleration ceiling.

Drive type matters less often but is worth recording: a leadscrew axis has more rotating inertia and usually a lower ceiling than a belt at the same frequency. Model height is the quiet variable — a 200 mm tower sways more than a 20 mm benchy, so the same settings can print one cleanly and cover the other in echoes. Lower acceleration for that job rather than retuning the whole machine. The chamber field captures the smaller shift from frame temperature.

Putting the values into Klipper, Marlin and the slicers

In Klipper, add an input_shaper section to printer.cfg with shaper_freq_x and shaper_freq_y set from the two measured axes and shaper_type chosen from the result box. Set square_corner_velocity to around 5 mm per second to start, then print a test tower and inspect each height band. In Marlin there is no input shaping on most boards, so the lever is acceleration: send M201 with the X and Y values from the tool and reduce M205 square corner velocity if echoes remain. Keep the per-axis values distinct rather than applying the lower one to both.

OrcaSlicer and Bambu Studio expose maximum acceleration and maximum speed in the print settings for each feature; paste the ceiling into the acceleration fields for outer wall and inner wall while leaving travel acceleration higher if your firmware tolerates it. UltiMaker Cura groups acceleration under Speed, where Print Acceleration and Outer Wall Acceleration are separate. If a slicer field conflicts with a firmware limit, the lower value wins, so change the firmware first when using Klipper or Marlin directly and only then update the slicer profile.

Definition Ghosting resonance frequency is the rate at which a machine axis oscillates after a sudden direction change, equal to print speed divided by the spacing between visible ripples. When that frequency is known, the recommended value is an Input Shaper frequency matching it and an acceleration ceiling derived from the allowed ripple amplitude.

Frequently asked questions

Why do the ripples get wider farther from the corner?

They usually do not. The first one or two peaks look wider because the initial impulse is larger, then the spacing settles to a constant value. Measure across the later, regular ripples and ignore the first two when calculating spacing.

Can I fix ghosting just by printing slower?

Sometimes, but only because slower movement stops exciting that frequency, not because the problem disappeared. Input shaping or lower acceleration addresses the cause and keeps your speed. Use slower printing as a diagnostic check before changing settings.

Do X and Y need the same shaper frequency?

Almost never. The Y axis carries the bed on many Cartesian machines and has different mass and belt geometry from X. Measure a wall affected by each axis and enter the two frequencies separately in Klipper, since shaper_freq_x and shaper_freq_y are independent fields.

What if bearing noise or a loose pulley is causing the marks?

A damaged bearing or a slipping pulley produces irregular marks rather than an even ripple train. If the spacing varies widely or the echoes appear only at one point in the travel, inspect the hardware before tuning motion settings; a shaper cannot correct a mechanical fault.

Related reading