PID settings affect how the controller responds, not how much power the battery can safely supply. Start from a verified stable setup and correct signal or hardware problems before treating response settings as the cause.

PID PARAS

ParameterValueSystem RoleUnder Load BehaviorInteractionReal-World BehaviorFailure Mode
AN0Control mode flagDefines control behaviorInternal logicNeutralMisconfiguration
LM22en-USLanguage/regionUI/firmware settingDisplay systemNeutralNone
StartKl4Start integral gainControls low-speed stabilityStartKP / Phase currentSmooth vs weak launchStall / jerk
StartKP0Start proportional gainInitial torque responseStartKlSoft initial engagementSluggish start
MidK18Mid-range gainControls mid-speed responseMidKPBalanced accelerationOscillation
MidKP80Mid proportional gainDefines mid-range torque controlMidK1Strong mid pullInstability
MaxKl12High-speed integral gainControls stability at high loadMaxKPSustained outputDrift / instability
MaxKP120High proportional gainHigh-speed torque controlMaxKlStrong responseOscillation
SpeedKl9Speed loop integralControls speed stabilitySpeedKPSmooth speed holdingHunting
SpeedKP10Speed loop proportionalSpeed response sensitivitySpeedKlStable speedOscillation
MOE0-EnableMotor output enableEnables controller outputAll systemsNormal operationNo output
CurveTime100msResponse smoothingTime-based ramp controlThrottle / PIDSmooth transitionsLag or jerk

Core behavior:

  • PID parameters define how the controller responds to error between target and actual motor behavior
  • They control stability, smoothness, and responsiveness across different operating regions
  • The system uses multiple PID layers:
    • Start (low speed)
    • Mid (normal operation)
    • Max (high load/high speed)
    • Speed loop (RPM control)

Core principle:

Error -> PID Correction -> Adjust Current

Interaction layer:

  • PID directly controls how MaxPhaseCurr is applied over time
  • Interacts with:
    • Throttle system (input demand)
    • Ratio In Speed (available torque)
    • Motor definition (stability baseline)
  • Poor PID tuning amplifies instability from aggressive current or weakening settings

Real-world behavior:

  • Low gains -> smooth but sluggish response

  • Balanced gains -> stable, responsive acceleration

  • High gains -> aggressive response but risk of oscillation

  • Riders experience:

    • Proper tuning -> smooth, controlled power delivery
    • Poor tuning -> jerky throttle, surging, or unstable speed holding

Limits and failure modes:

  • Too high KP -> oscillation, vibration, unstable throttle
  • Too high KI -> slow drift or overshoot
  • Too low values -> weak response, delayed acceleration
  • Mismatched PID zones -> inconsistent feel across speed ranges

Tuning Guidance (ONYX-Specific)

  • Leave PID close to known stable values unless necessary - this is not a primary tuning layer
  • Adjust only after current, throttle, and ratio systems are correctly configured
  • Focus on:
    • StartKl / StartKP -> launch feel
    • MidKP -> main riding response
    • MaxKP -> high-speed stability
  • Avoid increasing gains to compensate for weak torque - fix current settings instead
  • If experiencing oscillation, reduce KP values before changing other systems