VESC: Adjust motor and battery current limits without damaging anything
After motor detection, setting the current limits is the most crucial step. These limits determine the power output of the motor, the demands placed on the battery, and the safety margin of the controller. An overly conservative setting will restrict the motor's performance; an overly aggressive setting can trigger the Battery Management System (BMS), cause the motor to overheat, or damage the controller. This guide explains each limit, using the names they are known by in VESC Tool.
The essentials
- The motor current determines the torque; the battery current determines how much power is drawn from the battery.
- The braking limits protect the battery when the motor is regenerating power.
- The absolute current limit is a safety feature: if the current exceeds this limit, the controller will shut down and display an error.
- Increase the power gradually, while monitoring the motor temperatures and the battery voltage.
Where can I find these settings?
In VESC Tool, the limits are found in the motor configuration, under the General section, on the Current tab for current values, and on the adjacent tabs for voltage, temperature, and power. To connect to the controller, see our guide for installing VESC Tool. Our VESC guide provides an overview of the entire tool.
Motor current and battery current
This is the distinction that raises the most questions.
- `Motor Current Max` is the maximum current flowing through the motor windings. It determines the torque, which affects the force during startup and acceleration.
- `Maximum Battery Current` is the maximum current drawn from the battery. It determines the power drawn from the battery.
The two are not equal. At low speeds, the controller converts a low voltage applied to the motor into a high motor current, drawing a much lower battery current. This is why the battery current is always less than or equal to the motor current, as stated in the VESC Tool documentation. A high motor current with a moderate battery current provides strong acceleration without putting excessive strain on the battery.
The battery current must never exceed what the battery and its BMS (Battery Management System) can handle; otherwise, the BMS will cut power during acceleration. See our guide on batteries that cut out during acceleration. On a scooter with two controllers, the battery powers both: it's the sum of the two battery currents that matters.
Braking limitations
- Motor Current Max Brake sets the braking current in the motor, which determines the strength of the electric brake. It is entered as a negative value.
- Maximum Regen Current (Battery) sets the current that is sent back to the battery during braking. This value is also expressed as a negative number.
The charging limit is crucial: a battery generally accepts significantly less current when charging than when discharging, and a fully charged battery accepts almost none. See our guide on regenerative braking.
Absolute current
Absolute Maximum Current is a safety measure. If the current exceeds this value, even for a moment, the controller cuts off all its outputs and records the ABS_OVER_CURRENT fault. The control loops normally keep the current below the limits; the absolute current value serves to stop a runaway situation. Therefore, it must remain above the maximum motor current, with a safety margin, while still staying within the controller's capabilities. See our guide on VESC faults and error codes.
Protections that limit current
- `Battery Voltage Cutoff Start and Battery Voltage Cutoff End: When the battery voltage drops below the first value, the controller gradually reduces the current, until it reaches zero at the second value. These settings protect the battery cells at the end of the discharge cycle.`
- MOSFET Temperature Cutoff Start / End and Motor Temperature Cutoff Start / End: The same principle applies to the controller and motor temperatures. The motor limits only function if a temperature sensor is connected and recognized.
- Maximum Wattage: A power limit, useful for capping the power output of a machine regardless of the voltage.
These gradual reductions prevent a sudden cut-off: the motor loses power instead of abruptly stopping.
The method
- Start with the values you already know: the specifications of the battery (continuous and peak discharge current), the motor specifications, and the controller specifications.
- Adjust the battery current to be below the BMS (Battery Management System) limit, and set the charging current to be within the battery's charging specifications.
- Start by setting the low motor current, then gradually increase it in small increments.
- After each stage, ride the vehicle and then check the real-time data in the VESC Tool to record the temperatures, the minimum battery voltage, and the currents reached.
- Stop riding immediately if the battery voltage drops significantly, the motor overheats, or the controller reaches its temperature limits.
Workshop tip
Make sure to note down every setting and every test. When a problem arises, the first question to ask is always: what has changed since the last trouble-free ride? A settings logbook can answer that question in a minute.
If the battery is the limiting factor, our scooter batteries in the Performance version deliver significantly more power than the original batteries.
Frequently Asked Questions
Why is the motor current higher than the battery current?
At low speeds, the controller applies a low voltage to the motor while drawing a high current from the battery. The power remains relatively constant, accounting for losses: the product of the voltage and the current is the same on both sides.
My BMS (Battery Management System) is cutting power when I accelerate hard. What setting should I adjust?
Reduce the "Battery Current Max" setting to a value below the limit specified by your Battery Management System (BMS). For a machine with two controllers, the sum of the battery currents from both controllers must remain below this limit.
What is the purpose of the "Absolute Maximum Current" setting?
This is a safety measure: if this value is exceeded, the controller will shut down completely and record the "ABS_OVER_CURRENT" error. It must remain above the maximum motor current, with some margin.
Why does my electric brake show a low battery even when the battery is fully charged?
A fully charged battery accepts very little charging current. The "Battery Current Max Regen" limit and the voltage protections then reduce the effectiveness of regenerative braking.
Can I copy the settings from another scooter?
Only if the motor, battery, and controller are identical. Otherwise, start with your own specifications and gradually increase the settings.