What Error 21 Means on Bafang

Error 21 on the Bafang BBSHD and BBS02B mid-drive motors indicates that the internal NTC thermistor on the controller PCB has reported a temperature at or above the thermal cutoff threshold — typically 80°C on stock firmware, adjustable to 85–90°C via the Bafang BESST configuration tool. The system cuts motor output immediately to prevent permanent damage to the MOSFET array on the controller board.

Unlike the Bosch Performance Line which actively manages motor temperature with reduced output before a cutoff, the Bafang BBSHD uses a hard binary cutoff — full power one moment, zero power the next. This is a known characteristic of the BBSHD platform and drives the need for proactive thermal management on high-demand builds.

When Error 21 Typically Triggers

Error 21 most commonly appears after sustained high-power output (above 750W) on extended climbs, in high ambient temperatures (above 25°C), or when the motor housing is obstructed from airflow (e.g., when mounted inside a cargo bike enclosure). The BBSHD controller is housed in the sealed right-side cover of the motor unit — it has no active cooling and relies entirely on conduction through the aluminium case and convection from the frame-mounted motor.

Immediate Fix

When error 21 appears: stop, power off the system, and allow the motor to cool for 10–15 minutes. The aluminium BBSHD case acts as a heat sink — active cooling with a cold water pour is not recommended as thermal shock can stress solder joints on the PCB. After cooling, the motor will reset on power-on and error 21 will clear automatically (it does not require a tool reset unlike some Bafang errors).

Permanent Solutions

1. Reduce High-Power Usage

The most reliable fix is operational: use lower assist levels on sustained climbs and limit time above 750W continuous. The BBSHD is rated for 1000W peak, but thermal throttling at 80°C indicates the rated continuous figure (typically 500–750W depending on ambient conditions) is being exceeded.

2. Aftermarket Heatsink

Several aftermarket machined aluminium heatsinks are available specifically for the BBSHD right-side controller cover. These bolt-on replacements increase the external surface area by 2–3× and typically reduce steady-state controller temperature by 8–15°C at equivalent power levels. Popular options include the Lunacycle and BBSHD-specific designs available from Aliexpress suppliers.

3. Firmware Threshold Adjustment

Using the Bafang BESST programming tool, the thermal cutoff temperature can be raised from the default 80°C to up to 90°C. This extends operational time before cutoff but does not reduce heat — it simply allows the controller to run hotter before protecting itself. Only advisable on builds with adequate heatsinking; running the controller at 85–90°C long-term reduces MOSFET and capacitor lifespan.

4. Check the NTC Sensor

If error 21 appears at low power levels or on cold days, the NTC thermistor itself may have drifted or failed. At 20°C ambient, the controller NTC should read 9.5–10.5 kΩ. Test by probing the NTC sensor pads on the controller board (requires motor disassembly — the BBSHD right cover is removable with 5× Torx T25 screws). A reading outside 9–11 kΩ at room temperature indicates a faulty sensor that should be replaced or the threshold recalibrated in firmware.