Search results

  1. D

    BBS-FW: Open Source Firmware for BBSHD/BBS02 Controller

    Different levels are used on different displays I think for the 5 level PAS. On my display (SW102) it is 2,4,6,8,9 if I remember correctly. Sounds like it might be the same on yours ;) Yes its active by default, you can disable "Walk Mode" in config tool to only have the temperature and not...
  2. D

    BBS-FW: Open Source Firmware for BBSHD/BBS02 Controller

    I was never able to interpret you response here, I do not understand what you are saying. Do you think there is any error in the firmware or has one of your sensor malfunctioned? If you think there is an error in the firmware, please write the result of every test you did in a structured way.
  3. D

    BBS-FW: Open Source Firmware for BBSHD/BBS02 Controller

    Sorry, this wasn't fully clear. Is this correct? It does not work when using both sensors. It does not work when using controller sensor only. It works when only using motor temperature sensor.
  4. D

    BBS-FW: Open Source Firmware for BBSHD/BBS02 Controller

    Interesting, thank you for testing! The log is live so you cannot pull it later unfortunately, this microcontroller is small and has a small amount of ram so no chance for that. It is always sampling both sensors and then uses the highest value. The display is then pulling the max value from...
  5. D

    BBS-FW: Open Source Firmware for BBSHD/BBS02 Controller

    Perfect, thank you, please try 1.2.0 which has the speed sensor filtering. If you had more issues at low speed that could point towards the speed sensor since more false pulses could be incorrectly triggered if the magnet is e.g. on the distance limit of being detected. I'm not sure of the...
  6. D

    BBS-FW: Open Source Firmware for BBSHD/BBS02 Controller

    The "calories" field is also usable on the DPC-18, any value can be sent to this field, currently it is showing voltage reading x100 in this firmware. Not sure if it is present on any other display. I'm using SW102 which doesn't have any usable field, so that is why the show temperature on walk...
  7. D

    BBS-FW: Open Source Firmware for BBSHD/BBS02 Controller

    So this issue has been reported a few times now but I haven't got anyone to help me test it in order to solve it, it's not affecting any of my bikes. The main suspect is false speed sensor readings causing speed limiting which cause cause jerky behaviour. Does not explain you observation that it...
  8. D

    BBS-FW: Open Source Firmware for BBSHD/BBS02 Controller

    The truth is that the real limit is somewhere in-between 32 and 33A. I noticed that is was possible to configure 33A in the configuration tool so I changed the documentation to match, I don't remember the exact value.
  9. D

    BBS-FW: Open Source Firmware for BBSHD/BBS02 Controller

    Max 33A on BBS02 too but I seriously advice against that! :flame:
  10. D

    BBS-FW: Open Source Firmware for BBSHD/BBS02 Controller

    I guess it could be done without to much hassle, but I have no such plans, those things are expensive! Not sure if any exist with a square crank arm fitting either? The ideá would be to plug a box between the display and motor to inject data or use the throttle input signal as you say. The...
  11. D

    Bafang BBS02 Throttle/PAS Simple Fix

    If you just want to disable the PAS sensor, just unplug the connector, you don't have to cut the wire, all 4 wired on the connector is for the pas sensor. Red -> 5V Black -> GND Grey -> PAS1 White -> PAS2 There are two offsetted pulse signal to make it possible to determine pedal rotation...
  12. D

    BBS-FW: Open Source Firmware for BBSHD/BBS02 Controller

    Version 1.1.0 has been released which brings support for the BBS02 controller along with many other improvements. v1.1.0 Support for BBS02 controller. Single firmware binary for all supported BBSHD controller revisions. Fix bug where an error was reported when trying to use firmware without...
  13. D

    BBS-FW: Open Source Firmware for BBSHD/BBS02 Controller

    I haven't specifically tested that model but I'm fairly confident it will work with the 860c display. No plans for the m620 motor at the moment, it could certainly be done but I don't have access to the hardware and I won't buy one just for the sake of supporting it, it would have to be...
  14. D

    BBS-FW: Open Source Firmware for BBSHD/BBS02 Controller

    Interesting, I didn't even know that feature existed, but I have never used PAS really. It is not supported in this firmware currently but sound like a quite simple thing to do, feel free to open an issue on the github page and I will consider it if there is more interest for this. Motor...
  15. D

    BBS-FW: Open Source Firmware for BBSHD/BBS02 Controller

    Thank you for your kind words, I will try to address your questions. The development was largely driven of my own desire to have more control over my bike, and for fun, as it presented a bit of a challenge since a rarely work with hardware. 1. It has been printed on the controller casing on all...
  16. D

    BBS-FW: Open Source Firmware for BBSHD/BBS02 Controller

    I'm not sure. It is not compatible with the EggRider mode switching at least which uses the bafang programming protocol to change the parameters. But if you don't use that function of the EggRider I suppose it could work. Yes, I have not heard any report of new controller revisions so if you...
  17. D

    BBS-FW: Open Source Firmware for BBSHD/BBS02 Controller

    There is no change to how the display looks, this firmware is only for the motor controller not the display. If you display support showing an estimated range, then that field will report the motor temperature instead. E.g. It may say " RANGE 46km" and that will be the temperature 46C. If you...
  18. D

    BBS-FW: Open Source Firmware for BBSHD/BBS02 Controller

    You won't. You only have on level, you startup assist level selected when configuring the firmware. You can do the same with the original firmware really. It is mostly useful when running a throttle only setup, but it would also work with the "variable PAS" mode where you set assist level power...
  19. D

    BBS-FW: Open Source Firmware for BBSHD/BBS02 Controller

    See here https://github.com/danielnilsson9/bbshd-fw/wiki/NEC-Motor-Control-Protocol Basically the BBSHD controller has two different microcontrollers where one is only focused on doing BLDC control and the other does everything else. The communicate with each other through a serial line. This...
  20. D

    BBS-FW: Open Source Firmware for BBSHD/BBS02 Controller

    This open source project is finally ready for release! This firmware is intended to replace the original Bafang firmware on BBSHD/BBS02 motor controllers and can be flashed using the standard programming cable. Almost all functionality of original firmware has been reimplemented and additional...
  21. D

    Bafang BBSHD BBS02 mid drive -- Flexible OpenSource firmware

    Good news! I got some time and energy to pick up this project again and I have finally found the issue which caused me to abandon this previously. Interrupts! Dangerous on 8051 with SDCC. You are not allowed to do int 16/32 multiplications or divisions inside interrupt service routines or bad...
  22. D

    Bafang BBSHD BBS02 mid drive -- Flexible OpenSource firmware

    I'm still stuck on the weird sporadic throttle readings and have grew kind of tired of this and is not really actively working on it anymore. I have been unable to implement any good filtering as the stack space on this microcontroller is so ridiculously small (128 bytes) that I can basically do...
  23. D

    Bafang BBSHD BBS02 mid drive -- Flexible OpenSource firmware

    Eggrider could probably be supported but the set of configuration parameters differs from the original firmware so would require changes to/by eggrider. General progress update I hit some issues when I started testing with motor mounted on bike. Sometimes throttle ADC reading goes crazy for a...
  24. D

    Bafang BBSHD BBS02 mid drive -- Flexible OpenSource firmware

    There are detailed images in the wiki repo: https://github.com/danielnilsson9/bbshd-fw/wiki Here is one of the IC you are looking for: https://raw.githubusercontent.com/wiki/danielnilsson9/bbshd-fw/img/controller_pcb/f2.jpg It's most likely a switching 5V regulator IC given it's location on...
  25. D

    Bafang BBSHD BBS02 mid drive -- Flexible OpenSource firmware

    I think it should be possible to connect to tsdz2 motor but I haven't tested. The config tool is windows only though but the default config will give you throttle support. Yes SDCC support the 8051 architecture so no trouble. I'm using the full visual studio (not code) but it's basically a...
Back
Top