Skip to main content

CAN Health & Diagnostics

The CAN bus connects smart controllers and sensors (CTRE, REV, etc.). Healthy CAN means consistent telemetry and control.


1 Requirements

  • Twisted‑pair 22 AWG (yellow/green)
  • Exactly two 120 Ω terminators (RIO + last device)
  • Phoenix Tuner X / REV Hardware Client / WPILib Glass

2 Ironclad CAN Layout (Example)

RoboRIO → PDH → TalonFX (Drivetrain) → TalonFX (Arm) → CANCoder → Pneumatics Hub

3 Wiring Rules

  • Total length < ~5 m; avoid long stubs (> 6 in)
  • Secure connectors (heat‑shrink/locking housings)
  • Keep device count reasonable (< 63 IDs)

4 Diagnostic Tools

ToolUse
Phoenix Tuner XCTRE device discovery, firmware, bus utilization
REV Hardware ClientSPARK MAX/PDH/PH firmware & status
WPILib GlassCAN IDs, faults, PDP/PDH data

5 LED Quick Reference

DeviceNormalFault
TalonFXBlinking orangeSolid red/off
PDHGreenBlinking red
CANCoderFlashing greenNo blink = no bus
SPARK MAXBlinking cyanSolid red

6 Maintenance

  • Update firmware before build freeze
  • Check/retorque CAN terminals after transport
  • Log device IDs and frame periods

Troubleshooting

SymptomFix
Devices disappear intermittentlyRe‑crimp connectors; replace suspect wire
Bus utilization > 90 %Reduce periodic frames; remove debug telemetry
Duplicate IDsFactory‑reset then re‑assign IDs
PDH CAN faultsCheck termination and stub lengths