Programming the Bafang Middrive BBS01+BBS02

Jakeme said:
But that's different from what you said. Throttle isn't allowed without pedaling, which is different from a bike moving (it can keep moving if you stop pedaling).
My interpretation of those rules is that throttle isn't allowed at all.

Yes. I read more law about e-bikes and there was clearly mentioned that e-bike motor can only be running while pedalling so only way to fulfill this demand is to take throttle off from my e-bike, which isn't an option :)[/quote]
Same here... But at the same time the chance of getting caught is very low.
 
gridlok said:
I wrote up this brief summary on my website and I'd love any input on making more accurate.

Programming The BBS02 Without Frying Your Controller And Losing Your Sanity

I’ve watched this thread on Endless-Sphere and spent a few hours building several of my own cables using different USB\Serial adapters bought on ebay and BBS02 extension display cables from EM3EV. If you want to remain sane and not waste a lot of your life beating your head against the wall I would recommend you just buy a cable for $25 from Matt at EMPowered Cycles. It is by far the cheapest programming cable have seen for sale, they are purchased direct from Bafang and they seem to work flawlessly with Windows 7/8/8.1. It is plug and play not ‘plug and pray’ like your cheap crappy homemade cables will be.

An important note, programming your controller will immediately void any warranty from Bafang. Don’t expect to make ANY changes to your programming and expect ANY dealer to refund or replace your blown controller, EVER. It’s just not fair to them.

Manufacturers of ebike motors walk a delicate line between making their drive motors configurable (even at risk to bad variables being entered) and completely locking down the system. Bosch has chosen to go the latter route and does not allow anyone other than Magura in the US to change anything on the units other than tiny changes like increasing or decreasing the wheel size slightly to account for different sized tires on the same sized rim. Bosch will never get a dime of my money.

There are 2 schools of thought on programming the BBS02. One school is represented by Paul (cellman) from em3ev who believes that you should make only minor changes to the software such as

Allow for 100% throttle at any PAS level
Allow throttle at PAS level 0 so you don’t have to disconnect the PAS entirely to use throttle only
Low voltage cutoff
Amps to the unit

Quotes from Paul about the much contested PAS system

“The PAS level should be used to set the pedal cadence. Just because it’s set to 9, does not mean it will pull more power (although it likely will of course), but if you pedal fast enough and hard enough to do much of the work, the kit will not provide much power. PAS works like a switch on the BBS02. It does not adjust as you pedal faster or slower. When you set the PAS level it fixes the speed and it does not want to rotate at a speed much lower than that, or even accelerate smoothly to that speed.”

The other school of thought held by many members of Endless-Sphere is that you should be able to change most any feature or variable you want to although we are literally wandering around in the dark since it’s not even clear what many of the variables even do. It is quite common for people to set the Limit Speed % on every PAS level to 100%. This seems to be a good way to destroy your controller and really drives Paul crazy. There is no programming manual and while Bafang does not prevent you from programming the unit, they certainly don’t seem to be encouraging it either. It seems clear that they never intended for the end users to be programming their own controllers, only ebike ‘dealers’.

Many people dislike the way the PAS system works, as the PAS level is basically a switch to set the pedal cadence and assists MORE the LESS you pedal and assists LESS the MORE you pedal. This seems to be counter intuitive to many who want the unit to offer more power the more you pedal. This means if you want the drive unit to provide more power on a hill you actually have to shift UP not DOWN to select a higher speed and a lower pedal cadence (or lower the PAS system to select a lower cadence as well as a lower power setting). This is not only counter intuitive, but also risks controller overheating as the biggest problem that I’ve found with the BBS02 is that they tend to overheat and fry mosfets when the pedaling cadence is too slow and the hill is too steep. The best way to keep your controller from overheating is to fit the right size chainwheel on it for the hills you plan to climb and consider upgrading the crappy mosfets the controller comes with.

I follow Paul’s school of thought, mostly because I buy from him and I trust his judgement. He has spent thousands of dollars replacing customers who reprogrammed their controllers, then fried them and expected free replacements. I just don’t karmically want to be one of those people.

To program the unit you’ll have to plug-in the USB cable (but don’t hook it up to the bike yet) and wait a few minutes. Then browse to the device manager in CONTROL PANEL->SYSTEM->DEVICE MANAGER and look for the com port under PORTS (COM & LPT) as shown below. If you can’t find it just flail around awhile, it will magically appear or maybe you’ll just end up destroying your computer.

View attachment 4

Once you figure out the com port you will need to download this file, then rename it to .zip and then extract it somewhere convenient. You’re looking for the file controllerst.exe . Make a shortcut to your desktop, that will make it easy to find when you need it. Load that program and then TYPE in the com port that you discovered in the device manager. For this example it would be COM4.

View attachment 3
Looks like a drop down box right? But it is not. You will have to type in your com port you discovered in the device manager.

The controller Info should fill in under the com port but the settings on the left won’t come up till you hit the READ button (not the READ FLASH button).

Now hook up the bike and the battery to the BBS02. Plug the USB wire into the green display port adapter, make sure your arrows line up, the connector is keyed.

Once you hit the READ button the setting for your controller should fill in the three different pages, BASIC \ PEDAL ASSIST \ THROTTLE HANDLE

There is a lot of different settings you can mess with as shown in the thread on ES about programming the controller. Here are the settings that my most recent BBS02 come from Paul pre-programmed with.

View attachment 2
I change the wheel diameter to 18 so that the km/h reads as mph, change anything other than the Low Battery Protect and Limited Current at your own risk.


View attachment 1



You can ignore the speed limited command here as in the previous page it is set by display’s command.


I have lots of hours on these controllers with no failures, so these are the settings I would use. The only settings I would change are the Low Battery Protect (v) which is useful if you are using a pack without BMS and limit current which will limit the current to the controller in Amps. You should match the limit current to the Continuous Amps rating on your BMS. Be aware that often times Chinese battery companies tend to exaggerate their continuous Amps ratings (except for Paul), so when in doubt, use a lower number and slowly work your way up. If you have a temp sensor in the controller (as shown here in step 12) you can get a pretty good idea about how hot it’s getting in there.

For anyone who cares here is a more technical description of the battle going on inside the controller by someone who is a lot smarter than I am on ES (probably better looking too).

Without phase current limiting there is no way to guarantee a motor will not overheat. You rely on the operator keeping the motor at a reasonably high rpm or minimising voltage applied to the motor at low motor speeds. The best a seller can do to avoid overheating is to keep the Limitspd% low so that little current is applied at low cadences but for an operator who avoids low cadence for more than a few seconds this is bad because the motor will provide no power at normal cycling cadences. An operator that keeps pedaling cadence in normal ranges, above about 60 rpm, with the BBS01 will never overheat the motor but an operator that lets motor speed drop below this risks overheating the motor with a wide range of controller settings. This would go away with phase current limiting but the BS0X doesn’t have that feature. The seller suffers potential warranty claims if the Limitspd% is set high but the operator suffers poor performance if the Limitspd% is set low. The current to the motor is also affected by “Keep Current(%)” and Current Decay (1-8)”.

Basically it means if you are climbing a hill you need to have a high cadence level if you want more power and your controller to not fry. I suggest using the thumb throttle on hills (not just the PAS) and shift into a low enough gear that is either too fast (or almost too fast) to keep up with pedaling. As long as the motor is spinning pretty fast the controller should never burn out regardless of how steep the hill is.

Here is another trick to bypass the speed limiting on the BBS02 from the thread on ES

For effective unlimited speed, change your wheel size to make mp/h show as km/h.
I.e. if you have a 26 inch wheel, set it as 16 inch wheel in the display (i.e. 26/1.61 = 16 – 1.61 is also roughly the same ratio as km to miles, as in 26km is 16miles). After making this change, then 25km/h on the display will in actual fact be 25mph in reality. No BBS unit is capable of 50mph, so it’s effectively now unlimited (or more accurately, speed limited by max current).

For most fatbike tires you would want to set the tire diameter to 18 (the 26″ tire is closer to 29″ because of all that extra rubber. 29/1.61 = 18)

Thanks to everyone who spent countless precious hours of their life trying to figure out how to do this and leaving behind a heart-breaking 32 page thread. Our knowledge is built on your blood, sweat, and tears … and your piles of dead controllers.

For some totally awesome pictures and actual links that I'm too lazy to add here go to https://electricfatbike.wordpress.com/2015/03/17/programming-the-bbs02-without-frying-your-controller-and-losing-your-sanity/

Ride On.

Nice summarisation, but I think you have wrong settings according to your pictures. Throtle is better set to current mode, then start currentto 1%, and if you wanna have full power on throtle designeted to 9 (it takes power and speed setting from Basic tab) Also on peddal assist is not good to have 100% starting power. Keep current over 60%, your 20% setting is good when you wanna save battery, it means when you reach setup caddence, motor will lower power to 20% and you must to produce 80% to maintain cruising speed. I did lower also start and stop time. Cheers
 
Jakeme said:
opperpanter said:
Where do you live (please add to your profiles).
Sounds a bit weird that legal requirement, but most ebike rules are weird :)

Finland. Finland is a "police state" :lol: We have regulations and limitations to almost every nice thing.

Short version from the law about e-bikes;

1. Motor max.250W
2. top speed 25km/h (with assist)
3. e-bike must not get moving without pedalling


Not possible to do this. Bafang is not constructed according EU regulations. You can just turn off throtle completely by setting designated assist to 0 and setup PAS0 power to 0%

Anyway dont get that 250W limitation as also Bosch motor has 500W (maybe only while accelerating) Bafang can go over nominal wattage for as long u want (or till overheat ;))
 
DaDo.Bzz said:
Jakeme said:
opperpanter said:
Where do you live (please add to your profiles).
Sounds a bit weird that legal requirement, but most ebike rules are weird :)

Finland. Finland is a "police state" :lol: We have regulations and limitations to almost every nice thing.

Short version from the law about e-bikes;

1. Motor max.250W
2. top speed 25km/h (with assist)
3. e-bike must not get moving without pedalling


Not possible to do this. Bafang is not constructed according EU regulations. You can just turn off throtle completely by setting designated assist to 0 and setup PAS0 power to 0%

Anyway dont get that 250W limitation as also Bosch motor has 500W (maybe only while accelerating) Bafang can go over nominal wattage for as long u want (or till overheat ;))
Limitation is 250W nominal. Bosch is sold as 250W nominal, in reality will be higher, as with almost all motors.
 
DaDo.Bzz said:
Jakeme said:
opperpanter said:
Where do you live (please add to your profiles).



Not possible to do this. Bafang is not constructed according EU regulations. You can just turn off throtle completely by setting designated assist to 0 and setup PAS0 power to 0%

Anyway dont get that 250W limitation as also Bosch motor has 500W (maybe only while accelerating) Bafang can go over nominal wattage for as long u want (or till overheat ;))
Limitation is 250W nominal. Bosch is sold as 250W nominal, in reality will be higher, as with almost all motors.

So then what meaning has nominal wattage? How is maximum defined in EU?
 
Any advice how to get throttle work smoothly with normal assist? Now when I use throttle I loose pedealling assist for a couple of seconds before the throttle kicks in. This is little bit annoying because when I use throttle I need more power (uphill roads etc)
 
Jakeme said:
Any advice how to get throttle work smoothly with normal assist? Now when I use throttle I loose pedealling assist for a couple of seconds before the throttle kicks in. This is little bit annoying because when I use throttle I need more power (uphill roads etc)

Try setting "mode" in the throttle tab to current and set "start current" to 1% and see if that works.
 
Jakeme said:
Any advice how to get throttle work smoothly with normal assist? Now when I use throttle I loose pedealling assist for a couple of seconds before the throttle kicks in. This is little bit annoying because when I use throttle I need more power (uphill roads etc)

On speed setting it just behive as you described, especially if you have som speed when you press the throtle. With current mode it has good response(sometimes a short delay, but accepting), but is less sensitive, you can not fine trim speed even on start current 1%

What you can try is to change throttle potentiometer to logaritmic, or we need to wait to firmware update.
 
I am trying to figure out why on throttle it only show a maximum of 250W? The throttle is set to current with designated assist 9.
Also I only get a maximum of 750W display when I am using max assist. My settings are pretty much standard, nothing unusual. I have a battery that in theory is capable of 30A continuous (20ah) and max current is set to 25A.

Any thoughts?

thanks.
 
datman said:
I am trying to figure out why on throttle it only show a maximum of 250W? The throttle is set to current with designated assist 9.
Also I only get a maximum of 750W display when I am using max assist. My settings are pretty much standard, nothing unusual. I have a battery that in theory is capable of 30A continuous (20ah) and max current is set to 25A.

Any thoughts?

thanks.

And on the basic tab youhave 100% power under PAS 9? It is strange my shows 1150W when full battery.
 
DaDo.Bzz said:
datman said:
I am trying to figure out why on throttle it only show a maximum of 250W? The throttle is set to current with designated assist 9.
Also I only get a maximum of 750W display when I am using max assist. My settings are pretty much standard, nothing unusual. I have a battery that in theory is capable of 30A continuous (20ah) and max current is set to 25A.

Any thoughts?

thanks.

And on the basic tab youhave 100% power under PAS 9? It is strange my shows 1150W when full battery.

Yes
 
datman said:
DaDo.Bzz said:
datman said:
I am trying to figure out why on throttle it only show a maximum of 250W? The throttle is set to current with designated assist 9.
Also I only get a maximum of 750W display when I am using max assist. My settings are pretty much standard, nothing unusual. I have a battery that in theory is capable of 30A continuous (20ah) and max current is set to 25A.

Any thoughts?

thanks.

And on the basic tab youhave 100% power under PAS 9? It is strange my shows 1150W when full battery.

Yes

Then return back to seller.
 
hello, i recently had a programming cable from empowered cycles for programing my bbs-02 750 watt
now programmed some settings and everything works.

suddenly my setting changes to the picture underneath when i click on read. but i programmed some other settings.
i can program the pedal assist, and the throttle handle but the basic setting keep changing.
and also automatically change to motor phase instead of external wheel
Schermafbeelding 2015-04-02 om 19.33.31.png


and this is what i write into the controller, but when i read i get the picture above
Schermafbeelding 2015-04-02 om 12.42.50.png

can somebody help me ? or maybe have a original file of the 750 w 48 volt bbs-02.

thanks in advance. :)
 
Just make sure you are definitely hitting the read button before making the assumption. I am sure most of us have made changes, disconnected the programming lead, plugged it back in and wondered what had happened to the new settings only to realize they were looking at the original settings that the program holds when you first start it.

If you are positive you are making the change, writing it out, and then when you read it again, it has changed, then it might be one of the setting you are making is out of range. I would start with setting the current limit back to stock.
 
ralphclaes1@gmail.com said:
hello, i recently had a programming cable from empowered cycles for programing my bbs-02 750 watt
now programmed some settings and everything works.

suddenly my setting changes to the picture underneath when i click on read. but i programmed some other settings.
i can program the pedal assist, and the throttle handle but the basic setting keep changing.
and also automatically change to motor phase instead of external wheel
View attachment 1


and this is what i write into the controller, but when i read i get the picture above


can somebody help me ? or maybe have a original file of the 750 w 48 volt bbs-02.

thanks in advance. :)

So it could be faulty memory.

Anyway why you wanna have 100% on pass 5?
100% rpm is not good on every PASS then motor still tries to spin on max and you can not cruise. Set it between 52-65 (I have 54% on 1 and 2, 60% on 3 an 4 and 100% on 5, have 5 PASS kevels setup) on low PASS modes.
 
yes, now i realized that 70 percent speed is about right. :)
but now i can't program the speed and assist anymore.
only the throttle settings are adjustable :(
 
Is there a way to problematically change the rotation to reverse direction ?
 
tahustvedt said:
vvvv said:
Is there a way to problematically change the rotation to reverse direction ?

Not via software, but why would you do that? It would just spin around in the freewheel.

I want to install it on a wheelchair like system. Reverse gear would help a lot. Does the controller allow to change the direction?
 
As tahustvedt mentioned, the freewheel inside will prevent reverse drive. Because of the freewheel it can only provide drive in one direction.
 
I've been looking very hard at wheel chair systems. There is an EU site with a fellow that has created one on the best wheelchair builds I have seen. BUT very expensive build. Excellent start point and goal. http://www.wheelchairdriver.com

I've seen that a number of decent hub drive builders have wheelchair systems. I think my first chair will be a hub drive. It means being able to configure a fairly wide range of existing frames. I hope I can have an alterain, but that a big build. I think BBS0x would be a poor choice, and it's my favored eBike conversion kit.

Companies like Magic Pie, with a good rep have wheel chairs conversion systems. Decent parts, reasonable support.

https://www.youtube.com/watch?v=-LvxnLkqlfU

I'm on the path, within 5 it will be my transport. Everything I learn is geared towards a chair with the most mobility. Li ion, LifePO4 technology will change the face , especially for those of us needing assistance.
 
pexio said:
fingret said:
... Could someone be kind and give me ebay-links to the things I need to make the connection? I bet there are more people than me who does not want to order things that dont work....

Here's how I built a programming cable. It's probably not the cheapest but it's pretty easy and straightforward (meaning hard to mess up!). First, I ordered the genuine Bafang Display Extension Cable that satcamel posted about back on Page 8. This is the most expensive piece but ensures that the connectors will fit without having to modify or substitute or otherwise jury rig a connector. Here's what it looks like when it arrives from Germany (Update - the Bafang Extension Cable can now be purchased from several sources - check newer pages of this thread for the latest info):

View attachment 5
Next, I ordered this USB-to-TTL converter from Amazon. Others have used similar converters from eBay and other vendors. I like this one because the circuit board is built into the USB connector and it has a nice cable attached. This converter uses the PL2303HX chip which, as aushiker noted upthread, means you can download the ProlificUSA drivers for Windows. Here's what the converter looks like:

View attachment 4
Now the fun begins. On the Bafang Display Extension Cable, you need to cut off the connector that you're not going to use. That is the MALE connector (the one with the pins). Then trim back the insulation to expose the individual wires. You will see 5 wires: Black (GND), Green (TXD), White (RXD), Brown (P+), and Orange (PL). Here's what the Bafang cable looks like now:

View attachment 3
The USB-to-TTL converter has 4 exposed wires: Black (GND), Green (RXD), White(TXD), and Red(VCC). Cut off the individual TTL connectors and then cut off the Red wire completely as it will not be used. Here's what the USB-to-TTL Converter looks like now:

View attachment 2
Now all you have to do is a little splicing. Between the Bafang Cable and the USB Cable, splice the Black to Black, Green to Green and White to White. Lastly, on the Bafang Cable, splice together the Brown and the Orange. This jumpers PL and P+ for power to the Motor Controller. (Update - cautionary note from Ken Taylor downthread: "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.") I soldered the connections and used heatshrink tubing but use whatever splicing/insulation techniques you prefer. Here's a pic:

View attachment 1
Here's a pic of the completed cable:


That's it! Follow the instructions posted by others upthread to download and install the Bafang software and you're good to go. Have fun!
I followed these steps in every little detail, but it didn't work.
In my case I had to connect the White to Green and Green to White (RX to TX and TX to RX) to make it work.
Could be depending on the extension cable you have? I have the long one from em3ev.
 
Guys, pls. dont spoil this thread with questions: "My usb to ttl is not working" There is lot of sites on internet for this.

You can buy 3.3 or 5V, works for both. And dont speculate on tx and rx, if it wont work on first try, just swap them. Just short first pin 3 and 5 carefully as there is battery voltage and you would get also sparks (mine is doing so). There is lot of usb to ttl convertors on net, you would find for sure when you look for usb to ttl for raspberry pi. Mine found automatically driver even in Win XP!

http://www.rlx.sk/en/cubieboard-cubietruck/2097-usb-to-ttl-serial-cable-debug-console-cable-for-raspberry-pi-adafruit-954.html
 
Back
Top