Skip to content

Calibrate a motor

Calibration belongs to the motor and encoder fitted to the drive. Use the procedure for your driver to prepare the motor and check its limits.

Start with a bootloader-only board

  1. Flash the matching STEPFOC or Spectral Micro application.
  2. Exit firmware mode and connect over UART.
  3. Open Console and send #Info. Check that the application answers and identifies the expected drive.

On a new board with blank configuration memory (EEPROM), the current firmware initializes the motor settings at first boot. Go straight to the matching preset, then run full calibration. Skip the #Default button in Calibration on this path.

On an unprovisioned board, #Info can show -1 for the hardware version or batch date. Those fields describe the board and can be blank even when its motor settings are valid.

If the drive has been used before

Flashing the application leaves the separate EEPROM in place. If you have fitted another motor, calibrate for it. A preset writes the listed settings. Other settings and compensation tables may still belong to the previous motor.

What restoring defaults erases

#Default overwrites the saved calibration, tuning, encoder correction and anti-cogging tables. It also resets the stored serial number, hardware version and batch date to factory values.

If you intend to discard an old setup, record its hardware version and batch date from #Info. Use the board label or provisioning record for its serial number.

For a deliberate reset, open Calibration over UART, click #Default and confirm. Do this before applying the new preset. The equivalent terminal command is #Default, with a capital D. Use the same sequence if older firmware left implausible motor settings, such as a negative pole-pair count.

Enter the motor parameters

  1. Open Presets.
  2. Choose your Product and Variant. For a motor without a product preset, choose Generic motor.

    On STEPFOC, select the motor's pole-pair count. Enter one phase's resistance in ohms and inductance in millihenries. On Spectral Micro, calibration measures these values. Check the motor against the Spectral Micro calibration limits linked above.

  3. Review the settings before you click Apply preset. Check any CAN ID the preset will write before applying it to a drive on a shared bus.

  4. Review the read-back from the drive. Check any setting the app marks as different.

If you already applied a preset over CAN, check its results for rows marked UART only. Apply those settings over UART before calibration.

The Presets section with product and variant selectors and a preset read-back The Presets section with product and variant selectors and a preset read-back

  1. Product and Variant identify the motor setup, here a PAR6 base joint.
  2. Apply preset sends the listed settings to the drive.
  3. The read-back marks the values the drive reports after the write.

Run calibration

The motor turns

Calibration spins the motor in both directions. Fix the motor to the bench and leave the shaft free to turn.

Locate STOP before starting. Its action over UART depends on the detected firmware. See Before the first move.

  1. Open Calibration.
  2. Choose Run full calibration for the normal setup. The console shows each step and the result.
  3. Wait for any encoder table and anti-cogging runs to finish. Their progress appears in the calibration panel on supported firmware.
  4. Click #Save if Motor GUI reports that calibration succeeded and still needs saving.

Run motor only skips the encoder table and anti-cogging on firmware that supports this option. Use #Save to keep a successful motor-only result.

UART calibration panel beside the command log after a successful simulated calibration UART calibration panel beside the command log after a successful simulated calibration

  1. The result shows success and whether the drive saved the calibration. This simulated run shows Done · saved.
  2. Run full calibration starts the complete routine.
  3. The console shows the driver's messages and progress.
  4. #Default clears the saved setup. Clicking it after a successful calibration would erase that result.

Check the result

Confirm the drive reports Calibrated before you move it. If the run failed, read the first failed step in the log and use the matching driver guide above.

Continue to Control, tune and record for your first test and live plots.