intermediate
hardware
speed
torque

Speed Regulator Modes

Configuration guide for ASI BAC controller speed regulator modes including speed mode, torque mode, and torque with speed limiting

Levy Fleets Team12 de enero de 202510 min read

Speed Regulator Modes

The Speed regulator mode parameter sets the primary control mode for motor operation. ASI BAC controllers support three regulation modes that determine how the motor responds to input commands.

Mode Overview

ModeValueControl TypeSpeed LimitingBest For
Speed Mode0Speed-basedYesApplications requiring consistent speed
Torque Mode1Current-basedNoMaximum performance
Torque with Speed Limiting2Current-basedYesE-bikes (recommended)

Speed Mode (Mode 0)

In Speed mode, the controller targets the commanded speed and manages torque accordingly.

Characteristics

  • Controller maintains target speed under varying conditions
  • Output torque adjusts automatically to maintain speed
  • Speed is actively limited to the configured maximum
  • Suitable for applications requiring speed consistency

Not Recommended for E-Bikes

Speed mode is not recommended for e-bike applications. Use Torque mode with speed limiting (Mode 2) instead.

Configuration Requirements

Switching Frequency

If Control command source is set to any source other than 0 (Serial stream), you must change switching frequency to 10000 Hz for Speed mode to function. The default 13000 Hz is incompatible.

1

Get Access Level

Enter Parameter access code 15350 to get user access level 1.

2

Change Switching Frequency

Set Switching frequency to 10000 Hz.

Bluetooth Impact

You will lose Bluetooth connectivity at 10000 Hz. Use TTL or CAN for communication.

3

Save and Reboot

Save to flash and reboot the controller.

4

Verify Frequency

Confirm Switching frequency is now 10000 Hz.

5

Set Speed Mode

Change Speed regulator mode to 0 (Speed).

6

Configure Speed Limits

Set appropriate speed limits (see Speed Limits section below).

7

Save Configuration

Save to flash.

If Control command source is set to 0 (Serial stream), simply change Speed regulator mode to 0 without switching frequency changes.

Torque Mode (Mode 1)

In Torque mode, the controller targets the commanded current output using the current control loop.

Characteristics

  • Direct current/torque control
  • Motor spins as fast as possible given available torque and system load
  • No speed limiting - motor speed limited only by back-EMF and load
  • Maximum performance and responsiveness

Danger - No Speed Limit

Torque mode does not limit speed. Depending on ramp rate and tuning parameters, this could damage your setup. Exercise caution when testing.

Configuration

Simply change Speed regulator mode to 1 (Torque). This is the default configuration value.

Torque Mode with Speed Limiting (Mode 2)

This mode combines torque-based control with active speed limiting - the recommended mode for most e-bike applications.

Characteristics

  • Targets commanded torque (same as Torque mode)
  • Active speed limiting prevents exceeding configured maximums
  • Best balance of performance and safety for e-bikes
  • Optional variable speed limit based on throttle position

Configuration

1

Set Mode

Change Speed regulator mode to 2 (Torque mode with speed limiting).

2

Configure Speed Limits

Set appropriate speed limits for your application (see below).

3

Optional: Variable Speed Limit

Enable Features2 bit 11 (Throttle mapping on speed for torque mode) to enable variable speed limit based on throttle position.

Speed Limit Configuration

Speed limits are configured based on the active mode and command source.

Speed Limit Parameters

ParameterAddressDescriptionUnits
Vehicle maximum speed (Street mode PAS max speed)123PAS speed limit in Street modekm/h
Vehicle maximum speed (Race mode PAS max speed)124PAS speed limit in Race modekm/h
Vehicle maximum speed (Street mode Throttle max speed)229Throttle speed limit in Street modekm/h
Vehicle maximum speed (Race mode Throttle max speed)236Throttle speed limit in Race modekm/h
Vehicle jog speed230Walk mode and reverse speed limitkm/h
Vehicle jog speed2252Boost mode limit, anti-theft inhibit speedkm/h

Speed Limit Behavior

Input SourceApplicable Limits
ThrottleThrottle max speed parameters
Pedal/PASPAS max speed parameters
Walk modeVehicle jog speed
ReverseVehicle jog speed

PAS vs Throttle Limits

"PAS" limits apply to pedal assist and all other power limits except throttle. Consider it the default power source limit.

Ramp Rate Configuration

Each mode uses different ramp rate parameters to control acceleration and deceleration behavior.

Speed Mode Ramp Rates

For Speed regulator mode 0:

ParameterFunctionRecommended
Speed mode positive accelerationTarget acceleration rate4, 8, or 16
Speed mode Regen rampTarget deceleration rate48

Value interpretation:

  • 16 = 1× rated RPM in 1 second
  • 32 = 0.5× rated RPM in 1 second
  • 8 = 2× rated RPM in 1 second

Ramp Relationship

Speed mode positive acceleration should be less than Speed mode Regen ramp for stable operation.

Torque Mode Ramp Rates

For Speed regulator modes 1 and 2:

ParameterFunction
Positive motoring torque rampCurrent ramp-up when commanding (throttle on)
Negative motoring torque rampCurrent ramp-down when reducing (throttle off)
Positive braking torque rampRegen current ramp-up
Negative braking torque rampRegen current ramp-down

See System Tuning for detailed ramp rate configuration.

Mode Selection Guidelines

Use Speed Mode (0) When:

  • Application requires maintaining exact speed under varying loads
  • Industrial applications with consistent speed requirements
  • Not recommended for personal electric vehicles

Use Torque Mode (1) When:

  • Maximum performance is required
  • Speed limiting is handled externally
  • Testing or specialized applications
  • Operator understands speed is unlimited

Use Torque with Speed Limiting (2) When:

  • Building an e-bike or personal electric vehicle
  • Need both responsive torque control and safety limits
  • Regulatory compliance requires speed limiting
  • Want the best balance of performance and safety

Troubleshooting

Motor Doesn't Respond in Speed Mode

IssueSolution
Wrong switching frequencySet to 10000 Hz for non-serial control sources
Control source conflictVerify Control command source setting
Speed limits too lowCheck and increase speed limit parameters

Speed Limiting Not Working in Mode 2

IssueSolution
Wrong parameters setVerify using correct PAS/Throttle limits for input
Assist gain too highCheck assist level configuration
Speed sensor issueVerify wheel speed sensor configuration

Excessive Acceleration/Deceleration

IssueSolution
Ramp rates too aggressiveIncrease ramp time values
PI gains too highReduce Speed regulator Kp/Ki
Wrong mode for applicationConsider switching to Mode 2

Key Parameters Reference

AddressParameterFunction
119Speed regulator mode0=Speed, 1=Torque, 2=Torque+Limit
117Speed regulator KpProportional gain for speed control
118Speed regulator KiIntegral gain for speed control
123Vehicle maximum speed (Street mode PAS)Street mode PAS limit (km/h)
124Vehicle maximum speed (Race mode PAS)Race mode PAS limit (km/h)
229Vehicle maximum speed (Street mode Throttle)Street mode throttle limit (km/h)
236Vehicle maximum speed (Race mode Throttle)Race mode throttle limit (km/h)
230Vehicle jog speedWalk/reverse limit (km/h)
125Speed mode positive accelerationSpeed mode accel rate
126Speed mode Regen rampSpeed mode decel rate

Next Steps