EasyDIY OpenSource display for EVs: TSDZ2 and Bafang M500/M600 EBike motors

kaziq said:
The official one: https://github.com/OpenSourceEBike/OpenSourceEBike.github.io
Ok. Curious to see your changes. Waiting for our pull request
 
But that was my point that I don't know how to do a pull request :)
In the git doc they say I have to commit my changes to an online repo, then call git request-pull giving that repo URL as the parameter. But isn't there a simpler way?
 
kaziq said:
But that was my point that I don't know how to do a pull request :)
In the git doc they say I have to commit my changes to an online repo, then call git request-pull giving that repo URL as the parameter. But isn't there a simpler way?
I think is better to follow the documentation, git can be complex enough to not follow some documentation / examples.

For what I understand, you first need to fork the repository to your account on github. Then clone your fork to your PC. Then commit your changes to your GitHub fork and finally online, click on pull request.
 
Okay, managed to fork, and committed my changes. You have the pull request pending.
 
kaziq said:
Okay, managed to fork, and committed my changes. You have the pull request pending.
Done. Thanks!
 
I did merge the code of ANT+ LEV (EBike wireless) and ANT+ Controls (Garmin remote). This codes are working on the previous project of the TSDZ2 fully wireless remote.

The only feature implemented on ANT+ Controls, is the scroll through pages on the Garmin Edge GPS displays.

So the EasyDIY display 4 buttons remote, will use 3 buttons (ON_OFF, UP and DOWN) to control the TSDZ2 / Bafang M500/M600 motors. The button number 4, will control the Garmin Edge GPS display to scroll through pages of data.

It is up to the user to install a 4 buttons (860C display remote) or 3 buttons remote (850C display remote). If install the 3 buttons remote, then the scroll through pages of data will not happen. But as you can see, the Garmin Remote costs 65€, so, user will save a lot to use our EasyDIY display.

Although the firmware works, it needs some polish. And I am testing it on my TSDZ2 EBikes. I think I will want to keep the firmware shared between TSDZ2 display and Bafang M500/M600. The firmware will need to have some good IFDEFs.

What is clear different from TSDZ2 and Bafang M500/M600 is:
- UART versus CAN communications
- motor init / startup sequence, as also turn off sequence
- layout of main pages
- configurations

I think it is not much, compared to everything that is shared.



 
Hi,

i have (maybe) a stupid question which i couldn't answered by myself reading the entire thread:

Is there a android app, which is working with the display?

@casainho wrote in his first thread, there is a app. Later, he wrote, that there is no app.

Thanks!

BW
 
Deadrabbit said:
Hi,

i have (maybe) a stupid question which i couldn't answered by myself reading the entire thread:

Is there a android app, which is working with the display?

@casainho wrote in his first thread, there is a app. Later, he wrote, that there is no app.

Thanks!

BW
There was an app but is not updated anymore, it needs development which no one is doing.
 
erlano1977 said:
Hello,
if this mobile app from this project:
https://github.com/OpenSourceEBike/TSDZ2_wireless/releases
could still be used, that would be really great.
Excuse my English, it's not my mother tongue.
That app would need some development work.

Why would that app be important for you? Can you explain how would use it / why / in what situations?
 
casainho said:
erlano1977 said:
Hello,
if this mobile app from this project:
https://github.com/OpenSourceEBike/TSDZ2_wireless/releases
could still be used, that would be really great.
Excuse my English, it's not my mother tongue.
That app would need some development work.

Why would that app be important for you? Can you explain how would use it / why / in what situations?




Hello,
Thank you for your quick reply and for sharing your development work
Firmware for the TSDZ2.

I had 2 drives (TSDZ2) for my wife and I's bikes
Built into existing wheels.
I came across your project while looking for customizable firmware for the TSDZ2.
I already have my motor on their firmware: https://endless-sphere.com/forums/viewtopic.php?f=30&t=110682&start=1225

Changed with the Java Configurator. Works flawlessly.
Thanks again for the manageable program.
I'm currently using the VLCD-5
which unfortunately a little without their configurator for setting the parameters
is restricted.

For that reason, I would like their alternative, the: EasyDIY OpenSource Ebike Display
rebuild what also I believe no restrictions
Regarding the compensation of the data for the kilometers driven, as in the case of the VLSD-5.
The open source ebike display is not very big, but for normal use,
it is enough.
To set the parameters, the Ap would be the crown for your project.
Besides, the Ap wouldn't be bad for my 61-year-old eyes either.

I also use this BMS:
https://www.lithiumbatterypcb.com/product/6s-7s-8s-10s-lithium-ion-or-lifepo4-battery-29-4v-42v-33-6v-29-2v-smart-bluetooth-bms- with-rs485-and-uart-communication-function/?attribute_specification-selection=10S+li-ion+30A+with+UART+%26RS48

in connection with an ap, which the friendly user documents very well here:
https://www.youtube.com/watch?v=9ch9p02x7BU
maybe you could integrate the data from the BMS.

I have another question regarding the Oled display.
I would like to use this one: https://www.ebay.de/itm/272245860631
And run it over SPI, since you mentioned that the displays over the SPI interface
would run smoother.
Is this display compatible for your project?
I had already printed a 1.3 inch case according to your file (thanks again),
but then had to realize that it was too small for the display specified above.
I will then scale it to fit.
 
erlano1977 said:
casainho said:
erlano1977 said:
Hello,
if this mobile app from this project:
https://github.com/OpenSourceEBike/TSDZ2_wireless/releases
could still be used, that would be really great.
Excuse my English, it's not my mother tongue.
That app would need some development work.

Why would that app be important for you? Can you explain how would use it / why / in what situations?




Hello,
Thank you for your quick reply and for sharing your development work
Firmware for the TSDZ2.

I had 2 drives (TSDZ2) for my wife and I's bikes
Built into existing wheels.
I came across your project while looking for customizable firmware for the TSDZ2.
I already have my motor on their firmware: https://endless-sphere.com/forums/viewtopic.php?f=30&t=110682&start=1225

Changed with the Java Configurator. Works flawlessly.
Thanks again for the manageable program.
I'm currently using the VLCD-5
which unfortunately a little without their configurator for setting the parameters
is restricted.

For that reason, I would like their alternative, the: EasyDIY OpenSource Ebike Display
rebuild what also I believe no restrictions
Regarding the compensation of the data for the kilometers driven, as in the case of the VLSD-5.
The open source ebike display is not very big, but for normal use,
it is enough.
To set the parameters, the Ap would be the crown for your project.
Besides, the Ap wouldn't be bad for my 61-year-old eyes either.

I also use this BMS:
https://www.lithiumbatterypcb.com/product/6s-7s-8s-10s-lithium-ion-or-lifepo4-battery-29-4v-42v-33-6v-29-2v-smart-bluetooth-bms- with-rs485-and-uart-communication-function/?attribute_specification-selection=10S+li-ion+30A+with+UART+%26RS48

in connection with an ap, which the friendly user documents very well here:
https://www.youtube.com/watch?v=9ch9p02x7BU
maybe you could integrate the data from the BMS.

I have another question regarding the Oled display.
I would like to use this one: https://www.ebay.de/itm/272245860631
And run it over SPI, since you mentioned that the displays over the SPI interface
would run smoother.
Is this display compatible for your project?
I had already printed a 1.3 inch case according to your file (thanks again),
but then had to realize that it was too small for the display specified above.
I will then scale it to fit.
I almost sure the firmware version you use is not compatible with the display. The display is compatible with the TSDZ2 firmware I developed but that I did not updated anymore since long time ago. Maybe you can ask to that firmware developers to support the display, that would be the best for you.

And yes, the OpenSource display is small and that is the way I like it. There are the other big displays as 860C for the ones who prefer bigger ones with color.
 
casainho said:
erlano1977 said:
casainho said:
erlano1977 said:
Hello,
if this mobile app from this project:
https://github.com/OpenSourceEBike/TSDZ2_wireless/releases
could still be used, that would be really great.
Excuse my English, it's not my mother tongue.
That app would need some development work.

Why would that app be important for you? Can you explain how would use it / why / in what situations?




Hello,
Thank you for your quick reply and for sharing your development work
Firmware for the TSDZ2.

I had 2 drives (TSDZ2) for my wife and I's bikes
Built into existing wheels.
I came across your project while looking for customizable firmware for the TSDZ2.
I already have my motor on their firmware: https://endless-sphere.com/forums/viewtopic.php?f=30&t=110682&start=1225

Changed with the Java Configurator. Works flawlessly.
Thanks again for the manageable program.
I'm currently using the VLCD-5
which unfortunately a little without their configurator for setting the parameters
is restricted.

For that reason, I would like their alternative, the: EasyDIY OpenSource Ebike Display
rebuild what also I believe no restrictions
Regarding the compensation of the data for the kilometers driven, as in the case of the VLSD-5.
The open source ebike display is not very big, but for normal use,
it is enough.
To set the parameters, the Ap would be the crown for your project.
Besides, the Ap wouldn't be bad for my 61-year-old eyes either.

I also use this BMS:
https://www.lithiumbatterypcb.com/product/6s-7s-8s-10s-lithium-ion-or-lifepo4-battery-29-4v-42v-33-6v-29-2v-smart-bluetooth-bms- with-rs485-and-uart-communication-function/?attribute_specification-selection=10S+li-ion+30A+with+UART+%26RS48

in connection with an ap, which the friendly user documents very well here:
https://www.youtube.com/watch?v=9ch9p02x7BU
maybe you could integrate the data from the BMS.

I have another question regarding the Oled display.
I would like to use this one: https://www.ebay.de/itm/272245860631
And run it over SPI, since you mentioned that the displays over the SPI interface
would run smoother.
Is this display compatible for your project?
I had already printed a 1.3 inch case according to your file (thanks again),
but then had to realize that it was too small for the display specified above.
I will then scale it to fit.
I almost sure the firmware version you use is not compatible with the display. The display is compatible with the TSDZ2 firmware I developed but that I did not updated anymore since long time ago. Maybe you can ask to that firmware developers to support the display, that would be the best for you.

And yes, the OpenSource display is small and that is the way I like it. There are the other big displays as 860C for the ones who prefer bigger ones with color.
for information here is a comparison
On the ESP32 there is a small TFT display
I tried both oled and TFT
TFT is better in daylight outdoors
would have to find small TFT displays to try
jqnj.jpg

6nrs.jpg

bms-2048x1092.jpg


about BMS:
https://www.birdandgua.net/bird/2021/07/%E5%AE%B6%E7%94%A8%E5%84%B2%E8%83%BD-powerwall-diy-%E7%AC%AC%E4%BA%8C%E5%9B%9E%E4%B9%8B-bms-%E5%A5%BD%E5%A5%BD%E7%8E%A9/
 
SUPERJC said:
for information here is a comparison
On the ESP32 there is a small TFT display
I tried both oled and TFT
TFT is better in daylight outdoors
would have to find small TFT displays to try
jqnj.jpg

6nrs.jpg

bms-2048x1092.jpg


about BMS:
https://www.birdandgua.net/bird/2021/07/%E5%AE%B6%E7%94%A8%E5%84%B2%E8%83%BD-powerwall-diy-%E7%AC%AC%E4%BA%8C%E5%9B%9E%E4%B9%8B-bms-%E5%A5%BD%E5%A5%BD%E7%8E%A9/
Yes, this cheap OLED displays are kind of old OLED and are not very good at outdoors. The best display I would like to try is an eink fast refresh one.

The Garmin GPS and others have very specific screens that are very good at daylight, for instance they do not have back light during the day.

I want to have something fast working, and that is using current OLED display. After proving that we can get a good value from this display, I hope more developers are attracted and other versions could be developed, maybe using some better display.

For me, I still want something small and discrete, as the main display is the Garmin Edge GPS display.
 
SUPERJC said:
You can add Sun visor :mrgreen:
We can not access to the same good quality screens as Garmin.

But if you are using a Garmin, why do you use your display? Wouldn't be better for you so have a micro display as the OLED 0.96 inches display and then that big Garmin display??
 
casainho said:
SUPERJC said:
You can add Sun visor :mrgreen:
We can not access to the same good quality screens as Garmin.

But if you are using a Garmin, why do you use your display? Wouldn't be better for you so have a micro display as the OLED 0.96 inches display and then that big Garmin display??
The TFT display is small and very fast working
But the transparent case is big

This old version is OLED with same box
z5tu.jpg
 
I now have the EasyDIY display prototype working with Bafang M500/M600 motors. Right now it shows the data that is available on the CAN - some of that data is not shown on the original display, as the battery voltage or motor temperature.

See the video where I shown and explain what is working for now:

[youtube]6Nxme5Gt-_c[/youtube]
 
Hi! Thanks for your great efforts on this project.

I'm wanting to build the display for TSDZ2.

Would you be able to suggest alternative components for the BTS4140N power switch, and the BSP296 / BSS123 transistor? All of the major electronic component suppliers have no stock.

I'm also wondering if any SPI driven 128x64 OLED screen will work for your project as long as they have the SSD1306 or SH1106 driver?

Thanks!

Edit: as a less than ideal workaround, could I add a manual switch between TSDZ2_Vin and V.Battery? Leaving nothing connected to P1.0 on the nordic dongle
 
dustybicycle said:
Would you be able to suggest alternative components for the BTS4140N power switch, and the BSP296 / BSS123 transistor? All of the major electronic component suppliers have no stock.
Hi, recently I had the same problem, BTS4140N is not available anywhere (I ordered some from Aliexpress, but they never came).
I decided to replace BTS4140 with BSP321 P-Mosfet and some additional resistors to protect the gate.
(BTS4140 is just a P-Mosfet with some additional circuits for protection and easier driving).
Here is my schematic and picture of it soldered. I tested very briefly, and the proper voltage appears on the TSDZ2_Vin line with the motor connected. I did not test it fully, because it would need reflashing the motor firmware, and I don't want to do it yet.

Please note that the BSP321, although the same package as BTS4140, is connected differently!

schem.jpg

DSC_7485.jpg
 
I decided to flash the OS firmware to test the display, and the modified transistor circuit works fine. The motor powers up, and works :)

I have one problem though with the OS display:
DSC_7486.jpg

The image seems to be shifted up by two pixels, and there are two lines of garbage on the bottom.
The lines are visible from the very start, and even if the motor is not connected.
DSC_7482.jpg

How can I get rid of that?
 
kaziq said:
I decided to flash the OS firmware to test the display, and the modified transistor circuit works fine. The motor powers up, and works :)

I have one problem though with the OS display:
DSC_7486.jpg

The image seems to be shifted up by two pixels, and there are two lines of garbage on the bottom.
The lines are visible from the very start, and even if the motor is not connected.
DSC_7482.jpg

How can I get rid of that?
Are you sure you flashed the correct firmware version for the display??
 
casainho said:
Are you sure you flashed the correct firmware version for the display??
Yep, just reflashed 1.3" SPI to make sure. The lines are still there.
 
kaziq said:
casainho said:
Are you sure you flashed the correct firmware version for the display??
Yep, just reflashed 1.3" SPI to make sure. The lines are still there.
And isn't that the 0.96 inches display?

Anyway I would suggest you to flash all the 4 versions, just to see how things happen.
 
casainho said:
And isn't that the 0.96 inches display?
Nope. Definitely 1.3 inch.

casainho said:
Anyway I would suggest you to flash all the 4 versions, just to see how things happen.
Both 1.3 and 0.96 SPI produce the same output. With I2C versions the display stays black, and the nRF board does not seem to start (led stays red).
 
Back
Top