Plan your future with our Retirement Budget Calculator

Accelerometer Resonance & Input Shaping Calculator

Enter your measured resonance frequency and damping ratio to calculate the optimal input shaper type, filter duration, and damped frequency. Includes a Klipper config snippet and shaper comparison table.
Loading...
Luis GonzalezCreated by Luis GonzalezLast updated:

How to Use This Calculator

  1. 1

    Enter the Resonance Frequency

    Input the measured resonance frequency in Hertz (Hz) from your accelerometer test (e.g. Klipper ADXL345). This is the peak frequency where your printer naturally vibrates.

  2. 2

    Enter the Damping Ratio (ζ)

    Specify the damping ratio of your system. Most 3D printers fall between 0.05 and 0.15. Leave at 0.1 if unsure.

  3. 3

    Select the Shaper Algorithm

    Choose from ZV, MZV, EI, 2HEI, or 3HEI. The calculator will also recommend the optimal shaper for your measured frequency.

  4. 4

    Review Your Results

    The calculator displays Shaper Duration (ms), Recommended Shaper, Natural Period (ms), Damped Frequency (Hz), Impulse Count, and Speed Impact (%). A Klipper config snippet and shaper comparison table are also shown.

Example Calculation

A 3D printer shows a resonance peak at 45 Hz with a damping ratio of 0.1. The user selects MZV shaper to compare against the recommendation.

Resonance Frequency

45 Hz

Damping Ratio (ζ)

0.1

Shaper Algorithm

MZV

Results

Shaper Duration

16.75 ms

Recommended Shaper

ZV (optimal for 45 Hz)

Natural Period

22.22 ms

Damped Frequency

44.77 Hz

Impulse Count

3

Speed Impact

7.5%

Tips

Verify Resonance Frequencies

Always measure the resonance frequency of your system in its operational state, as environmental factors or payload changes can shift it. A 5% error in frequency can significantly reduce shaper effectiveness.

Consider Higher Harmonics

While this calculator focuses on the primary resonance, real-world systems often have multiple resonant frequencies. For highly sensitive applications, consider shaper designs that account for the first few harmonics, especially if they fall within the operational bandwidth.

Damping Ratio Impact

A higher damping ratio (e.g., above 0.15) makes the system less prone to oscillations and can sometimes simplify shaper requirements. For very low damping (e.g., below 0.03), input shaping becomes critical, and precision in frequency is paramount.

The Accelerometer Resonance Calculator (Input Shaping) helps engineers and designers mitigate unwanted vibrations in mechanical systems by suggesting optimal input shaper types. This tool is essential for fields like robotics, aerospace, and manufacturing, where precise motion control and reduced wear are critical. Input shaping is a control technique that pre-processes a command signal to reduce residual vibration, often achieving reductions of 90% or more in oscillation amplitude, significantly improving system performance and longevity.

Understanding Input Shaping for Vibration Control

Input shaping is a feedforward control technique used to reduce residual vibrations in flexible systems. It works by convolving a sequence of impulses (the input shaper) with a desired command signal, effectively modifying the command to cancel out the system's natural oscillations. This technique is crucial because vibrations can lead to poor positioning accuracy, increased settling times, structural fatigue, and even component failure. By understanding and applying the correct input shaper, engineers can ensure smoother, faster, and more reliable operation of machinery, from industrial robots and gantry cranes to disk drives and spacecraft.

The Logic Behind Input Shaper Selection

The Accelerometer Resonance Calculator (Input Shaping) simplifies the complex task of selecting an appropriate input shaper by leveraging the system's resonance frequency and damping ratio. The core logic determines the period of oscillation and then suggests a shaper type based on a common heuristic that balances vibration reduction with robustness to modeling errors.

The calculation proceeds as follows:

naturalPeriodMs = 1000 / resonanceHz
dampedFreqHz = resonanceHz × sqrt(1 - ζ²)
dampedPeriodSec (Td) = 1 / dampedFreqHz

shaperDurationMs = durationMultiplier × Td × 1000
  ZV:    multiplier = 0.5,  impulses = 2
  MZV:   multiplier = 0.75, impulses = 3
  EI:    multiplier = 1.0,  impulses = 3
  2HEI:  multiplier = 1.5,  impulses = 4
  3HEI:  multiplier = 2.0,  impulses = 5

recommendedShaper:
  freq >= 40 Hz → ZV
  freq >= 25 Hz → MZV
  freq >= 15 Hz → EI
  freq >= 10 Hz → 2HEI
  freq  < 10 Hz → 3HEI

speedImpactPct = min((shaperDurationMs / naturalPeriodMs) × 10, 50)

Here, resonanceHz is the measured peak frequency, ζ is the damping ratio, and Td is the damped oscillation period used to compute the shaper's active window duration.

💡 Understanding how forces translate into motion is key to vibration control. If you're analyzing the rotational forces in your system, our Torque Calculator can help you quantify those dynamics.

Optimizing a 3D Printer's Input Shaping

Consider a 3D printer operator running a Klipper ADXL345 resonance test. The accelerometer measures a peak at 45 Hz with a damping ratio of 0.1, and the user selects MZV shaper to evaluate.

Inputs: Resonance Frequency = 45 Hz | Damping Ratio = 0.1 | Shaper = MZV

  1. Natural Period: 1000 / 45 = 22.22 ms
  2. Damped Frequency: 45 × √(1 − 0.1²) = 45 × 0.99499 = 44.77 Hz
  3. Damped Period (Td): 1 / 44.77 = 0.02234 s
  4. MZV Shaper Duration (multiplier = 0.75): 0.75 × 0.02234 × 1000 = 16.75 ms
  5. Recommended Shaper: 45 Hz ≥ 40 Hz → ZV (not MZV — ZV is optimal at this frequency)
  6. Impulse Count: MZV = 3 impulses
  7. Speed Impact: (16.75 / 22.22) × 10 = 7.5% (Balanced — good suppression & speed)

Full results:

  • Shaper Duration: 16.75 ms
  • Recommended Shaper: ZV (optimal choice for 45.0 Hz)
  • Natural Period: 22.22 ms
  • Damped Frequency: 44.77 Hz (0.50% below natural freq at ζ=0.100)
  • Impulse Count: 3 (MZV — Balanced speed & robustness)
  • Speed Impact: 7.5%

The operator should switch to ZV shaper for the best balance of speed and vibration suppression at 45 Hz.

💡 For systems where electrical power delivery affects mechanical performance, like motor-driven robots, understanding the power dynamics can be crucial. Our AC Power Calculator can help analyze power consumption and efficiency in such scenarios.

Safety & Tolerances in Accelerometer Resonance and Input Shaping

In electrical engineering and mechanical design, safety and operational tolerances are paramount, especially when dealing with dynamic systems. Accelerometers, like many sensors, have specific operational ranges and error tolerances. Typically, an accelerometer might have a frequency response range up to several kHz, with a non-linearity of less than 1% full scale and a transverse sensitivity below 5%. When implementing input shaping, it's crucial to consider these sensor limitations. If the system's resonance frequency falls outside the accelerometer's flat frequency response, the measurement will be inaccurate, leading to an ineffective shaper.

Furthermore, safety margins must be built into the system design. For instance, if a component's natural frequency is too close to an excitation frequency, even with input shaping, resonance can still lead to excessive stress and fatigue. A common design practice is to ensure that operational frequencies are at least 20% away from critical resonance points. Failure scenarios often involve unexpected shifts in resonance frequency due to component wear, temperature changes, or varying payloads. For example, a robotic arm designed for a 5kg payload might experience a significant shift in its resonance if it unexpectedly carries 10kg, potentially rendering the pre-calculated input shaper ineffective and leading to uncontrolled vibrations or even mechanical failure. Therefore, robust designs often include online frequency identification or adaptive input shaping for critical applications.

When accelerometer resonance calculator (input shaping) gives misleading results

While the Accelerometer Resonance Calculator (Input Shaping) is a valuable tool, there are specific scenarios where its output might be misleading or insufficient. Understanding these edge cases is crucial for effective vibration control.

Firstly, the calculator assumes a single dominant resonance frequency. Many real-world mechanical systems, especially complex ones like large robotic structures or flexible manufacturing equipment, exhibit multiple significant resonant frequencies. If a system has two or more closely spaced or highly impactful resonant modes, focusing solely on the primary mode suggested by a single frequency input can lead to sub-optimal vibration reduction. In such cases, engineers should employ multi-mode input shapers, which require identifying and inputting all relevant resonant frequencies and their corresponding damping ratios, often necessitating more advanced analysis software or experimental modal analysis.

Secondly, the calculator's suggestion relies on a simplified heuristic for shaper type selection (ZV, EI, MZV). This heuristic is a good starting point but doesn't account for specific application requirements such as control system bandwidth limitations, noise sensitivity, or specific robustness needs against variations in damping ratio. For example, in applications where the damping ratio is highly uncertain or varies significantly, a shaper with greater damping robustness might be preferred, even if the resonance frequency falls into a range suggesting a simpler shaper. Engineers should consult detailed input shaping literature or use specialized simulation tools to fine-tune shaper parameters for optimal performance under specific operational constraints and uncertainties.

Lastly, the accuracy of the calculator's output is directly dependent on the accuracy of the input resonance frequency and damping ratio. If these parameters are estimated rather than precisely measured, or if they change significantly over time due to wear, temperature, or payload variations, the suggested shaper will be ineffective. For critical systems, it's essential to perform thorough experimental modal analysis to accurately determine these parameters. For systems with varying characteristics, implementing adaptive input shaping techniques, which continuously estimate and update the system's dynamics, would be a more appropriate solution than relying on a static shaper derived from initial measurements.

Frequently Asked Questions

What is the typical range for resonance frequency in mechanical systems?

Resonance frequencies in mechanical systems can vary widely, from a few Hertz (Hz) for large structures like bridges or robotic arms, up to several hundred Hz for smaller components or high-speed machinery. For many industrial automation systems, primary resonance often falls between 20 Hz and 100 Hz.

How does damping ratio affect input shaping effectiveness?

The damping ratio (ζ) quantifies how quickly oscillations decay. A higher damping ratio (e.g., above 0.1) naturally reduces vibrations, making the input shaper's job easier. Conversely, systems with very low damping (e.g., below 0.05) are highly oscillatory, and accurate input shaping is crucial to prevent ringing.

What is the difference between ZV, EI, and MZV shapers?

Zero Vibration (ZV) shapers eliminate residual vibration at a single mode. Extra Insensitive (EI) shapers provide robustness to modeling errors in frequency. Multiple-Mode Zero Vibration (MZV) shapers extend ZV to handle multiple resonant modes or offer increased robustness to damping ratio errors, making them a common choice for industrial applications.