Calibration for MAXSwerve

We're Updating our Documentation! For the most up-to-date information about the SPARK MAX and other ION Motor Controllers please check out the following new documentation pages:

Before using the MAXSwerve Java or C++ Templates, be sure to calibrate your swerve modules using the REV Hardware Client.

Calibration Steps

  1. Verify you have completely assembled your MAXSwerve Module and have the Steering Motor’s (NEO 550) SPARK MAX connected to the MAXSwerve’s Through Bore Encoder with an Absolute Encoder Adapter.

  1. Install and Open the Latest version of the REV Hardware Client onto a Windows computer

  2. Connect the Steering Motor’s (NEO 550) SPARK MAX directly to your computer via the included USB-C to USB-A cable

  3. Select the Steering SPARK MAX and navigate to the Update Tab to verify your SPARK MAX has the latest SPARK MAX Firmware (the latest version may be different than what is shown in the image below)

REV Hardware Client update tab shown, highlighting where to select the latest version and where to see if the device is up to date
  1. Select The Steering SPARK MAX in the sidebar, and select the AbsoluteEncoder Tab

Steps 6-9 are also included in the REV Hardware Client AbsoluteEncoder Tab under the “MAXSwerve Module Calibration” drop-down shown below

Absolute Encoder tab in REV Hardware client, the MAXSwerve Module Calibration drop-down is highlighted
  1. Put the Calibration Tool on the MAXSwerve module.

    • The Calibration Tool needs to be placed on the MAXSwerve module with the lip facing the module.

    • The MAXSwerve Wheel will only fit in one orientation because of the placement of the wheel's bevel gear. The Calibration tool is not symmetrical, so you will need to align the bevel gear with the side of the cutout indicated with the orange dot in this image.

  1. Rotate the wheel along with the Calibration Tool until the tool's lip firmly drops into place around the MAXSwerve module's edges. Once this happens, the wheel and Calibration Tool will be unable to rotate freely until the tool's lip has been lifted above the edges of the module.

  2. Ensure that the Direction parameter is set to Inverted in the Duty Cycle Absolute Encoder Settings section above.

  3. Click the Set Zero Offset button to calibrate the zero-position of the absolute encoder to this position.

What's Next?

Start driving your MAXSwerve Modules by loading our code templates onto your robot!

Last updated