Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Electric Motors and Controllers
bingo5   10 mW

10 mW
Posts: 27
Joined: Jul 04 2019 12:37am

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

Post by bingo5 » Apr 04 2020 4:23pm

7lucky7 wrote:
Apr 04 2020 3:54pm
I'm really struggling to find a good guide to installing this on my tsdz2 with vlcd5 display. Can anyone please point a poor noob in the right direction.
Here is an instruction how to connect the necessary flasher: https://github.com/OpenSource-EBike-fir ... e-on-TSDZ2

The flashing is explained by the configuration program itself (just press the button after configuration).

7lucky7   100 µW

100 µW
Posts: 9
Joined: Apr 04 2020 10:52am

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

Post by 7lucky7 » Apr 04 2020 4:26pm

bingo5 wrote:
Apr 04 2020 4:23pm
7lucky7 wrote:
Apr 04 2020 3:54pm
I'm really struggling to find a good guide to installing this on my tsdz2 with vlcd5 display. Can anyone please point a poor noob in the right direction.
Here is an instruction how to connect the necessary flasher: https://github.com/OpenSource-EBike-fir ... e-on-TSDZ2

The flashing is explained by the configuration program itself (just press the button after configuration).
Isn't this the casaihno code that requires a new display though!?

bingo5   10 mW

10 mW
Posts: 27
Joined: Jul 04 2019 12:37am

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

Post by bingo5 » Apr 04 2020 7:00pm

In Germany we say "Jaein", which means yes and no. I don't know if there is anything comparable in English :)

With Casainho's firmware you flash both the engine and the display. The VLCD5 display on the other hand cannot be flashed. That's why the functions are more basic and there are many workarounds to use. The advantage is that you only have to flash the motor. And this works the same way as Casainho's firmware, so I gave you the link.

bingo5   10 mW

10 mW
Posts: 27
Joined: Jul 04 2019 12:37am

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

Post by bingo5 » Apr 07 2020 9:03am

Does the parameter MOTOR_ACCELERATION perhaps have an big effect on the maximum power transmission to the blue gear?

Before I went on tour yesterday, I improved the heat conduction of my engine and also looked at the blue gear. It looked almost like new, absolutely intact (after ~500km). But on my tour, after about 15km the gear broke down... Surely the better heat conduction also made the gear wheel hotter, which makes the plastic naturally softer.
But at the same time, according to the instructions, I increased the value of MOTOR_ACCELERATION from 25 to 35 (48V battery, 48V motor), so I wonder if this also has a big negative effect?

Since the shipping costs of pswpower are astronomically high (40+$) at the moment, I'm trying to print a new gear and would like to reduce the load as much as possible.

Elinx   100 W

100 W
Posts: 233
Joined: Aug 09 2019 6:58am

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

Post by Elinx » Apr 07 2020 11:59am

bingo5 wrote:
Apr 07 2020 9:03am
...parameter MOTOR_ACCELERATION ......
....... Surely the better heat conduction also made the gear wheel hotter, which makes the plastic naturally softer.
.....according to the instructions, I increased the value of MOTOR_ACCELERATION from 25 to 35 (48V battery, 48V motor),....
This is what is in the instruction:
________________________________________________________
/* VALUES NEED VALIDATION FROM USER FEEDBACK
Default value = 0 %
36 volt motor, 36 volt battery = 35 %
36 volt motor, 48 volt battery = 5 %
36 volt motor, 52 volt battery = 0 %
48 volt motor, 36 volt battery = 45 %
48 volt motor, 48 volt battery = 35 %
48 volt motor, 52 volt battery = 30 % */

Acceleration of the engine.
As a first setting, use low values, then gradually increase if necessary.
Consider the values in the table as maximum values.
Set carefully, aware that setting a higher value than necessary can cause greater stress on the transmission.

_________________________________________________________
But if this is the reason your blue gear is gone I don't know. The preset was 25% for 36/36V and 48/48V
The other reason you mention is a bit strange because you say that the motor/gear becomes hotter with a better heat dissipation.
If that is the case then the better heat conduction should be counterproductive.

john61ct   100 GW

100 GW
Posts: 5053
Joined: Dec 18 2018 2:06pm

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

Post by john61ct » Apr 07 2020 4:35pm

The goal for shedding heat is to first conduct the heat coming from the motor, phase wiring etc **away** from the motor.

The outer surface of the case is where it dissipates into the frame and airflow.

That requires everything in between including gearing to also get hot faster than if the heat were being retained inside the motor.

Replace the plastic with metal? Yes, noisier but. . .

bingo5   10 mW

10 mW
Posts: 27
Joined: Jul 04 2019 12:37am

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

Post by bingo5 » Apr 09 2020 12:50am

Elinx wrote:
Apr 07 2020 11:59am
This is what is in the instruction:
...
Acceleration of the engine.
As a first setting, use low values, then gradually increase if necessary.
Consider the values in the table as maximum values.
Set carefully, aware that setting a higher value than necessary can cause greater stress on the transmission.[/i][/size]
_________________________________________________________
But if this is the reason your blue gear is gone I don't know. The preset was 25% for 36/36V and 48/48V
The other reason you mention is a bit strange because you say that the motor/gear becomes hotter with a better heat dissipation.
If that is the case then the better heat conduction should be counterproductive.
Just like john61ct writes, due to the better heat conduction to the case surface, the heat is also better conducted to the gear space.

My question is if this is the main reason or the increased parameter. Since I don't understand the background of the parameter either - 35% of what? What does 100% mean?

Maybe it makes sense in the next version to point out the possible danger more clearly. Since I only thought of the bicycle gear shift when I read "...higher value than necessary can cause greater stress on the transmission".

A metal gear wheel is also my favourite solution, but as I said, the shipping costs are astronomical at the moment. Alternatively via eBay with long shipping times. So I try the prints myself, but my nylon filament is still in the shipping department.

Waynemarlow   1 kW

1 kW
Posts: 356
Joined: Jul 09 2016 7:22am
Location: Bucks, England

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

Post by Waynemarlow » Apr 09 2020 5:48am

I have a spare brass gear but you will have to tell me of which type. I'm not sure if you are EU based ?

bingo5   10 mW

10 mW
Posts: 27
Joined: Jul 04 2019 12:37am

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

Post by bingo5 » Apr 10 2020 2:42am

Waynemarlow wrote:
Apr 09 2020 5:48am
I have a spare brass gear but you will have to tell me of which type. I'm not sure if you are EU based ?
Apparently my PN hasn't been sent, so here's my answer again.

What do you mean? What kind of type? I mean this gear: https://de.aliexpress.com/item/32827565766.html
And yes, I come from the EU, from Germany to be precise.

orangecrumble   10 µW

10 µW
Posts: 6
Joined: Mar 21 2020 2:21pm

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

Post by orangecrumble » Apr 10 2020 11:01am

Hi. Since I had a few hassles getting the firmware flashed using the configurator I thought I should share the pitfalls I hit. I knew my stlink-v2 clone worked as I had installed Casainho fork on a sw102 but wanted to try EMTB as well as learn how to use the configurator as changing settings using the display is not my favourite hobby. Firstly I had installed the ST toolset from my own user account giving temporary Admin priviliges. On this install it doesn't give an option to install to the c:\ drive, I tried changing the flash.bat to the correct path. Didn't work. Looked at the compile_20 and found that also had ST link cmd.exe as C:\. couldn't change it as I am not the author (also was a stab at getting it working based on wiki advice at changing path in flash.bat rather than from any strong knowledge base). Gave up. Came back to it, logged on as admistrator, installed to C:\ went back to user account tried again, still getting errors, wasn't finding sdcc compiler. Logged on as Administrator, nearly worked, compiled but getting error saying ST link not working properly or busy. Knew it worked from previous install. Used battery instead of power from ST link and it all went smoothly. My advice to anyone using the configurator for the first time is use the admin account for installation and flashing.

Now that it's flashed my first impressions are that it is very good (nice work guys), all that's needed is a decent run to compare with sw102.

Waynemarlow   1 kW

1 kW
Posts: 356
Joined: Jul 09 2016 7:22am
Location: Bucks, England

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

Post by Waynemarlow » Apr 10 2020 11:59am

bingo5 wrote:
Apr 10 2020 2:42am
Waynemarlow wrote:
Apr 09 2020 5:48am
I have a spare brass gear but you will have to tell me of which type. I'm not sure if you are EU based ?
Apparently my PN hasn't been sent, so here's my answer again.

What do you mean? What kind of type? I mean this gear: https://de.aliexpress.com/item/32827565766.html
And yes, I come from the EU, from Germany to be precise.
There are two types, one has a straight cut gear and the other a helical gear ( late motor )

ilu   1 W

1 W
Posts: 62
Joined: Oct 18 2019 10:51am

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

Post by ilu » Apr 10 2020 12:32pm

Waynemarlow wrote:
Apr 10 2020 11:59am
bingo5 wrote:
Apr 10 2020 2:42am

What do you mean? What kind of type? I mean this gear: https://de.aliexpress.com/item/32827565766.html
And yes, I come from the EU, from Germany to be precise.
There are two types, one has a straight cut gear and the other a helical gear ( late motor )
I think the brass/nylon reduction gear is always helical, only the big main gear has helical and straight versions. Or am I wrong?

mariosss   1 µW

1 µW
Posts: 3
Joined: Mar 05 2018 7:42am

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

Post by mariosss » Apr 11 2020 2:51am

Hi everybody.
I want to buy a ST-LINK V2 to update the firmware of my my tsdz2.

Which device do you recommend to buy ?

1) ST-Link V2 Stlink Emulator Downloader Programming Mini (more or less ten dollars)

https://www.amazon.it/ST-LINK-Unit%C3%A ... s9dHJ1ZQ==

or

2) OVJ Emulatore ST-LINK / V2 (CN) Downloader ST LINK STLINK STM8 STM32 (more or less 30 dollars) ?

https://www.amazon.it/OVJ-Emulatore-ST- ... 286&sr=8-9


I don't understand the differences ?
Thanks!!!

ilu   1 W

1 W
Posts: 62
Joined: Oct 18 2019 10:51am

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

Post by ilu » Apr 11 2020 4:22am

mariosss wrote:
Apr 11 2020 2:51am
Hi everybody.
I want to buy a ST-LINK V2 to update the firmware of my my tsdz2.

Which device do you recommend to buy ?

1) ST-Link V2 Stlink Emulator Downloader Programming Mini (more or less ten dollars)

https://www.amazon.it/ST-LINK-Unit%C3%A ... s9dHJ1ZQ==

or

2) OVJ Emulatore ST-LINK / V2 (CN) Downloader ST LINK STLINK STM8 STM32 (more or less 30 dollars) ?

https://www.amazon.it/OVJ-Emulatore-ST- ... 286&sr=8-9


I don't understand the differences ?
Thanks!!!
I'd say the 1st one. Looks completely adequate and I've been using same kind of unit to update my firmware.

w0utje   1 mW

1 mW
Posts: 10
Joined: Jan 12 2020 3:02am

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

Post by w0utje » Apr 12 2020 2:57am

Buy it on AliExpress, it's like 2€ inc. shipping.

ilu   1 W

1 W
Posts: 62
Joined: Oct 18 2019 10:51am

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

Post by ilu » Apr 12 2020 3:41am

w0utje wrote:
Apr 12 2020 2:57am
Buy it on AliExpress, it's like 2€ inc. shipping.
For sure but shipping from China might take 2 weeks or 2 months atm.

maki1000   1 µW

1 µW
Posts: 2
Joined: Oct 07 2019 8:38am

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

Post by maki1000 » Apr 13 2020 2:38am

Hi, sorry for my poor english. I downloaded the software via Java cofnfigulator from this link https://github.com/stancecoke/TSDZ2-Sma ... /master?q= I set my battery to 14s and minimum voltage 42v and set 48v for the engine. I changed nothing more. Unfortunately, I still have a problem with the info button, which hangs the display and nothing can be done.

https://youtu.be/QuN4Mf73NRU

stefkrger   1 mW

1 mW
Posts: 18
Joined: Dec 03 2018 11:49am

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

Post by stefkrger » Apr 13 2020 5:14am

Just installed the latest fw from stancecoke git with my vlcd6. Now I’m having trouble understanding the on display configuration. Is there a more detailed guide than the manuals provided in the repository?

Elinx   100 W

100 W
Posts: 233
Joined: Aug 09 2019 6:58am

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

Post by Elinx » Apr 13 2020 7:14am

stefkrger wrote:
Apr 13 2020 5:14am
..... Is there a more detailed guide than the manuals provided in the repository?
Imho is this the most detailed guide you can get (5 pages}. It describes all steps in a logical order to configure the motor with the display. Only minor point is if you want this to do on the fly, you need to know al lot of information or have a paper copy with you.
Last edited by Elinx on Apr 13 2020 9:27am, edited 1 time in total.

cejean   100 µW

100 µW
Posts: 9
Joined: Jul 20 2019 5:41pm

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

Post by cejean » Apr 13 2020 8:38am

7lucky7 wrote:
Apr 04 2020 3:54pm
I'm really struggling to find a good guide to installing this on my tsdz2 with vlcd5 display. Can anyone please point a poor noob in the right direction.
I put my wanted settings in TDSZ2 Parameter Configurator and manual change settings in edit_advanced.bat.
After that i save settings in edit_advanced.bat file compile and flash the firmware.

When i want to change settings i put new settings in edit_advanced.bat file and compile. Now my old advanced.bat settings are overwritten.
Isn`t it possible to restore old _advanced.bat settings only? or is this only .ini settings in Parameter Configurator ? :?

mbrusa   10 W

10 W
Posts: 97
Joined: Dec 11 2019 12:13am

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

Post by mbrusa » Apr 14 2020 3:41am

maki1000 wrote:
Apr 13 2020 2:38am
Hi, sorry for my poor english. I downloaded the software via Java cofnfigulator from this link https://github.com/stancecoke/TSDZ2-Sma ... /master?q= I set my battery to 14s and minimum voltage 42v and set 48v for the engine. I changed nothing more. Unfortunately, I still have a problem with the info button, which hangs the display and nothing can be done.

https://youtu.be/QuN4Mf73NRU
The display broke?
Isn't it that you flashed with the display on?
The VLCD5 doesn't like this!
Flexible OpenSource firmware for TongSheng TSDZ2 motor and VLCD5 VLCD6 XH18 displays
https://github.com/emmebrusa/TSDZ2-Smart-EBike-1

mbrusa   10 W

10 W
Posts: 97
Joined: Dec 11 2019 12:13am

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

Post by mbrusa » Apr 14 2020 3:56am

cejean wrote:
Apr 13 2020 8:38am
I put my wanted settings in TDSZ2 Parameter Configurator and manual change settings in edit_advanced.bat.
After that i save settings in edit_advanced.bat file compile and flash the firmware.

When i want to change settings i put new settings in edit_advanced.bat file and compile. Now my old advanced.bat settings are overwritten.
Isn`t it possible to restore old _advanced.bat settings only? or is this only .ini settings in Parameter Configurator ? :?
In the next version that I will release shortly, all the parameters will be in the configurator.
Java Configurator Layout (3 tab)
Flexible OpenSource firmware for TongSheng TSDZ2 motor and VLCD5 VLCD6 XH18 displays
https://github.com/emmebrusa/TSDZ2-Smart-EBike-1

Elinx   100 W

100 W
Posts: 233
Joined: Aug 09 2019 6:58am

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

Post by Elinx » Apr 14 2020 9:39am

mbrusa wrote:
Apr 14 2020 3:56am
,,,,
In the next version that I will release shortly, all the parameters will be in the configurator.
Java Configurator Layout (3 tab)
:bigthumb:

ilu   1 W

1 W
Posts: 62
Joined: Oct 18 2019 10:51am

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

Post by ilu » Apr 14 2020 11:21am

mbrusa wrote:
Apr 14 2020 3:56am
In the next version that I will release shortly, all the parameters will be in the configurator.
Java Configurator Layout (3 tab)
Awesome! Thank you for your work. I feel this firmware version works really well and with the configurator the settings will be easier to manage, especially for new users.

emr   1 W

1 W
Posts: 55
Joined: Apr 22 2018 5:37am

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

Post by emr » Apr 14 2020 4:05pm

ilu wrote:
Apr 14 2020 11:21am
mbrusa wrote:
Apr 14 2020 3:56am
In the next version that I will release shortly, all the parameters will be in the configurator.
Java Configurator Layout (3 tab)
Awesome! Thank you for your work. I feel this firmware version works really well and with the configurator the settings will be easier to manage, especially for new users.
Yea, me too. I haven't experienced any issues with the 20.1Beta. Having the option to change settings in the configurator will be a useful update, especially for those not so comfortable with editing the text file.

Thanks to @StanceCoke for making the new configurator design available and thanks to @Mbrusa for the updates. I am sure all the riders appreciate the excellent work you have done.

Cheers Emma

Post Reply