This firmware is intended to replace the original Bafang firmware on the BBSHD motor controller and can be flashed using the standard programming cable. Almost all functionality of original firmware has been reimplemented and more special features
has been added.
This firmware is compatible with all displays that works with the original firmware. A custom configuration tool is provided since BafangConfigTool is not compatible due to a different set of supported parameters.
Supported Hardware (v1.0.0)
BBSHD Controller revision 1.4 and 1.5.
The release contains two different firmware files, one for 1.4 and one for 1.5, you must flash the correct version or it will not work.
1.4 -> STC15W4K56S4
1.5 -> IAP15W4K61S4
Do not flash on any other revision without access to the original firmware (for that revision) to restore or you may brick your controller. If you have a bricked controller of an older revision, please proceed and let me know of the outcome.
It is a good idea to have access to the bafang original firmware files in case you want to roll back for any reason.
Download & Install
- A bit more power without hardware modifications! (max 32A).
- No upper voltage limit in software, can by default run up to 63V (maximum rating of components).
- Support lower voltage cutoff for use with e.g. 36V battery.
- Smooth Throttle/PAS override.
- Optional separate set of street legal & offroad assist levels which can be toggled by a key combination.
- Support setting road speed limit per assist level.
- Support setting cadence limit per assist level.
- Support cruise assist levels (i.e. motor power without pedal or throttle input).
- Display motor/controller temperature (shown in range field on display).
- Use of speed sensor is optional.
- Use of display is optional.
- No battery SOC calculation implemented yet, set display to show battery voltage instead.
- No range estimation, the range field on the display will show motor temperature instead.
- Combining high motor power with low speed limit may cause jerkey behaviour when approaching speed limit (not usually an issue).
- Low voltage cutoff is a bit crude, it does not limit power when approaching LVC.
When limit has been hit controller is disabled and needs to be restarted by power cycle.
- Reporting of some motor technical error codes is missing (e.g. current sense resistor and phase line errors).
To give you a hint of available options.