User profiles (BBS02B, BBSHD) for BBS-FW (Daniel Nilsson's Open Source Firmware)

vidriago

10 mW
Joined
Mar 22, 2023
Messages
23
Location
Anywhere in the Underwhere
Hi mates.

I'm making this thread just for sharing user profiles for BAFANG (or Luna or 8FUN mid-drives, it's the same but just rebranded) motors.

This post is oriented only for BBS02B (500/750w) and BBSHD (1000w) (and maybe the Tongsheng motor running this firmware), in essence every controller running Daniel Nilsson's Firmware, NOT OFFICIAL FIRMWARE, NOT ANOTHER MOTORS!

If you wanna share your profile, please specify:

  • Motor (BBS02B, BBSHD or maybe Tongsheng)
  • Battery voltage (36V/48V/52V/whatever)
  • Firmware version used (using a profile made for a newest firmware in old firmware may cause issues)
  • Description of your profile

At bottom you can download some profiles (each every version, I'd been improving it just by my way of riding it term of power-by-cadence, shift timings, more appropriated technical parameters about voltages, etc.), and 5 more profiles that I've adapted based on this strongly recommendable guide (all is for BBS02B, so can be used in BBSHD without problems but you may increase amps from 25 to 30 and adapt voltages, cadences and another parameters with config tool).

  • All my profiles were made for my BBS02B, 48V battery, FW 1.3.1 (works on 1.4.0), shift sensor and stock throttle (can be plugged off and still working) All can be tweaked by the tool prior to flash so I engage you to experiment and adapt yours. Bafang motors lack of torque sensor and if you want the best for your setup, you must tweak it fine just for yourself and your pedaling style, cadence and use. It's suggested to have 2 different profiles for use in the city or pedestrian zones (25km/h or 15mp/h limited), and another one more aggresive for off-road use
  • Normal and Sports mode switching lights in mode 0, in all profiles, normal mode is limited to 25KM/H, throttle disabled except in PAS0 where is used only if you are spinning as a real-time power selector. Power (%) is set just at half as Sport. All is for being likely as a 'legal' and bored ebike in appearance compliant with european weird, liberticide and stupid laws
  • If you have BBSHD, you must adapt not only max current; take in mind max cadence (RPM) is about 180?? (I'm not really sure, I guess is 150-120 for BBS02B depending on voltage), is not bad idea to adapt cadences in mid and low assist multiplying by 0.8 or 0.7
  • Kepler's profile doesn't reduce/cut power when you reach a certain cadence (it's limited by motor cadence which is surely higher than you can reach). I'm using this profile for months and is perfect for me
  • NEW: Created an excel table for power, cadence and level power, it may be useful if you wanna tweak your profile or just understand my last profiles
V4.png

V5.png

Now it's time to do some math in order to explain the power you will get depending on some things. I will not add cadence or friction lost because it would be an stubborn classroom:

Power (Watts) = current battery voltage * max amps * current level percentage (number / 100) + cyclist power

There's an example:

We had:
-48v battery at 100% - 54.6V (search for ebike battery charge table in Google)
-BBS02 set at 25A maximum
-Using level 3 (22%)


Power will be:

54.6V * 25A * 22 / 100 = 300.3W (plus the power you make by pedaling)

Another example:

We had:
-52v battery at 60% - 52.1V
-BBSHD set at 30A maximum
-Using level 6 (49%)


Power will be:

52.1V * 30A * 49 / 100 = 751.17W (plus the power you make by pedaling)
 

Attachments

  • bbs02b 1.3 - em3ev.xml
    4.7 KB · Views: 72
  • bbs02b 1.3 - EMPowered Cycles.xml
    4.7 KB · Views: 45
  • bbs02b 1.3 - Karl's special sauce.xml
    4.7 KB · Views: 63
  • bbs02b 1.3 - Kepler.xml
    4.7 KB · Views: 52
  • bbs02b 1.3 - Lectric Cycles e-RAD.xml
    4.7 KB · Views: 49
  • Vidriago's v4 bbs02b FIRMWARE 1.3.xml
    4.7 KB · Views: 81
  • Vidriago's v5 bbs02b FIRMWARE 1.3.xml
    4.7 KB · Views: 104
  • Profiles.xlsx
    41 KB · Views: 32
Last edited:
Could you explain this a bit more? It doesn't make sense to me:-

  • Normal and Sports mode switching lights in mode 0, in all those profiles, normal mode is just the same as sports mode but limited to 25KM/H, throttle disabled -except in normal-PAS0 where is used only if you are spinning as a real-time power selector- and power (%) is set just at half as Sport. All is for being likely as a 'legal' and bored ebike in appearance compliant with european weird, liberticide and stupid laws

Are you say if you are in pas 0 mode, if you switch the lights on and off, it switches between normal and sport mode?
 
Yes that is correct, pas 0 + lights button switches between normal and sport mode. That way you get 20 pas levels. For that you need BBS-FW of course.
 
Could you explain this a bit more? It doesn't make sense to me:-



Are you say if you are in pas 0 mode, if you switch the lights on and off, it switches between normal and sport mode?
That's true, for me it's the best mode to keep illumination system functional

Updated my profile to V5 - this time I've limitated PAS power to 70% in PAS9 (actually I use 6 levels system, for me is PAS6) I've done it cause having higher PAS levels can be dangerous and is not neccesary for this motor (you will reach about 800W in last level for continuous). For having a +70% power boost just use the throttle, or in you haven't one, just use V4.
 
Last edited:
Hi mates.

I'm making this thread just for sharing user profiles for BAFANG (or Luna or 8FUN mid-drives, it's the same but just rebranded) motors.

This post is oriented only for BBS02B (500/750w) and BBSHD (1000w) (and maybe the Tongsheng motor which runs also with this firmware), in essence every controller running Daniel Nilsson's Firmware, NOT OFFICIAL FIRMWARE, NOT ANOTHER MOTORS!

If you wanna share your profile, please specify:

  • Motor (BBS02B, BBSHD or Tongsheng)
  • Battery voltage (36V/48V/52V/whatever)
  • Firmware version used (VERY IMPORTANT, DIFFERENT VERSIONS MAY DIFFER IN SETTINGS AND CAUSE ANNOYING PROBLEMS!!!)
  • Description of your profile

At bottom you can download my 4 profiles (each every version, I'd been improving it just by my way of riding it term of power-by-cadence, shift timings, more appropriated technical parameters about voltages, etc.), and 5 more profiles that I've adapted based on this strongly recommendable guide (all is for BBS02B, so can be used in BBSHD without problems but you may increase amps from 25 to 30 and adapt voltages, cadences and another parameters with config tool).

  • All my profiles were made for my BBS02B, 48V battery, FW 1.3.1, MTB wheel size 29 inch, 44t chainring, 11s shimano cassete, shift sensor and stock throttle... All can be changed by the tool prior to flash so I engage you to experiment and adapt yours. Bafang motors lack of torque sensor and if you want the best for you, you must tweak it fine just for yourself and your pedaling style/cadence.
  • Normal and Sports mode switching lights in mode 0, in all those profiles, normal mode is just the same as sports mode but limited to 25KM/H, throttle disabled -except in normal-PAS0 where is used only if you are spinning as a real-time power selector- and power (%) is set just at half as Sport. All is for being likely as a 'legal' and bored ebike in appearance compliant with european weird, liberticide and stupid laws
  • About adapted profiles: I started making my own taking em3ev and tweaking and I actually haven't tested another profiles because I'm awesome with my config.
  • If you have BBSHD, you must adapt not only max current; take in mind max cadence (RPM) is about 180?? (I'm not really sure, I read is 150 for BBS02B), is not bad idea to adapt cadences in mid and low assist multiplying by 0.8
  • Kepler's profile doesn't reduce/cut power when you reach a certain cadence (it's limited by motor cadence which is surely higher than you can reach, unless you're Sonic the hedgehog), it means you may exceed your speed more than you desire if you're riding in flat. I don't recommend this profile if you wanna ride in pedestrian or dangerous zones (maybe until speed cut by assist level are implemented)
  • NEW: Created an excel table for power, cadence and level relations, it may be useful if you wanna tweak your profile or just understand my last profiles
View attachment 334038

View attachment 334039
Can you attach the excel file?
 
Thanks for this. Is there a way to upload the profiles so you can just load them straight into the programming app?

My 02 I got from a guy comes on way too strong too fast. It needs some fine tuning, people talk about getting a torque sensor like-feel - would like this smoothness with also high power. Any recomm. where to get the profile? Prob more than just the settings outlined above - or will the Nilsson FW deal with those other parameters? This stuff ends up taking a lot of time! I just want a bike that works - the DM01 was pretty good, but looking forward to something more plug and play
 
Thanks for this. Is there a way to upload the profiles so you can just load them straight into the programming app?

My 02 I got from a guy comes on way too strong too fast. It needs some fine tuning, people talk about getting a torque sensor like-feel - would like this smoothness with also high power. Any recomm. where to get the profile? Prob more than just the settings outlined above - or will the Nilsson FW deal with those other parameters? This stuff ends up taking a lot of time! I just want a bike that works - the DM01 was pretty good, but looking forward to something more plug and play
Yup, software lets you load and extract all config using files like I've provided. It may be compatible with latest 1.4.0 firmware.

About power control, take in mind this motor doesn't have any torque sensor (motor only measures if pedals are spinning, not the pressure applied on it). Someone adapted, but is a complex handmade project and, in my opinion after more than 1 year using, actually not necessary if you spend some time tweaking it. At beginning it may appear hard to understand, but trust me, it's more easy than you wonder.

I'm using the uploaded 'flat-curved' kepler profile (usually in mountain climbed paths and country roads because I live so far from the city), which basically set out cadence limit; motor will spin always up to physically maximum RPM it can reach (about 120-150RPM, I guess it depends on battery level) based on weight it have to move and power delivered by controller. If you're going most the time trough the city, you may set for example:

Level of assist - Power (% of maximum amps, 25A for BBS02, 30A for BBSHD)

0 - 0 or 1-2% (1-2% suggested because motor has resistance and it compensates, making it feel more like a conventional bike where there's no ressistance)
1 - 10%
2 - 15% (+5)
3 - 22% (+7)
4 - 30% (+8)
5 - 39% (+9)
6 - 49% (+10)
7 - 60% (+11)
8 - 72% (+12)
9 - 85% or 100%

At low levels (when you are in pedestrian areas or flat roads), power is being increased in short steps, and grows up more when higher is the level (when you are going trough climbs or you want to reach higher speed)
 
hey all..
i think i got a problem.. i installed the new firmware 1.4 and used the karls special setting over here..
some how i get error 30.. and the throtle doesnt respond...
even worse.. bbs-fw tool and the flashing software dont seem able to connect...
any help would be nice.. thx!
 
hey all..
i think i got a problem.. i installed the new firmware 1.4 and used the karls special setting over here..
some how i get error 30.. and the throtle doesnt respond...
even worse.. bbs-fw tool and the flashing software dont seem able to connect...
any help would be nice.. thx!
Have you tried to reflash? It's possible you missed any parameter out when flashed new 1.4. Did you checked properly red mark parameters?

flash_tool.png
 
Back
Top