High-performance robotics teams do not evaluate mechanisms by eye or ear alone. Physical intuition can deceive: an arm that appears to move smoothly may actually be drawing 60A of stator current due to mechanical binding in a bent bushing.
This lesson teaches how to read Tuner X diagnostic plots, detect hidden faults, and complete the bench sign-off protocol.
1. Configuring the Tuner X Plot
Section titled “1. Configuring the Tuner X Plot”In Phoenix Tuner X, open the Plot window and add the following four critical channels for the device under test:
- Target Position / Velocity: The commanded setpoint trajectory.
- Position / Velocity: The physical measurement from the encoder.
- Motor Voltage (): The electrical voltage applied to the motor coils (-12V to +12V).
- Stator Current (): The electrical current circulating through the motor windings, directly proportional to output torque.
Overlaying target and measured signals on a single graph reveals the tracking error (error = target - measured) directly in real time.
2. Three Classic Failure Curves
Section titled “2. Three Classic Failure Curves”Nearly every closed-loop issue in FRC falls into one of three distinct graphical patterns on the plot:
Pattern A: Positive Feedback Runaway
Section titled “Pattern A: Positive Feedback Runaway”- What it looks like on plot: Target setpoint steps up; measured position immediately dives in the opposite direction or accelerates uncontrollably away from the target; motor voltage pins at maximum (±12V).
- Diagnosis: Sensor phasing or motor inversion is backwards. The controller believes it is moving away from the setpoint, so it applies maximum corrective voltage in the wrong direction.
- Immediate Action: Disable motor immediately. Re-check motor inversion and CANcoder sensor direction.
Pattern B: High-Gain Chattering
Section titled “Pattern B: High-Gain Chattering”- What it looks like on plot: Measured position hovers near the target, but motor voltage oscillates in a dense, high-frequency square wave (e.g. +6V to -6V dozens of times per second).
- Diagnosis: Proportional gain () is too high. The loop is stiffer than the physical mechanical backlash can tolerate.
- Action: Reduce by 50% before adjusting derivative gain ().
Pattern C: Steady-State Droop
Section titled “Pattern C: Steady-State Droop”- What it looks like on plot: Mechanism moves toward setpoint, then stalls with a flat error line (e.g. 1.5 rotations below target). Motor voltage flatlines at a constant low value.
- Diagnosis: Missing or low gravity feedforward () or static friction feedforward ().
- Action: Do not raise . Increase until the steady-state gap disappears.
3. Stator Current Analysis
Section titled “3. Stator Current Analysis”Stator current generates mechanical torque and motor heat (). Monitoring stator current during bench testing reveals mechanical issues before gear teeth strip:
| Mechanism State | Healthy Stator Current | Warning Threshold | Fault Condition |
|---|---|---|---|
| Arm Holding Horizontal | 10A to 25A | > 40A | Insufficient gear reduction; motor will overheat |
| Elevator Cruising Upward | 15A to 30A | > 50A | Carriage rails misaligned or binding |
| Flywheel at 5,000 RPM | 5A to 12A | > 25A | Bearing seized or belt tension too high |
| Mechanism Stalled at Hardstop | Limited by config (40A) | > 70A | Stator current limit disabled |
Before running any mechanism at full speed, confirm in Config -> Current Limits that StatorCurrentLimitEnable is set to true with a limit between 30A and 50A.
4. Stage 1 Bench Sign-Off Checklist
Section titled “4. Stage 1 Bench Sign-Off Checklist”Before proceeding to Stage 2 (Java code foundations), every mechanism on your robot should pass this four-point inspection:
- CAN Bus Health: Multimeter reads 60 Ω across CAN H/L; zero frame drops in Tuner X.
- Sensor Phasing: Moving the mechanism in the positive direction increases the reported position value.
- Feedforward Measured: Calibrated values for , , and recorded in team documentation.
- Closed-Loop Stability: Step responses settle cleanly without audible buzzing or persistent steady-state error.
Once these four items are verified, the physical robot is ready to receive Java software.
Verified Sources & Standards
- Phoenix Tuner X Diagnostic Utilityv6.docs.ctr-electronics.comHardware Vendor
- WPILib Hardware Diagnostics & Driver Stationdocs.wpilib.orgWPILib Standard