Skip to content

Uncontrolled regen compensation

Uncontrolled regen compensation decreases the uncontrolled regen that can occur when you release the throttle above the base speed of the motor. At the end, the motor slows down without a sudden drag torque or a large battery charge current.

Firmware

Available in firmware 6.027 and later, as a beta function.

WARNING

This function is a beta function. Do a test of the function in your system before you use it in a product. The behaviour can change in a later firmware version. We are interested in your test results. Send them to your ASI sales representative.

Prerequisites

Prerequisites

When to use this

Use this function if the motor operates above the base speed in a torque mode. For example, use it when field weakening increases the motor speed, or when the vehicle goes down a slope. Uncontrolled regen occurs mostly in the torque modes.

If the motor never operates above the base speed, you do not need this function.

How it works

Above the base speed, the back-EMF of the motor is more than the battery voltage. The controller uses field weakening current (d-axis current) to keep the back-EMF less than the battery voltage. If the field weakening current stops suddenly, the bridge MOSFETs rectify the back-EMF. Current then flows to the battery, and the motor makes a drag torque. This is uncontrolled regen.

When you enable this function:

  • The controller limits the field weakening current to Maximum Field Weakening current. When you release the throttle, the field weakening current does not stop immediately. It decreases as the vehicle slows down.
  • The controller monitors the battery current. If regen current flows when no braking is commanded, the controller adds q-axis current (motoring torque) in small steps until the battery current is zero. If the battery current goes past zero, the controller removes q-axis current in small steps. Max Field Weakening Compensation Current sets the maximum q-axis current that the controller can add.

The controller adjusts the q-axis current after it detects the regen current, so a short regen current can occur first.

This function decreases uncontrolled regen. It does not always prevent it. The function operates only while the controller operates the motor. If the bridge stops above the base speed (for example, Key-in OFF, a fault, or an emergency stop), uncontrolled regen can be larger. For the correct stop sequence, refer to Main contactor and emergency stop.

Note

With this function, the top speed can be lower for the same Maximum Field Weakening current. To get the same top speed, you can increase Maximum Field Weakening current.

This function keeps the bridge on without a command from the user, to control the back-EMF. Thus, this function does not obey the EN regulations for eBikes.

Configure uncontrolled regen compensation

  1. Enable the Beta: Uncontrolled Regen Compensation bit (Bit 5) of Features5.

    DANGER

    Set Max Field Weakening Compensation Current carefully. If the value is too high, the motor continues to apply torque after you release the throttle. The vehicle then does not slow down as you expect. This can cause injury or kill you.

  2. Set Max Field Weakening Compensation Current to a low value. The value has approximately the same effect as the same percentage of throttle. For example, 5% is approximately the same as a 5% throttle command.

  3. Save the parameters to flash.
  4. Do the Verify test.
  5. If uncontrolled regen still occurs, increase Max Field Weakening Compensation Current in small steps. Do the Verify test after each step.

Verify

Make sure that the vehicle cannot move and that the wheels do not touch the ground, or use a dynamometer.

  1. Accelerate the motor to more than Rated motor speed in the torque mode that you use.
  2. Release the throttle.
  3. Monitor battery current and the motor speed.

Make sure that:

  • battery current does not become a large negative value (charge current) when you release the throttle.
  • The motor slows down smoothly, without a sudden drag torque.
  • The controller does not show an overvoltage fault. Refer to Faults and warnings.
  • The top speed is correct for your application.

Troubleshooting

The motor drags or the battery current becomes negative when you release the throttle

  1. Make sure that the Beta: Uncontrolled Regen Compensation bit (Bit 5) of Features5 is enabled.
  2. Make sure that Speed regulator mode is 1 or 2.
  3. Increase Max Field Weakening Compensation Current in small steps. Do the Verify test after each step.

The motor continues to push after you release the throttle

Decrease Max Field Weakening Compensation Current.

The top speed is lower than before

Increase Maximum Field Weakening current in small steps. Refer to Field weakening.

Parameters

Parameter Address Units Description
Speed regulator mode 11 0: Speed. 1: Torque. 2: Torque mode with speed limiting.
Rated motor speed 72 RPM No-load rated motor speed (base speed).
Maximum Field Weakening current 129 % Limit for field weakening current, as a % of Rated motor current.
battery current 266 A Read only. Estimated battery current, or the BMS value. Negative values are charge current.
Features5 2006 Bit field. Bit 5: Beta: Uncontrolled Regen Compensation.
Max Field Weakening Compensation Current 2308 % Maximum q-axis current that the controller adds to bring the battery current to zero. 5% is approximately the same as a 5% throttle command.

Parameters used on this page