This page is part of the ONYX Performance Guide

Intro

This document captures the stock Kelly KLS7230S controller configuration used on the 72V ONYX. It preserves the exact factory parameter set exposed through the Kelly interface while documenting controller behavior that is not visible in standard Kelly configuration tools.

The intent is to provide a reliable baseline for diagnostics, comparison, and controlled tuning without altering the original data.

The stock configuration table preserves directly observed controller values. Additional firmware-dependent and non-exposed sections include example values or representative ranges where needed to explain how hidden parameters typically behave. These examples are not confirmed stock settings unless explicitly listed in the main configuration table.


Summary

  • Full stock parameter set preserved without modification
  • Control loop fields clarified to reflect actual controller architecture
  • Firmware-dependent parameters and hidden behavior documented
  • System behavior explained without altering configuration
  • Suitable as a baseline reference for diagnostics, tuning comparison, and validation

System Overview

Stock Kelly Controller Settings

Checkbox values are transcribed as “Check Mark” (enabled) and “No Check Mark” (disabled). Blank fields indicate values not populated or not returned by the controller interface.

Some parameters may not appear in all versions of the Kelly controller interface. Visibility can vary depending on firmware version, software (Motormed / AC Aduser), and controller configuration. Missing fields in the UI do not indicate missing functionality.

This table lists the factory configuration for the Kelly KLS7230S controller used on the 72V ONYX.

This is a direct export of the controller configuration and is intentionally unmodified.

Fields are not grouped by function in the original interface and appear in the order provided by the controller firmware.

The table includes a mix of:

  • user-adjustable tuning values
  • calibration values derived from motor identification
  • internal scaling and control loop parameters
  • binary flags representing controller modes and logic states

Not all fields have equal impact on system behavior:

  • some directly affect performance and ride feel
  • some define system limits and protections
  • others are calibration values that should not be changed without full system understanding

High-impact fields typically include current limits, throttle mapping, braking behavior, and speed limits.

Detailed explanations and functional grouping of these parameters are provided in the sections that follow.

FieldValueNotes
Module NameKLS 7230SController model identifier
User NameonyxController user label
Serial Number24033716Controller serial identifier
Software Version4b4c5337Firmware version
Controller Volt72Nominal system voltage used for scaling and protection
Low Volt55Undervoltage cutoff threshold
Over Volt90Overvoltage protection threshold
Current Percent50Global output scaling factor
Batt_Current%100Battery current scaling percentage
Motor_Current%100Motor current scaling percentage
Bat Current Limit55Maximum battery current draw (system power limit)
Motor Identity En85Appears related to motor identification and calibration
Identify AngleRotor position identification angle from calibration
ID Err32767Identification / rotor position error flag
Hall Galvan Rate525Hall signal scaling / filtering parameter
Phase Curr Max AD380Maximum phase current (primary torque control)
Brake SW Level0Digital brake input logic level
TPS Low0Minimum throttle input value
TPS High95Maximum throttle input value
TPS Type1Throttle input type (voltage / signal mode)
TPS Dead Low20Lower dead zone for throttle activation
TPS Dead High80Upper dead zone for throttle saturation
TPS Forw MAP30Forward throttle response curve shaping
TPS Rev MAP20Reverse throttle response curve shaping
Brake Type0Brake input mode (analog / digital behavior)
Brake Dead Low20Lower activation threshold for brake input
Brake Dead High80Upper brake input scaling limit
Max Output Fre1000Maximum electrical frequency output
Max Speed15000Absolute motor speed limit (RPM)
Max Forw Speed%100Forward speed scaling percentage
Max Rev Speed%100Reverse speed scaling percentage
MidSpeed Forw Speed65Mid-mode forward speed limit
MidSpeed Rev Speed30Mid-mode reverse speed limit
LowSpeed Forw Speed35Low-mode forward speed limit
LowSpeed Rev Speed30Low-mode reverse speed limit
Three Speed2Enables multi-speed mode behavior
PWM Frequency16 or 20Switching frequency (kHz), affects noise and heat
Startup H-PedalCheck MarkRequires throttle at zero before startup
Brake H-PedalNo Check MarkBrake interlock with throttle
NTL H-PedalNo Check MarkNeutral interlock behavior
JoystickNo Check MarkEnables joystick control mode
Three Gear SwitchNo Check MarkExternal 3-speed switch input
BoostNo Check MarkTemporary performance boost mode
Foot SwitchNo Check MarkExternal enable/disable input
SW LevelCheck MarkSwitch input polarity configuration
0,HIM;1,KIMCheck MarkCommunication or control mode selection
CruiseNo Check MarkCruise control enable
Anti-theftNo Check MarkEnables controller lock / immobilization behavior when active
Anti SlipNo Check MarkTraction/slip control feature
Change DirCheck MarkEnables forward/reverse switching
IQ Kp500Current loop proportional gain
IQ Ki10Current loop integral gain
IQ Kp (second field)1500Secondary loop gain (torque/speed response)
IK Ki30Secondary loop integral gain
HS_ACQR_Kp1500High-speed acquisition loop proportional gain
HS_ACQR_Ki30High-speed acquisition loop integral gain
HS_ACDR_Kp1500High-speed decay loop proportional gain
HS_ACDR_Ki30High-speed decay loop integral gain
Anti Theft Curr#15Current applied in anti-theft mode
BRK_AD Brk %25Analog brake regen strength
RLS_TPS Brk Per%1Regen applied on throttle release
NTL Brk Per%0Regen applied in neutral state
Accel Time5Throttle ramp-in time
Accel Release Time1Throttle ramp-out time
Brake Time5Regen ramp-in time
Brake Release Time1Regen ramp-out time
BRK_SW Brk %25Digital brake regen strength
Change Dir Brk %0Brake applied during direction change
Brk_Speed LimitMinimum speed threshold for regen activation
Compensation Per%20Appears to control output compensation under load/voltage sag
IVT BRK Max50Appears to define an internal braking limit (upper bound)
IVT BRK Min50Appears to define an internal braking limit (lower bound)
Torque Speed KP3000Speed-related control loop proportional gain
Torque Speed K I80Speed-related control loop integral gain
Speed Err Limit1000Allowed speed error before correction increases
Motor Normal Curr80Continuous motor current reference
Motor Poles32Motor pole count (used for speed calculation)
Speed Sensor Type2Sensor type (hall / resolver / encoder)
Resolver Poles2Resolver pole configuration
Min Excitation Curr0Minimum excitation current (field weakening baseline)
Motor Temp Sensor2Temperature sensor type
High Temp Cut C170Thermal shutdown threshold (°C)
High Temp Resume150Temperature where operation resumes
High Temp Str C100Start of thermal derating
High Temp Weak %0Thermal derating strength
Line Hall Zero508Hall sensor zero offset calibration
Line Hall Amplitude410Hall signal amplitude calibration
Line Hall High Err972Upper threshold for hall error detection
Line Hall Low Err50Lower threshold for hall error detection
Exchange Phase AB0Phase swap configuration
Resolver Start Angle8129Initial rotor angle alignment
0° Hall2Hall mapping for 0° position
60° Hall3Hall mapping for 60° position
120° Hall1Hall mapping for 120° position
180° Hall5Hall mapping for 180° position
240° Hall4Hall mapping for 240° position
300° Hall6Hall mapping for 300° position
Forw A Rise Hall3Forward rotation hall transition mapping
Forw A Fall Hall4Forward rotation hall transition mapping
Rev A Rise Hall5Reverse rotation hall transition mapping
Rev A Fall Hall2Reverse rotation hall transition mapping

Additional Firmware / Hidden Parameters (Reference Table)

This table is a reference index of firmware-dependent and non-exposed parameters that may exist across Kelly variants. Detailed behavior, example ranges, and interaction notes are documented in the sections that follow.

FieldValueNotes
Min ExcitationLower bound of field weakening behavior
Max ExcitationUpper excitation limit before weakening transitions
Field Weakening EnableTypically enabled in performance configurations
Flux Weakening %Controls strength of high-speed field reduction
Max Regen CurrentPrimary limiter of regen strength
Regen Current LimitCaps regen regardless of brake %
EBS LevelFirmware-dependent regen scaling
Torque LimitInternal torque ceiling
Max Torque CommandLimits requested torque before output stage
Absolute Speed LimitHard RPM ceiling independent of throttle
Bus Voltage CompensationIncreases current to offset voltage sag
Power Limit vs VoltageReduces output as voltage drops
Torque Mode / Speed ModeTypically torque mode for vehicle applications
Regen Enable ModesDetermines when regen is allowed to engage
Direction Change ProtectionTypically enabled to prevent unsafe reversal under load
Brk_Speed Limit100 RPMMinimum RPM where regen becomes effective
Low Speed Regen CutoffFurther reduces regen near zero speed
Regen Ramp RateControls how quickly regen torque builds
Regen Voltage ClampLimits regen near overvoltage threshold
Regen Current Slew LimitSmooths regen current transitions
High Temp Str CStart of thermal derating (below 170°C cutoff)
High Temp Weak %Strength of thermal derating
Thermal Derating SlopeRate of power reduction with temperature
Thermal Foldback GainAggressiveness of thermal limiting
Thermal Recovery RateSpeed of power restoration after cooling
Max Torque ClampHard internal torque ceiling
Torque Limit vs Speed CurveReduces torque as RPM increases
Torque Derate vs RPMHigh-speed torque reduction behavior
Electrical Frequency ClampLimits max electrical output frequency
Back EMF CompensationAdjusts output at high speed
Field Weakening Ramp RateSpeed of weakening engagement
Hall Sequence ValidationPrevents invalid hall transitions (typically enabled)
Phase Alignment OffsetFine adjustment of commutation timing
Auto-Identification State MachineRuns during motor identification (startup or triggered)
Phase Advance Angle (Dynamic)Increases with RPM for efficiency
Commutation Advance MapSpeed-based timing adjustment
Dynamic Current Limiting vs VoltageReduces output during voltage sag
DC Bus Ripple FilterSmooths voltage fluctuations
DC Bus Voltage Averaging WindowResponse speed to voltage changes
Precharge Detection ThresholdTypically ~60–90% of pack voltage
Precharge TimeoutPrevents failed startup condition
Contactor Delay ControlControls engagement timing
Reverse Torque LimitTypically reduced vs forward torque
Reverse Speed ClampLimits reverse speed
Direction Change Lockout TimerPrevents immediate reversal
Direction Change Delay TimerAdds delay before torque reapply
Torque Command FilterSmooths throttle-to-torque response
Current Slew Rate LimitLimits current rise/fall speed
Current Loop Saturation LimitCaps internal current demand
Iq/Id Decoupling GainImproves FOC control separation
Speed Loop Output ClampLimits speed loop authority
Speed Loop Integral LimitPrevents integral wind-up
Flux Observer GainRotor estimation responsiveness
Rotor Observer Filter ConstantSmooths rotor position estimation
Deadtime CompensationCorrects switching delay losses
PWM DeadtimePrevents transistor shoot-through
MOSFET Thermal ModelInternal temperature estimation (typically enabled in firmware)
Stall Detection ThresholdDetects non-rotating motor under load
Stall Current LimitLimits current during stall
Anti-Stall Recovery TimerDelay before retry
Slip Detection ThresholdDetects mismatch in expected speed
Slip Compensation GainAdjusts torque during slip
Overvoltage Regen SuppressionTypically enabled to protect battery from overvoltage
Regen Disable on Fault FlagCommonly enabled to disable regen during fault conditions
Fault Latch BehaviorLatchedRequires reset after fault
Fault Auto-Recovery EnableAllows automatic recovery
Watchdog TimerFirmware safety reset timer
Startup Torque Boost (Internal)Improves launch from stop
Startup Alignment CurrentHolds rotor before movement
Startup Alignment TimeDuration of alignment phase
Zero Speed Lock DetectionTypically enabled to detect stopped motor state
Neutral State Current ClampPrevents unintended movement
Hall Signal Debounce TimeFilters noisy hall signals
Hall Error TimeoutDetects signal loss
Encoder Signal Loss TimeoutDetects encoder failure
Resolver Signal Quality ThresholdMinimum valid signal level
Sensorless Transition ThresholdRPM where fallback may occur
Sensorless Fallback EnableAllows operation without sensors (firmware-dependent)
Throttle Plausibility CheckTypically enabled to prevent invalid throttle input
Brake-Throttle Override LogicCommonly enabled so brake input overrides throttle
CAN Timeout ThresholdDetects communication loss
Communication Loss Fallback ModeDefines behavior when communication is lost (disable / limp / coast)
ID ErrDiagnostic flag for identification failure

Parameter Risk Classification

The following risk classification is intended as a practical tuning guide for the parameters most likely to be adjusted or misadjusted.

FieldRisk LevelReason
Bat Current LimitCautionDirectly affects battery stress, heat, and system power
Batt_Current%CautionScales battery current output and affects total system load
Motor_Current%CautionScales motor current output and affects torque delivery
Phase Curr Max ADCautionStrong impact on torque and motor heating
Compensation Per%CautionCan increase battery stress under load
Max SpeedCautionLimits top speed but can interact with other constraints
Max Output FreCautionAffects achievable motor speed and system limits
Brk_Speed LimitCautionAlters when regen engages and low-speed braking behavior
Min Excitation CurrCautionAffects field weakening baseline and high-speed behavior
High Temp Str CDo Not TouchDefines start of thermal derating behavior
High Temp Weak %Do Not TouchControls thermal derating strength
TPS Dead LowSafeAffects throttle feel but unlikely to damage hardware
TPS Forw MAPSafeAdjusts response curve only
BRK_SW Brk %SafeChanges regen feel without affecting system limits
RLS_TPS Brk Per%SafeOff-throttle regen tuning only
Accel TimeSafeControls throttle ramp rate
Brake TimeSafeControls regen ramp rate
IQ Kp / KiDo Not TouchCore control loop stability parameters
IK KiDo Not TouchDirectly affects system damping and stability
Torque Speed KP / KIDo Not TouchCan cause oscillation or instability if misconfigured
HS_ACQR_Kp / HS_ACQR_KiDo Not TouchHigh-speed loop tuning, can destabilize response
HS_ACDR_Kp / HS_ACDR_KiDo Not TouchHigh-speed decay loop, affects stability and damping
Motor Identity EnDo Not TouchAffects motor identification and calibration
Identify AngleDo Not TouchRotor position calibration parameter tied to motor identification
Hall Mapping FieldsDo Not TouchIncorrect values can prevent operation
Resolver Start AngleDo Not TouchCritical for commutation accuracy
High Temp Cut CDo Not TouchSafety-critical thermal protection
High Temp ResumeDo Not TouchRecovery behavior tied to thermal safety
ID ErrDo Not TouchDiagnostic output, not a tunable parameter

Additional Parameters (Firmware Dependent)

This section lists firmware-dependent parameters that may exist on other Kelly variants but are not visible in this dataset.

The Kelly KLS7230S controller may expose additional parameters depending on firmware version, controller revision, and configuration software. These are not present in this dataset but may appear in other controller variants.

Their absence in the table does not indicate missing functionality.

These parameters are often controlled internally by firmware, may not be visible or adjustable through standard Kelly configuration tools, and follow the same system relationships defined above. They may also override or interact with user-visible settings in the main configuration table.

Field Weakening

ParameterExample Value / RangeWhat It Does
Min Excitation5–15%Sets the lower excitation floor used when weakening begins
Max Excitation80–100%Sets the upper excitation limit available before weakening behavior changes
Field Weakening EnableOn / OffEnables or disables field weakening behavior
Flux Weakening %5–20% mild, 20–40% aggressiveControls how strongly the controller reduces effective field strength at high RPM

These parameters control high-speed operation beyond the motor’s normal voltage-limited speed range.

  • field weakening allows the motor to spin faster than its normal base speed at a given battery voltage
  • it works by reducing effective magnetic field strength at higher RPM
  • this increases top-end speed, but it does not create additional power

Behavior characteristics:

  • low values produce a mild top-speed increase with less heat
  • higher values can extend speed further, but current draw rises quickly
  • torque drops off more noticeably as speed increases
  • motor and controller temperature climb faster during sustained high-speed riding

Important:

  • field weakening does not increase total power, only extends usable RPM range
  • aggressive values can overheat the motor quickly
  • excessive weakening can make the bike feel faster at the top end but weaker and less efficient under load
  • real results depend heavily on battery voltage, gearing, motor characteristics, and load

Regenerative Braking Control

ParameterExample Value / RangeWhat It Does
Max Regen Current10–30A mild, 30–60A strongSets the upper limit for how much regen current the controller can send back into the battery
Regen Current Limit10–50ACaps regen output regardless of brake percentage settings
EBS Level1–3 light, 4–6 medium, 7–10 aggressiveSets the overall strength of electronic braking behavior, depending on firmware scale

These fields determine how much regenerative current the controller is actually allowed to apply.

  • these fields control how much braking force the controller can produce electrically
  • unlike brake percentage settings, they act as current-based limits on how much regen can actually happen
  • this is a primary factor in whether regen feels light, moderate, or very strong when the brake is applied

Behavior characteristics:

  • lower values produce gentler deceleration and less battery charging current
  • higher values increase braking force and make regen more noticeable
  • aggressive settings can make the bike feel abrupt when braking begins
  • regen is strongest at higher speed and naturally gets weaker as RPM drops

Important:

  • these limits may override or reshape BRK_SW / BRK_AD percentage settings
  • actual regen feel is usually a combination of brake percentage, regen current limits, and motor speed
  • excessive values can increase battery stress, BMS intervention, and motor heat during repeated braking
  • strong regen settings may feel good at speed but still taper off near low RPM because back EMF falls with speed

Torque and Speed Limits

ParameterExample Value / RangeWhat It Does
Torque LimitExample range: 60–100% typical, 100%+ less restrictedCaps maximum motor torque output
Max Torque CommandExample range: 50–100%Limits how much torque the controller will request internally
Absolute Speed LimitExample range: 12000–18000 RPMSets a hard ceiling on motor speed regardless of throttle input

These fields act as hard limits on what the controller is allowed to output.

  • these parameters act as upper limits on what the controller is allowed to do
  • they apply regardless of throttle position or rider input
  • they sit above other settings like throttle mapping and current limits

Behavior characteristics:

  • lower torque limits reduce acceleration and overall power feel
  • increasing torque limits improves launch and responsiveness
  • speed limits cap top speed even if the system has power to go faster
  • aggressive limits can make the bike feel unrestricted but increase system stress

Important:

  • these limits may override phase current and throttle mapping behavior
  • setting torque too low can make the bike feel flat or unresponsive
  • setting speed limits too low can prevent reaching expected top speed even with correct gearing and power
  • these are often used for safety, battery protection, or drivetrain longevity

Voltage Compensation

ParameterExample Value / RangeWhat It Does
Bus Voltage Compensation0–10% mild, 10–25% aggressiveAdjusts output to compensate for voltage sag under load
Power Limit vs VoltageLinear or stepped curveReduces available power as battery voltage drops

These parameters control how the controller responds to battery voltage sag during load.

  • these parameters adjust how aggressively the controller tries to maintain performance as voltage drops
  • instead of letting power fall naturally with voltage, compensation increases current draw to hold output

Behavior characteristics:

  • low compensation results in noticeable power drop as battery voltage sags
  • higher compensation keeps acceleration and power more consistent under load
  • aggressive settings increase current draw to maintain output
  • system may feel strong even at lower battery voltage, but at the cost of efficiency

Important:

  • higher compensation increases battery stress and heat
  • interacts directly with Bat Current Limit and overall system power draw
  • aggressive settings can increase voltage sag rather than reduce it under heavy load
  • behavior depends heavily on battery condition, internal resistance, and discharge capability

Control Mode and Behavior Flags

ParameterExample Value / RangeWhat It Does
Torque Mode / Speed ModeTorque (default), Speed (less common)Determines whether throttle controls torque output or targets a speed
Regen Enable ModesOff / Throttle Release / Brake Only / CombinedDefines when regenerative braking is allowed to engage
Direction Change ProtectionEnabled / DisabledPrevents unsafe direction changes while the motor is still rotating

These fields control the controller’s internal operating modes and logic behavior.

  • these parameters control how the controller interprets inputs and applies output
  • they change the overall behavior of throttle, braking, and direction handling
  • unlike tuning values, these act more like system-level switches

Behavior characteristics:

  • torque mode provides direct and predictable throttle response based on rider input
  • speed mode attempts to maintain a target speed, which can feel less natural on a bike
  • regen modes determine whether braking occurs on throttle release, brake input, or both
  • direction protection prevents immediate reversal, reducing drivetrain shock

Important:

  • typically firmware-controlled and not always exposed in user tools
  • incorrect mode selection can make throttle response feel unnatural or unstable
  • regen mode configuration can significantly change how the bike behaves when coasting or braking
  • direction protection is critical for safety and preventing mechanical damage

Additional Parameters (Extended Firmware Variants)

This section covers parameter families that may be user-visible in some Kelly firmware branches, engineering tools, or controller revisions, but are not present in this dataset.

The Kelly KLS7230S controller may expose additional parameters in other firmware branches, engineering tools, or controller revisions. These are not present in this dataset but are consistent with behavior seen across Kelly KLS variants.

Their absence in the table does not indicate lack of functionality.

These fields may be user-visible in some firmware, hidden in others, or partially controlled through internal logic that sits on top of the exposed parameter set.

Regenerative Behavior (Extended)

ParameterExample Value / RangeWhat It Does
Brk_Speed Limit100 RPMMinimum motor speed at which regenerative braking becomes active
Low Speed Regen CutoffExample range: 0–100 RPM below active regen regionFurther tapers or disables regen as speed approaches zero
Regen Ramp RateSlow / Medium / FastControls how quickly regen torque is applied
Regen Voltage ClampNear pack overvoltage thresholdLimits regen current as battery voltage approaches protection limit
Regen Current Slew LimitLow / Medium / High or firmware-dependent ramp rateLimits how quickly regen current can rise or fall

These parameters extend regenerative braking behavior beyond the standard exposed brake percentage and timing fields.

  • Brk_Speed Limit defines the minimum motor speed (RPM) at which regenerative braking becomes active
  • below this RPM, regen is reduced or effectively disabled because back EMF is too low to push current into the battery
  • this is the point where regen begins to engage and become usable
  • Low Speed Regen Cutoff defines an additional region where regen may be further limited or tapered as speed approaches zero
  • Regen Ramp Rate and Regen Current Slew Limit shape how quickly braking torque is applied and removed
  • Regen Voltage Clamp limits regenerative current as battery voltage approaches overvoltage protection

Behavior characteristics:

  • regen strength drops as speed approaches the Brk_Speed Limit threshold
  • below ~100 RPM, braking typically transitions from electrical regen to primarily mechanical braking
  • prevents unstable or jerky braking at very low speed
  • smooths braking engagement and release
  • prevents abrupt negative torque spikes
  • reduces the chance of overvoltage faulting during high-speed deceleration

Important:

  • may not appear in standard Kelly tools
  • may override or reshape BRK_SW / BRK_AD behavior
  • real regen feel is determined by both exposed settings and internal limits like Brk_Speed Limit

Thermal Management (Extended)

ParameterExample Value / RangeWhat It Does
High Temp Str CTypical example range: 120–150°CTemperature where the controller starts reducing output
High Temp Weak %Low / Medium / High or firmware-dependent scalingControls how aggressively power is reduced once thermal limiting starts
Thermal Derating SlopeShallow / Medium / SteepControls how quickly output falls as temperature rises
Thermal Foldback GainLow / Medium / HighShapes how strongly the controller folds power back under heat
Thermal Recovery RateSlow / Medium / FastControls how smoothly power returns after cooling

These parameters control how the controller reduces power as temperatures rise, before reaching full shutdown.

  • High Temp Str C defines the temperature where the controller starts reducing output
  • this is the point where power begins to get pulled back to prevent overheating
  • on most systems, this occurs noticeably before the hard cutoff (High Temp Cut C = 170°C in this case)
  • High Temp Weak % defines how aggressively power is reduced once thermal limiting starts
  • lower values result in gradual power reduction, higher values cause faster and stronger derating
  • Thermal Derating Slope, Thermal Foldback Gain, and Thermal Recovery Rate control how quickly power is reduced and how smoothly it returns after cooling

Behavior characteristics:

  • power is reduced gradually before reaching the shutdown temperature
  • under sustained load, output will continue to drop as temperature increases
  • repeated hard acceleration or high-speed riding will trigger earlier and stronger derating
  • power does not immediately return once temperatures drop; recovery is controlled and delayed
  • depending on settings, the system may feel strong initially but fade quickly under continuous load

Important:

  • not exposed in this dataset
  • works together with High Temp Cut C (170°C) and High Temp Resume (150°C)
  • High Temp Str C typically sits well below the cutoff to allow controlled derating instead of abrupt shutdown
  • has a major impact on how much power the system can sustain over time
  • this is one of the main reasons short bursts feel strong, but continuous riding feels weaker as heat builds

Torque and Speed Constraints (Extended)

ParameterExample Value / RangeWhat It Does
Max Torque ClampExample range: 80–120%Sets an internal hard ceiling on torque output regardless of other limits
Torque Limit vs Speed CurveLinear / stepped reductionReduces available torque as speed increases
Torque Derate vs RPMStarts ~60–80% of max RPMGradually lowers torque at higher motor speeds
Electrical Frequency ClampExample range: 800–1200 Hz, firmware-dependentCaps maximum electrical output frequency
Back EMF Compensation0–20%Adjusts output to account for increasing back EMF at high speed
Field Weakening Ramp RateSlow / Medium / FastControls how quickly field weakening is applied as speed increases

These fields shape deeper torque and speed limits that are not always visible in the standard UI.

  • these parameters shape how torque is delivered across the full speed range
  • they control the transition from strong low-speed acceleration to limited high-speed output
  • they operate on top of visible limits like Max Speed and Phase Current

Behavior characteristics:

  • strong torque at low speed gradually fades as RPM increases
  • prevents excessive current draw at high speed where efficiency drops
  • smooths the transition into top-speed operation
  • limits abrupt or unstable behavior near maximum speed
  • affects how aggressively field weakening engages at higher RPM

Important:

  • may appear only in certain firmware or controller variants
  • may override visible speed or current settings even when those values appear unchanged
  • top-speed behavior is often governed more by these parameters than by Max Speed alone
  • overly aggressive limits can make the bike feel strong off the line but weak at speed
  • overly loose limits can increase heat, instability, and system stress at high RPM

Sensor and Identification Extensions

ParameterExample Value / RangeWhat It Does
Hall Sequence ValidationEnabled / DisabledVerifies correct hall sensor transition order
Phase Alignment Offset±0–10° electricalApplies correction to align controller output with motor position
Auto-Identification State MachineRun on startup / manual triggerHandles automated motor identification and calibration
Phase Advance Angle (Dynamic)0–20° increasing with RPMAdvances timing as speed increases for efficiency
Commutation Advance MapSpeed-based curveDefines how phase advance changes across RPM range

These parameters control additional motor identification and commutation behavior beyond the visible sensor setup fields.

  • these parameters control how the controller understands rotor position and aligns electrical output with the motor
  • they refine timing, improve efficiency, and ensure correct commutation across all speeds
  • they operate continuously in the background once the system is running

Behavior characteristics:

  • correct values result in smooth operation and consistent torque delivery
  • phase advance improves efficiency and reduces heating at higher speeds
  • improper alignment can cause rough operation, noise, or reduced performance
  • identification routines ensure the controller matches the specific motor characteristics

Important:

  • may be partially exposed only through engineering or OEM tools
  • directly tied to motor identification success and sensor configuration
  • incorrect hall sequence or phase alignment can prevent operation or trigger faults
  • errors in this layer often appear as hard faults or startup failure rather than simple tuning issues

Voltage and Startup Management (Extended)

ParameterExample Value / RangeWhat It Does
Dynamic Current Limiting vs Voltage0–30% scalingReduces output as battery voltage drops under load
Power Limiting CurveLinear / stepped curveDefines how available power changes across voltage range
DC Bus Ripple FilterLow / Medium / High filteringSmooths rapid voltage fluctuations from the battery
DC Bus Voltage Averaging Window10–100 msDetermines how quickly voltage changes affect control decisions
Precharge Detection Threshold~60–90% of pack voltageDetects when safe precharge voltage is reached before enabling full power
Precharge Timeout100–1000 msSets how long the controller waits for precharge before faulting
Contactor Delay Control50–500 msDelays full engagement to protect components during startup

These parameters control higher-level power and startup management behavior.

  • these parameters control how the controller reacts to unstable or changing battery voltage
  • they also manage how the controller safely powers on and connects to the battery
  • they operate continuously during both startup and riding conditions

Behavior characteristics:

  • smooths power delivery during voltage sag or heavy load
  • reduces sudden drops or spikes in output caused by battery instability
  • prevents damaging current spikes during controller startup
  • affects how quickly the controller responds to voltage changes under load

Important:

  • may be hidden in standard user tools
  • directly interacts with Low Volt, Over Volt, and Bat Current Limit
  • aggressive current limiting can make the bike feel weak under load
  • insufficient filtering or delay can cause harsh startup behavior or fault conditions
  • startup reliability and consistency are heavily influenced by these parameters

Reverse and Direction Control (Extended)

ParameterExample Value / RangeWhat It Does
Reverse Torque Limit20–50% typicalLimits available torque when operating in reverse
Reverse Speed Clamp20–50% of forward speedCaps maximum reverse speed
Direction Change Lockout Timer200–1000 msPrevents immediate direction changes while motor is still spinning
Direction Change Delay Timer100–500 msAdds a delay before applying torque after a direction change

These parameters control additional reverse and direction change behavior.

  • these parameters control how the system behaves when switching between forward and reverse
  • they are primarily designed to protect the drivetrain and improve rideability
  • they operate automatically whenever a direction change is requested

Behavior characteristics:

  • reverse power is usually reduced to prevent abrupt or unsafe movement
  • reverse speed is limited compared to forward operation
  • direction changes are delayed to allow the motor to slow down before reversing
  • prevents sudden torque reversal that can stress mechanical components

Important:

  • may be hidden even when Change Dir is exposed in the main settings
  • intended primarily for safety and hardware protection
  • aggressive or disabled limits can cause harsh or damaging direction changes
  • overly restrictive values can make reverse feel weak or unresponsive
  • timing behavior can make direction changes feel delayed if not understood

Internal / Non-Exposed Control Parameters

This section covers runtime behaviors and internal control variables that are generally not user-exposed.

These parameters are internal to controller firmware and are not user-configurable through standard Kelly tools. They may exist as stored calibration values, computed internal limits, diagnostic states, or runtime control variables.

They are included here to explain behavior that is real but not directly adjustable from the stock interface.

Control Loop Internals

ParameterExample Value / RangeWhat It Does
Torque Command FilterLow / Medium / High smoothingFilters how quickly throttle input becomes torque output
Current Slew Rate LimitExample range: 50–300 A/s, implementation-dependentLimits how fast motor current can increase or decrease
Current Loop Saturation Limit80–120% of nominalCaps maximum allowable current demand internally
Iq/Id Decoupling Gain0.5–2.0Improves separation between torque and flux control
Speed Loop Output Clamp80–120%Limits how much output the speed loop can request
Speed Loop Integral Limit50–100%Prevents excessive accumulation in the speed control loop
Flux Observer Gain0.1–1.0Controls responsiveness of rotor flux estimation
Rotor Observer Filter Constant10–100 msSmooths rotor position estimation over time

These parameters define internal control loop behavior beyond the exposed IQ / IK gains.

  • these parameters shape how quickly and smoothly the controller reacts to throttle and load changes
  • they sit underneath the visible PID values and determine how those values are actually applied
  • they are part of the controller’s internal FOC (field-oriented control) system

Behavior characteristics:

  • stronger filtering results in smoother but slower throttle response
  • faster slew rates make the system feel more responsive but can increase harshness
  • saturation and clamp limits prevent unstable or excessive output requests
  • observer and decoupling parameters improve accuracy and stability of motor control

Important:

  • not user accessible in standard tools
  • tightly coupled to internal firmware and motor model
  • incorrect tuning would result in oscillation, instability, or inconsistent throttle response
  • issues in this layer often feel like “bad tuning” even when visible PID values appear correct

PWM and Switching Behavior

ParameterExample Value / RangeWhat It Does
Deadtime Compensation0–100%Adjusts output to correct errors caused by switching deadtime
PWM Deadtime500–2000 nsInserts a delay between switching events to prevent shoot-through

These parameters control internal switching timing behavior of the inverter.

  • these parameters control how the controller drives the power transistors (MOSFETs)
  • they operate at the hardware level and directly affect efficiency, heat, and waveform quality
  • they are critical for safe and stable inverter operation

Behavior characteristics:

  • proper deadtime prevents shoot-through (both transistors conducting at once)
  • too much deadtime reduces efficiency and distorts current waveforms
  • deadtime compensation helps recover lost performance caused by switching delays
  • switching behavior affects low-speed smoothness and audible motor noise

Important:

  • not exposed in standard configuration tools
  • required for safe operation of the controller hardware
  • incorrect values would cause excess heat, reduced efficiency, or potential hardware failure
  • this layer directly influences how smooth or “clean” the motor feels at low throttle

Thermal Modeling

ParameterExample Value / RangeWhat It Does
MOSFET Thermal ModelEnabled / Disabled or internal modelEstimates internal transistor temperature beyond sensor readings
Thermal Derating SlopeSlow / Medium / FastControls how quickly power is reduced as temperature rises
Thermal Foldback GainLow / Medium / HighAdjusts how aggressively the controller reduces output under heat
Thermal Recovery RateSlow (5–10s), Medium (2–5s), Fast (1–2s)Controls how quickly power returns after cooling

These parameters define the internal thermal model used by firmware.

  • these parameters estimate internal temperatures that are not directly measured by external sensors
  • they allow the controller to reduce power before actual hardware limits are exceeded
  • they work continuously in the background during operation

Behavior characteristics:

  • power can be reduced before the controller feels hot externally
  • repeated acceleration or sustained load will trigger thermal foldback faster than expected
  • aggressive foldback settings reduce power quickly to protect hardware
  • recovery is not immediate; power returns gradually even after temperatures drop
  • the system may feel inconsistent if heat builds up faster than it dissipates

Important:

  • not directly visible or adjustable in standard tools
  • works alongside High Temp Cut C and High Temp Resume
  • explains why thermal limiting can occur before reaching visible temperature thresholds
  • one of the main reasons sustained riding performance drops compared to short bursts
  • heavily influenced by cooling, airflow, and ambient temperature

Motor Identification and Commutation

ParameterExample Value / RangeWhat It Does
Hall Sequence ValidationEnabled / DisabledConfirms correct hall sensor transition order
Phase Alignment Offset±0–10° electricalApplies correction between electrical output and rotor position
Auto-Identification State MachineAuto / Manual triggerRuns internal motor identification routine
Phase Advance Angle (Dynamic)0–20° increasing with RPMAdvances timing to improve efficiency at higher speeds
Commutation Advance MapSpeed-based curveDefines how timing advance changes across RPM
ID ErrFault flag (0 = OK, 1 = Error)Indicates motor identification or rotor position failure

These parameters define internal motor identification, rotor tracking, and commutation behavior.

  • these parameters control how the controller determines rotor position and applies phase current
  • they ensure correct timing between electrical output and mechanical rotation
  • they operate continuously once the motor is running

Behavior characteristics:

  • correct identification results in smooth startup and consistent torque delivery
  • phase advance improves efficiency and reduces heating at higher speeds
  • incorrect alignment can cause rough operation, noise, or reduced power
  • ID Err will prevent normal operation if the controller cannot determine rotor position

Important:

  • ID Err is a diagnostic condition, not a tunable parameter
  • directly related to Motor Identity En and sensor configuration
  • incorrect hall wiring, phase order, or resolver setup commonly triggers identification failure
  • issues in this layer often appear as hard faults rather than tuning problems
  • proper identification is required before any other tuning changes will behave correctly

Protection and Fault Handling

ParameterExample Value / RangeWhat It Does
Stall Detection Threshold10–50 RPM or high current conditionDetects when the motor is not rotating despite torque demand
Stall Current Limit50–150% of nominal currentLimits current during a stall condition
Anti-Stall Recovery Timer500–2000 msTime before the controller attempts to recover from a stall
Slip Detection Threshold5–20% speed errorDetects mismatch between expected and actual motor speed
Slip Compensation Gain0–20%Adjusts output to correct for slip conditions
Overvoltage Regen SuppressionEnabled / DisabledReduces or disables regen when voltage approaches limits
Regen Disable on Fault FlagEnabled / DisabledTurns off regen during fault conditions
Fault Latch BehaviorLatched / Auto-clearDetermines whether faults persist until reset
Fault Auto-Recovery EnableEnabled / DisabledAllows controller to recover automatically after certain faults
Watchdog Timer100–1000 msResets controller if firmware becomes unresponsive

These parameters define internal protection behavior that limits damage and manages recovery after abnormal conditions.

  • these parameters protect the motor, controller, and battery from unsafe operating conditions
  • they monitor for stall, slip, voltage faults, and internal errors
  • they automatically intervene when conditions exceed safe limits

Behavior characteristics:

  • stall conditions trigger current limiting or shutdown to prevent damage
  • slip detection can reduce power when expected motion does not match actual response
  • regen may be reduced or disabled to prevent overvoltage during braking
  • faults can either clear automatically or require a full power cycle depending on configuration
  • watchdog behavior ensures the controller does not continue operating if firmware fails

Important:

  • not user configurable in standard tools
  • essential for hardware protection and system safety
  • many “random” shutdowns are controlled protective responses from this layer
  • aggressive riding or tuning can trigger these protections more frequently
  • understanding these behaviors helps distinguish real faults from normal protection events

Startup and Alignment

ParameterExample Value / RangeWhat It Does
Startup Torque Boost (Internal)5–30%Adds extra torque at initial throttle to help the motor start moving
Startup Alignment Current10–50AApplies current to hold the rotor in a known position before startup
Startup Alignment Time100–500 msDuration the controller holds the rotor during alignment
Zero Speed Lock DetectionEnabled / DisabledDetects when the motor is fully stopped
Neutral State Current Clamp0–10ALimits current output when the system is in a neutral or idle state

These parameters define low-speed and startup behavior before normal closed-loop motion is established.

  • these parameters control how the controller behaves at zero RPM and during initial movement
  • they ensure the controller knows the rotor position before applying full torque
  • they bridge the gap between a stationary motor and normal operation

Behavior characteristics:

  • startup boost improves initial launch and prevents hesitation from a stop
  • alignment current holds the rotor briefly to establish a known position
  • longer alignment time improves reliability but can feel slightly delayed
  • zero speed detection ensures stable transition from stopped to moving
  • neutral current clamp prevents unintended movement when no throttle is applied

Important:

  • not exposed in standard user tools
  • strongly affects how smooth or abrupt the bike feels at takeoff
  • improper behavior here can feel like hesitation, jerking, or delayed response at low speed
  • startup feel is often determined more by these parameters than throttle mapping alone
  • especially critical for systems that feel inconsistent only at very low speed or from a dead stop

Voltage and Power Management

ParameterExample Value / RangeWhat It Does
DC Bus Ripple FilterLow / Medium / HighFilters rapid voltage fluctuations from the battery
DC Bus Voltage Averaging Window10–100 msDetermines how quickly voltage changes affect controller decisions
Dynamic Current Limiting vs Voltage0–30% scalingReduces output as battery voltage drops under load
Power Limiting CurveLinear / stepped curveAdjusts available power across the battery voltage range
Precharge Detection Threshold~60–90% of pack voltageDetermines when it is safe to fully connect the controller
Precharge Timeout100–1000 msMaximum time allowed for precharge before triggering a fault
Contactor Delay Control50–500 msDelays full power engagement during startup

These fields control how the controller manages battery voltage, power delivery, and startup sequencing.

  • these parameters control how the controller reacts to voltage sag, ripple, and unstable input conditions
  • they also manage safe startup behavior when the controller first connects to the battery
  • they operate continuously during both startup and normal riding

Behavior characteristics:

  • voltage filtering smooths out rapid fluctuations from the battery under load
  • shorter averaging windows make the system more responsive but less stable
  • longer averaging windows make the system smoother but slower to react
  • dynamic current limiting reduces power when voltage drops to prevent damage
  • power limiting curves shape how performance changes as battery voltage decreases

Important:

  • not exposed in standard user tools
  • directly interacts with Controller Volt, Low Volt, Over Volt, and Bat Current Limit
  • aggressive current limiting can make the bike feel weak under load
  • insufficient filtering can cause unstable or inconsistent power delivery
  • startup reliability and smooth engagement are heavily influenced by precharge and delay timing

Signal Conditioning and Sensors

ParameterExample Value / RangeWhat It Does
Hall Signal Debounce Time1–10 msFilters noise from hall sensor signals
Hall Error Timeout50–200 msTime before a missing or invalid hall signal is treated as a fault
Encoder Signal Loss Timeout50–200 msDetects loss of encoder signal
Resolver Signal Quality ThresholdExample range: 70–95% signal quality, implementation-dependentDefines minimum acceptable resolver signal integrity
Sensorless Transition Threshold200–1000 RPMSpeed at which controller may switch between sensor and sensorless operation
Sensorless Fallback EnableEnabled / DisabledAllows operation if primary sensor signal is lost

These parameters define sensor validation, filtering, and fallback behavior.

  • these parameters control how the controller interprets and trusts position feedback signals
  • they filter noise, reject invalid signals, and detect when sensors fail
  • they determine whether the controller continues operating or shuts down when signal quality drops

Behavior characteristics:

  • debounce filtering prevents erratic behavior from noisy signals
  • timeouts define how quickly the controller reacts to missing or unstable sensor input
  • higher thresholds increase stability but may reject borderline signals
  • sensorless fallback can allow continued operation if a sensor fails
  • poor signal conditioning can cause jerky motion, misfires, or sudden cutouts

Important:

  • not exposed in standard user tools
  • critical for reliable operation in electrically noisy environments
  • incorrect thresholds can either hide real problems or trigger false faults
  • many intermittent issues are caused by signal quality, not hardware failure
  • understanding this layer helps diagnose problems that appear random or inconsistent

Input and Logic Handling

ParameterExample Value / RangeWhat It Does
Throttle Plausibility CheckEnabled / DisabledValidates that throttle input signals are within expected range
Brake-Throttle Override LogicEnabled / DisabledDetermines whether brake input overrides throttle
Direction Change Lockout Timer200–1000 msPrevents immediate reversal while the motor is still spinning
Direction Change Delay Timer100–500 msAdds delay before applying torque after direction change
Reverse Torque Limit20–50%Limits torque when operating in reverse
Reverse Speed Clamp20–50% of forward speedLimits maximum reverse speed
CAN Timeout Threshold100–500 msDetects loss of communication over CAN bus
Communication Loss Fallback ModeCoast / Disable / Limp ModeDefines controller behavior when communication is lost

These fields govern how the controller validates inputs and enforces safe operating conditions.

  • these parameters control how the controller interprets rider inputs and system signals
  • they ensure that invalid or conflicting inputs do not result in unsafe behavior
  • they manage how the controller reacts to communication loss or unexpected input states

Behavior characteristics:

  • throttle plausibility prevents unintended acceleration from faulty signals
  • brake override can cut throttle when braking is applied
  • direction timers prevent harsh or unsafe reversal under load
  • communication timeouts trigger fallback behavior when signals are lost
  • fallback modes determine whether the system coasts, reduces power, or shuts down

Important:

  • not visible in standard user tools
  • critical for safety and system reliability
  • can make a working controller appear unresponsive if inputs are invalid
  • many “no throttle” issues are caused by logic conditions, not hardware failure
  • understanding this layer is key to diagnosing situations where the controller ignores input

Parameter Behavior and Relationships

This section explains how the observed stock parameters interact in practice.

These parameters do not operate independently. Most values interact within control systems, and behavior should be evaluated based on combined effects rather than individual fields.

Voltage and Protection Limits

  • Controller Volt
  • Low Volt
  • Over Volt

These parameters define the operating voltage window of the controller.

  • Controller Volt defines nominal system voltage used for internal scaling and protection calculations
  • Low Volt controls cutoff behavior under battery sag
  • Over Volt defines maximum allowable input before shutdown

Current and Power Control

  • Current Percent
  • Bat Current Limit
  • Phase Curr Max AD
  • Motor Normal Curr
  • Motor Identity En

These parameters define how power is drawn from the battery and delivered to the motor.

  • battery current controls total system power and battery stress
  • phase current controls torque production
  • motor current defines sustained operating limits

Motor Normal Curr is the controller’s continuous motor current reference and relates to sustained output behavior and protection thresholds.

Motor Identity En is associated with motor identification and calibration behavior used by the controller to align internal control with the connected motor.

Current and Power Tuning Reference

ParameterStockConservativeAggressiveEffect
Bat Current Limit5550–7080–120+Total system power and battery load
Phase Curr Max AD380300–400450–600+Torque and acceleration strength
Current Percent5040–6060–100Scales overall output

Behavior examples:

  • Increasing Bat Current Limit (55 → 100)

    • increases total power output
    • increases battery sag and heat
    • directly impacts range and battery stress
  • Increasing Phase Curr Max AD

    • increases launch torque significantly
    • improves acceleration without proportional battery load
    • increases motor heating under load

Throttle Input Mapping

  • TPS Low
  • TPS High
  • TPS Type
  • TPS Dead Low
  • TPS Dead High
  • TPS Forw MAP
  • TPS Rev MAP
  • Accel Time
  • Accel Release Time

These parameters define how throttle input is interpreted and translated into torque demand.

  • TPS range defines usable throttle span
  • dead zones prevent unintended activation
  • mapping values shape response curve
  • acceleration timing values control how quickly requested power is applied and removed

Accel Time affects throttle ramp-in behavior.

Accel Release Time affects throttle ramp-out behavior.

Throttle Tuning Reference

ParameterStockConservativeAggressiveEffect
TPS Dead Low2020–305–15Initial throttle sensitivity
TPS Dead High8070–8085–95Full throttle engagement point
TPS Forw MAP3020–3030–50Throttle response curve
TPS Rev MAP2015–2525–40Reverse throttle behavior
Accel Time55–73–5Throttle ramp-in rate
Accel Release Time11–20–1Throttle ramp-out rate

Behavior examples:

  • Lowering TPS Dead Low

    • increases sensitivity at initial throttle
    • can make low-speed control more abrupt
  • Increasing TPS Forw MAP

    • delivers torque earlier in throttle travel
    • increases responsiveness
  • Lowering Accel Time

    • makes throttle response feel sharper
    • can increase abruptness during launch

Speed Limiting System

  • Max Output Fre
  • Max Speed
  • Max Forw Speed%
  • Max Rev Speed%
  • MidSpeed Forw Speed
  • MidSpeed Rev Speed
  • LowSpeed Forw Speed
  • LowSpeed Rev Speed
  • Three Speed
  • PWM Frequency
  • Motor Poles

These parameters define how speed is limited across operating modes.

  • percentage limits scale maximum speed
  • three-speed settings define mode behavior
  • Max Speed defines a configured RPM ceiling

Max Output Fre defines the maximum electrical frequency output to the motor and indirectly limits achievable motor speed based on pole count.

Actual motor RPM is determined by electrical frequency (Max Output Fre), motor pole count, configured limits such as Max Speed, and real load conditions.

PWM Frequency defines controller switching frequency and can affect smoothness, audible noise, and controller heat behavior.

Speed Limiting Tuning Reference

ParameterStockConservativeAggressiveEffect
Max Forw Speed%10060–90100Top speed scaling
MidSpeed Forw Speed6550–6565–80Mid mode speed limit
LowSpeed Forw Speed3525–3535–50Low mode speed limit
Max Speed1500012000–1500015000+Absolute RPM ceiling

Braking and Regenerative Behavior

  • BRK_SW Brk %
  • BRK_AD Brk %
  • RLS_TPS Brk Per%
  • NTL Brk Per%
  • Brake Type
  • Brake Dead Low
  • Brake Dead High
  • Brake Time
  • Brake Release Time
  • Brake SW Level
  • Change Dir Brk %
  • IVT BRK Max
  • IVT BRK Min
  • Anti Theft Curr#

These parameters define how braking input is converted into regenerative or braking force.

  • multiple inputs are blended internally
  • timing values control ramp behavior
  • dead zones define activation thresholds
  • switch level settings define how digital brake input is interpreted

Change Dir Brk % defines braking applied during direction changes.

IVT BRK Max and IVT BRK Min appear to define internal braking limits or thresholds and may be firmware-dependent in behavior.

Anti Theft Curr# defines current behavior associated with anti-theft operation.

Regenerative Braking Tuning Reference

ParameterStockConservativeAggressiveEffect
BRK_SW Brk %2515–2530–50Brake lever regen strength
BRK_AD Brk %2515–2530–50Analog brake input regen
RLS_TPS Brk Per%10–22–5Off-throttle regen
Brake Time55–73–5Regen ramp-in speed
Brake Release Time11–20–1Regen ramp-out speed

Behavior examples:

  • Increasing BRK_SW Brk % (25 → 50)

    • increases regenerative braking force
    • reduces reliance on mechanical brakes
    • increases motor heat under repeated braking
  • Increasing RLS_TPS Brk Per%

    • adds deceleration when releasing throttle
    • can reduce coasting behavior
  • Lowering Brake Time

    • makes braking response engage faster
    • can feel more abrupt at low speed

Compensation and Stability Control

  • Compensation Per%
  • Torque Speed KP
  • Torque Speed KI
  • Speed Err Limit

These parameters define how the controller compensates for load changes and manages speed-related response.

Compensation Per% appears to control output compensation behavior under changing load or voltage conditions.

Torque Speed KP and Torque Speed KI define a separate speed-related control loop used to manage response under changing torque demand.

Speed Err Limit defines the allowable speed error used by the controller before corrective behavior becomes more aggressive.

These values affect how stable or forceful the controller feels under load but are typically best left near proven settings unless behavior problems are being diagnosed.


Control Loops (PID)

  • IQ Kp
  • IQ Ki
  • IQ Kp (second field)
  • IK Ki

These values define the controller’s internal feedback systems.

  • inner loop regulates motor current (Iq / Id)
  • outer loop controls torque demand and speed response

This mapping between exposed gain fields and internal control loops is inferred based on standard FOC architecture and observed behavior.

These values are typically pre-tuned and should not be adjusted unless instability is observed.

Improper tuning can cause oscillation, instability, or delayed response.

Control Loop Tuning Reference

ParameterStockAdjustment RangeEffect
IQ Kp500300–800Response sharpness
IQ Ki105–20Stability
IQ Kp (second field)15001000–2000Torque/speed response
IK Ki3020–60System damping

Thermal Protection

  • High Temp Cut C
  • High Temp Resume
  • Motor Temp Sensor

These parameters define thermal protection behavior.

  • High Temp Cut C defines shutdown threshold
  • High Temp Resume defines recovery threshold
  • Motor Temp Sensor defines sensor type used for thermal monitoring

Behavior characteristics:

  • once cut temperature is reached, controller output is reduced or disabled
  • system will not resume full operation until temperature drops below resume threshold
  • repeated thermal cycling reduces sustained performance
  • thermal limits are often reached faster at sustained high speed than during short acceleration bursts

Important:

  • thermal limits are the true continuous power constraint
  • aggressive tuning will reach these limits faster
  • cooling and airflow directly affect performance sustainability

Sensor Configuration

  • Hall Galvan Rate
  • Line Hall Zero
  • Line Hall Amplitude
  • Line Hall High Err
  • Line Hall Low Err
  • Resolver Start Angle
  • Speed Sensor Type
  • Resolver Poles
  • Exchange Phase AB
  • 0° Hall
  • 60° Hall
  • 120° Hall
  • 180° Hall
  • 240° Hall
  • 300° Hall
  • Forw A Rise Hall
  • Forw A Fall Hall
  • Rev A Rise Hall
  • Rev A Fall Hall

These values define motor position sensing and commutation mapping.

These values align controller output with motor position and should not be modified without full system recalibration.


Mode and Switch Logic

  • Startup H-Pedal
  • Brake H-Pedal
  • NTL H-Pedal
  • Joystick
  • Three Gear Switch
  • Boost
  • Foot Switch
  • SW Level
  • 0,HIM;1,KIM
  • Cruise
  • Anti Slip
  • Change Dir

These values define how external inputs and controller mode flags interact with operating behavior.

These values are typically binary enable or disable states stored internally as mode flags or bitfields.


Behavior Overview

The controller operates using a dual-loop control structure:

  • inner loop regulates motor current (Iq / Id)
  • outer loop controls torque demand and speed response

The mapping between exposed gain fields and internal control loops is inferred based on standard FOC architecture and observed behavior.


Diagnostics

Firmware Limitations

The Kelly interface does not expose all internal parameters. These are not exposed through standard Kelly configuration tools.


Common Misconfigurations

Incorrect parameter changes can create issues that appear as hardware faults.

Common patterns:

  • Increasing battery current too aggressively

    • causes voltage sag, heat, and reduced battery lifespan
  • Increasing phase current without thermal awareness

    • creates strong launch but rapid motor heating
  • Excessive regenerative braking

    • increases motor heat
    • can create abrupt or unstable deceleration
  • Excessive field weakening

    • increases top speed but causes rapid motor heating and efficiency loss
  • Improper throttle dead zone settings

    • results in jerky or unpredictable throttle response
  • Mismatched speed limits across modes

    • creates inconsistent riding behavior
  • Over-adjusting PID values

    • can cause oscillation, instability, or sluggish response

Real-World Symptoms and Likely Causes

SymptomLikely CauseRelated Parameters
Weak accelerationLow phase currentPhase Curr Max AD
Strong launch but poor top speedSpeed ceiling or field weakening limitationMax Output Fre, Max Speed, Min Excitation / Flux Weakening
Early battery sagHigh battery currentBat Current Limit
Overheating at speedExcessive field weakeningMin Excitation / Flux Weakening
Jerky throttlePoor TPS mappingTPS Dead Low / TPS Forw MAP
Weak regenLow regen % or current limitBRK_SW Brk %, Max Regen Current
Abrupt brakingHigh regen or short brake timeBRK_SW Brk %, Brake Time
Inconsistent speed across modesMisaligned speed % settingsMidSpeed / LowSpeed values

Safe Tuning Workflow

Follow a controlled process when modifying controller parameters:

  1. Record all stock values before making changes
  2. Change only one parameter at a time
  3. Test under real riding conditions after each change
  4. Monitor battery sag, motor temperature, and controller response
  5. Avoid combining multiple aggressive settings simultaneously
  6. Revert immediately if abnormal behavior occurs

Safe tuning depends on:

  • understanding parameter relationships
  • respecting thermal limits
  • observing real-world behavior under load

Final Advice

This configuration should be treated as a stable and verified baseline.

Use it for:

  • Controller replacement validation
  • Diagnostic comparison against known-good behavior
  • Controlled and incremental tuning adjustments

The stock configuration table reflects directly observed controller values and should be considered authoritative for this system.

All additional sections that describe firmware-dependent or non-exposed parameters are provided to explain real controller behavior that is not visible through standard tools.

These extended parameters:

  • may exist in firmware without being user-accessible
  • may override or reshape behavior from exposed settings
  • often explain differences between expected and observed performance

Example values and ranges shown outside the main configuration table are:

  • representative of typical Kelly controller behavior
  • included to improve understanding of system operation
  • not confirmed stock values unless explicitly stated

When tuning:

  • prioritize thermal limits and sustained performance over peak output
  • validate changes under real load conditions, not just unloaded response
  • avoid stacking multiple aggressive changes simultaneously
  • revert immediately if behavior becomes unstable, inconsistent, or unpredictable

The most important principle is this:

  • visible parameters define intent
  • hidden parameters and firmware define actual behavior

Understanding both is required for accurate diagnostics and safe performance tuning.