Bafang Error Codes: What Each Code Means and What We Check

Wilson's sales team · checked by our technicians
Hiboy EX9 commuter e-bike in light blue with a rear rack and step-through frame, front three-quarter view on a white background
The short answer

Bafang error codes 04 to 81 from Bafang's own display manuals: what each means, what our technicians check, and repair from $35. Hub and mid-drive e-bikes.

A Bafang error code is a two-digit number the display shows when the drive system finds a fault, and Bafang's own manuals define each one. The codes riders see most are 21 (speed sensor), 30 (communication between the display and the controller), 08 (hall sensor signal in the motor), 04 and 05 (throttle) and 25 (torque signal). The full list below comes from Bafang's manuals for its DP C18 and DP E162/E163 displays. Fixing the fault behind a code starts from $35 at Wilson's, and a simple inspection is always free.

Safety first

If the motor drives without you pedaling or pressing the throttle, keeps pushing when you brake, or cuts out suddenly, stop riding. If a battery code comes with heat, swelling, a smell or a wet battery, don't charge it: bring it straight in.

Where do Bafang error codes come from?

Bafang makes e-bike drive systems, hub and mid-drive, that other companies build into their e-bikes. The system watches its own parts as you ride and shows a code when one reports something abnormal.

Bafang publishes a manual for each display, and the code list lives in those manuals. We used two of them:

  • DP C18 (CAN bus), Bafang's user manual from November 2019. A wrench icon appears with the code, and the display's information menu keeps the last ten errors.
  • DP E162 and DP E163 (CAN), Bafang's dealer manual from November 2022. These small displays flash the code once a second. The dealer manual gives separate repair paths for hub motor systems and mid motor systems.

The two lists mostly agree, but not word for word, and some codes only exist on systems with particular parts. So the first thing our technicians do is identify your display and drive system, then read the code against that.

Bafang error codes at a glance

Code What Bafang's manual says What we check first
04 Throttle not back in its correct position Throttle, its cable and plug
05 Throttle fault (DP E162/E163: throttle not in place) Throttle, its cable, then the controller or drive unit
07 Overvoltage protection Battery voltage against the controller's rated voltage, battery, controller
08 Error with the hall sensor signal inside the motor Motor cable and plug, hall sensors, controller
09 Motor phase error (DP E162/E163: phase wire in motor abnormal) Motor cable, phase wires, motor, controller
10 Motor temperature reached its protection limit Motor temperature, how it was ridden, motor and controller
11 Motor temperature sensor error Motor cable, the sensor, motor, controller
12 Controller current sensor error Controller or drive unit
13 Battery temperature sensor error Battery and its management system
14 Controller temperature reached its protection limit Controller temperature, then the controller or drive unit
15 Controller temperature sensor error Controller or drive unit
21 Speed sensor error Spoke magnet and sensor, sensor cable, motor or drive unit
25 Torque signal error Torque sensor connections, torque sensor
26 Speed signal of the torque sensor (DP E162/E163: torque sensor abnormal) Torque sensor, its cable and connectors
27 Controller overcurrent Controller, motor, wiring
30 Communication problem Display cable and connectors, display, controller or drive unit
33 Brake signal error (if brake sensors are fitted) Brake sensors and their cables
35 15V detection circuit error Controller or drive unit
36 Keypad (on/off button) detection circuit error Button pad, display, controller
37 Watchdog timer (WDT) circuit fault Controller or drive unit
41 Battery total voltage too high Battery, charger, battery management system
42 Battery total voltage too low Battery charge and health, battery management system
43 Total power from the battery cells too high Battery and its management system
44 Single cell voltage too high Battery cells, charger, battery management system
45 Battery temperature too high Battery temperature and condition
46 Battery temperature too low Battery temperature and condition
47 Battery state of charge too high Battery management system, charger
48 Battery state of charge too low Battery charge and health
49 Single cell discharge voltage too low (DP E162/E163 list) Battery cells, battery load test
4C Voltage difference between single cells (DP E162/E163 list) Battery cell balance, battery load test
61 Shift (switching) detection defect, where fitted Electronic shifting system
62 Electronic derailleur cannot release, where fitted Electronic derailleur and its cable
71 Electronic lock jammed, where fitted Electronic lock
81 Bluetooth module error, where fitted Display or Bluetooth module

Codes and descriptions from Bafang's User Manual for Display DP C18.CAN (BF-UM-C-DP C18-EN, November 2019) and Dealer Manual for Display DP E162.CAN / DP E163.CAN (BF-DM-C-DP E162&E163-EN, November 2022), both on bafang-e.com, read November 2026. On the DP E162/E163, battery codes 42, 49 and 4C appear only on systems with Bafang's smart battery management and CAN protocol. Other Bafang displays can show a different set; we read the code against your display.

The codes we see most, and what we check

Error 21: speed sensor

The system can't read how fast the wheel is turning, so pedal assist cuts out or won't start. On mid-drive e-bikes the speed signal usually comes from a magnet on a spoke passing a sensor on the frame; on hub-motor e-bikes it often comes from inside the motor. We check the magnet's position, the sensor and its cable, then the motor or drive unit. Speed sensor and magnet repair starts from $35.

Error 30: communication problem

The display and the controller have stopped talking. The usual causes we find are a damaged or wet display cable, a connector that has worked loose or corroded, a failed display, or a failed controller. Bafang's dealer manual tells the display and controller apart by how the display behaves after the code appears, and we test the cable, the display and the controller before replacing anything. Wiring and connector repair starts from $35, display repair from $100. See display repair.

Error 08 or 09: hall sensor or phase wire in the motor

Code 08 says the motor's hall sensor signal is abnormal; code 09 points at the phase wires that carry power to the motor. You typically feel a judder from a stop, or no drive at all. On a hub motor we test the motor cable, the hall sensors, the phase wires and the controller; hall sensor and phase wire repair starts from $100. On a mid-drive, Bafang's dealer manual treats both codes as a drive unit fault, which changes the repair (see below).

Error 04 or 05: throttle

The system sees the throttle as not back at rest, or faulty, and holds the motor off for safety. We check the throttle itself, its cable and plug, then the controller or drive unit. Throttle repair starts from $50. See throttle repair.

Error 25 or 26: torque sensor

The torque sensor measures how hard you pedal, so assist matches your effort. When its signal is lost, assist stops or comes on unevenly. We check the sensor's connectors and cable, then the sensor; pedal assist and torque sensor repair starts from $35. On many mid-drives the torque sensor is inside the drive unit. More in e-bike pedal assist repair.

Error 10 or 14: too hot

The motor (10) or the controller (14) has reached its temperature limit and the system has cut power to protect itself. After a long, loaded climb that can be normal protection; on short, easy rides it points to the motor, the controller or its temperature sensing, and we test those.

Errors 41 to 49 and 4C: the battery

These come from the battery's own management system: voltage too high or too low, a cell out of balance, temperature too high or too low. A battery left flat can show one; a tired or damaged pack can too. We load-test the battery and read its management system (battery load test and health report from $50, waived if the repair quote is over $100). Battery management system repair starts from $200; battery replacement is quoted after the test. See e-bike battery replacement.

Error 07: overvoltage

The controller is seeing more voltage than it is built for. Bafang's dealer manual starts by checking that the battery's nominal voltage matches the controller, which matters when a battery or charger has been swapped. We check both against each other, then test the battery and controller.

Hub motor or mid-drive: why it changes the repair

Bafang builds both, and its dealer manual gives them different repair paths. On a hub motor system the motor, the controller and the sensors are separate parts, so a motor code can end in a sensor, a cable, a motor repair or a controller. On a mid motor system the motor and controller sit together in one drive unit at the pedals, and for most motor and controller codes (08, 09, 11, 12, 15, 37) Bafang's answer is to replace the drive unit.

Drive system Typical repair for a motor or controller code From
Hub motor Cable or connector, hall sensors and phase wires, controller, or motor repair $35 to $100
Mid-drive Sensors and cables first; drive unit repair or replacement if the fault is inside $100 repair, $300 replacement

Wilson's starting prices, parts and labor included: motor repair (hub and mid-drive) from $100, mid-drive motor replacement from $300. We test before quoting, so a cable fault isn't billed as a new drive unit.

How much does it cost to fix a Bafang error code?

Job From
Simple inspection (any brand, any issue) Free
Full diagnosis, with disassembly or test equipment $30, waived on repairs over $100
Error code fix $35
Speed sensor and magnet $35
Pedal assist and torque sensor $35
Wiring harness and connector repair $35
Brake cutoff switch $35
Ignition, key switch and power button $35
Controller replacement $35
Throttle repair $50
Battery load test and health report $50, waived if the quote is over $100
Hall sensor and phase wire repair $100
Dashboard and display repair $100
Motor repair (hub and mid-drive) $100
BMS diagnosis and replacement $200
Mid-drive motor replacement $300

Starting prices, parts and labor included; the final price depends on your e-bike and the Bafang part it uses. Battery replacement is quoted after the test. Simple inspection and the error code fix are two different things: looking it over is free, fixing the fault behind a code starts from $35. More prices in how much e-bike repair costs.

What if my code isn't on this list?

Bafang's dealer manual sends any code that isn't on its list to Bafang's after-sales service. Some Bafang systems use codes these two manuals don't cover, and some e-bike makers fit their own display to a Bafang drive. Bring it in: we identify the display and controller and test the part the code points to.

Is a Bafang fault covered by the warranty?

That depends on who sold you the e-bike and their warranty. Bafang's display manuals note that wear, normal use and aging are not covered. If you bought your e-bike from Wilson's, our warranty covers every other brand we carry for 1 year against manufacturing defects and we manage the claim; water damage, collisions, misuse and unauthorized repairs are excluded. See our warranty policy.

Where to get a Bafang e-bike repaired

At any Wilson's shop: Flushing, Elmhurst, Brooklyn and Long Island City in New York City, San Francisco, and Miami. We repair Bafang hub and mid-drive systems on any e-bike, wherever you bought it. Walk in, call (516) 300-0944, or book a repair at the New York, San Francisco and Miami shops. If you saw a code, tell us which one at the counter. Shopping for a new e-bike instead? See our e-bikes and commuter e-bikes, or read e-bike repair.

Frequently asked questions

What does error 21 mean on a Bafang display?

Bafang's manuals list 21 as a speed sensor error: the system can't read wheel speed, so assist stops. We check the spoke magnet, the speed sensor and its cable, then the motor or drive unit. Speed sensor repair starts from $35.

What does error 30 mean on a Bafang e-bike?

A communication problem between the display and the controller or drive unit. The cause is usually the display cable or a connector, sometimes the display or the controller itself. Fixing the fault behind a code starts from $35.

What does Bafang error 08 mean?

The hall sensor signal inside the motor is abnormal. On a hub motor we test the motor cable, sensors and controller (hall sensor and phase wire repair from $100); on a mid-drive Bafang points to the drive unit.

Does the display keep a history of codes?

On the DP C18, yes: Bafang's manual says its information menu stores the last ten errors. We read that history as part of the inspection, which helps with faults that come and go.

Can you repair a Bafang mid-drive motor?

Yes. We test the sensors, cables and drive unit first; motor repair starts from $100 and mid-drive motor replacement from $300, parts and labor included.

Sources: Bafang, User Manual for Display DP C18.CAN (November 2019) and Dealer Manual for Display DP E162.CAN / DP E163.CAN (November 2022), read November 23, 2026. Repair prices: Wilson's price list. More: controller repair.

Written by Wilson's sales team, checked by our technicians

We sell and service electric scooters and e-bikes every day, so our advice reflects what holds up in daily use, not just the spec sheet.