How to capture resonance data in Klipper
The standard way is to record the response with an accelerometer. Some printers (e.g. the FlashForge Adventurer 5M) have one built in and calibrate automatically.
- Mount an accelerometer. Attach an accelerometer (ADXL345, MPU-9250 or LIS2DW) to the toolhead. On a bedslinger, measure the Y axis by moving the sensor to the bed.
- Check the sensor. Run ACCELEROMETER_QUERY and MEASURE_AXES_NOISE — noise is normally around 1 to 100.
- Run the resonance test. Run TEST_RESONANCES AXIS=X, then AXIS=Y. Klipper writes /tmp/resonances_*.csv.
- Download the CSV. Grab the files from the printer via the Mainsail or Fluidd file manager, or over scp.
- Plot the graph. Upload the CSV into the tool above to get the graph, recommended shaper type and frequency.
- Apply the result. Add an [input_shaper] section (shaper_type and shaper_freq) to printer.cfg, set max_accel manually (the lower of X and Y) and restart Klipper.



