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: 199
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: 208
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: 30
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: 5143
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!!
- EBike wireless standard: wireless motor, wireless cycling GPS display Garmin Edge and wireless remote with wireless brake sensor
- TSDZ2 FAQ: issues and repairs, etc
- TSDZ2 OpenSource firmware

Developer of OpenSource knowledge and technology for ebikes: Wireless EBike standard ANT+ and Bluetooth, TSDZ2 OpenSource firmware, KT motor controllers and displays: Bafang 850C color, SW102 Bluetooth and KT-LCD3.

Please consider a donation to help developments: paypal.me/jorgecasa

devboy-greg   10 mW

10 mW
Posts: 30
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   10 mW

10 mW
Posts: 22
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: 253
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: 2
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 122 times
860C seriale.jpg
860C seriale.jpg (183.3 KiB) Viewed 122 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: 2
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 (149.45 KiB) Viewed 111 times

User avatar
hetm4n   100 mW

100 mW
Posts: 44
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   100 W

100 W
Posts: 292
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.

Post Reply