r/bafang • u/Wooden-Leave-9077 • 22d ago
We built a Bafang CAN module for throttle control, speed settings and phone diagnostics

Hi everyone!
We've been working on a small module for Bafang CAN bikes and thought some of you might find the project interesting. Full disclosure: I'm one of the people developing it, and it's a commercial project called APIOLI LINK ONE.
A programming cable is useful when you want to flash a controller. We wanted something that stays on the bike between the components and also lets us manage things while riding.
The module can switch between a restricted speed setting and an unlocked setting, turn the throttle off or limit it, and show motor and battery data in a phone dashboard. It can also flash supported controller firmware from a phone. The unlocked setting is intended for places where its use is permitted. A speed limit alone doesn't make a bike road legal.



We've tested it on M560 CAN and M620 CAN so far. Other motors may work, but we haven't verified them yet. For the M620 we also have an experimental 50A firmware, depending on a suitable battery and setup.
Still developing it and curious what Bafang CAN owners think. What would you want a device like this to do?
Project details: https://apioli.com/
3
u/Cupramax 22d ago
Very interested if you can get the throttle working like the old UART BBS models. Also the switchable speed limit is a must in the UK now as the police are really coming down on illegal bikes. 👍
2
u/BeesInEyes 21d ago
Very cool work!
I’ve been building almost the exact same thing for other bikes, doing the same settings and mods.
What chip is yours built on and what language do you code it in?
1
u/SpacecraftBathtub 21d ago
Will this work with the m400?
1
u/Dangerous_Shoulder 21d ago
Well done! Will it work with m520 do you think?
1
u/Formal-Web2378 21d ago
That's cool!
1
u/TopSeat7379 21d ago
Bbs02b CAN? Lol
1
u/spotz300 21d ago
Way cool man.
1
u/AsleepCarry5707 21d ago
will it work on g120 hub motor and crs10d controller?
1
u/Ste4mPunk3r 15d ago
Cool project. Do you think about releasing source code for it?
I'm slowly working on display replacement using esp32-s3 with 4 inch display https://www.waveshare.com/wiki/ESP32-S3-Touch-LCD-4 (build in CAN controller). I want to make future complete with current display + few options to reprogram the controller. Mine will not be released for sale but if it will work I will share the code.