Programming the Bafang Middrive BBS01+BBS02

astmacca said:
that at least dont break the controllers straight away.
This is getting really crazy to the extend that you have to watch how to use the sytem not to break it. In a way this is not realistic for normal users who don't know of the poor controller design.
To keep your cadence close to the motor rpm is not a normal mindset for the average user.
 
Kepler said:
The standard control strategy makes no sense to me. It tends to force you into into a harder gear and to spin the cranks slower if you want to maintain your assist. What is the point in that?
Thats exactly what happens when I use the bike in default settings. So in a way the design makes you molest your controller.

Update: just tested the cadence versus motor rpm and it shows that when going to low rpm, when taking a higher gear for the same speed, increases the usage(in my case) from 80W to over 350W. Also starting from zero and pushing the throttle increases the usage far over 400W, depending on the gear BTW.
But this should be a problem to all the torque driven motors also. So how does Bosch and others do/protect this?
 
pjgold said:
However a BBS01 100%=80 rpm and 75%=60 rpm
I measured 0.85 rather than 0.8 but I didn't go past 50%. Interestingly at Limitspd% 100%, cadence is not controlled but depends on the motor characteristics. I've had assist with cadences as high as 97 rpm but it is battery voltage dependent and drops as the battery discharges. Operating at full power I've found the cadence vs power data to be higher than published by Bafang. However, it is lower than desirable as it runs out before the average human.
 

Attachments

  • BBS01CadenceVsPower.png
    BBS01CadenceVsPower.png
    8.7 KB · Views: 4,171
Dear Ladies and Guys,

very Interesting post... but on page 5 I stopped to read for a while....

Coz:
I am really curious if anybody find the right 5pin (or 6pin) female connector to connect to the controller ?

Or is there already a finished solution to buy ?

Looking foreward to hear good news.
 
In response to Freeride's comment of 34:34 gearing, you are spot on. As I see it, this is clear example where bafang is completely unaware of how bikes are ridden, which is a good argument for custom programming.
With a 36 tooth front ring and an 11-36 rear cassette I can go as fast as I want and get up any hill in the way. 46 and 48 tooth rings are way too big. I could see going to 40 tooth max if I had a long flat commute but at some point the bike just turns into a scooter and a hub motor may be a better option. Hopefully bafang will offer smaller rings soon. Using the adapter compromises the chain line too much. I will say the 48 tooth is perfect for 20" wheels. I have build one bike with 20" wheel and was happy to have the 48 tooth for that bike.
 
I disagree. I think the 48T stock chainring can be a good fit for a 26" Bicycle wheel . (Most common size)

I have no problems climbing 12%+ hills with the 48T on the front and a 32T on the rear, and in fact, it does so at about 10-12 mph. This is at 100% full throttle, mind you. If you are trying to use 40% assist going up that hill, then yes, you will get bogged down. It's all about how you choose to ride. For me, I ride with PAS assist most of the time, but use the throttle on steep hills, because let's be honest, I love to get the "What the F?" look from cars and pedestrians as I ride up a steep-ass hill and I'm not pedaling. :mrgreen:
 
Love the "WTF" uphill without a peddling.
We all have our own natural cadence so pick your front ring accordingly.
Personally I want my electric bike to operate a normal bike speeds. which in my experience typically is 6-20mph. Bellow is a little something from Sheldon Brown. I'm sure most are familiar with the websight. I used his gear calculator to compare 3 chain rings, 34,40 and 48 tooth with 11:34 cog set.
I should add. The majority of my miles are in an urban area with lots of hills on a loaded cargo bike.
I should also add. I secretly like to ride fast and I do have one bike with a 48 tooth set up on a 29er. It flies and is a blast.

Gear chart using MPH @ 80 RPM
For 26 inch (nominal) tire with 170 mm cranks
With Custom Sprocket(s) Cassette
34 40 48
11 19.1 22.5 27.0

13 16.2 19.0 22.8

15 14.0 16.5 19.8

17 12.4 14.6 17.5

19 11.1 13.0 15.6

22 9.6 11.3 13.5

24 8.8 10.3 12.4

28 7.5 8.8 10.6

32 6.6 7.7 9.3

34 6.2 7.3 8.7

upon posting this chart I see it makes little sense. check out this link if interested
http://sheldonbrown.com/gears/internal.html
 
Ok lets get back to programming.
Can anyone help? Is it possible to change the delay caused by the brake cutout?
I wired one of my ebrake switches to my shifter so that it cuts power when I shift. It works ok but the delay is just a little too long.
Tom L. put up a diagram for using the throttle as a pause for shifting but I want to hang onto my throttle.
Thanks
Joe
 
I'm sorry to disturb again..

I'm new to this topics, and happy to find this forum here...Lots and lots of good Informations...

My question: Did anybody find the right connector which fits to the Bafang male 5pin connector ?

I already write directly to Bafang (very friendly :wink: but did not get any aswer yet

Thanks

Lars
 
Hi Snowranger,

this is kind of suboptimal. I don't like to buy a cable and cut it.

What I'm seraching for is a normal female connector, solder, crimp doesn't matter.

I learned the OD should be 6mm and the distance Pin to Pin is 2.5 means 2.54 i guess :)

Damned shit, there should be a connector on the market which fits...

If anyone knows, come on, out with it...

I will try to find one... If sucess, I let you know...

Thanks
 
jpo said:
In response to Freeride's comment of 34:34 gearing, you are spot on. As I see it, this is clear example where bafang is completely unaware of how bikes are ridden, which is a good argument for custom programming.
With a 36 tooth front ring and an 11-36 rear cassette I can go as fast as I want and get up any hill in the way. 46 and 48 tooth rings are way too big. I could see going to 40 tooth max if I had a long flat commute but at some point the bike just turns into a scooter and a hub motor may be a better option. Hopefully bafang will offer smaller rings soon. Using the adapter compromises the chain line too much. I will say the 48 tooth is perfect for 20" wheels. I have build one bike with 20" wheel and was happy to have the 48 tooth for that bike.
My citybike has a 38 front chainwheel and a 17t rear wheel. With the Shimano Nexus 8gear it runs beautifully anywhere with a 250W-BBS01. Wheel is 28".
 
jpo said:
Ok lets get back to programming.
Can anyone help? Is it possible to change the delay caused by the brake cutout?
As far as I can tell shut down is different but start up is the same logic whether stopped through ceasing pedaling or brake operation. There are 3 settings that control pedal assist start up. Startup Degree(Signal No.), Slow-Start Mode(1-8) and Start Current(%).
Startup Degree(Signal No.) - The number of sensor steps before the start up commences. The maximum accepted is 20. 24 is a full pedal revolution. Too few makes start up occur with too slight a pedal movement. Four is OK for me but I change gears under load.
Slow-Start Mode(1-8) - Controls how quickly the power ramps and how much it overshoots. I suspect it might be the derivative parameter of a PID control algorithm which if it is will also interact with the Keep Current(%) and Current Decay(1-8) settings. 1 is the slowest ramp and 8 the fastest but overshoot can be substantial. I'm trying 1 at the moment to maximise smoothness.
Start Current(%) - Not tested but if it is the same as the throttle, which I did test, it is the minimum current at initial switch on. I've got it low but I wonder what happens if this is set higher than the Limit Current(%) on the Basic tab. With the throttle, Limit Current(%) on the Basic tab sets the maximum and Start current(%) on the Throttle Handle tab sets the minimum. If the minimum is set higher than the maximum then it starts at maximum so setting this high may mean full power at switch on which is perhaps what you want but would make take off less smooth.
 
pjgold said:
The limited percent rpm is a direct percentage of the max rpm of the BBS unit which is...
120 rpm for a BBS02
80 rpm for a BBS01

So on a BBS02 75%=90 rpm and 67%=80 rpm
However a BBS01 100%=80 rpm and 75%=60 rpm

Thanks
Andrew
 
bgt said:
astmacca said:
that at least dont break the controllers straight away.
This is getting really crazy to the extend that you have to watch how to use the sytem not to break it. In a way this is not realistic for normal users who don't know of the poor controller design.
To keep your cadence close to the motor rpm is not a normal mindset for the average user.
Storm in a tea cup. The motor is perfectly usable and reliable without having to worry about your cadence. As long as the motor isn't labouring in a gear that is too high you'll be fine.
 
jpo said:
Ok lets get back to programming.
Can anyone help? Is it possible to change the delay caused by the brake cutout?
I wired one of my ebrake switches to my shifter so that it cuts power when I shift. It works ok but the delay is just a little too long.
Tom L. put up a diagram for using the throttle as a pause for shifting but I want to hang onto my throttle.
Thanks
Joe

You could use a couple of low forward voltage drop Schottky diodes (Vf= 0.2V or less) to parallel up the throttle with any of Kepler's circuits. The throttle does have a shorter cut out than the ebrake.

Note this is untested but should work:
IxqiTvW.png
 
I like the shorter pause but there is one issue. Say I'm using throttle and peddling at the same time. Would this override the current throttle position?
 
Tom L said:
bgt said:
astmacca said:
that at least dont break the controllers straight away.
This is getting really crazy ...
Storm in a tea cup. The motor is perfectly usable and reliable without having to worry about your cadence. As long as the motor isn't labouring in a gear that is too high you'll be fine.
I'd mostly agree because phase current limiting is rare, it is unnatural to use too low a cadence and it has to be to be too slow for quite a while to overheat. It is more of a problem with hub motors because motor speed is only related to cadence by the gear ratio and even there the average operator will never have a problem. You are much more likely to be "labouring in a gear that is too high" when riding off road and people who use use full throttle while going slowly up steep hills overheat hub motors all the time. I've done it which prompted me to try and understand what had gone wrong. One thing I've noticed with electric bikes is that the novice is able to do things that only fit and experienced riders can do on an unpowered bike so the novice can easily get into situations that they wouldn't normally experience until they had become more skilled. Keeping cadence up is something that an experienced rider does without thinking to maximise their own pedaling efficiency. With the BBS02 I suspect "labouring in a gear that is too high" is the explanation for this failure:
hie2kolob said:
Just recently my second controller went belly up while riding along the Wasatch Mountain range... I used only the first two preset PAS levels(out of the nine PAS level setting) PAS1 and PAS 2 (current 52% and 56% respectively) with no throttle in the ride... The motor enclosure was noticeably hot.
particularly as the controller failed twice. This is, of course, speculative. In this case it is the controller that has failed rather than the windings overheating but being built in, the controller is heated by the motor and the extra heat generation in the controller depends on the current and the voltage drop across the FETs. Voltage drop is usually high when there is excessive phase current. But it may be that there is phase current limiting built in and none of this matters, Em3Ev said there isn't but Kepler suggested there is.
 
jpo said:
I like the shorter pause but there is one issue. Say I'm using throttle and peddling at the same time. Would this override the current throttle position?
Throttle takes precedence over pedal assist and settings on the Pedal Assist tab do not affect throttle behaviour.
 
I finally have the parts for the programming cable on the bench but want to confirm wiring before moving ahead.
On page 12 pexio does a nice job and showing us not so technical folk how to build a programming cable. My parts look just like the one's in the picture. Then on page 20 bgt shows that sometime colors are not coordinated. Is there any risk if the ttl converter is not correctly wired to the new connector provided by tomjasz? last thing I want to do is short out my controller.
I hope increase pas and decrease throttle to discourage throttle. ideal power in PAS max continuous 500-700 watts max throttle 700-800. I also appreciative Cellman's experience. Currently using a CA PAS max continuous is abour 300 watts and throttle will do 1000+.
thanks
Joe
 
Yes there is a big risk. You could end up with the full battery voltage on the 5V serial communications lines. This will render your controller useless.

Make sure you know what you are doing.
 
jpo said:
I finally have the parts for the programming cable on the bench but want to confirm wiring before moving ahead.
On page 12 pexio does a nice job and showing us not so technical folk how to build a programming cable. My parts look just like the one's in the picture. Then on page 20 bgt shows that sometime colors are not coordinated. Is there any risk if the ttl converter is not correctly wired to the new connector provided by tomjasz? last thing I want to do is short out my controller.
I hope increase pas and decrease throttle to discourage throttle. ideal power in PAS max continuous 500-700 watts max throttle 700-800. I also appreciative Cellman's experience. Currently using a CA PAS max continuous is abour 300 watts and throttle will do 1000+.
thanks
Joe
If you connect Brown (P+) to anything other than Orange (PL) expect to wreck your controller in an instant. Maybe it matters if you connect the wrong thing to Black (GND). It doesn't do any harm if you get Green (TXD) and White (RXD) back to front but it will not work.

Tom L said:
Yes there is a big risk. You could end up with the full battery voltage on the 5V serial communications lines. This will render your controller useless.

Make sure you know what you are doing.
Yes. As I recall, it was your early investigations that discovered this for the benefit of those of us that have followed.
 
Rider2000 said:
this is kind of suboptimal. I don't like to buy a cable and cut it.

What I'm seraching for is a normal female connector

I will try to find one... If sucess, I let you know...
Rider2000,

After 6 months and 24 pages of this thread, with the participation of plenty of smart, experienced people, the extension cable is the best workaround so far. We'd all like a mating connector, and the failure to find one isn't for lack of trying.

Good luck with your searches, and if you find something it will be a valuable contribution to the thread, but at this point I think it's fairly certain that any time you spend searching will just result in a corresponding delay in connecting to your controller.
 
Hi Cycborg, all,

yes, i have no doubts on what you said. But I'm also sure there is a better solution outside. The Chinese guys also cook with water...

I did not get my Bafang BBS01 engine yet, hope it arrive soon :) So I have time to think...

Do you, or anybody, know if there are two differnt Versions of engine (one older and the new ?) and what are the differnces ?

I read there is one green connector and one black. But I'm not sure what Version is what, and if this is only related
to the different Display C961 / C963 or the different engine Version.

I guess the female connector on the engine is always this black 8pole one, right ?
(Strange, normally always male connectors on the Device side.....however )

Is the connection like following ?

Engine --> Cable to display --> Display
Engine 8pole female black -->8pole male (black/green) ------6pole female (black/green) --> Display 6pole male (green/black)

And you guys are connect to the green 6pole female (this OD6mm, 2.5mm pin-pin distance) cable side, coz its easy to reach it, right ?


Thanks !
 
They phased out the older black connectors almost a year ago. They also updated the 25A controller to a 9FET, vs the older style 6FET.

Unless you are buying a used motor, you will likely get the Green Connector and a 9FET controller with the BBS02 kit.
 
Back
Top