E-Bike Conversion – Software

e-bike_conversion(pic21)

It’s been a while since I wrote the posts about my electric bicycle conversion project. The bicycle runs fine so far and I finally finished rewriting the software that configures its controller.

I will not make a long post for this so you won’t get bored. Basically I took the original software which also included all required source files and made it look better, fixed many bugs, improved its operation and added a small help file. Now you don’t need administrative rights under windows 8 and 10 to be able to see the available COM ports. The interface looks more tidy and well aligned and also uses better English. Numerous bugs were fixed, regarding error messages and error checking, communication, parameter limits and so on. I found this program as an open source (including all source files) I am providing it the same way.

Be advised! Doing any changes to your controller might lead to damage. I won’t be held responsible for any kind of damage you might induce to your controller, motor, gears, bicycle or yourself. Do what you like at your own risk! Cycle safe and take care of others on the road!

You can download the program HERE. The file keeps getting reported for violation, so it might get blocked again. I just reuploaded it again. I have no idea who and why is doing this. It can’t be shared on WordPress directly, so I might have to look for new sharing service again.

Latest version uploaded on 16.05.2017 with a few updates. Assist level labels now say Assist, not Assit 😀 The current limit is not active when bike is not connected. This allows you to work with your saved profiles even if you haven’t connected your bike.

Compatibility with BBS##B drives has been confirmed by many users now. Luckily for all, Bafang hasn’t changed the communication protocol.

375 thoughts on “E-Bike Conversion – Software

  1. does the software support the bbs02 using the CAN protocol instead of UART? I know it uses a different cable but not sure if software is compatible.

    1. I was afraid it wasn’t. I’m not liking the CAN protocol. I wish I had known this before buying it.

  2. Hey – do you have stock 250w settings file for UK? im on a BBSHD 1000W but i want stock settings – thanks

  3. I connect, able to read flash but when i click write or write flash I have no reaction. After clicking on write flash i click on read and i see old setting with info read flash is successfull. When click on write I should see similar info that shows “Write is successfull” but i don’t see anything, no reaction. Does anybody know how to solve it?

  4. Will your conversion work properly when using Eggrider/Phone to program parameters? Thanks:)

  5. Big thank you to Stepfan penoff for his hard work ,I have a LB-AK-001 Bafang controller.48v 22A.

    With a 750 G62 48v rear hub motor and it works no problem so yes rear hub motors also are compatible but it’s the controller that matters I think .

  6. Hi everyone,

    I have read a lot on programming BBSHD controler and I dit not find anything on :

    keep curent vs % curent on pedal assist. The point is : does the keep curent setting affect the % of the curent limit on pedal assist?

    My first thought is no because what would be the point of increasing the % of the curent limit in each pedal assist until 100 % at level 9. If I am right, then what is the point of having the possibility of changing the % of the “keep curent”.

    The other thing that I would like to have info is :

    What does the “work mode” and what is it related to? Mine is set to : undeterminated.

  7. hi. does it work with radrunner? it shows error opening serial port. always.

    i cant change port becourse its empty.

  8. I have bafang display DP C07, there is only 1-5 assist levels. So how these 1-9levels compare to that 1-5 level system? And does this software work with bafang m400 middrive system?

    1. I don’t if it works with m400. I would say it doesn’t. Those displays work in different ways. I had one that used PAS 1,3,5,7,9. Others use 1-5.

    2. As you could have read in some older posts, Penoffs software works great at least with our two M400 mid drive systems and free (not preprogrammed and locked) 500C displays.

  9. Hi there, i purcahsed the programming cable and connected to the e-bike but when i connect the cable USB to the laptop, there are two light and 1 is green but the other is red. It looks like it is still not fully connected. Infact once i installed the software and try to connect (COM3) says ” file handle is not common handle”, The Heck does it means?

    1. Something is wrong with that cable. That message comes from the COM port library I have used and I don’t know what it means exactly.

  10. When I connect my BBS02 with this purchased cable it seems to connect properly in multiple different USB ports and the COM Port shows correctly in the configuration tool (matches port in device manager) but when I press CONNECT the Controller Info never shows up and the READ/WRITE buttons never become active in the software.

    I have the BBS02″B” controller which I think is the right one for this. I’m using a newer version of windows than the software was originally written for… I tried a Windows 10 and 11 PC… do you think that might be the issue or do you have any suggestions of something I could try? The software seems to load properly on my machines. I get the same results with your software as well as with the other “8funprogrammingsw” software, the bike controller never seems to fully connect. I’m guessing I have some incompatible hardware here somewhere.

    1. The software works fine on Windows 10 and should be also fine on 11. If you see no info loaded when you click the Connect button, this means there is no communication with controller. Either there is something wrong with the cable (incorrect wiring or missing short of the 2 pins for powering up of the controller) or the firmware of the controller is newer and does not support this software.

    2. Thanks for the advice, I did blow the controller some years ago (2018) and had to replace the original with a new one so I’d hazard a guess its probably got new firmware.

  11. Definitions of the parameters and how they work, what they actually do mathematically would be a big help. Tried the software and my initial tune seems to lower the jerk when starting but I am guessing at what is really going on. From my initial experience, it seems that I can make this machine run smoothly and not put me over a cliff unintentionally.

  12. Hello dear Stefan Penoff,
    I started new project, that aims to make modern Configuration&Diagnostics tool for different modern ebikes. Currently I made 1.0.0-alpha version, that has functions like your program – configuring parameters of bafangs with UART, and then I plan to add other kinds of devices (Yamaha, Bafang with CAN, and others). You can see code here https://github.com/andrey-pr/OpenBafangTool and executables& manual here https://github.com/andrey-pr/OpenBafangTool/releases (сurrently there are no readme and normal docs, because its very alpha project). What are you think about this idea?
    I’m looking forward for your response

  13. Anyone tried this on a Bafang brushless 250-watt rear wheel hub motor with 42Nm
    torque, DSP H500 Display and universal V2 Driver? Decathlon Riverside 500E.

  14. Hi, does it work on low-end category ebikes with motor integrated into rear wheel hub? thanks

    1. Yes with correct controller it works you can program it .that would be a LB AK 001 Controller

    2. I don’t think so, but if someone else tried it, they can confirm.

    3. It works I have been testing my bafang rear hub 48v 750watt motor for months

    4. With this controller but this 18A I have the 22A version but it doesn’t matter both are programeble

  15. Tried this today on my BBSHD.
    Worked great. Turned down the current. Now it is smooth. Made one snowmode with higher current and low speed.

    1. Yes iI can confirm it works I have it I just last night changed the firmware settings with bafang rear hub motor 750watt 48v with controller LB-AK OO1 22A 48v

Leave a reply to Philip J Wunderle Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.