Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Electric Motors and Controllers
Nfer   10 W

10 W
Posts: 83
Joined: Sep 17 2019 6:51am

Re: Tsdz2 firmware open source adapted to vlcd5

Post by Nfer » Sep 25 2019 7:22am

I changed the K to 0.36 and the timeout to 3 and it is much better

Diva   100 mW

100 mW
Posts: 39
Joined: Sep 03 2014 9:20am
Location: Belgium
Contact:

Re: Tsdz2 firmware open source adapted to vlcd5

Post by Diva » Sep 25 2019 1:57pm

Hi!
Would someone have the original .hex file for a KT LCD3?
As it looks easy to modify program the tsdz2 with this program, I'd like to have all the original functionalities of the LCD (odometer etc.)...
Thanks in advance!

Hypermobile   1 µW

1 µW
Posts: 4
Joined: Aug 28 2019 12:48pm

Re: Tsdz2 firmware open source adapted to vlcd5

Post by Hypermobile » Sep 25 2019 2:02pm

Diva wrote:
Sep 25 2019 1:57pm
Hi!
Would someone have the original .hex file for a KT LCD3?
As it looks easy to modify program the tsdz2 with this program, I'd like to have all the original functionalities of the LCD (odometer etc.)...
Thanks in advance!
There was no way to retreive the original KT-LCD3 software i believe (it's protected)
second: it's maybe better to ask this in another topic; this topic is about the original screen :roll:

Hypermobile   1 µW

1 µW
Posts: 4
Joined: Aug 28 2019 12:48pm

Re: Tsdz2 firmware open source adapted to vlcd5

Post by Hypermobile » Sep 25 2019 2:05pm

danielson wrote:
Sep 23 2019 4:37am
Thanks.
I set Street mode to 500w and Max speed of 45kph and l couldn't seem to tell the difference between E03 and E04 in level 1. Heat also seemed about the same getting to around 63°C on my 8km ride home from work using speed and turbo modes. I'm running a small stand alone temperature gauge with the probe inside the case between the motor and controller.

Does EMTB mode need to be disabled (E01 in level 3) for other modes to work correctly ?
Then you won't notice a lot of difference.

i've set street mode to 250watt and 25 kmph (official rule in the Netherlands)
when i power by bike. it's legal.

if i switch to e4...and i'm Neil Armstrong :shock:
i can do 40kmph without assistanse so, so it's pretty difficult to proove i have a speed bike

danielson   10 mW

10 mW
Posts: 33
Joined: Aug 21 2019 1:45am

Re: Tsdz2 firmware open source adapted to vlcd5

Post by danielson » Sep 26 2019 5:53am

Possibly dangerous in the wrong situation.
I was on my way home from work tonight it was dark and the road was wet - no traffic. My headlight has its own battery and I didn't have the backlight enabled on the VLCD5 as I find it to bright and it makes it difficult to see the road . As I passed under a streetlight and crossed the bridge going over the highway I noticed the speed on my dash was 24.8 which was odd as it felt like I was going faster than that and again as I passed under a light on the other side I noticed the speed was the same. I exited the roundabout and went down a fairly long steep hill without peddling and it wasn't until I got to the flat section and the uphill on the other side and still wasn't pedaling that I realised that the motor was in a fixed power state - I don't have a throttle connected so it was not that. I changed down a few gears and could hear the motor revs increase as the motor assisted me up the hill on the other side, I tried decreasing the power with the buttons but nothing changed and also tried pulling my brake in which has a switch and usually deactivates the motor however nothing changed.
Fortunately I was able to reach down to the switch on the battery and turn the power off. I then turned everything back on and road the next 4 kilometers home without an issue.
Thoughts on what caused this ???
Dan

Elinx   1 kW

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

Re: Tsdz2 firmware open source adapted to vlcd5

Post by Elinx » Sep 26 2019 9:11am

danielson wrote:
Sep 26 2019 5:53am
Possibly dangerous in the wrong situation.
.......
Thoughts on what caused this ???
This is a known issue with older versions of Marcoq's software. Marcoq had solved this with the latest version. 3.7- M.0.19C
Are you sure you have flashed this version ?

Please read back and you find more about this problem.

danielson   10 mW

10 mW
Posts: 33
Joined: Aug 21 2019 1:45am

Re: Tsdz2 firmware open source adapted to vlcd5

Post by danielson » Sep 26 2019 8:53pm

I'm using the V19 and 3.7. I tried to duplicate it this morning with no success. The only other thing I recall doing was toggling the light switch on and then off in turbo mode prior to this happening. It was not a bad situation for me but if the battery did not have a switch within easy reach I would not have known what to do.

Elinx   1 kW

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

Re: Tsdz2 firmware open source adapted to vlcd5

Post by Elinx » Sep 27 2019 12:43am

danielson wrote:
Sep 26 2019 8:53pm
I'm using the V19 and 3.7. ........
v. 19C is the latest.
Version 19A and B has this stil this bug.
So, if you want to prevent the same problem, check thoroughly if you have the "C" version of the firmware.
The java-configurator v3.7 is the same for all.

danielson   10 mW

10 mW
Posts: 33
Joined: Aug 21 2019 1:45am

Re: Tsdz2 firmware open source adapted to vlcd5

Post by danielson » Sep 27 2019 4:03am

Pretty sure l used the firmware from the github that stancoke had a link to page 14 l think. I'm away for a few days so will check when l return and update of required.

Elinx   1 kW

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

Re: Tsdz2 firmware open source adapted to vlcd5

Post by Elinx » Sep 27 2019 9:26am

danielson wrote:
Sep 27 2019 4:03am
Pretty sure l used the firmware from the github that stancoke had a link to page 14 l think. I'm away for a few days so will check when l return and update of required.
The github version of stancecoke is indeed the 19C version too. Inside the files, the date is: 31/7/2019

Nfer   10 W

10 W
Posts: 83
Joined: Sep 17 2019 6:51am

Re: Tsdz2 firmware open source adapted to vlcd5

Post by Nfer » Sep 27 2019 7:24pm

I had that issue this afternoon. Going Manhattan uphill 18mph, I stopped pedaling because I was to close the bike in front of me. But the motor kept pushing 18mph so I reduced the assist level but no changes. I turned off the motor from the display and that was it. Thank god I just read you post before I took the bike.
I was riding in turbo. I don’t have lights but not sure if the display backlight was on. I don’t have brake sensors.

Version 19c installed three weeks ago. 90 miles of use before today. Pretty scary because I bike with my daughter.

Nfer   10 W

10 W
Posts: 83
Joined: Sep 17 2019 6:51am

Re: Tsdz2 firmware open source adapted to vlcd5

Post by Nfer » Sep 27 2019 7:29pm

danielson wrote:
Sep 26 2019 8:53pm
I'm using the V19 and 3.7. I tried to duplicate it this morning with no success. The only other thing I recall doing was toggling the light switch on and then off in turbo mode prior to this happening. It was not a bad situation for me but if the battery did not have a switch within easy reach I would not have known what to do.
I was in turbo too! Usually I ride in level 2 or 3 but for that hill I put turbo

Ackmaniac   10 mW

10 mW
Posts: 27
Joined: Jan 02 2017 8:30pm

Re: Tsdz2 firmware open source adapted to vlcd5

Post by Ackmaniac » Sep 30 2019 6:10pm

Just forked the repository and added my changes. Also added a pull request to stancokes repository. Feel free to give it a try.
Features are
Changes from battery current to motor current as the main control loop.
Range of the torque sensor is set to a maximum. Old firmware only supported 32 ADC steps. Don't know where the ADC is in idle but if it is in the middle (128) then there are 127 steps to 255 instead of only 32.so you should feel a steady increase in output power when you add more power.
Errors are now also.shown after a mode change. Also overtemperature error E06 will start to blink when the temperature power reduction has started and become solid when the max temperature is reached.

Elinx   1 kW

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

Re: Tsdz2 firmware open source adapted to vlcd5

Post by Elinx » Oct 02 2019 2:57am

Ackmaniac wrote:
Sep 30 2019 6:10pm
Just forked the repository and added my changes. ..........
Thank you for this contribution. Looking forward to it.
I presume it must be flashed with STM or is it possible to use Marcoq's java configurator too?

Atrihalov   100 mW

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

Re: Tsdz2 firmware open source adapted to vlcd5

Post by Atrihalov » Oct 02 2019 7:49am

Elinx wrote:
Oct 02 2019 2:57am
Ackmaniac wrote:
Sep 30 2019 6:10pm
Just forked the repository and added my changes. ..........
Thank you for this contribution. Looking forward to it.
I presume it must be flashed with STM or is it possible to use Marcoq's java configurator too?
Sorry, please link.

User avatar
stancecoke   100 kW

100 kW
Posts: 1312
Joined: Aug 02 2017 2:56pm

Re: Tsdz2 firmware open source adapted to vlcd5

Post by stancecoke » Oct 02 2019 11:00am

Atrihalov wrote:
Oct 02 2019 7:49am
Sorry, please link.
see here:
https://github.com/AckmaniacSoftware/TS ... D6-display
Ackmaniac wrote:
Sep 30 2019 6:10pm
Also added a pull request to stancokes repository
Sorry, but I don't want to do any work on this project, please contact marcoq to update his repo directly.

regards
stancecoke

Ackmaniac   10 mW

10 mW
Posts: 27
Joined: Jan 02 2017 8:30pm

Re: Tsdz2 firmware open source adapted to vlcd5

Post by Ackmaniac » Oct 04 2019 2:32am

Elinx wrote:
Oct 02 2019 2:57am
Ackmaniac wrote:
Sep 30 2019 6:10pm
Just forked the repository and added my changes. ..........
Thank you for this contribution. Looking forward to it.
I presume it must be flashed with STM or is it possible to use Marcoq's java configurator too?
You can use Marcos editor.

Ackmaniac   10 mW

10 mW
Posts: 27
Joined: Jan 02 2017 8:30pm

Re: Tsdz2 firmware open source adapted to vlcd5

Post by Ackmaniac » Oct 04 2019 2:35am

stancecoke wrote:
Oct 02 2019 11:00am
Atrihalov wrote:
Oct 02 2019 7:49am
Sorry, please link.
see here:
https://github.com/AckmaniacSoftware/TS ... D6-display
Ackmaniac wrote:
Sep 30 2019 6:10pm
Also added a pull request to stancokes repository
Sorry, but I don't want to do any work on this project, please contact marcoq to update his repo directly.

regards
stancecoke
Does somebody know him and can tell time about the changes so take a look at. He provides his changes via Zip files which makes it not possible to create pull requests for it.
But if anybody is interested they can have a look my repository and give it a try.

chri27.5   10 mW

10 mW
Posts: 34
Joined: Jan 25 2019 9:46am

Re: Tsdz2 firmware open source adapted to vlcd5

Post by chri27.5 » Oct 07 2019 10:01am

Intanto ringrazio Achmaniac per il suo contributo,
sarei interessato a testare le tue modifiche.
Dove posso scaricare il file?
E' possibile utilizzare il configuratore Java di marcop con le tue modifiche?
Potresti spiegare come fare per aggiornare?
Grazie mille

Elinx   1 kW

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

Re: Tsdz2 firmware open source adapted to vlcd5

Post by Elinx » Oct 07 2019 10:44am

chri27.5 wrote:
Oct 07 2019 10:01am
Intanto ringrazio Achmaniac per il suo contributo,......
chri27.5 wrote:
Oct 07 2019 10:01am
google>>
Meanwhile, I thank Achmaniac for his contribution,
I would be interested in testing your changes.
Where can I download the file?
Is it possible to use the Java configurator of marcop with your modifications?
Could you explain how to update?
thanks a lot
You can download the file here.
The java configurator from Marcoq is inside the zip file

google>>
Puoi scaricare il file qui.
Il configuratore java di Marcoq si trova nel file zip
Last edited by Elinx on Oct 07 2019 10:51am, edited 1 time in total.

Elinx   1 kW

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

Re: Tsdz2 firmware open source adapted to vlcd5

Post by Elinx » Oct 07 2019 10:49am

double

chri27.5   10 mW

10 mW
Posts: 34
Joined: Jan 25 2019 9:46am

Re: Tsdz2 firmware open source adapted to vlcd5

Post by chri27.5 » Oct 07 2019 2:22pm

Grazie Elinx,
è sufficiente aprire il configuratore e flesciare?

chri27.5   10 mW

10 mW
Posts: 34
Joined: Jan 25 2019 9:46am

Re: Tsdz2 firmware open source adapted to vlcd5

Post by chri27.5 » Oct 07 2019 2:23pm

Grazie Elinx,
è sufficiente aprire il configuratore e programmare?

Elinx   1 kW

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

Re: Tsdz2 firmware open source adapted to vlcd5

Post by Elinx » Oct 07 2019 6:16pm

chri27.5 wrote:
Oct 07 2019 2:23pm
....
è sufficiente aprire il configuratore ...
chri27.5 wrote:
Oct 07 2019 2:23pm
google>>.....
is it enough to open the configurator and to flex?
Is it enough to open the configurator and program?
Flashing is exactly the same as you must do with the original one of Marcoq
If you have already an "ini" file for version 19C, you can copy or change these settings here too.
Ackmaniac has just changed a small part (4 files) of it, so I don't think you will see differences with the configurator.

google>>
Il lampeggiamento è esattamente lo stesso di quello che devi fare con quello originale di Marcoq
Se hai già un file "ini" per la versione 19C, puoi copiare o modificare anche queste impostazioni qui.
Ackmaniac ha appena cambiato una piccola parte (4 file), quindi non penso che vedrai differenze con il configuratore.

Ackmaniac   10 mW

10 mW
Posts: 27
Joined: Jan 02 2017 8:30pm

Re: Tsdz2 firmware open source adapted to vlcd5

Post by Ackmaniac » Oct 07 2019 6:28pm

Only difference in the configurator is that the values "PWM Duty Cylce Ramp up" and "PWM Duty Cylce Ramp Dw" now also control the motor current.
So before they controlled a range of 17 battery amps and now they control 30 motor amps. So if you think it reacts to slow you can decrease the values to make it faster.

BTW, in the version of marco there is a bug. If you set the value for up too small the motor will ramp up to max power in a fraction of a second. I fixed that bug as well. So please don't even give it a try because i guess that even the protection algorithms won't save you from damaging the controller. Think below 0.6 you get issues. So please don't try.

Post Reply