Coder Social home page Coder Social logo

bbsdisplay's People

Contributors

christophpech avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bbsdisplay's Issues

Need help to understand the Bafang Display protocol

Hi, Christoph, thanks for your code. Very interesting project.
I'm building a project based on Casainho's eBike project using a FlipSky mini VESC controller to control the new TongSheng TS8 motor. The idea is that it would be an universal motor controller. The settings to the VESC are done by an ESP32 who read the PAS, cadence and Torque sensor. The ESP is programmed for 9 levels and interface with a Bafang Display.
The only reference I found to the UART Bafang display protocol was from you, the txt you published with your code.
I implemented the code based on the txt but keep getting a communication error from the Bafang Display.
Can you help me understand the parameters to be given to the display.
From your txt, if speed is in Km/h, I can't understand the formula for ths ispeed in your code. i would be in Km/h and if ispeed is meant to be some sort of rotation speed, then you cannot multiply i to the tire circunference. To do this, i would need to be rotational and in this case, the 2 bytes would not be based on Km/h as in the txt.
Also, the Power is in watts in the 1st byte and checksum on the second. In this case, wouldn't the max power be 256W and the second byte always be the same as the 1st one?
In the battery, the txt is in V but the byte 0 is percent, and them checksum. The battery is in volts or percentage and wouldn't the second byte be always the same as the 1st one as checksum of a number smaller than 256 is the number.
Your help is greatly appreciated.

Could you provide more information about your project?

Hi,
first of all, thanks you for sharing your code! I'm planning a similar project and want to check out your code and maybe use (large) portions of it.
I just figured out how to build it (needs an ATmega32U4-based board) and which libraries you were using.
I'd love to see a picture of your project on the bike (and maybe some schematics or some infos about your wiring) and learn about what features you've already implemented.

My setup is the BBS02B with the stock 850C display.

Thank you!

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.