CANcoder#

Important

As of late August 2022, there are multiple hardware versions of CANcoder available. This is due to the ongoing worldwide chip shortage causing CTR Electronics to replace the original processor with a substitute. This new version of CANcoder requires a different firmware, but is otherwise functionally identical to the original. Details on checking the version can be found in the device details section.

The CANcoder is the next evolution in the line of CTRE magnetic encoder products. As its name implies, this product is a rotary magnetic encoder that communicates over the CAN bus. Supporting CAN FD and CAN 2.0, this product provides the same position and velocity with the same resolutions you’ve come to expect from the SRX Magnetic Encoder.

Store Page

CAD, Firmware and purchase instructions.

Hardware User Manual

Wiring and mount instructions in PDF format.

Status Light Reference#

Note

Users wishing to test magnet placement must wait 8 seconds after boot for the LEDs to blink the magnet placement status.

Blink Codes
Animation (Click to play) LED State Cause Possible Fix
LED Off No Power Provide 12V to Red/Black leads.
Slow Bright Red CANcoder does not have valid CAN. Ensure good connections between CANH and CANL (Yellow and Green) & robot controller is on.
Rapid Dim Red CAN bus never detected since boot, CANcoder now reporting strength of magnet. Magnet is out of range (<25 mT or > 135 mT) Ensure good connections between CANH and CANL (Yellow and Green) & robot controller is on. Additionally, ensure the magnet's center axis is aligned with the defined center of the CANcoder housing and the magnet is in range of the CANcoder. See Section 2.1 of the Hardware User Manual.
Rapid Dim Orange CAN bus never detected since boot, CANcoder now reporting strength of magnet. Magnet is in range with slightly reduced accuracy (25-45 mT or 75-135 mT). Ensure good connections between CANH and CANL (Yellow and Green) & robot controller is on. Additionally, ensure the magnet's center axis is aligned with the defined center of the CANcoder housing and the CANcoder is not too close or too far from the magnet. See Section 2.1 of the Hardware User Manual.
Rapid Dim Green CAN bus never detected since boot, CANcoder now reporting strength of magnet. Magnet is in range. Ensure good connections between CANH and CANL (Yellow and Green) & robot controller is on.
Rapid Bright Red CAN bus healthy. Magnet is out of range (<25 mT or > 135 mT) Ensure the magnet's center axis is aligned with the defined center of the CANcoder housing and the magnet is in range of the CANcoder. See Section 2.1 of the Hardware User Manual.
Rapid Bright Orange CAN bus healthy. Magnet is in range with slightly reduced accuracy (25-45 mT or 75-135 mT). Ensure the magnet's center axis is aligned with the defined center of the CANcoder housing and the CANcoder is not too close or too far from the magnet. See Section 2.1 of the Hardware User Manual.
Rapid Bright Green CAN bus healthy. Magnet is in range.
Alternate Red/Orange Damaged Hardware. Contact CTRE.
Alternate Orange/Green CANcoder in bootloader. Field-upgrade device in Tuner X.

Magnet Placement#

Using the CANcoder User’s Guide, verify that magnet placement is correct for the CANcoder.

Verifying Sensor Direction#

CANcoder sensor direction can be configured via the Config page in Phoenix Tuner X.

Verifying sensor direction toggle in Phoenix Tuner X

Zeroing the CANcoder#

The zero offset for the CANcoder absolute position can be configured using the Magnet Offset config.

Additionally, CANcoders can be zeroed in Tuner X by pressing on the button shown below. This sets the Magnet Offset config and reports the applied offset to the user.

Important

The Tuner X CANcoder zeroing button requires 2024 diagnostics or newer.

Picture with an arrow pointing at the zero cancoder icon