OpenSourceEBike / Bafang_M500_M600

GNU General Public License v3.0
86 stars 37 forks source link

OpenSource DIY, simple, EV display with Bluetooth and ANT #33

Closed casainho closed 3 years ago

casainho commented 3 years ago

I developed OpenSource firmware for cheap easily available displays for EBikes, like 860C or SW102. SW102 is a very small one that I prefer. Both this displays are so popular that are used on various devices even like electric motorcyles.

Recently I bought a cheap popular Xiaomi M365 electric scooters and I need a display for it with easy customized OpenSource firmware. I found that SW102 can not work because of custom hardware needed, different from an EBike. So, I decided to develop my own, to be future prof and that I will be able to reuse between various EV devices, like EBikes, electric scooters and future motor cycle.

The main advantages of this display will be easy repair and adaption between devices, like EBikes and scooters I use do not use CANBUS, only UART, but this M500/M600/M800 motor uses CANBUS and is easy to add CANBUS on this display.

Simple DIY schematic version for EBikes, with UART communication: image

It uses the 850C display keypad that can be bought easily at unit on Aliexpress: image

Early tests on the display: image

The firmware will be the same we did developed for SW102, witch uses the same microcontroller and display: https://www.youtube.com/watch?v=q0N5W3Fgyjk

image

image

image

PrivatePuffin commented 3 years ago

I've altered the title, because it cannot be used by the m500 and m600. Technically it can be used by other bafang motors, but this is the m500/m600 people so the title was confusing.

PrivatePuffin commented 3 years ago

I guess the goal for this issue is tracking progress on adding CANBUS support to this? If so, please adapt the issue accordingly to make clear that's what the ticket means and try to not have 6 pages of full size screenshots ;;-)

casainho commented 3 years ago

The idea is that this display will be a tool for a possible OpenSource firmware for this Bafang motors. No point to add CANBUS at this stage of development, as I have no CANBUS motor controller to test. I am even thinking in not using the original Bafang motor controllers, because they are very expensive and difficult to buy, instead, develop a DIY motor controller that can be reused by the same different EV devices but have space for specific hardware, like the specific to read the torque sensor of this Bafang motors. For instance, electric scooters do not have a torque sensor, only throttle.

I do not know a better way to put small image icons with a link to original size ones.

CiDi-IT commented 3 years ago

I don't understand why the CAN Open connection is so scary. In automation it is the order of the day, and it is much easier to use than UART. For diagnostics with a simple CAN analyzer you can see all the data traffic in a transparent way.

PrivatePuffin commented 3 years ago

No point to add CANBUS at this stage of development, as I have no CANBUS motor controller to test

Okey, then i'm closing the issue, because it doesn't have any actuall current relevance for the m500 m600 project and it's mostly already available in the other repo's in the org.

Feel free to reopen when there is time/effort available to port it to canbus though, would be really nice. But keeping it open might needlessly confuse a lot of people.

@CiDi-IT Agreed.

Also a short update on the CANBUS project might be nice: I got some insider info stating that the m510 most likely will support the "hidden besst settings" and the source expects it to also be backported to new m500 and m600 firmwares, though the source is less sure about that last part it seems.

If the Hidden BESST settings would be enabled, I think opensource firmware for the controller itself would be basically moot. Considering the insane amount of settings in there.