Skip to content

Acceleration and braking ramps

Introduction

The primary limits on acceleration are the available torque-producing current and the power limits. After these, the acceleration ramp limits on this page let you tune the acceleration.

Secondary items also have an effect on acceleration: the current regulation control loop and, in speed-limiting modes only, the speed regulation control loop.

If the acceleration is not sufficient after tuning, the application can need a motor with a better torque constant, Kt (Nm/A), or more current than the controller can supply.

Note

  • The torque mode ramps apply when Speed regulator mode is 1 (Torque) or 2 (Torque mode with speed limiting).
  • The speed mode ramps apply when Speed regulator mode is 0 (Speed).

Torque mode ramp rates

Acceleration ramp rates

When the command for current increases (for example, the rider opens the throttle), the controller increases the motor current with Positive motoring torque ramp. When the command decreases (for example, the rider releases the throttle), the controller decreases the motor current with Negative motoring torque ramp.

The pedal sensor has its own ramps, which operate in the same way: Pedalec positive motoring torque ramp and Pedalec negative motoring torque ramp.

WARNING

Adjust these ramps carefully. A ramp that is too short can make the acceleration too sudden, and damage to mechanical parts can occur. A ramp that is too long can make the acceleration too slow (positive ramp), or make the vehicle continue to accelerate for too long (negative ramp).

Each ramp is the time, in milliseconds (ms), from 0 current to Rated motor current (positive ramp), or from Rated motor current to 0 current (negative ramp). The current does not change faster than this. The ramp is linear. To remove a ramp, set its value to 1.

Speed limit ramp time

In Speed regulator mode 2 (Torque mode with speed limiting), Speed limit ramp time limits the acceleration relative to the speed limit, because it limits the output current. For example, this can make the engagement smoother and decrease the clutch wear in geared hub motors. It can also remove the slack in a chain drive.

In some applications, the controller shows overcurrent faults when it accelerates with slack in the drivetrain. Speed limit ramp time can decrease these overcurrents.

The ramp is linear. It starts only from 0 RPM. To disable it, set it to 0.

Braking ramp rates

During regen braking, the controller increases the braking current with Positive braking torque ramp and decreases it with Negative braking torque ramp.

WARNING

If Positive braking torque ramp is too short, the regen braking can increase too quickly, and the wheel can lock. We recommend 200 ms or more.

Each ramp is the time, in milliseconds (ms), from 0 braking current to the peak braking current (positive ramp), or from the peak to 0 (negative ramp). The ramp is linear. To remove a ramp, set its value to 1.

Speed mode ramp rates

Acceleration and regen (braking) ramp rates

Speed mode positive acceleration ramp controls the acceleration. Speed mode Regen ramp controls the deceleration. These parameters set the ramp rate of the target speed from 0 to the speed limit. The scale of these parameters changed in firmware 6.020.

The value is the rate of change of the target speed, in Rated motor speed per second. A higher value gives a faster ramp. For example, 1 is 1 × Rated motor speed in 1 second, 0.5 is 0.5 × in 1 second, and 2 is 2 × in 1 second. In firmware 6.024 and later, the range is 0 to 20.

Parameter Start value
Speed mode Regen ramp 0.33
Speed mode positive acceleration ramp 1, 2 or 4

Start values, firmware 6.020 and later

A higher value gives a slower ramp. For example, 16 is 1 × Rated motor speed in 1 second, 32 is 0.5 × in 1 second, and 8 is 2 × in 1 second.

Parameter Start value
Speed mode Regen ramp 48
Speed mode positive acceleration ramp 4, 8 or 16

Start values, firmware 6.019 and earlier

For Speed mode Regen ramp to operate:

  • Regeneration battery current limit must be more than 0%.
  • If Control command source is not 0 (Remote), you must also enable Features bit 13 Engine braking enable. Refer to Engine braking.