BBS-FW: Open Source Firmware for BBSHD/BBS02 Controller

I liked this firmware. Thanks. But unfortunately it didn't fix my problem. My bike turns off at 45-46v. I guess it's the BMS. Because in the settings I set the limit to 42v
 
If the display turns off then it's usually because the battery itself turned off.

If the display stays on but the motor stops working it's usually because the controller reached LVC or some other limit.


If it's a battery issue, it's usually because of a cell problem, either mismatched (poorly built or qc'd pack) or failing (old, damaged, etc pack).
 
If the display turns off then it's usually because the battery itself turned off.

If the display stays on but the motor stops working it's usually because the controller reached LVC or some other limit.


If it's a battery issue, it's usually because of a cell problem, either mismatched (poorly built or qc'd pack) or failing (old, damaged, etc pack).
I balanced my battery and now I noticed that at 45V the bike drops voltage sharply. It goes a maximum of 18-20km/h. Although when it was 46v I was easily going 40km/h. Should it be like that?
 
I balanced my battery and now I noticed that at 45V the bike drops voltage sharply. It goes a maximum of 18-20km/h. Although when it was 46v I was easily going 40km/h. Should it be like that?
when it was 46v and more. the engine gave out another 750w (possibly more), but when it was 45v it was about 150w
 
i recently got a usb cable for my generic controller which is 350w and dual drive, driving 2 geared hub motors with a bafang display, the display / controller (idk what happened) reset itself on me and quit reading speed on the display but i finally got it hooked up to my pc and used the bbs tool to read flash and it worked even though its not a bafang controller i have no clue what it is i couldnt find any info anywhere online on it.

when i read flash it showed up on the tool, and i was able to change settings and write to it (after i saved backup and made a text file with all the settings just in case) and it worked but wouldnt let me change the speed sensor from external to internal or phase (it said the speed signal # was incorrect and just wouldnt let me do it) but i was able to write to it and it works still (not sure if it was just reading what the display had on it or if it was on the controller) i was able to change some settings that i couldnt in the display alone though, and it makes me think it was reading/writing the controller because the tire size on the program was at 26 but on my display it was 29 before and after reading/writing

im tempted to try to use this program and read/write to it too but i dont want to mess it up, i guess if the other program didnt mess it up this one probably wont either i have backups anyways but im kinda hesistant on trying it lmao

any ideas on if it will work or not or if i should try it? i dont think i will get much out more out of it other than maybe getting speed to work again, i couldnt set current limit above 18a anyways either (it says max 15a on the controller) but it sure seems like it has a lot more power than 350 watts with the 350w controller and 2x 250-350w geared hub motors
 
so Pl is the voltage line.....
the p+ is the 5v line to power the screen.
Controller is flashable and programmable and it powers up but the voltage will jump up to 60'ish volts when i engage the throttle and release.
i am hoping someone was able to flash a stock firmware that will overwrite the second MCU that has the error.
Speed sensor seems to be borked also
i have an old controller i might try on it see if the problem persists
if anyone has a link to a stock BBS02B firmware i would be forever grateful!!!!

EDIT:
The config tool will show an error in the log when the two temp sensors are active and engage the thermal limiter.
It will also show unable to get Voltage from controller.


The error 30 is gone (i had Rx and Tx swapped in my infinite wisdom)
everything i have saw looking up things to hook my s866 display to my random controller to see if it reads speed because my bafang c965 display wont anymore says that PL is power lock if you have a key etc
 
im tempted to try to use this program and read/write to it too but i dont want to mess it up, i guess if the other program didnt mess it up this one probably wont either i have backups anyways but im kinda hesistant on trying it lmao

any ideas on if it will work or not or if i should try it? i dont think i will get much out more out of it other than maybe getting speed to work again, i couldnt set current limit above 18a anyways either (it says max 15a on the controller) but it sure seems like it has a lot more power than 350 watts with the 350w controller and 2x 250-350w geared hub motors
Definately will not work. Out of bafangs this is only for mid-drives(and of those only bbshd+bbs02).
 
Managed to downvolt BBSHD to 36V and even bit more torque with the Danielnilsson firmware and 33A.

Could I do the same and downvolt a 52V TSDZ2 to 36V without any issues?
 
Hi everyone, new here!
I’ve been reading through the forum for days—great content.

I recently purchased a BBSHD motor (non-CAN version) with a 52V 1000W configuration (Amazon link).
I'm interested in upgrading to the latest open-source firmware, but I’m unsure about the exact steps to take in 2025 (as the article is from 2022).

My Setup:​

  • Motor: BBSHD 52V 1000W (non-CAN)
  • LCD Display: EKD01

Questions:​

  1. Where can I find the latest firmware version?
    I want to make sure I’m flashing the correct and latest version.

  2. Where can I find the software?
    Also, since I’m using a Mac, will it work on a VM setup?

  3. Is there a way to back up my factory settings before flashing?
    I’m currently satisfied with my setup and want the option to revert if needed.

Thanks in advance for the help! 🚴‍♂️
 
Could I do the same and downvolt a 52V TSDZ2 to 36V without any issues?
You could open a issue on github asking for this? So that this might get documented doing it there.

I'm guessing it should be doable w/o any issues, but i'm really just guessing, so you'll want to get this answered by Daniel,
or someone who has actually seen the controller pcb.
 
took me a while to find this thread, anyways..;

it seems that bafang stopped producing bbs motors with uart controller, they are now can bus
i guess this firmware wont work for canbus right?
or could it work with some modifications?
 
I'm guessing it's not using the same 8bit mcu anymore.

edit: what i'm atm. more curious about is, if a controller w/uart will fit&work in a canbus version of the motor.
 
With this firmware does that means that I can use a 15s battery if I set the voltage limit to 63V (Maximum rated)? Is it safe to do it like that and use 33a? I have a nice idea for a 15s battery.
 
With this firmware does that means that I can use a 15s battery if I set the voltage limit to 63V (Maximum rated)? Is it safe to do it like that and use 33a? I have a nice idea for a 15s battery.
iirc., the controllers have caps w/60V ratings, so you don't want to do that.

edit: nvm., came across my old controller, and those caps were indeed 63V, fwiw..
 
Last edited:
iirc., the controllers have caps w/60V ratings, so you don't want to do that.

edit: nvm., came across my old controller, and those caps were indeed 63V, fwiw..
Nice! I am thinking about limiting my cells to 4.15v and getting max 62.25v. Do you think this should be safe enough?
 
Seems like there is lower maximum rpm and some stuttering motor behaviour with one controller with open source firmware for some reason while maximum rpm remains higher and the motor runs smoothly with open source firmware on another identical mcu type controller.
Hard to tell without tachometer.
 
Back
Top