TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Electric Motors and Controllers
dameri   100 W

100 W
Posts: 234
Joined: Sep 20 2018 10:57am

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by dameri » Mar 12 2021 9:30am

I wonder if these old drivers should be bought in stock as long as they are available.

https://www.pswpower.com/products/bare- ... id-motor-1

AZUR   100 W

100 W
Posts: 209
Joined: Apr 05 2018 6:52am

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by AZUR » Mar 12 2021 9:44am

casainho wrote:
Sep 24 2020 12:10pm
AZUR wrote:
Sep 20 2020 9:59am
If PWM = 0 the motor power is zero.

Power Delay Issue it is more visible, on youtube, if the video is being presented with a playback speed of 0.25.
I think I understand the root of this issue, and may be the same for the issue on lights not working. I think the issue is that the firmware is trying to control the current with a minimum value 0.156 amps with the same as the control step of 0.156 amps - I mean, the current min value should be an higher value like 1 amp, so there are 6 steps to control the current. Right now, I think that when PWM is 0 and will start to increase, the current value will bounce near zero before finally increase and that bounce is taking the undesirable time... I thin the solution may be to force the min current value to be like 1 amp.

My focus is to develop the TSDZ2 wireless and then I will be back to the TSDZ2 firmware.
HI all,

Power Delay Isue, is also being analyzed in the mbrusa forum.

viewtopic.php?f=30&t=110682&start=75#p1624431

The problem is not yet solved and it is very demotivating, for those who do mountain biking, on complex trails.

Below I present the link to anyone who wants to help,

Thanks

Azur

devboy-greg   10 mW

10 mW
Posts: 33
Joined: Jan 10 2020 1:20pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by devboy-greg » Mar 12 2021 10:13am

casainho wrote:
Mar 12 2021 4:54am
nbdriver wrote:
Mar 12 2021 4:30am
So as for today it seems very difficult to order a motor compatible with the OSF, it is a shame... and not good for the people who want to enter in this wonderful project today...
Buy the old motor controller for 35€ - done!

And please add this information to the wiki!!
The question I have before I buy a spare (hopefully old) controller or two is whether at some point in the future it will be possible to flash the new infineon controller with the OSF?
I’m well aware that these things are easy to ask for but difficult to implement! Thanks for all that you do.

casainho   100 GW

100 GW
Posts: 5777
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by casainho » Mar 12 2021 10:33am

devboy-greg wrote:
Mar 12 2021 10:13am
casainho wrote:
Mar 12 2021 4:54am
nbdriver wrote:
Mar 12 2021 4:30am
So as for today it seems very difficult to order a motor compatible with the OSF, it is a shame... and not good for the people who want to enter in this wonderful project today...
Buy the old motor controller for 35€ - done!

And please add this information to the wiki!!
The question I have before I buy a spare (hopefully old) controller or two is whether at some point in the future it will be possible to flash the new infineon controller with the OSF?
I’m well aware that these things are easy to ask for but difficult to implement! Thanks for all that you do.
Please donate to me or other developers (like mbrusa or mspider65) the new motor controllers!!
- TSDZ2 and OpenSource EV display: 128x64 OLED display, easy to build as DIY, Bluetooth and ANT, OTA wireless updates, easy to repair and customize for other EVs.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of OpenSource knowledge and technology for ebikes: OpenSource EV display, Wireless EBike standard ANT+ and Bluetooth, TSDZ2 OpenSource firmware, KT motor controllers and displays.

devboy-greg   10 mW

10 mW
Posts: 33
Joined: Jan 10 2020 1:20pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by devboy-greg » Mar 12 2021 10:45am

casainho wrote:
Mar 12 2021 10:33am
devboy-greg wrote:
Mar 12 2021 10:13am
casainho wrote:
Mar 12 2021 4:54am
nbdriver wrote:
Mar 12 2021 4:30am
So as for today it seems very difficult to order a motor compatible with the OSF, it is a shame... and not good for the people who want to enter in this wonderful project today...
Buy the old motor controller for 35€ - done!

And please add this information to the wiki!!
The question I have before I buy a spare (hopefully old) controller or two is whether at some point in the future it will be possible to flash the new infineon controller with the OSF?
I’m well aware that these things are easy to ask for but difficult to implement! Thanks for all that you do.
Please donate to me or other developers (like mbrusa or mspider65) the new motor controllers!!
No problem, I will PM you...

Peacepirate   100 mW

100 mW
Posts: 36
Joined: Sep 22 2020 11:49am

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by Peacepirate » Mar 13 2021 8:11am

This is the link to r0nkos fork for all those who are unhappy with the actual motor behaviour.

viewtopic.php?t=105973

It is a torque only mode with immediate response And its compatible with the sw102 displays...
For me the best solution unless this mode isn’t implemented in the standard open source firmware. Since this mode already exists i wonder why this issue cant be fixed...
however

HughF   100 W

100 W
Posts: 262
Joined: Jan 23 2020 6:13pm
Location: Dorset, England

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by HughF » Mar 16 2021 3:06am

Peacepirate wrote:
Mar 13 2021 8:11am
This is the link to r0nkos fork for all those who are unhappy with the actual motor behaviour.

viewtopic.php?t=105973

It is a torque only mode with immediate response And its compatible with the sw102 displays...
For me the best solution unless this mode isn’t implemented in the standard open source firmware. Since this mode already exists i wonder why this issue cant be fixed...
however
It is going to be related to one of these changes:

Current ramp made quicker
PWM ramp-up made a bit quicker

The current ramp is multiplied by 3 internally in the firmware, so if you set 6a/sec, the firmware will ramp at 18a/sec - it could be this. I will see if I can get time to look at the internals of motor.c today and compare with the current version used in v20.1c
Genesis iOiD Alfine8 Hard tail MTB, 36v TSDZ2, 13s battery, SW102 display
Raleigh reynolds road frame from the 80's, 36v TSDZ2, 13s battery, SW102 display, 1x10 drivetrain, gravel tyres

sapocube   1 µW

1 µW
Posts: 1
Joined: Mar 26 2021 5:41am

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by sapocube » Mar 26 2021 5:44am

Hello,

For more than 2 years I was using the opensource firmware with the KT-LCD3 display and I was fully satisfied (v0.20.0-beta.1). I take this opportunity to thank all the community the work
work done is simply remarkable ;)
I just switched to the new firmware (v1.1.0) with the 860C display and I despair to find the behavior I had until now. I used as much as possible the same settings but I did not activate the torque sensor calibration.

My power assist has a delay of a few hundred ms which makes the experience much less pleasant than it was:

1- This delay is present at startup
2- This delay is also present at the stop of the pedaling

Point 2 is more annoying, since I have to stop pedaling for a longer time to change gears (to reduce the stress on the chain/derailleur) before starting pedaling again.

On the motor side, I'm using TSDZ2-v1.1.1.hex firmware, maybe I should flash v1.1.0 (I didn't try)? What are the differences between the 2 versions?

In short, as I only changed the software, I think that there must be a setting that I don't understand, could you give me an idea of what is happening?

Thanks guys!

darione   1 µW

1 µW
Posts: 3
Joined: Apr 07 2021 4:54pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by darione » Apr 08 2021 12:00pm

Hi guys, I've been messing around for days to flash and connect the 860C display to the TSDZ2 but I just can't.

Meanwhile, an easy question: is the 860C display (with the appropriate wire changes) compatible with the TSDZ2? That is with the original engine firmware, can the display show basic parameters like the VLCD6?

And now the hardest part: installed and configured drivers and software for the bootloader as indicated in github website, the display turns on so is powered correctly, but any attempt to program it with "Apt Burn Tools" fails.
I connected the two wires for the power supply and the two TX and RX wires, leaving out the orange wire of the display whose function I don't know.

Apt software shows "Waiting..." but nothing

List of all attempts made:
- correctly identified the COM port
- swap the RX and TX cables in both ways
- tested on laptop and desktop PC both with Windows 10
- all display keys work correctly
- programming performed with and without Administrator privileges
- numerous attempts to restart the display before and during programming
- tests performed with different supply voltages (between 27 and 38 volts)
- pressing the power button on the display both with the screen on and off
- duration of pressing the button from a simple click to a few seconds
- tests carried out with three different USB-UART bootloader

Could it be a non-reprogrammable version of the display?
860c firmware.jpg
860c firmware.jpg (146.57 KiB) Viewed 1594 times
860C seriale.jpg
860C seriale.jpg (183.3 KiB) Viewed 1594 times

bikelpl   1 mW

1 mW
Posts: 11
Joined: Jul 09 2019 1:52am

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by bikelpl » Apr 08 2021 12:08pm

darione wrote:
Apr 08 2021 12:00pm
Hi guys, I've been messing around for days to flash and connect the 860C display to the TSDZ2 but I just can't.

Did You connect ground (GND) from USB/UART with display's GND? It's common mistake that people forgot to make common ground with these two devices.

darione   1 µW

1 µW
Posts: 3
Joined: Apr 07 2021 4:54pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by darione » Apr 08 2021 12:23pm

bikelpl wrote:
Apr 08 2021 12:08pm
darione wrote:
Apr 08 2021 12:00pm
Hi guys, I've been messing around for days to flash and connect the 860C display to the TSDZ2 but I just can't.

Did You connect ground (GND) from USB/UART with display's GND? It's common mistake that people forgot to make common ground with these two devices.
Thank you for reply.
GND from USB/UART is connected to "IN-" of DC-DC Step up power and the "OUT-" to display GND
Uart e Power.jpg
Uart e Power.jpg (110.49 KiB) Viewed 1583 times

User avatar
hetm4n   1 W

1 W
Posts: 62
Joined: Aug 29 2019 6:30am

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by hetm4n » Apr 08 2021 4:40pm

Rydon wrote:
Mar 07 2021 11:55pm
mctubster wrote:
Mar 07 2021 9:49pm
Are you considering moving to v20.1c? Would love a patched 850c binary for that if you do

Cheers
mbrusa already did an 850C version for v20.1C. I have tested it. It works great!
I have uploaded the 20.1c versions to SW102. setup menu crashes very often. To set everything up, I had to disconnect the battery 16 times. But it worked. Driving test tomorrow.

I'm on a test drive. Much better than 1.1.0, you can say a masterpiece, the hybrid mode is a revelation. But, it's terribly power-hungry. After 12 km on flat terrain, I heated up to 72 °, the consumption was quite high in the 5th mode out of 9 practically around 500W pulls. 3V battery drop after 12km. Where on 0.8 with a calibrated sensor I did 2x as much on a similar support factor (50%), but I never reached 60 ° on the same route. And the power fluctuated in the range of 100-250W with the same sensations of support.

This weakening of the field does not suit me terribly, I like a low cadence, but when I crank the crank around 110, I do not feel any resistance at all and the 350W power consumption jumps in. It is a pity that it can not be turned off because it may be the reason of power-hungry in the lower cadence and the effect of 0 ...
Last edited by hetm4n on Apr 09 2021 12:59pm, edited 1 time in total.
mongoose teocali comp 2014 TSDZ2 750W 13s3p & 13s7p
dartmoor primal 2017 bafang BBS02b 750W 13s6p

mctubster   1 kW

1 kW
Posts: 305
Joined: Feb 26 2018 6:21am

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by mctubster » Apr 08 2021 9:19pm

darione wrote:
Apr 08 2021 12:23pm
bikelpl wrote:
Apr 08 2021 12:08pm
darione wrote:
Apr 08 2021 12:00pm
Hi guys, I've been messing around for days to flash and connect the 860C display to the TSDZ2 but I just can't.

Did You connect ground (GND) from USB/UART with display's GND? It's common mistake that people forgot to make common ground with these two devices.
Thank you for reply.
GND from USB/UART is connected to "IN-" of DC-DC Step up power and the "OUT-" to display GND
Uart e Power.jpg
I tried the setup you have above. Never got it to work. Either the step up converter didn’t have enough juice or the USB port couldn’t supply enough. I ended up adding a cable to supply the display direct from the battery. Make sure you connect both the USB/UART output ground to the battery ground and the display ground.

jagec   1 µW

1 µW
Posts: 3
Joined: Mar 20 2021 12:11pm
Location: Pikesville MD

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by jagec » Apr 19 2021 7:02pm

mctubster wrote:
Apr 08 2021 9:19pm
darione wrote:
Apr 08 2021 12:23pm
bikelpl wrote:
Apr 08 2021 12:08pm
darione wrote:
Apr 08 2021 12:00pm
Hi guys, I've been messing around for days to flash and connect the 860C display to the TSDZ2 but I just can't.

Did You connect ground (GND) from USB/UART with display's GND? It's common mistake that people forgot to make common ground with these two devices.
Thank you for reply.
GND from USB/UART is connected to "IN-" of DC-DC Step up power and the "OUT-" to display GND
Uart e Power.jpg
I tried the setup you have above. Never got it to work. Either the step up converter didn’t have enough juice or the USB port couldn’t supply enough. I ended up adding a cable to supply the display direct from the battery. Make sure you connect both the USB/UART output ground to the battery ground and the display ground.
Some of those dc-dc converters use a shared ground, others float the ground. In the latter case you may not get a reliable digital signal across.

darione   1 µW

1 µW
Posts: 3
Joined: Apr 07 2021 4:54pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by darione » Apr 20 2021 12:18am

jagec wrote:
Apr 19 2021 7:02pm
mctubster wrote:
Apr 08 2021 9:19pm
darione wrote:
Apr 08 2021 12:23pm
bikelpl wrote:
Apr 08 2021 12:08pm


Did You connect ground (GND) from USB/UART with display's GND? It's common mistake that people forgot to make common ground with these two devices.
Thank you for reply.
GND from USB/UART is connected to "IN-" of DC-DC Step up power and the "OUT-" to display GND
Uart e Power.jpg
I tried the setup you have above. Never got it to work. Either the step up converter didn’t have enough juice or the USB port couldn’t supply enough. I ended up adding a cable to supply the display direct from the battery. Make sure you connect both the USB/UART output ground to the battery ground and the display ground.
Some of those dc-dc converters use a shared ground, others float the ground. In the latter case you may not get a reliable digital signal across.
Thanks for your suggestions. I also tried connecting the display to the battery but the programming still fails

martin.shane   100 mW

100 mW
Posts: 42
Joined: May 01 2015 7:53am

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by martin.shane » Apr 24 2021 2:47pm

Im running now 1.0.1 ver
My TQ sensor is very limited range . I did precise calibration for left and right crank and it is great now.
Only one thing what bothers me a lit bit
I have Left crank down as a start calibration. And it TQ menu i have set up it as a LEFT.
I start with Left crank down. Then I go to technical menu and there is RIGH . If I set RIGHT in TQ menu in technical info I have Left.
Im I missing something?
Also my Human power data looks like Superman:) . Looks like it is 2x I used to have ( in 20.1.C2 was around 283 max now I have around 500)
Is there any correction parameter I can use to make it more real on display?

dameri   100 W

100 W
Posts: 234
Joined: Sep 20 2018 10:57am

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by dameri » Apr 26 2021 3:51am

I ask here too.

I’m so confused. I programmed the new controller and STVisual Programer flash software and says memories succesfully veryfied. Then I turn the power on and nothing happens. I've tried different cables, changed the TX and RX cable places, not success. I also have a brand new TSDZ2 motor with exactly same problem. Although I didn't try to see if it worked with the stock software, I immediately installed OSF, but it doesn't work. I've tried to put stock firmware back to motor according the instructions of the Eco cycles but motor do not start. Displays stays blank.

I have not had any problems with previous motors. OSF has been installed right away and everything has worked fine. Now nothing works. Would there be any solution to the problem

casainho   100 GW

100 GW
Posts: 5777
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by casainho » Apr 26 2021 3:56am

dameri wrote:
Apr 26 2021 3:51am
I ask here too.

I’m so confused. I programmed the new controller and STVisual Programer flash software and says memories succesfully veryfied. Then I turn the power on and nothing happens. I've tried different cables, changed the TX and RX cable places, not success. I also have a brand new TSDZ2 motor with exactly same problem. Although I didn't try to see if it worked with the stock software, I immediately installed OSF, but it doesn't work. I've tried to put stock firmware back to motor according the instructions of the Eco cycles but motor do not start. Displays stays blank.

I have not had any problems with previous motors. OSF has been installed right away and everything has worked fine. Now nothing works. Would there be any solution to the problem
You need to find a way to see the the issue is on the display or on the motor controller, like swapping units that you know are working.
- TSDZ2 and OpenSource EV display: 128x64 OLED display, easy to build as DIY, Bluetooth and ANT, OTA wireless updates, easy to repair and customize for other EVs.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of OpenSource knowledge and technology for ebikes: OpenSource EV display, Wireless EBike standard ANT+ and Bluetooth, TSDZ2 OpenSource firmware, KT motor controllers and displays.

dameri   100 W

100 W
Posts: 234
Joined: Sep 20 2018 10:57am

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by dameri » Apr 26 2021 4:13am

casainho wrote:
Apr 26 2021 3:56am
dameri wrote:
Apr 26 2021 3:51am
I ask here too.

I’m so confused. I programmed the new controller and STVisual Programer flash software and says memories succesfully veryfied. Then I turn the power on and nothing happens. I've tried different cables, changed the TX and RX cable places, not success. I also have a brand new TSDZ2 motor with exactly same problem. Although I didn't try to see if it worked with the stock software, I immediately installed OSF, but it doesn't work. I've tried to put stock firmware back to motor according the instructions of the Eco cycles but motor do not start. Displays stays blank.

I have not had any problems with previous motors. OSF has been installed right away and everything has worked fine. Now nothing works. Would there be any solution to the problem
You need to find a way to see the the issue is on the display or on the motor controller, like swapping units that you know are working.
I have different displays four pieces. All of them are working. Controller is new. And whole motor is new as I said.

casainho   100 GW

100 GW
Posts: 5777
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by casainho » Apr 26 2021 4:23am

dameri wrote:
Apr 26 2021 4:13am
I have different displays four pieces. All of them are working. Controller is new. And whole motor is new as I said.
Then maybe you have a damaged controller.
- TSDZ2 and OpenSource EV display: 128x64 OLED display, easy to build as DIY, Bluetooth and ANT, OTA wireless updates, easy to repair and customize for other EVs.
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of OpenSource knowledge and technology for ebikes: OpenSource EV display, Wireless EBike standard ANT+ and Bluetooth, TSDZ2 OpenSource firmware, KT motor controllers and displays.

dameri   100 W

100 W
Posts: 234
Joined: Sep 20 2018 10:57am

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by dameri » Apr 26 2021 4:28am

casainho wrote:
Apr 26 2021 4:23am
dameri wrote:
Apr 26 2021 4:13am
I have different displays four pieces. All of them are working. Controller is new. And whole motor is new as I said.
Then maybe you have a damaged controller.
How can I check it? Can new devices can be damaged?

martin.shane   100 mW

100 mW
Posts: 42
Joined: May 01 2015 7:53am

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by martin.shane » Apr 27 2021 8:23am

Need a lit bit help as i get confused.
Max motor speed parameter visible on the main screen ( not on the set up menu) .
I have notice that is set to 1500 .
What does it exactly mean as if i have 48 v battery and 16 amps set up then Max motor power is around 750.
How change it from 1500 to lets say 750 affect the motor?
Im using ver 1.01.

Heisenberg60   1 mW

1 mW
Posts: 16
Joined: Sep 05 2020 4:35am

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by Heisenberg60 » Apr 30 2021 2:55pm

hey guy`s i know it a little OT at the moment, but im planning to purchase another TSDZ kit.
i`ve found one where the 850C is already connectet, without the need to solder an adapter cable.

https://de.aliexpress.com/af/TSDZ.html? ... 0430091155

is there any "real" difference between the 500 and 750 watt versions, eg a differtent controller ? or is it just a software limitation ?

Elinx   10 kW

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

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by Elinx » Apr 30 2021 4:38pm

Heisenberg60 wrote:
Apr 30 2021 2:55pm
....
is there any "real" difference between the 500 and 750 watt versions, eg a differtent controller ? or is it just a software limitation ?
No, No, Yes
There are just two motor types 36V 4000RPM and 48V 4000RPM, all other hardware and electronics are the same.
There are 2 controller types, the new 2020 type can't be programmed yet, only the older one.

dameri   100 W

100 W
Posts: 234
Joined: Sep 20 2018 10:57am

Re: TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

Post by dameri » May 01 2021 1:34am

Heisenberg60 wrote:
Apr 30 2021 2:55pm
hey guy`s i know it a little OT at the moment, but im planning to purchase another TSDZ kit.
i`ve found one where the 850C is already connectet, without the need to solder an adapter cable.

https://de.aliexpress.com/af/TSDZ.html? ... 0430091155

is there any "real" difference between the 500 and 750 watt versions, eg a differtent controller ? or is it just a software limitation ?
You should seriously think to buy 860c display. It is much more better in sunlight. And also modern looking.

Post Reply