Regenerative braking
Introduction
When an electric motor is used in reverse, it operates as a generator. ASI controllers can change the kinetic energy of the vehicle into electrical energy while the vehicle slows down. This energy recharges the batteries and decreases the wear of mechanical components (brake pads).
Regen braking operates only when current can flow back into the battery. At low speed, the motor does not make sufficient back-EMF for regen. To continue braking at low speed, use Plug braking together with regen braking. For off-throttle regen, refer to Engine braking.
WARNING
Make sure that the battery and its battery management system (BMS) can accept the regen current. Set the high battery voltage foldback as given in Regen at full battery. If the battery disconnects during regen, the battery voltage can increase to much more than its rated value. On 48 V systems, voltages of more than 108 V occurred.
Wiring
A regen brake source can be a digital signal (on/off) or an analog signal (0-5 V). Connect it to Brake1/Analog input 2 or Brake2/Analog input 3.
The example that follows shows an analog signal connected to the Brake1/Analog input 2 pin.

Configuration
These steps apply to all regen brake sources.
-
Set
Regeneration battery current limit. The value is the peak charge (regen) current of your battery, as a percentage ofRated motor power (Race mode PAS power)divided byRated system voltage.Example
Rated motor power (Race mode PAS power)is 2880 W, the peak regen current is 45 A, and the nominal battery voltage (Rated system voltage) is 48 V. Thus,Regeneration battery current limit= 45 A / (2880 W / 48 V) = 0.75, or 75%. -
Set
Featuresbit 4 Analogue braking enable to 1. -
Set
Maximum braking torqueto the necessary percentage ofRated motor current. Start with a low value, for example 10%. This lets you learn the braking effect. It also prevents too much braking torque, which can cause a skid and a possible crash. Refer to Regen brake tuning. -
Set
Regen brake source. Then do the steps for that source:Value Source 0 Brake 2 analog input 1 Brake 1 analog input 2 Remote: Remote Analog brake voltage4 Bidirectional throttle (firmware 6.024 and higher) 5 Throttle analog input (firmware 6.025 and higher) 6 ABMS analog input (firmware 6.025 and higher) Regen brake sourcevaluesNote
The input names Brake 1, Brake 2, Throttle, and ABMS are names only. You can use each of these analog inputs as the regen brake input. Value 3 is obsolete.
-
Set the pull-up for the
Regen brake sourcethat you selected:- Digital active-low input (for example, a switch to ground): set
Features2 bit 6Brake 1 Pullup enable orFeatures2 bit 7Brake 2 Pullup enable to 1. - Analog output signal: keep the pull-ups disabled.
- Digital active-low input (for example, a switch to ground): set
-
Set
Analogue brake off voltageto the voltage of the brake input at rest. SetAnalogue brake full voltageto the voltage of the brake input at full range. -
Set the
Analog Brake Deadband Range.Note
Firmware 6.020 and earlier use
Throttle deadband thresholdfor the brake1 and brake2 inputs. -
Make sure that
brake setpointfollows the brake input. For example, with the voltages from step 2:- Brakes off:
brake setpoint= 0 atAnalogue brake off voltage-Analog Brake Deadband Range. - Brakes on:
brake setpoint= 1.0 atAnalogue brake full voltage+Analog Brake Deadband Range.
As an alternative, monitor
digital inputs bit 5(brake1 input) anddigital inputs bit 6(brake2 input). Make sure that they come on at the voltages that you set. - Brakes off:
One side of the throttle range is for drive, and the other side is for braking. Set Regen brake source to 4. Configure the throttle as given in Bidirectional throttle.
Use this source when a vehicle control unit or a display commands the regen brake over CAN or Modbus, and the controller uses a local throttle or pedal sensor.
- Set
Analogue brake off voltageandAnalogue brake full voltage, as for an analog input. - Write the brake command to
Remote Analog brake voltage(address 497). The controller uses this value as the voltage on a real brake input. Thus,brake setpointfollowsAnalogue brake off voltageandAnalogue brake full voltagein the same way.
Example
With Analogue brake off voltage at 1 V and Analogue brake full voltage at 4 V, a value of 1 V in Remote Analog brake voltage gives no regen. A value of 4 V gives full regen.
To change the braking limit while the vehicle operates, enable Remote Digital Commands (address 496) bit 12 Enable remote braking torque. Then write the limit to Remote Maximum Braking Torque (address 1680), in % of Rated motor current.
When Control command source is 0 / Remote, the network commands the motor directly. Refer to Remote motor control. Regen operates in all Speed regulator mode settings.
- Set
Remote maximum braking currentto more than 0%. This parameter limits the motor phase current during braking. At 0%, there is no braking. Regeneration battery current limitlimits the regen current into the battery. Ifremote maximum regen battery current limitis not zero and is lower, the controller uses it.- Command braking:
- Speed mode: command a lower
Remote speed command, or 0, to decrease the motor speed. - Torque modes: send
Remote torque commandwith the sign opposite to the direction of rotation.
- Speed mode: command a lower
WARNING
In torque modes, stop the braking torque command when the motor speed is 0. If you do not, the motor starts to turn in the opposite direction.
Regen braking implementation
In ASI controllers, battery regen current (motor current that goes back into the battery) can always occur, also when the regen braking options are not enabled.
The controller always monitors the regen current. For example, if a direct-drive motor moves slightly backward while it is enabled, regen current occurs. To prevent overcharge of the battery, the controller limits this current to Regeneration battery current limit.
Note
If Regeneration battery current limit is 0%, a small rollback of a direct-drive vehicle prevents forward motion until the vehicle stops fully. To prevent this behaviour, set this parameter to 20% or more.
Analogue brake off voltage and Analogue brake full voltage set the regen brake setpoint, as shown in the figure that follows. When brake setpoint is 0.0, there is no regen braking. When it is 1.0, 100% of the available regen braking applies.
- Digital inputs: usually, the input source has a pull-up, and the circuit pulls the input to ground. Thus, the off voltage is 4 V (
brake setpoint= 0.0), and the full brake voltage is 1 V (brake setpoint= 1.0). - Analog regen (for example, with a throttle): usually, the source does not have a pull-up. As with a throttle, the off signal voltage is approximately 0.9 V to 1.2 V (
brake setpoint= 0.0). The full braking signal voltage is approximately 3.9 V to 4.2 V (brake setpoint= 1.0).

Then the brake setpoint maps to the Maximum braking torque output, as shown in the figure that follows.

Example
For a brushless DC motor, torque is approximately proportional to the motor phase current. Thus, we set Maximum braking torque as a percentage of Rated motor current. For example, Rated motor current = 50 A and Maximum braking torque = 30%. When brake setpoint is 1.0 (per unit), the braking “torque” is 15 A.
WARNING
Do not use regen braking as the only brake. At low speed, regen braking is not effective. Use regen braking only together with a mechanical brake that operates correctly.
Brake input tuning
The adjustment of the regen braking feel is an iterative procedure. It can be necessary to do the parameter and mechanical adjustments a number of times before the braking behaviour of the vehicle is satisfactory.
You can adjust Maximum braking torque to change the total torque for braking, as a percentage of Rated motor current.
You can adjust Positive braking torque ramp to change how quickly the braking responds to input changes. A higher value increases the time from brake setpoint 0 pu to brake setpoint 1 pu.
You can adjust Negative braking torque ramp to change how quickly the commanded braking torque goes from brake setpoint 1 pu to brake setpoint 0 pu.
Note
In firmware 6.027 and higher, when you release the brake, the braking torque follows the Negative braking torque ramp down to 0, then the positive motoring torque ramp. In earlier firmware, the braking torque drops to 0 immediately.
You can use Regen brake speed to set the lower speed limit for regen braking.
In firmware 6.027 and later, you can set a different analog braking torque for each assist level. Refer to Braking for each assist level.
Note
At low speeds, regen braking is not effective, and the braking feel can change.
Regen at full battery
A full battery can accept only a small charge current. Regen current also increases the battery voltage. The increase is approximately the regen current multiplied by the internal resistance of the battery. If the voltage increases too much, the controller trips an over voltage fault, or the BMS disconnects the battery. A BMS disconnection can cause a voltage spike.
Use the high battery voltage foldback to decrease the regen current before this occurs. Refer to Battery foldbacks, option 6.
Prerequisites
From the battery datasheet, get:
- The fully charged voltage.
- The voltage at which the BMS stops charging or disconnects the battery.
The default foldback values are not for a specific battery. Set them for your battery:
- Set
High battery foldback starting voltage(address 194) to the fully charged voltage of the battery. Below this voltage, regen is not limited. - Set
High battery foldback end voltage(address 195) below the BMS charge cut-off voltage and belowSlow over voltage threshold, with a margin. At this voltage, regen current is 0 A. - Make sure that
Slow over voltage thresholdandFast over voltage thresholdare aboveHigh battery foldback end voltage. Refer to Voltage protection.
Example
A 48 V battery (Rated system voltage = 48 V) is fully charged at 54.6 V and its BMS stops charging at 55.9 V. Slow over voltage threshold is 120% (57.6 V).
| Setting | Voltage | % of 48 V |
|---|---|---|
High battery foldback starting voltage |
54.6 V | 113.75% |
High battery foldback end voltage |
55.4 V | 115.4% |
| BMS charge cut-off | 55.9 V | 116.5% |
Slow over voltage threshold |
57.6 V | 120% |
Example high battery voltage foldback settings
Regen current decreases linearly from full at 54.6 V to 0 A at 55.4 V. This is 0.5 V below the BMS cut-off.
If your battery reports its state of charge, you can also use the high battery state of charge foldback (option 7 on the Battery foldbacks page).
The battery or power supply must accept current in the two directions. On a bench, use a bidirectional power supply or a battery, not a standard power supply.
Fault and warning settings
- Analog brake voltage out of range (
Faults2bit 15): you cannot disable this fault. First, setAnalogue brake off voltageandAnalogue brake full voltagecorrectly (step 2 of the analog input steps in Configuration). If the fault still triggers during usual operation, increaseAnalog brake fault range(address 1953).