Temperature limits in VESC: motor, controller, and thermal sensor

A VESC controller protects the motor and its own electronics by reducing the current when they overheat. It does this based on two temperature readings: the temperature of the power transistors (MOSFETs), measured on the circuit board, and the temperature of the motor, measured by a probe placed in the windings. The first protection mechanism always works; the second one only functions if the probe exists, is properly connected, and is correctly configured. Here's how these limits work and how to adjust them in VESC Tool.

The essentials

  • The settings are located in Motor Settings, General, on the Temperature tab.
  • Each limit has a starting point and an ending point: between the two, the current gradually decreases; at the end, the motor is stopped with an error.
  • The motor limit only makes sense when the correct Motor Temperature Sensor Type is specified.
  • Acceleration Temperature Decrease lowers the limits during acceleration to maintain electric braking even when the motor is hot.
  • Always check the real-time data to ensure that the displayed temperature is reasonable.

Two temperatures, two levels of protection

MOSFETs are the power switches of the controller. They generate heat due to the current flowing through them and the switching process. The controller measures their temperature on the circuit board: this is the most reliable protection method because the sensor is factory-installed.

The motor, in particular, heats up primarily in its windings. If it gets too hot, it can damage the insulating varnish on the wires and potentially weaken its magnets. The controller can only detect this if a sensor (a thermistor) is embedded within the winding and connected to the controller's motor temperature input. To understand the source of the heat, please refer to our guide on electric motor overheating.

The four limits

  • MOSFET Temp Cutoff Start: The MOSFET temperature at which the motor current begins to decrease.
  • MOSFET Temp Cutoff End: The temperature at which current flow is completely stopped.
  • `Motor Temp Cutoff Start` and `Motor Temp Cutoff End`: The same applies to the motor.

According to the public firmware code, from the beginning to the end, the maximum allowed current decreases linearly to zero, both during acceleration and braking. Beyond this point, the controller stops the motor and records the error FAULT_CODE_OVER_TEMP_FET or FAULT_CODE_OVER_TEMP_MOTOR. These errors can be read in VESC Tool: see our guide on VESC errors.

This gradual decrease is valuable: the machine loses power before stopping, which alerts the rider. A difference that is too small between the beginning and the end transforms the safety feature into an almost abrupt cut-off.

What values should you choose? Use the values provided by the controller manufacturer for the MOSFETs, and the motor manufacturer for the windings and magnets. The default values in VESC Tool are a generic starting point, not a recommendation for your specific hardware.

Declare the motor sensor

The `Motor Temperature Sensor Type` parameter tells the controller what type of sensor it is reading. The available options are:

Options in VESC ToolSensor type
NTC 10K at 25°C10 kΩ NTC thermistor at 25 °C, the most common type used in small motors
NTC 100K at 25°C100 kΩ NTC thermistor at 25 °C
PTC 1K at 100 °CPTC thermistor, 1 kΩ at 100 °C
KTY83/122, KTY84/130Silicon KTY temperature sensors, commonly found on larger motors
PT1000Platinum sensor with a resistance of 1000 Ω
NTC Custom, PTC CustomAny sensor, characterized by its resistance and reference temperature
DisabledNo sensor detected by the controller

For an NTC sensor, the `Beta Value for Motor Thermistor` parameter specifies the sensor's curve (the beta value from its datasheet). For a PTC sensor, it's the `Coefficient for PTC Motor Thermistor`. Custom sensors also use `Custom NTC/PTC Resistance` and `Custom NTC/PTC Base Temperature`.

A faulty temperature sensor can provide inaccurate readings, sometimes significantly deviating from the actual temperature. This can cause the controller to activate its safety mechanisms prematurely (reducing power in cold conditions) or too late (no protection at all). The firmware code also filters out impossible readings (invalid calculations, values outside of any reasonable range). In such cases, the motor continues to run without any thermal protection. Therefore, a disconnected or incorrectly read sensor may not necessarily shut down the machine; it could simply leave the motor unprotected.

Check the reading

A healthy motor should have a temperature reading in the VESC Tool's real-time data that is close to the ambient temperature. After riding, the temperature should increase in a consistent manner. A fixed, negative, or nonsensical value indicates a faulty sensor, a corrupted beta value, or a broken wire.

Acceleration Temperature Reduction

This setting lowers the temperature limits specifically during acceleration. At 0%, the limits are the same for both acceleration and braking. At 100%, the acceleration limits are reduced to 25°C. In between, the limits are lowered proportionally.

As explained in the VESC Tool help documentation, when components overheat, the machine initially loses power in acceleration while still maintaining available regenerative braking. This is a design choice: some users prefer to reserve all thermal headroom for acceleration and set this parameter to 0%, while others want to maintain this reserve for braking. In both cases, the mechanical brakes remain the primary braking system.

When the protection system frequently triggers

A protection that frequently triggers is a symptom, not a setting to be pushed back. Common causes include: excessive motor current for the application, a motor that is not properly detected, overly generous timing, a poorly ventilated controller, or a motor that is enclosed without proper airflow. Our guide Motor overheating under VESC reviews these settings. In terms of hardware, better heat dissipation is very helpful: our motor ventilation systems can be installed on MHS, MHT, XHS, and XHT motors from our range of electric scooter motors.

Workshop tip

Never raise a temperature limit to eliminate a power loss. If the machine is overheating, it means it's working beyond what its cooling system can handle. Identify the cause and maintain limits that leave a margin below the temperature tolerances of the motor windings' insulation and the magnets.

Frequently Asked Questions

My motor doesn't have a sensor, does the motor limit setting still serve a purpose?

No. Without a temperature sensor, the controller cannot determine the motor temperature. Only the MOSFET protection remains active. Choose "Disabled" to avoid reading a meaningless value.

The motor temperature is displaying an absurd value. Why is this happening?

The declared sensor type does not match the actual sensor, the beta value is incorrect, or a wire is broken. Please verify the sensor reference with the motor manufacturer.

The machine loses power after a few minutes. Could this be due to overheating?

Most likely, this is happening if the power loss is gradual. Check the real-time data to see if the MOSFET or motor temperature has reached the threshold that triggers power reduction.

Does the electric brake weaken when the motor is hot? Is this normal?

Yes: Between the beginning and end of the speed limit, the braking current is also reduced. The "Acceleration Temperature Decrease" feature allows for earlier acceleration reduction compared to braking.

Can I copy the limits from another controller?

The MOSFET limits depend on the specific circuit board, while the motor limits depend on the motor itself. Refer to the specifications provided by the manufacturers of your equipment rather than relying on data from a different machine.