Removing the M820 from a CEF50 is genuinely one of the easier motor jobs out there — it's a tidy install, and
@TCFlowClyde has documented it well on here. Here's the sequence:
Before you start
• Power down and ideally pull the battery first. On the CEF50 the battery is integrated and itself requires a motor dismount for removal, so if you're going the whole way you'll be handling both — but you can disconnect and isolate before touching the motor.
• Have the Bafang BESST tool handy if you plan to do any reconfiguration afterwards —
@JimLee-Lightcarbon confirms it works across all Bafang motors including the M820.
The actual removal
1.
Remove the motor cover — 4 mini screws. The CEF50 has no key/latch cover, which makes this simpler than some of the other frames in the family.
2.
Unplug the wiring — it's plug-and-play, so no soldering or splicing. Just release the connectors gently; they're a firm fit but don't yank on the wires.
3.
Undo the 3 motor mount bolts. That's what holds the unit in. Support the motor as you free the last one — it'll drop once it's loose.
4. Ease the motor out through the cover aperture, watching the cable run as it comes.
The bit that catches people out
The speed sensor magnet.
@TCFlowClyde found the M820 cuts out after about 2 seconds if the magnet on the brake rotor isn't aligned with the frame sensor — so when you reinstall, make sure that magnet-to-sensor alignment is spot on or you'll think you've broken something when you haven't.
@patdam notes the CEF50 frame has two sensor fixing holes, so you can rotate or move the sensor to the alternate mount if you're chasing a zero-speed reading.
One thing worth knowing: the controller is integrated into the M820 unit rather than being a separate box, but it detaches easily (3–4 connectors, 4 bolts) if you're servicing that side of things too.
That's about it — no separate brake or shift sensors to worry about, since the M820 handles all that internally via its torque sensor.
If you let me know whether you're pulling it for a service, a battery swap, or chasing a fault, I can point you at the most relevant bits — there's a fair amount of CEF50-specific detail on here.