Skip to content

Quieter motors

New in Beta 1

The lag-compensated correction and the VFA calibration below are new in Beta 1, with its mainboard firmware.

After updating: recalibrate VFA

This version changes how the mainboard corrects the motors. Motor corrections saved before it (ripple_<n> in printer.cfg) don't work with it and are switched off until you calibrate again. Run VFA (VFA_MOTORS, or Calibrate now in the dialog), about 5 minutes. Until then the printer shows a red warning and a dialog at every start.

The Creator 5's mainboard drives the X, Y and Z motors itself, through FlashForge's MCLib motor control (see VFA compensation). OpenCreator changes two things in it to make the motors quieter, mostly at printing speeds up to about 100 mm/s:

  • Step interpolation follows the real move between steps.
  • Ripple correction cancels the motors' own wobble, calibrated per motor with the toolhead accelerometer.
Page What it covers
Ripple correction The source of motor ripple, lag compensation, how the calibration finds and validates corrections, and fan control
Measurements Accelerometer results for the current correction and the earlier step-interpolation and ripple-correction changes
Phase stepping background What OpenCreator takes from Prusa's published work, and why it keeps Klipper's step protocol

For commands and the normal calibration procedure, use OpenCreator VFA calibration and VFA commands.

Step interpolation

Klipper sends the mainboard a step for each 1/16 of a full step. Between steps the mainboard moves the motor smoothly on to the next one, about 20,000 times a second. Stock guesses when the next step comes by assuming it takes as long as the last one. That is right at a steady speed but wrong whenever the speed changes, so the motor runs ahead or falls behind and then snaps back on the next step. Speed changes are constant in a print: acceleration, input shaping and pressure advance all change it.

On OpenCreator the mainboard's step queue already knows exactly when the next step is due, so the motor is moved on at the real rate. After the last step of a move it stays on that step, instead of running nearly a step past it like stock does.

Nothing changes on the Klipper side: homing, endstops and positions work as before. The firmware implementation and configuration are described in MCLib and motor control.