christophpech / bbsdisplay Goto Github PK
View Code? Open in Web Editor NEWbafang Arduino display
License: GNU General Public License v3.0
bafang Arduino display
License: GNU General Public License v3.0
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.
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!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.