Bafang Hub Motor Systems
Bafang manufactures a wide range of rear hub motors used across many popular eBike brands — including Rad Power Bikes (RadRunner, RadRover), Aventon (Level, Aventure, Soltera), Lectric (XP series), Himiway, Engwe, and dozens of other brands. While these brands may use custom displays and branding, the underlying Bafang hub motor and controller system produces the same error codes. The fixes in this guide apply to all of these bikes.
Hub motor error codes differ slightly from mid-drive codes in some areas — specifically around torque sensor errors (hub motors typically use cadence sensors, not torque sensors) and motor internal access (hub motor Hall sensors require wheel disassembly).
Common Hub Motor Error Codes
Error 21 — Speed Sensor / Cadence Sensor
Hub motors can produce error 21 from both the wheel speed sensor (spoke magnet) and the cadence sensor (pedal rotation sensor) depending on system configuration. On hub motor bikes, check both sensor types when error 21 appears. The cadence sensor is typically mounted near the bottom bracket and reads from a magnet ring on the crank arm — a failed magnet ring or loose cadence sensor are common causes of error 21 on hub motor bikes.
Error 08 — Hall Sensor Error
Hub motor Hall sensor errors require rear wheel removal for diagnosis. The Hall sensors are inside the hub shell. Many hub motor Hall sensor faults can be resolved by reseating the phase and Hall connector where the motor cable exits the axle — this junction is a high-fatigue point and the most common Hall-related failure on hub motors.
Error 30 — Communication Error
Error 30 on hub motor bikes is particularly common on brand-specific Bafang-based systems (Rad Power, Aventon, etc.) where the display is a custom OEM unit rather than a standard Bafang C965. The same diagnostic approach applies — isolate components, check connectors, replace display first.
No Error Code — Motor Not Engaging
A common hub motor scenario with no error code: the motor is silent and unresponsive despite the display showing normal readings. This is typically a brake sensor permanently triggered (the motor is receiving a brake cut-off signal continuously). Check brake sensors first.