LogoLogo
REVLib Docs
  • REV ION Brushless
  • Quick Links
  • Frequently Asked Questions
  • NEO Brushless Motors
    • Brushless DC Motor Basics
    • NEO Vortex
      • Docking a SPARK Flex
      • Vortex Shafts
      • Installing a Shaft
      • NEO Vortex Solo Adapter
    • NEO V1.1
      • NEO V1
      • Pinion Pressing Guides
    • NEO 550
      • Pinion Pressing Guide
    • Dynamometer Testing
    • Motor Comparison
  • SPARK Flex Motor Controller
    • SPARK Flex Overview
      • SPARK Flex Dock
    • SPARK Flex Specifications
    • SPARK Flex Feature Description
      • Power and Motor Connections
      • Control Connections
      • Data Port
      • Mounting Holes
      • Control Interfaces
      • Mode Button
      • Operating Modes
    • SPARK Flex Getting Started
      • Wiring the SPARK Flex
      • Make it Spin!
      • Basic Configurations
    • SPARK Flex Status LED Patterns
    • SPARK Flex Troubleshooting
    • SPARK Flex Operating Modes
  • SPARK MAX Motor Controller
    • SPARK MAX Overview
    • SPARK MAX Specifications
      • Power and Motor Connections
      • Control Connections
      • Encoder Port
      • Data Port
    • SPARK MAX Getting Started
      • Wiring the SPARK MAX
      • Make it Spin!
      • Basic Configurations
    • SPARK MAX Status LED Patterns
    • SPARK MAX Troubleshooting
    • SPARK MAX Operating Modes
    • SPARK MAX Control Interfaces
    • SPARK MAX Configuration Parameters
    • Using Encoders with the SPARK MAX
      • Absolute Encoders
      • Alternate Encoder Mode
      • Securing the Encoder Adapters
      • Calibration for MAXSwerve
  • REVLib
    • REVLib Overview
      • REVLib Changelog
      • Migrating to REVLib 2025
    • Closed-Loop Control Overview
      • Closed Loop Control Getting Started
      • Getting Started with PID Tuning
      • Position Control Mode
      • Velocity Control Mode
      • Current Control Mode
      • Smart Motion Control
      • Smart Velocity Control
    • Code Examples
    • Migrating to REVLib
    • Device Firmware Changelogs
  • Tips and Tricks
    • Anderson Powerpole Connectors
    • REV Hardware Client Documentation
  • Legacy Documentation
    • SPARK Motor Controller
    • SPARK MAX Client
      • Navigating the SPARK MAX Client
      • Updating Device Firmware
      • Recovery Mode with the SPARK MAX Client
      • SPARK MAX Client Troubleshooting
Powered by GitBook
On this page
  • Calibration Steps
  • What's Next?
  • MAXSwerve Java Template
  • MAXSwerve C++ Template

Was this helpful?

Export as PDF
  1. SPARK MAX Motor Controller
  2. Using Encoders with the SPARK MAX

Calibration for MAXSwerve

PreviousSecuring the Encoder AdaptersNextREVLib Overview

Last updated 1 year ago

Was this helpful?

Before using the MAXSwerve Java or C++ Templates, be sure to calibrate your swerve modules using the by following the steps below:

Calibration Steps

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

  2. 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)

  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

  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!

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

onto a Windows computer

MAXSwerve Module
Install and Open the Latest version of the REV Hardware Client
MAXSwerve Java Template
MAXSwerve C++ Template
REV Hardware Client
REV Hardware Client update tab shown, highlighting where to select the latest version and where to see if the device is up to date
Zero Offset button in the REV Hardware Client's Absolute Encoder tab is highlighted
Absolute Encoder tab in REV Hardware client, the MAXSwerve Module Calibration drop-down is highlighted
MAXSwerve Calibration tool with an orange dot indicating the side of the cutout that the bevel gear slots into. This part of the cutout is a more complex shape with more corners and curves than the other half of the cutout.
Fully assembled MAXSwerve Module showing that the absolute encoder adapter is mounted correctly and the through bore encoder is plugged in
MAXSwerve Calibration tool correctly mounted to a MAXSwerve Module