Regenerative braking with a VESC when the battery is full: the problem and the correct settings

Regenerative braking returns energy to the battery. When the battery is full, this energy has nowhere to go: the voltage rises, the controller reduces the electric braking force, and in the worst case, it triggers an overvoltage fault, or the Battery Management System (BMS) cuts off the battery. A possible consequence is that the electric brake disappears at the beginning of a descent, immediately after leaving the charger. This is a common issue with VESC-based systems, and it can be adjusted.

The essentials

  • A fully charged battery accepts very little charging current because the regenerative braking raises its voltage.
  • Maximum Battery Current Regen limits the current flowing back to the battery.
  • `Battery Voltage Regen Cutoff Start and End reduce and then cut off regenerative braking when the voltage rises; by default, they are set so high that they do not activate.`
  • Above the Maximum Input Voltage, the controller will enter a fault state.
  • Mechanical brakes remain the primary brakes, especially when the battery is fully charged.

Why is a fully charged battery a problem?

In electric braking, the motor functions as a generator: it converts the kinetic energy of the movement into current, which the controller then sends back to the battery. A partially charged battery can easily absorb this current. A fully charged battery is already at its maximum charging voltage: the charging current pushes it beyond this limit, especially since the current is strong.

Several things can then happen:

  • The controller itself reduces braking power to protect the battery, provided it has been configured with the correct thresholds
  • The battery's BMS (Battery Management System) detects an overcharge and cuts off the charging process, or the entire battery, depending on its design. In this situation, the braking current has no outlet, and the voltage rises sharply
  • The voltage exceeds the controller's limit, causing it to trigger an overvoltage fault and shut down its outputs.

In both of the latter cases, the electric brake suddenly fails. That's why you should never rely on it alone. For the general principle, please refer to our guide on regenerative braking.

The settings related to the VESC Tool are:

AdjustmentWhere?Role
Battery Current Max RegenMotor Settings, General, CurrentMaximum current supplied to the battery (negative value)
Motor Current Max (Brake)Motor Settings, General, CurrentMaximum braking force of the electric brake on the motor side
Battery Voltage Regeneration Cutoff StartMotor Settings, General, VoltageVoltage at which regenerative braking is reduced
Battery Voltage Regeneration Cutoff LimitMotor Settings, General, VoltageVoltage at which regenerative braking is disabled
Maximum Braking PowerMotor Settings, General, WattageMaximum braking power (rarely used)
Maximum Input VoltageMotor Settings, General, AdvancedBeyond that point, the controller malfunctions

Battery Current Max Regen

This is the first level of protection: the current flowing back to the battery never exceeds this value. It must remain below the limits accepted by the battery and its BMS (Battery Management System) during charging, which is generally much lower than what they accept during discharge. In a machine with two controllers, it is the sum of the currents recovered from both controllers that flows into the battery. Our guide on VESC current limits details these settings.

The regenerative braking voltage thresholds

The VESC Tool help explains: the controller can send a stronger current to the battery than its charger, and these two thresholds prevent overcharging during long descents or hard braking. According to the public firmware code, below the `Battery Voltage Regen Cutoff Start` setting, regeneration is complete; between `Start` and `End`, the allowed regeneration current gradually decreases; beyond `End`, there is no more regeneration.

Key point: In the VESC Tool parameter file, these two thresholds have very high default values, well above the voltage of any scooter battery. Until you adjust them, they are inactive. You should set them based on the battery's full charge voltage: the lower limit slightly below that voltage, and the upper limit at or just above the full charge voltage, always within the limits tolerated by the BMS (Battery Management System) and the controller.

Maximum Input Voltage

This is not a comfort setting, but rather a protection for the controller: if the input voltage exceeds this value, the controller raises the FAULT_CODE_OVER_VOLTAGE error and cuts off its outputs. It should not exceed what the hardware can handle. If this error appears while going downhill with a full battery, it means that the regenerative braking is not limited enough beforehand. See our guide on VESC errors.

What the rider experiences

When properly configured, the machine behaves as follows: with a full battery, the electric brake is weaker at the beginning of the ride, but then regains its strength as the battery discharges slightly. This is not a malfunction; it's the safety system working. The rider needs to be aware of this and should use the mechanical brakes more during the initial minutes of the ride.

If improperly configured, the machine brakes normally with a full battery, until the BMS or controller cuts power. The braking then disappears abruptly, sometimes accompanied by a loss of motor power. This is the scenario we want to avoid.

Good habits

  • Do not immediately start a long downhill ride with a battery that has just been removed from the charger.
  • For applications where you frequently need to discharge the battery fully, avoid charging it to 100% every time if your charger allows you to stop the charging process earlier.
  • Adjust the regenerative braking voltage thresholds, and check the real-time data to verify the maximum voltage reached during braking.
  • Maintaining mechanical brakes that can stop the machine on their own: see our section electric scooter braking.

Workshop tip

Perform this test once, safely: with a fully charged battery, on a clear downhill slope, gently apply the electric brakes while monitoring the maximum voltage recorded. You will then know exactly where you stand before the situation arises in traffic. If your battery limits the charging current very low, a more powerful battery can also help: see our scooter batteries.

Frequently Asked Questions

Why is my electric brake weaker when the battery is fully charged?

Because a fully charged battery accepts very little charging current. The current recovery limit and voltage thresholds then reduce the effectiveness of the electric braking. This is intentional.

My electric scooter cuts out when braking, shortly after being charged. Why is this happening?

The voltage likely exceeded the controller's limit (overvoltage fault), or the Battery Management System (BMS) cut off the power. Adjust the "Battery Current Max Regen" and "Battery Voltage Regen Cutoff" settings.

Are the Regen Cutoff thresholds active by default?

No: Their default values are so high that they don't function with a scooter battery. You need to adjust them according to the full charge voltage of your battery.

Can I completely disable regenerative braking?

You can significantly reduce the regenerative current. The electric braking then becomes very weak, or even zero, depending on the settings: your mechanical brakes should be sufficient on their own.

Does this problem exist on the original controllers?

All controllers that recover energy face this issue. They each manage it in their own way, often by reducing the electric braking power when the battery is full.