Choosing Bafang mid-drive motor parts: M series and compatibility

When choosing replacement parts for a Bafang mid-drive motor, the exact motor code and the data communication protocol used matter far more than the brand name "Bafang" alone.

As a world-leading manufacturer of e-bike drive systems, Bafang Electric (Suzhou) Co. has thoroughly modernised its popular M series mid-drive motors (such as the M400, M420, M500, M510 and M600) over the years. The biggest technical pitfall for DIYers and mechanics is the strict divide between the classic UART protocol and the modern CAN bus architecture. In this guide you will discover the exact specifications of all M series motors, how to identify the communication protocol visually and how to select compatible parts.

“Displays, controllers and wiring harnesses from Bafang are not interchangeable between UART and CAN bus configurations, even when the display housing (such as model DP C18 or DP C240) looks identical on the outside. A motor with a CAN bus controller requires a display with CAN 2.0B firmware and communicates via a different pin layout. Forcing a UART display onto a CAN bus motor will inevitably result in Error Code 30 (communication error) and prevent the system from activating.”

— Manufacturer advice Bafang Electric Co., Ltd. (Source: Bafang Integration & Technical Service Manual)

The crucial difference: Bafang UART versus CAN bus

Before you order a display, controller, speed sensor or main wiring harness, you must determine which communication protocol is active on your bike. Bafang uses two physically different connector types for this:

PropertyBafang UART protocolBafang CAN bus protocol
Connector type (display / wiring harness)Round green 5-pin screw/plug connector (Higo Mini-B)Triangular 5-pin plastic connector with locking tab
Marking on display / motorOften marked with “UART” or version number < 2.0Marked with “CAN” or a triangular CAN symbol
Diagnostics and configurationOpen protocol (programmable via USB UART cable & PC software)Secured CAN 2.0B protocol (requires Bafang BESST diagnostic box)
Typical modelsBBS01B, BBS02B, early M400 (G330.250 UART)M400 CAN, M420 (G332), M500 (G520), M510 (G522), M600
Error code with wrong combinationError Code 30 (Error 30: No communication between display and controller)

Technical specifications of the Bafang M series mid-drive motors

The M series covers a wide range of drive systems for city, trekking, mountain bike and cargo applications. Consult the specification matrix below for the factory values:

Motor series & type codeRated powerSystem voltageMax. TorqueBottom bracket interfaceWeight
M400 (G330.250)250 W36 V or 43 V80 NmJIS square or ISIS SplineApprox. 3.9 kg
M420 (G332.250)250 W36 V or 43 V80 NmISIS Spline (integrated housing)Approx. 3.6 kg
M500 (G520.250)250 W36 V or 43 V95 NmISIS Spline (magnesium casing)Approx. 3.0 kg
M510 (G522.250)250 W36 V or 48 V95 NmISIS Spline (supports up to 120 rpm)Approx. 2.9 kg
M600 (G521.500)500 W48 V120 NmISIS Spline (Speed Pedelec / Cargo)Approx. 3.4 kg

Mechanical parts: chainline, spiders and offset

Besides the electronics, the mechanical assembly requires close attention. Common problems such as dropping chains or excessive cassette wear are caused by incorrect chain specifications:

  • Spider and BCD size: Depending on the model, Bafang mid-drive motors use a Direct Mount chainring or an aluminium spider with a 104 BCD (Bolt Circle Diameter, 4-bolt) or 130 BCD bolt pattern.
  • Chainline offset: Because the mid-drive motor is wider than a conventional bottom bracket, the chainring must have an inward-facing offset (from 2.5 mm to 9 mm). With a straight, flat chainring, the chain runs at an angle on the largest rear sprockets, leading to chain wear and shifting problems.
  • Crank arm interface: Pay attention to the axle type. The older M400 motors sometimes have a JIS square taper, while the M420, M500 and M510 use a rigid ISIS spline with M12 or M15 crank bolts (tightening torque according to factory instructions: 35–40 Nm).

Always check compatibility

For Bafang parts, the bike brand name alone (such as Cortina, Brinckers, Amslod or QWIC) is not enough. Manufacturers regularly change drive generation per model year. Note the full motor number engraved on the underside of the casing (for example MM G330.250 1904...) and take a clear photo of the plug connection between display and main power cable.

Working safely yourself: where is the limit?

Switch off the e-bike and remove the battery from the bike before working on wiring harnesses or the motor controller. Never force connectors; the waterproof rubber O-rings (IP65 seal) fit closely. If there is resistance, apply a drop of silicone spray to the outside of the sleeve, never grease inside the contact socket.

Opening the motor housing internally to lubricate gears (such as the nylon reduction gear or the metal pinion) requires specific tools and heat-resistant gear grease (such as Mobilgrease 28 or Bafang original white gear grease). In case of damaged stator windings, worn torque sensors or moisture ingress, replacing the complete motor unit or controller is often safer and more reliable.

Practical checklist for Bafang parts

  • Exact motor type noted from the casing label (e.g. G330, G332, G520)
  • Communication protocol verified: round green 5-pin (UART) or triangular connector (CAN)
  • Battery voltage checked: 36 V, 43 V or 48 V (must match the controller value exactly)
  • Bottom bracket interface checked: JIS square or ISIS spline
  • Chainring offset and tooth count matched to the rear derailleur
  • Motor mount bolts tightened to 35–45 Nm torque

Frequently asked questions about Bafang M-series parts

Can I connect a Bafang C965 or DP C18 display to any Bafang motor?

No. The display must match your motor controller's protocol exactly. If you have a CAN-bus motor (triangular plug), only a display with CAN firmware will work. If you connect a UART display via an adapter cable, the display cannot communicate with the controller and Error 30 appears.

What does Error 30 mean on a Bafang display?

Error 30 is a communication error. The display receives no response from the motor controller for more than a few seconds. Possible causes include a broken wire in the main harness (EB-BUS), an oxidised connector pin, a protocol mismatch (UART vs CAN), or a faulty controller circuit board.

Can I adjust the assist levels and wheel size of my Bafang e-bike myself?

On systems with the open UART protocol, this is possible with a special USB cable and the Bafang configuration tool via a laptop. On newer CAN-bus motors (M420, M500, M510), this software is protected and parameters can only be changed via the official dealer diagnostic tool (Bafang BESST box) to comply with the European EN 15194 safety standard.

Find the right e-bike part

Browse our complete range of e-bike parts and accessories. Looking for a compatible battery for your Bafang conversion or factory bike? Go to the batteries category. For reliable braking power with powerful mid-drive motors, see brakes and accessories. Not sure which type of Bafang motor or display is fitted to your e-bike? Contact our experts for a free compatibility check.

Official sources and manufacturer documentation

Detailed technical specifications and installation manuals come from recognised manufacturers and inspection bodies: