Tsdz2 firmware open source adapted to vlcd5, vlcd6 and xh18

Electric Motors and Controllers
Elinx   10 kW

10 kW
Posts: 653
Joined: Aug 09 2019 6:58am

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

Post by Elinx » May 19 2021 3:26am

kadleca wrote:
May 19 2021 2:35am
....
Do I have to let the Torque sensor adv. on startup enabled or does not matter now?
...
These values are more realistic :)
After calibration, you must enter these values into the configurator and enable “Torque sensor adv. on startup” and "torque sensor calibrated" and flash again. If you don't do this, the default values are back with startup.

It is possible to save these settings with the display too, but requires attention for the right button sequence, which was your problem in the first place :wink:
So imho it is easier to flash again and you have also an recent "ini" file too, with these last settings, which can be usefull the next time if you want to see if something had changed, flash a new version or more like that.

kadleca   10 µW

10 µW
Posts: 6
Joined: May 04 2021 1:21am

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

Post by kadleca » May 19 2021 7:44am

I entered this value in configurator enabled “Torque sensor adv. on startup” and "torque sensor calibrated" and flashed it again. The new .ini files I renamed and saved.
I used the poor man flash conection with three wires, it is easy .
I have two TSDZ2. In the 5-yaers I had to change controller, because VLDC5 was loosing conection with controller no matter OSF or stock firmware.
In the older one I have LiFePol4 battery so I apreciate that I can set up disarge voltage in configurator.
best regards
Antonin

Elinx   10 kW

10 kW
Posts: 653
Joined: Aug 09 2019 6:58am

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

Post by Elinx » May 19 2021 7:56am

kadleca wrote:
May 19 2021 7:44am
I entered this value in configurator...........
:thumb:

kadleca   10 µW

10 µW
Posts: 6
Joined: May 04 2021 1:21am

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

Post by kadleca » May 19 2021 9:25am

There is a small tab that can be useful for quick orientation off VLCD5 control
Attachments
Tab_controll.pdf
VLCD5 controll tab
(130.93 KiB) Downloaded 137 times

Akita   100 mW

100 mW
Posts: 46
Joined: Apr 29 2021 10:20am

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

Post by Akita » May 23 2021 8:33am

kadleca wrote:
May 19 2021 9:25am
There is a small tab that can be useful for quick orientation off VLCD5 control
Very good.

mossboss   10 mW

10 mW
Posts: 21
Joined: Nov 05 2018 8:47pm

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

Post by mossboss » May 24 2021 3:22pm

Greetings, I'm really enjoying this firmware with my VLCD6 display. Particularly great is sensitivity to sub-revolution pedal strokes, at least when coasting or accelerating from stopped. One challenge I find is when coming to a stop, the torque sensitivity is still higher than I like even when Assist without pedal threshold is set to 1. So, I'd like to install a hydraulic brake sensor cutoff (the magnet system), but I'm not sure if this is possible with a VLCD6. I see there are kits for VLCD5's, but they don't appear compatible. Does anyone have experience with this?

TimV   10 mW

10 mW
Posts: 32
Joined: Jun 02 2013 10:49am
Location: Antwerp in Belgium

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

Post by TimV » May 26 2021 10:48am

If I aim in the wrong thread, please let me know.

I have used the tuning fork from emmebrusa.

Here are my settings.

What did I do wrong, if I set it to street mode with 250W and 25km/h speed limit on the screen, it does nothing. It still has full power and goes above 50km/h.

Going to drive a big tour (100km) on sunday and will drive trough a town where I want to use the legal limit 😅
Attachments
Screenshot_20210526-174555_Gallery.jpg
Screenshot_20210526-174555_Gallery.jpg (731.62 KiB) Viewed 614 times
Screenshot_20210526-174550_Gallery.jpg
Screenshot_20210526-174550_Gallery.jpg (727.21 KiB) Viewed 614 times

mbrusa   1 kW

1 kW
Posts: 314
Joined: Dec 11 2019 12:13am

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

Post by mbrusa » May 26 2021 11:09am

Street mode must be enabled.
You can do it on the display, by reading the operating manual.
Or by enabling "Street mode enabled on startup" in the configurator.

TimV   10 mW

10 mW
Posts: 32
Joined: Jun 02 2013 10:49am
Location: Antwerp in Belgium

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

Post by TimV » May 26 2021 11:13am

mbrusa wrote:
May 26 2021 11:09am
Street mode must be enabled.
You can do it on the display, by reading the operating manual.
Or by enabling "Street mode enabled on startup" in the configurator.
I set the 25km/h limit on "on" in the display, but did nothing. If I enable on startup in the configurator, then it is always on when I turn the system on?

mbrusa   1 kW

1 kW
Posts: 314
Joined: Dec 11 2019 12:13am

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

Post by mbrusa » May 26 2021 11:59am

There are two possibilities:
1 - use Street mode as I have already described.
2 - use the speed limit that can be set on the display.
By default it is not possible to set the speed limit on the display, to do this you must enable "Set max speed from display" in the configurator.
Attention, it is not necessary to enable Street mode, but the power limit will be "Battery power max".

Elinx   10 kW

10 kW
Posts: 653
Joined: Aug 09 2019 6:58am

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

Post by Elinx » May 26 2021 1:29pm

TimV wrote:
May 26 2021 11:13am
.....
I set the 25km/h limit on "on" in the display, but did nothing. If I enable on startup in the configurator, then it is always on when I turn the system on?
It is important to study the enclosed manuals to understand how to change the settings with the standard display.
Because the operation is different from what you were used to do and it takes some practice to understand how it works.
That way you won't be faced with surprises during the ride.

w0utje   10 mW

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

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

Post by w0utje » Jun 02 2021 2:52pm

Hmmm, after flashing like a 100times now the mtb gives an error. Streetbikes is an easy flash but the mtb wont take the firmware anymore. When I turned on the mtb before the flash it had no assistance from the motor and it said the battery had 1 bar. But the battery is full and I did 55km last wednesday wen it worked just flawlessly.
It says it cant flash because of "error on option bytes, reprogram option bytes from device", any ideas? Did the controller fail, because at start it says its 1 bar and doesnt provide assistance?

Elinx   10 kW

10 kW
Posts: 653
Joined: Aug 09 2019 6:58am

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

Post by Elinx » Jun 02 2021 5:35pm

w0utje wrote:
Jun 02 2021 2:52pm
...
It says it cant flash because of "error on option bytes, reprogram option bytes from device", any ideas? ..
Flash the optionbyte again is maybe the solution. You can do this with STVP.
The file "option_stock.ihx" inside src/controller

w0utje   10 mW

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

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

Post by w0utje » Jun 03 2021 1:40am

Yeah, tried to read it with svtp but that didnt work. Will try to flash but reading gave an error.

Elinx   10 kW

10 kW
Posts: 653
Joined: Aug 09 2019 6:58am

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

Post by Elinx » Jun 03 2021 4:21am

w0utje wrote:
Jun 03 2021 1:40am
... tried to read it with svtp but that didnt work. ...
Only reading a file didn't work?
Had you choosen the "option byte" tab before?

w0utje   10 mW

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

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

Post by w0utje » Jun 03 2021 11:01am

Flashing and reading didn't work with stvp, but only tried the main.ixh. not the option byte, will try that tomorrow. The other bike connected right away and could be easily read/ flashed. So had the wires like it is supposed to be ;)
The MTB motor was the easy motor to flash, powered it on and then it gave to low battery and no assistance. Strange cause I biked 55km last week and just turned out if and charged the battery(on the bike) after that it didn't work anymore.

Elinx   10 kW

10 kW
Posts: 653
Joined: Aug 09 2019 6:58am

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

Post by Elinx » Jun 03 2021 2:08pm

w0utje wrote:
Jun 03 2021 11:01am
Flashing and reading didn't work with stvp,.....
Both had to do with right connections to the tsdz2, so check carefully for that.
I did mean opening a file with STVP. If you don't want errors....
Choose first the right tab and open a file from your computer.

w0utje   10 mW

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

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

Post by w0utje » Jun 03 2021 11:42pm

Connection was right, the other motor connected easily. Going to try today if I can fix it.

Waynemarlow   10 kW

10 kW
Posts: 620
Joined: Jul 09 2016 7:22am
Location: Bucks, England

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

Post by Waynemarlow » Jun 04 2021 3:00am

Some motors you need to use 3.3 volts rather than 5 volts, just change the header over on the adjacent pin on the programmer.

w0utje   10 mW

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

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

Post by w0utje » Jun 04 2021 8:23am

Flashed the mtb a lot of times, but now after using it a week back I started it up and it showed just 1 battery bar after I charged the battery, If I pedal I get no assistance at all and the speedometer is not working at all. So tried to flash it, wich ive done 100 times before but now I doesnt work anymore. Going to try to restore the option byte file, hopefully that works. Cause I couldnt use svtp to read the files of the mtb. So I quess maybe the controller has died?
Thinking of ordering a complete motor again, so got all the spareparts I need for the 2 motors I use. Gonna try to get the mtb running again now.

After 100 times pushing the button for the flash in svtp and after 99 errors it finally did it, option byte restored and the MTB is ready for some shredding. New firmware was an ez install after that.

a11yhacker   100 µW

100 µW
Posts: 9
Joined: Apr 21 2021 2:05pm
Location: Colorado, USA

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

Post by a11yhacker » Jun 05 2021 10:11pm

Hi everybody! Just today I got my TSDZ2-powered handcycle running today, but I'm having some problems related to overvoltage (E08).

I'm currently using the XH18 display with the latest release version of the firmware tool (not the pre-release). I'm using the 36V coaster brake version of the TSDZ2, along with this 48V battery (13 series and 4 parallel). My settings are as shown in this screenshot.

I successfully flashed the firmware. The motor works fine when I turn on walk assist. However, when I use pedal assist, the motor switches on for about 30 seconds, then cuts out, with the error E08 on the display. Resetting the XH18 causes it to work again for a few seconds, then repeats the same error. I assume it's something in the settings causing this, but I'm not sure what to change, and it takes some effort to make changes, compile, reflash, and test. Any help would be appreciated.

One other question - I pedal the handcycle with one arm, which is a lot of strain on that arm and also means I move slowly. From what I've seen, the TSDZ2 seems to be optimized for pedaling with more force and speed. Are there are any settings that would make the motor work better for slower pedaling and lower amounts of force?

a11yhacker   100 µW

100 µW
Posts: 9
Joined: Apr 21 2021 2:05pm
Location: Colorado, USA

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

Post by a11yhacker » Jun 06 2021 3:33pm

Actually, I solved my own problem. The E08 was not overvoltage, but the speed sensor (as noted in the firmware documentation). I hadn't connected the speed sensor because the cable is too short for my bike. I went into the C code and commented out the speed sensor check, and now everything works! Once my speed sensor extension cable arrives, I'll mount the sensor and add the check back in.

jmp   10 µW

10 µW
Posts: 5
Joined: Jun 05 2021 2:52am

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

Post by jmp » Jun 07 2021 2:41am

Hello to all of you and congratulations for this excellent job with this OSF firmware !
I am new in this forum so, maybe, I don't post at the right place, I apologize for that if it is the case.
I have a 8 PIN TSDZ2 controller, (throttle and ebrake functions) an XH18 Display, and I tried to install brake sensors using a splitter 1T2 (6 PIN / 2 PIN), described here :
https://www.aliexpress.com/item/3285681 ... 4c4dpZbPZZ
The 6 PIN cable is connected to the XH18.
I ordered the Bafang Y Splitter cable and the magnetic brake sensors described in the following link :
https://github.com/OpenSourceEBike/TSDZ ... ke_sensors
I didn't cut the Y splitter cable as described to connect it to the 6 PIN cable, but I just connected it to the 2 PIN cable of the 1T2 splitter.
But the brake sensors don't seem to be detected, and the cruise assist doesn't work. Can you tell me if it is possible to make it working ?
Many thanks for your help.

Elinx   10 kW

10 kW
Posts: 653
Joined: Aug 09 2019 6:58am

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

Post by Elinx » Jun 07 2021 9:02am

jmp wrote:
Jun 07 2021 2:41am
....
I am new in this forum so, maybe, I don't post at the right place, ..
Imho you better can ask in the general Tsdz2 topic
I have moved and answered your question to there.
Last edited by Elinx on Jun 08 2021 3:16am, edited 1 time in total.

jmp   10 µW

10 µW
Posts: 5
Joined: Jun 05 2021 2:52am

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

Post by jmp » Jun 08 2021 2:51am

Many thanks Elinx ! I go there...

Post Reply