Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Electric Motors and Controllers
anonpleb   1 mW

1 mW
Posts: 19
Joined: Apr 28 2020 1:40pm

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by anonpleb » Sep 19 2020 5:12am

Adarsh881 wrote:
Sep 18 2020 6:23pm
Hi.
I did everything what was written in the instruction manual but in the end it doesnt compile/flash when i click the button. Any ideas?

Image

I took a picture off the screen. sorry...printscreen is not working...
Thank you:)
Check where you have installed :-

STMicroelectronics\st_toolset.

If you have not installed it in Root C: then you will have to amend the following files in (C:\TSDZ2-Smart-EBike-1-master) :
Attachments
Bat files.JPG
Bat files.JPG (18.33 KiB) Viewed 1326 times

User avatar
jbalat   10 kW

10 kW
Posts: 605
Joined: Nov 10 2012 11:50pm
Location: Melbourne, Australia

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by jbalat » Sep 19 2020 6:53pm

Best to set up all this stuff directly on the c: drive that way it’s easier to get all the paths right.
Please subscribe to my Youtube home page for Quadcopters, FPV and Bike Rides http://www.youtube.com/jbalatutube
My build log here http://endless-sphere.com/forums/viewto ... =6&t=55352
For some cool ebike talk join us on The Best ebike https://www.facebook.com/groups/193581737807033/
Tech talk TSDZ2 Opensource firmware https://endless-sphere.com/forums/viewt ... &start=150
Opensource TSDZ2 Wiki https://github.com/OpenSource-EBike-fir ... _wiki/wiki

DrewSki   10 mW

10 mW
Posts: 20
Joined: Sep 24 2016 7:19pm

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by DrewSki » Sep 20 2020 9:58am

I don't know if this is the right place to post this or not, but I just installed the Marcoq version of the open source and noticed a large increase in power consumed. On the original firmware the motor consumed 163WH in TURBO during a 15 mile ride. With the new software it consumed 240WH for the same 15 mile ride in TOUR.
Is this normal for open source software to use so much extra power?
Attachments
2020-09-20 (2).png
2020-09-20 (2).png (208.34 KiB) Viewed 1284 times

anonpleb   1 mW

1 mW
Posts: 19
Joined: Apr 28 2020 1:40pm

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by anonpleb » Sep 20 2020 1:58pm

Hi,

Your Max Battery Power of 948 watts looks very high for a 36v Motor (Twice the Default value used on the EmmaBrusa Java front
end).

DrewSki   10 mW

10 mW
Posts: 20
Joined: Sep 24 2016 7:19pm

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by DrewSki » Sep 20 2020 4:47pm

I read somewhere to get that number you add up your total battery watt hours. I have 6 separate 4.4ah battery packs at 158WH each connected in parallel. Is that the right way to get that number?
I just noticed the MBRUSA version has both battery power max, and battery capacity options, but the marcoq one does not. How do i get the number for battery power max ?

anonpleb   1 mW

1 mW
Posts: 19
Joined: Apr 28 2020 1:40pm

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by anonpleb » Sep 20 2020 5:15pm

Hi,

For EmmaBrusa Java Front end there are two setting Battery power Max (W) & Battery Capacity(Wh).
The Battery capacity (Wh) is calculated as your example ie 48v Battery @ 12 Amp = 576 wh :-
Attachments
Capture.JPG
Capture.JPG (33.98 KiB) Viewed 1240 times

DrewSki   10 mW

10 mW
Posts: 20
Joined: Sep 24 2016 7:19pm

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by DrewSki » Sep 20 2020 5:40pm

So how do I calculate the other value? Also, would this value being wrong cause my consumption to go up the way it did?

Elinx   1 kW

1 kW
Posts: 359
Joined: Aug 09 2019 6:58am

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by Elinx » Sep 21 2020 1:36am

DrewSki wrote:
Sep 20 2020 5:40pm
So how do I calculate the other value? Also, would this value being wrong cause my consumption to go up the way it did?
Your motor is a 36V type. So nominal it is 350W. In that case 500W is a reasonable max. value with a max. current of 15A.

You can't compare OSF 100% with stock FW. This because the limitations of stock FW are gone with flashing OSF, so you have unlocked the real power of this motor and can use and consume more power, depended of your customized settings.
If you put most of these limitations back, the power consumption could be about the same or less than stock FW.

That your motor is consuming more power has mostly to do with the option "Experimental high cadence".
This option is "experimental" because it is a working, but dirty, hack at cost of the efficiency of the motor.
Casainho (860C) and Mspider65 (bluetooth) has both the fieldweakening option in their OSF version that only works if the higher cadence is needed, so it is more refined and less power consuming. I hope we get it too in the future.

Another thing could be the "pedal assist levels" that could be higher as with stock FW. If that is the case you can change these to a lower assist value if you want. (You compared already "turbo" with "tour", so you feel that the OSF assist levels have higher values)
Last edited by Elinx on Sep 23 2020 4:20am, edited 1 time in total.

DrewSki   10 mW

10 mW
Posts: 20
Joined: Sep 24 2016 7:19pm

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by DrewSki » Sep 21 2020 7:49pm

Ok, I'll lower the battery power and see if that helps. I had taken off the "Experimental high cadence" mode and saw no difference in consumption. I'd say the Tour mode is a little below what Turbo was on the stock firmware. I saw no difference that I could tell between Tour and Speed, but the new Turbo is more powerful than Turbo on the stock firmware.

User avatar
jbalat   10 kW

10 kW
Posts: 605
Joined: Nov 10 2012 11:50pm
Location: Melbourne, Australia

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by jbalat » Sep 22 2020 6:51pm

DrewSki wrote:
Sep 21 2020 7:49pm
Ok, I'll lower the battery power and see if that helps. I had taken off the "Experimental high cadence" mode and saw no difference in consumption. I'd say the Tour mode is a little below what Turbo was on the stock firmware. I saw no difference that I could tell between Tour and Speed, but the new Turbo is more powerful than Turbo on the stock firmware.
You can adjust all the levels yourself using the multipliers that get assigned to each level

If you want to use less battery than before then use smaller multipliers

I have set up 5 levels something like this but I find level 1 a bit too low to be usable. I normally use level 2
1 = 0.7
2 = 1
3 = 1.5
4 = 2.5 or 3 cant remember but basically insane
5 = Torque mode EMTB

thats on the ktlcd3 but very similar on the vlcd5 although you may only have 4 levels to play with ?
Please subscribe to my Youtube home page for Quadcopters, FPV and Bike Rides http://www.youtube.com/jbalatutube
My build log here http://endless-sphere.com/forums/viewto ... =6&t=55352
For some cool ebike talk join us on The Best ebike https://www.facebook.com/groups/193581737807033/
Tech talk TSDZ2 Opensource firmware https://endless-sphere.com/forums/viewt ... &start=150
Opensource TSDZ2 Wiki https://github.com/OpenSource-EBike-fir ... _wiki/wiki

DrewSki   10 mW

10 mW
Posts: 20
Joined: Sep 24 2016 7:19pm

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by DrewSki » Sep 22 2020 8:11pm

I'll try lowering the power levels and see if the consumption goes down. I have the vlcd5 so I only have 4 levels to play with.

jeff.page.rides   100 W

100 W
Posts: 225
Joined: Aug 13 2019 10:16am

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by jeff.page.rides » Sep 24 2020 4:38pm

This is a copy of a reply to an email I received asking about the displays and firmware available for the TSDZ2.
I thought I would share my opinion on the different versions of firmware and the different displays

Hi Lee,

There are four different displays with three different firmware programs available for the TSDZ2. The 860C display only works with V1 but is by far the best display. The 850C display works with V1 and V19 but you can’t read it in the sun. The LCD3 display works with V19 and V20 and is a good display that works in the sun, but has to be disassembled to flash. The VLCD5 is a very limited display that works with the stock firmware and V20. But to change settings or view different information with V20 is very difficult. But the display doesn’t need to be flashed, only the motors need to be flashed and it’s easy and very quick to flash with different settings and works well with V20.

Version 1 is very refined but very complex and difficult to set up and to get working correctly. It does have the potential to be very good at some point down the road, but at this time lacks low RPM power and starting power. It also doesn't work well with a coaster brake, when you stop pedaling it stops but has a high rate of resistance when you pull back to brake, you have to move the pedals back forward 1 inch then pull back again and the resistance stops so you can brake.
It is the only version at this time that works on the 860C which is the best display.

Version 20 is very good, but it could use a few refinements. I believe this is the very best software for any setup.
I hope at some point someone will get version 20 to work with the 860C.

Version 19 is an older version that some people still like, but will never be improved, it does not work with coaster brake motors.

If you could take the good parts of version 1 and version 20 and get them to work on an 860C that would be the very best scenario.

Later,
Jeff

AndrewG   1 µW

1 µW
Posts: 2
Joined: Sep 24 2020 10:21pm

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by AndrewG » Sep 24 2020 10:29pm

I have installed the tsdz2 and vlcd-5 display. I have just started reading the beginning of this thread but can't find out where the information is regarding flashing the vlcd-5 with Marcoq's firmware. How do I start doing this please. Apologies if I am missing something obvious.

Elinx   1 kW

1 kW
Posts: 359
Joined: Aug 09 2019 6:58am

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by Elinx » Sep 25 2020 12:38am

AndrewG wrote:
Sep 24 2020 10:29pm
.... Apologies if I am missing something obvious.
Marcoq's last version was v0.19 and stopped further developing of OSF
mbrusa did some improvements and additions for that version and started developing v0.20 for stock displays.
After v0.20b1 from mbrusa was publiced. Marcoq had deleted his Github sources.
So did Stancecoke with the mirror on his Github.

You can find the last version v0.20b1 on the Github repository of mbrusa:
https://github.com/emmebrusa/TSDZ2-Smart-EBike-1

Please read the wiki before about how to install OSF
After download and install OSF use the configuration manual for setting up all with the Java Gui.

There are also a manuals enclosed for using the display with OSF and calibrating the sensors

If you want to find answers on some questions on this topic
The v0.20b1 Github version of mbrusa starts here:
https://endless-sphere.com/forums/viewtopic.php?f=30&t=98281&start=1025

jeff.page.rides   100 W

100 W
Posts: 225
Joined: Aug 13 2019 10:16am

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by jeff.page.rides » Sep 25 2020 6:28am

jeff.page.rides wrote:
Sep 24 2020 4:38pm
This is a copy of a reply to an email I received asking about the displays and firmware available for the TSDZ2.
I thought I would share my opinion on the different versions of firmware and the different displays

Hi Lee,

There are four different displays with three different firmware programs available for the TSDZ2. The 860C display only works with V1 but is by far the best display. The 850C display works with V1 and V19 but you can’t read it in the sun. The LCD3 display works with V19 and V20 and is a good display that works in the sun, but has to be disassembled to flash. The VLCD5 is a very limited display that works with the stock firmware and V20. But to change settings or view different information with V20 is very difficult. But the display doesn’t need to be flashed, only the motors need to be flashed and it’s easy and very quick to flash with different settings and works well with V20.

Version 1 is very refined but very complex and difficult to set up and to get working correctly. It does have the potential to be very good at some point down the road, but at this time lacks low RPM power and starting power. It also doesn't work well with a coaster brake, when you stop pedaling it stops but has a high rate of resistance when you pull back to brake, you have to move the pedals back forward 1 inch then pull back again and the resistance stops so you can brake.
It is the only version at this time that works on the 860C which is the best display.

Version 20 is very good, but it could use a few refinements. I believe this is the very best software for any setup.
I hope at some point someone will get version 20 to work with the 860C.

Version 19 is an older version that some people still like, but will never be improved, it does not work with coaster brake motors.

If you could take the good parts of version 1 and version 20 and get them to work on an 860C that would be the very best scenario.

Later,
Jeff
Elinx wrote: ↑Sep 24 2020 4:26pm
jeff.page.rides wrote: ↑Sep 24 2020 3:38pm
.... displays and firmware available for the TSDZ2.

There are four different displays with three different firmware programs available for the TSDZ2. ......
..
If you could take the good parts of version 1 and version 20 and get them to work on an 860C that would be the very best scenario.

There is forgotten one version of the OSF based on v0.20b1, but with some additions that are also inside v1.0.
That is the OSF BTversion of mspider65, which works with Bluetooth and Android display.

I haven't been following the wireless forum, I didn't know that some code from V20 was being used. Thats good to hear, I thought it was all code from V1. Can this version be flashed and used on the 860C with out using any wireless devices? I have two hand cycles one has tried the VLC5 & the LCD3, both with V20, the other one has tried the LCD3 and 860C with V20 and V1. My wifes bike has a 850C and has tried V19 threw V1. We have used the displays and firmware versions in the last several months. It's a lot of work consistently changing systems but it's the only way to compare them accurately. Thanks to electrifybike.com for flashing them each time, and my wife and family for being my hands. As a weak handcyclest I notice things easier than others. And the TSDZ2 is 18" in front of my face, so can hear small changes and can touch the TSDZ2 anytime easily.
Last edited by jeff.page.rides on Sep 26 2020 5:20pm, edited 1 time in total.

AndrewG   1 µW

1 µW
Posts: 2
Joined: Sep 24 2020 10:21pm

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by AndrewG » Sep 25 2020 8:11am

Elinx, thank you very much for taking the time to post and to explain the situation.
I don't suppose moderators could add something to the first page of this long thread to explain to other new users about the current firmware situation?
Last edited by AndrewG on Sep 26 2020 9:31am, edited 1 time in total.

rcgroppe   1 µW

1 µW
Posts: 1
Joined: Feb 07 2020 5:12pm

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by rcgroppe » Sep 25 2020 1:58pm

I have been running with a stock sw-102 display I got from eco cycles. It works great except for the battery bars. Has anyone done a setup for 5 battery bars?

anonpleb   1 mW

1 mW
Posts: 19
Joined: Apr 28 2020 1:40pm

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by anonpleb » Sep 27 2020 4:23pm

Capture.JPG
Capture.JPG (72.33 KiB) Viewed 912 times
EmmeBrusa Config.h only caters for 4 or 6 bar display.

jeff.page.rides   100 W

100 W
Posts: 225
Joined: Aug 13 2019 10:16am

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by jeff.page.rides » Sep 27 2020 7:35pm

TSDZ2 Fluid Cooling

I’ve been working with this all summer. With several different leaks, different pumps, different tubing, different fluid routing, different fluids, and other difficulties. I finally have a fluid made to fill-up brushless Motors and it is working the way I wanted to from the start with no leaks. I can ride at 700 - 850 Watts all day long and the motor never gets more than 10-20 degrees warmer than the outside air. With all the same steps, but with only fluid in the left side of the case, and no external addons will keep the motor at 30 to 50 degrees warmer than the outside air at 700-850 watts. So that means you can ride at high watts at 100 degrees outside and note worry about overheating. I use a led temp display attached to the bottom of the 860C. It has 2 probes and both temps show, one I leave out in the air on the front of the bike the other one is in the oil in the motor. This also allows you to use a throttle and still have a temperature sensor. It’s cooler, quieter and it’s smoother, but unfortunately like everything I had to learn it all the hard way.

When the riding season is over in about 60 days I will be doing a step by step how-to, with directions and pictures so those that want to tackle this should be able to do it without all the mistakes I had to go through. I’ve attached a couple of photos, so you can see what I’ve done. I also added a new 42 tooth chainring from https://www.eco-ebike.com/collections/d ... lid-e-bike That works great and costs less than the other brand.

I’m trying to decide if I want to go through the effort to offer a kit with all the parts and fluid needed for both types, internal only and external cooling. There was a lot of trial and error finding the right fittings, the right type of hose, the right fluid the right pump, and everything else. To get all the right parts I had to go through several different suppliers, no one-stop-shop here. It’s a lot of work, but If I decide to do this they will be offered through,
www.electrifybike.com and possibly www.eco-ebike.com
Attachments
TSDZ2 Water Cooling_01.jpg
TSDZ2 Water Cooling_01.jpg (332.28 KiB) Viewed 904 times
TSDZ2 Water Cooling_02.jpg
TSDZ2 Water Cooling_02.jpg (330.38 KiB) Viewed 904 times
TSDZ2 Water Cooling_03.jpg
TSDZ2 Water Cooling_03.jpg (269.78 KiB) Viewed 904 times
TSDZ2 Water Cooling_04.jpg
TSDZ2 Water Cooling_04.jpg (269.83 KiB) Viewed 904 times

Andrew707   100 mW

100 mW
Posts: 48
Joined: Feb 26 2020 10:10pm

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by Andrew707 » Sep 29 2020 4:09pm

Hello, I just swapped my controller to the new one, installed 48V firmware and flashed OSF. Went for a test ride and everything worked fine for 50km and then motor turned off and is showing E04 error on the screen. What does this error mean?
Sometimes it starts working for like half a minute and then shows the error again...

mbrusa   100 W

100 W
Posts: 149
Joined: Dec 11 2019 12:13am

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by mbrusa » Oct 01 2020 2:39am

Hi everyone, I'm back after the summer break.

Error E04 motor control blocked,
is activated when the ERPS of the motor is < MOTOR_BLOCKED_ERPS_THRESHOLD
and the battery current is > MOTOR_BLOCKED_BATTERY_CURRENT_THRESHOLD_X10
and for a time > MOTOR_BLOCKED_COUNTER_THRESHOLD.
The default values are for immediate intervention and to preserve the blue gear.

Here are the values of the 0.20.1 version of buba, for an intervention it was less rapid.
MOTOR_BLOCKED_COUNTER_THRESHOLD 10
MOTOR_BLOCKED_BATTERY_CURRENT_THRESHOLD_X10 50
MOTOR_BLOCKED_ERPS_THRESHOLD 10
If even with these values you have error E04, there is a mechanical problem with the motor.
Flexible OpenSource firmware for TongSheng TSDZ2 motor and VLCD5 VLCD6 XH18 displays
https://github.com/emmebrusa/TSDZ2-Smart-EBike-1

Atrihalov   100 mW

100 mW
Posts: 38
Joined: Nov 14 2017 1:30am

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by Atrihalov » Oct 01 2020 6:31am

Excellent! The author is back. I ride your configuration and rejoice.

anonpleb   1 mW

1 mW
Posts: 19
Joined: Apr 28 2020 1:40pm

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by anonpleb » Oct 01 2020 1:43pm

Thats GOT to be Google Translate :bigthumb:

gnistjagaren   1 µW

1 µW
Posts: 1
Joined: Oct 06 2020 5:33am

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by gnistjagaren » Oct 06 2020 5:46am

How do I install SDCC and STVP directly to C and not in "program files"?

anonpleb   1 mW

1 mW
Posts: 19
Joined: Apr 28 2020 1:40pm

Re: Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Post by anonpleb » Oct 07 2020 4:05pm

gnistjagaren wrote:
Oct 06 2020 5:46am
How do I install SDCC and STVP directly to C and not in "program files"?
When installing you get an option to Browse to desired installation location :-

Just change it to root C:
Attachments
Capture1.JPG
Capture1.JPG (47.22 KiB) Viewed 492 times
Capture2.JPG
Capture2.JPG (44.76 KiB) Viewed 492 times

Post Reply