Giter Club home page Giter Club logo

bbshd-fw's Introduction

BBSHD/BBS02/TSDZ2 Open Source Firmware

GitHub all releases GitHub release (latest by date including pre-releases) GitHub

This firmware is intended to replace the original Bafang firmware on the BBSHD/BBS02 motor controller. Almost all functionality of original firmware has been implemented and additional features have been added.

This firmware is compatible with all displays that works with the original Bafang firmware. A custom configuration tool is provided since BafangConfigTool is not compatible due to a different set of supported parameters.

The firmware is also compatible with the TongSheng TSDZ2 controller but requires a custom made cable in order to interface with Bafang compatible displays.

⚠️ Warning: The firmware should NOT be flashed or configured while the eBike battery is charging!

Download
https://github.com/danielnilsson9/bbshd-fw/releases

Install
https://github.com/danielnilsson9/bbshd-fw/wiki/Flashing-the-Firmware

Configure
https://github.com/danielnilsson9/bbshd-fw/wiki/Configuration-Tool

If you find this project useful, consider sending a small donation to fund further development.

Known Issues

  • ⚠️ Unstable on BBS02 controllers!

Highlights

  • ✅ A bit more power without hardware modifications! (max 33A).
  • ✅ 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).
  • ✅ Thermal limiting gradual ramp down.
  • ✅ Low voltage gradual ramp down.
  • ✅ Voltage calibration for accurate LVC and low voltage ramp down.
  • ✅ Display motor/controller temperature on standard display.
  • ✅ Use of speed sensor is optional.

Config Tool

Supported Hardware

BBSHD

Revision MCU Released Comment
V1.4 STC15W4K56S4 ~2017 V1.3 printed on PCB, sticker with 1.4.
V1.5 IAP15W4K61S4 ~2019 V1.4 printed on PCB, sticker with 1.5.

BBS02B

There are compatibility issues reported, this firmware is suspected to be incompatible with older BBS02 controllers. If you have a newer BBS02B you are probably fine, if you have an older controller it might not be a good idea to flash this firmware.

Revision MCU Released Comment
V1.? STC15F2K60S2 Supported from BBS-FW version 1.1
V1.? IAP15F2K61S2 Supported from BBS-FW version 1.1

BBS02A - No idea, not tested, not recommended to try unless you have an already bricked controller.

TSDZ2

Compatible with TSDZ2A/B using the STM microcontroller (which is nearly all off them).

Legal

  • Installing this firmware will void your warranty.
  • I cannot be held responsible for any injuries caused by the use of this firmware, use at your own risk.

bbshd-fw's People

Contributors

danielnilsson9 avatar eigenmania avatar mrhumanrebel avatar aalm avatar dav0000000 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.