Modern FRC robots frequently connect 15 to 25 smart motor controllers, absolute encoders, distance sensors, and power distribution devices across the CAN bus (Controller Area Network). Without proper physical topology and transmission rate management, bus saturation leads to packet latency and dropped frames.
CAN 2.0 vs. CAN FD and CANivore
Section titled “CAN 2.0 vs. CAN FD and CANivore”| Metric | RIO Native CAN 2.0 | CTRE CANivore (CAN FD) |
|---|---|---|
| Protocol | Classic CAN 2.0B | CAN FD (Flexible Data-rate) |
| Bitrate | 1.0 Mbps fixed | 5.0 Mbps data / 1.0 Mbps arbitration |
| Data Payload | Max 8 bytes per packet | Max 64 bytes per packet |
| Bus Saturation Point | 16 to 20 devices (~75% utilization) | 40+ devices (< 35% utilization) |
| Hardware Compatibility | All FRC vendors (CTRE, REV, Kauai Labs, NI) | CTRE Phoenix 6 devices only |
Electrical Topology and Bus Termination
Section titled “Electrical Topology and Bus Termination”CAN is a differential two-wire balanced bus:
- CAN_H (Yellow)
- CAN_L (Green)
Termination Resistors
Section titled “Termination Resistors”A standard CAN bus requires two 120 Ohm termination resistors placed at the physical opposite ends of the continuous trunk line. Measuring across CAN_H and CAN_L with a multimeter while the robot is powered off should yield a parallel DC resistance of approximately 60 Ohms.
CAN 2.0 and CAN FD networks require a daisy-chain trunk topology. Star configurations or long stub wires reflect signal waveforms at transmission frequencies, causing frame corruption.
Optimizing Status Frame Rates
Section titled “Optimizing Status Frame Rates”By default, motor controllers broadcast periodic telemetry (stator current, temperature, diagnostic faults) every 10 to 50 ms. For secondary motors or follower actuators, reducing status frame rates preserves bus bandwidth for high-frequency odometry signals:
// Configure high update rate (250 Hz) for drive odometry signalsBaseStatusSignal.setUpdateFrequencyForAll( 250.0, m_driveMotor.getPosition(), m_driveMotor.getVelocity());
// Reduce non-critical diagnostic signals to 10 HzBaseStatusSignal.setUpdateFrequencyForAll( 10.0, m_driveMotor.getDeviceTemp(), m_driveMotor.getSupplyVoltage());---\n
CAN Bus Topology & Diagnostics Check
Self-Test Complete!
You scored 0 out of 2!
Verified Sources & Standards
- CTRE CAN Bus Overview & CANivore Bus Utilizationv6.docs.ctr-electronics.comHardware Vendor
- FIRST Robotics Competition Control System CAN Specificationsdocs.wpilib.orgOfficial FIRST Rule