TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Electric Motors and Controllers
michih.   100 µW

100 µW
Posts: 7
Joined: Nov 11 2018 8:33am

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by michih. » Feb 22 2019 12:57am

I have the smal Display on my other bike with a bafang bbs02. I musst say, yes is enough Information and the Bluetooth Update and configuration via App is great!!!

Mfg Michael

User avatar
gaber   10 W

10 W
Posts: 66
Joined: Sep 22 2017 8:56am
Location: Grand Rapids, MI

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by gaber » Feb 22 2019 5:59am

gaber wrote:
Feb 20 2019 3:37pm
Running into an issue with 18.0 that I'm hoping is just a configuration problem that you guys can help out with. Assist is working properly from a stop, but then 3-5 seconds later it cuts out. Almost like I have boost turned on (I have boost disabled) and when boost fades out there is no power there. I can get the assist to kick back in, but only after wheelspeed has returned to 0.

Any thoughts?
Any ideas on this? Would it be beneficial to wipe my configurations back to factory and try that? (not sure how to do that) This is my first time troubleshooting things, I remember conversations somewhere in the history of this thread on how to do that....but couldn't find anything captured in the wiki. TIA!
sometimes you eat the bear, and sometimes, well, he eats you.

michih.   100 µW

100 µW
Posts: 7
Joined: Nov 11 2018 8:33am

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by michih. » Feb 22 2019 9:15am

gaber wrote:
Feb 22 2019 5:59am
gaber wrote:
Feb 20 2019 3:37pm
Running into an issue with 18.0 that I'm hoping is just a configuration problem that you guys can help out with. Assist is working properly from a stop, but then 3-5 seconds later it cuts out. Almost like I have boost turned on (I have boost disabled) and when boost fades out there is no power there. I can get the assist to kick back in, but only after wheelspeed has returned to 0.

Any thoughts?
Any ideas on this? Would it be beneficial to wipe my configurations back to factory and try that? (not sure how to do that) This is my first time troubleshooting things, I remember conversations somewhere in the history of this thread on how to do that....but couldn't find anything captured in the wiki. TIA!
Motor assistance startup without pedal rotation.
Set this to 0

Mfg

shaddi   10 mW

10 mW
Posts: 32
Joined: May 30 2018 3:20pm

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by shaddi » Feb 22 2019 9:36am

Anybody trying to build the latest github code under linux? Im getting a crashing sdcc :(

Code: Select all

sdcc -c -I../../common/STM8S_StdPeriph_Lib/inc -I. -I../../ -mstm8 -Ddouble=float --std-c99 --nolospre --out-fmt-elf   -olcd.c lcd.c
*** buffer overflow detected ***: sdcc terminated
Linux Mint 18.2
SDCC : stm8 3.8.0 #10562 (Linux) (crashing with 3.7, too)

casainho   100 MW

100 MW
Posts: 2866
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by casainho » Feb 22 2019 9:42am

shaddi wrote:
Feb 22 2019 9:36am
Anybody trying to build the latest github code under linux? Im getting a crashing sdcc :(

Code: Select all

sdcc -c -I../../common/STM8S_StdPeriph_Lib/inc -I. -I../../ -mstm8 -Ddouble=float --std-c99 --nolospre --out-fmt-elf   -olcd.c lcd.c
*** buffer overflow detected ***: sdcc terminated
Linux Mint 18.2
SDCC : stm8 3.8.0 #10562 (Linux) (crashing with 3.7, too)
I think that happens when static variables inside functions are initialized, see the comment on main.c file about this.

Other times happens when variable names are too big.
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and LCDs (KT-LCD3 and Bafang 850C color LCD).

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

shaddi   10 mW

10 mW
Posts: 32
Joined: May 30 2018 3:20pm

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by shaddi » Feb 22 2019 9:54am

Fyi: Tag v0.18.2 can be compiled without any problem.

User avatar
gaber   10 W

10 W
Posts: 66
Joined: Sep 22 2017 8:56am
Location: Grand Rapids, MI

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by gaber » Feb 22 2019 12:15pm

michih. wrote:
Feb 22 2019 9:15am
gaber wrote:
Feb 22 2019 5:59am
gaber wrote:
Feb 20 2019 3:37pm
Running into an issue with 18.0 that I'm hoping is just a configuration problem that you guys can help out with. Assist is working properly from a stop, but then 3-5 seconds later it cuts out. Almost like I have boost turned on (I have boost disabled) and when boost fades out there is no power there. I can get the assist to kick back in, but only after wheelspeed has returned to 0.

Any thoughts?
Any ideas on this? Would it be beneficial to wipe my configurations back to factory and try that? (not sure how to do that) This is my first time troubleshooting things, I remember conversations somewhere in the history of this thread on how to do that....but couldn't find anything captured in the wiki. TIA!
Motor assistance startup without pedal rotation.
Set this to 0

Mfg
Thanks for the suggestion, unfortunately it didn't fix the problem. Any other ideas before I just flash the LCD with zeros and reflash 0.18.0?
sometimes you eat the bear, and sometimes, well, he eats you.

User avatar
gaber   10 W

10 W
Posts: 66
Joined: Sep 22 2017 8:56am
Location: Grand Rapids, MI

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by gaber » Feb 22 2019 2:09pm

gaber wrote:
Feb 22 2019 12:15pm
michih. wrote:
Feb 22 2019 9:15am
gaber wrote:
Feb 22 2019 5:59am
gaber wrote:
Feb 20 2019 3:37pm
Running into an issue with 18.0 that I'm hoping is just a configuration problem that you guys can help out with. Assist is working properly from a stop, but then 3-5 seconds later it cuts out. Almost like I have boost turned on (I have boost disabled) and when boost fades out there is no power there. I can get the assist to kick back in, but only after wheelspeed has returned to 0.

Any thoughts?
Any ideas on this? Would it be beneficial to wipe my configurations back to factory and try that? (not sure how to do that) This is my first time troubleshooting things, I remember conversations somewhere in the history of this thread on how to do that....but couldn't find anything captured in the wiki. TIA!
Motor assistance startup without pedal rotation.
Set this to 0

Mfg
Thanks for the suggestion, unfortunately it didn't fix the problem. Any other ideas before I just flash the LCD with zeros and reflash 0.18.0?
Fixed it! Just needed to flash zeros to wipe everything out, then reflash and reconfigure the LCD.
sometimes you eat the bear, and sometimes, well, he eats you.

Rafe   1 W

1 W
Posts: 61
Joined: Oct 16 2018 5:56pm

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by Rafe » Feb 22 2019 2:16pm

gaber wrote:
Feb 22 2019 12:15pm
michih. wrote:
Feb 22 2019 9:15am
gaber wrote:
Feb 22 2019 5:59am
gaber wrote:
Feb 20 2019 3:37pm
Running into an issue with 18.0 that I'm hoping is just a configuration problem that you guys can help out with. Assist is working properly from a stop, but then 3-5 seconds later it cuts out. Almost like I have boost turned on (I have boost disabled) and when boost fades out there is no power there. I can get the assist to kick back in, but only after wheelspeed has returned to 0.

Any thoughts?
Any ideas on this? Would it be beneficial to wipe my configurations back to factory and try that? (not sure how to do that) This is my first time troubleshooting things, I remember conversations somewhere in the history of this thread on how to do that....but couldn't find anything captured in the wiki. TIA!
Motor assistance startup without pedal rotation.
Set this to 0

Mfg
Thanks for the suggestion, unfortunately it didn't fix the problem. Any other ideas before I just flash the LCD with zeros and reflash 0.18.0?
Check that you have not inadvertently selected Max power to 25 watts, this is exactly what happens if it is. It is very easy to do when pressing the up button to also press the enter below at the same time and that takes you into set max power mode, and it usually notches up one setting from the default off setting of zero and that next setting is 25 watts.

User avatar
gaber   10 W

10 W
Posts: 66
Joined: Sep 22 2017 8:56am
Location: Grand Rapids, MI

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by gaber » Feb 22 2019 7:13pm

Rafe wrote:
Feb 22 2019 2:16pm
gaber wrote:
Feb 22 2019 12:15pm
michih. wrote:
Feb 22 2019 9:15am
gaber wrote:
Feb 22 2019 5:59am


Any ideas on this? Would it be beneficial to wipe my configurations back to factory and try that? (not sure how to do that) This is my first time troubleshooting things, I remember conversations somewhere in the history of this thread on how to do that....but couldn't find anything captured in the wiki. TIA!
Motor assistance startup without pedal rotation.
Set this to 0

Mfg
Thanks for the suggestion, unfortunately it didn't fix the problem. Any other ideas before I just flash the LCD with zeros and reflash 0.18.0?
Check that you have not inadvertently selected Max power to 25 watts, this is exactly what happens if it is. It is very easy to do when pressing the up button to also press the enter below at the same time and that takes you into set max power mode, and it usually notches up one setting from the default off setting of zero and that next setting is 25 watts.
Had also checked that. Whatever it was got reset with the flash.
sometimes you eat the bear, and sometimes, well, he eats you.

User avatar
eyebyesickle   10 kW

10 kW
Posts: 620
Joined: Apr 07 2015 9:28pm
Location: Nashville

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by eyebyesickle » Feb 22 2019 10:43pm

elem wrote:
Feb 21 2019 12:39pm
Yes, it could be amazing to use this SW12 witch is small, if BT work ...
I m using bryton rider and don t need all informations from LCD3, when the software is OK .
My only need is configure perfectly assist level for my need and save battery usage .
I was going to post a video to show you the progress (have it working with SW102 already) but then I accidentally fried my controller =( =( =( =( NOOOO!

I have not done that in a while - rookie mistake.

I have a batch of SW102 with bluetooth coming, withthe TSDZ2 compatible firmware... if people are seriously interested in working or helping with the project, I will send a few out... I think I can spare maybe 3 Units, 1 of which is reserved for casianho... if you are interested, let me know

User avatar
eyebyesickle   10 kW

10 kW
Posts: 620
Joined: Apr 07 2015 9:28pm
Location: Nashville

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by eyebyesickle » Feb 22 2019 10:44pm

AZUR wrote:
Feb 18 2019 10:35am
SW102 display is a good solution, if it works, for a small display and with Bluetooth.

If we want a small display we can have it without an usb port.

It's a display, not a smartphone charger.

Regards
Winner winner, chicken dinner =)

:mrgreen:

casainho   100 MW

100 MW
Posts: 2866
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by casainho » Feb 22 2019 11:10pm

Help with math to setup assist levels

I need to setup assist levels on my girlfriend new bicycle and I would like to have a formula that I could use to setup the assist levels to my son bicycle and even mine. If we know how to do it, I can share on documentation so it is easier for everyone.

My girlfriend tested max and min measured values of pedal human power on LCD3:
Max: 180 watts
Min: 40 watts

Also I want to setup min motor assistance power as min of 75 watts and max of 500 watts.

Also I think that every increase of assist level should have +50% of previous value.

Do you guys know how to calculate each assist level multiplier??
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and LCDs (KT-LCD3 and Bafang 850C color LCD).

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

User avatar
tomjasz   1.21 GW

1.21 GW
Posts: 3940
Joined: Mar 29 2014 1:45pm
Location: Out riding, MN USA
Contact:

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by tomjasz » Feb 23 2019 12:39am

eyebyesickle wrote:
Feb 22 2019 10:44pm
AZUR wrote:
Feb 18 2019 10:35am
SW102 display is a good solution, if it works, for a small display and with Bluetooth.

If we want a small display we can have it without an usb port.

It's a display, not a smartphone charger.

Regards
Winner winner, chicken dinner =)

:mrgreen:
Pork dinner in MN?
Thanks Justin_le we're here thanks to you. All the best to the mods for their tireless work keeping it on an even keel.

User avatar
elem   1 W

1 W
Posts: 54
Joined: May 26 2017 4:27pm
Location: alpes maritimes
Contact:

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by elem » Feb 23 2019 2:30am

eyebyesicle : I have a batch of SW102 with bluetooth coming, withthe TSDZ2 compatible firmware... if people are seriously interested in working or helping with the project, I will send a few out... I think I can spare maybe 3 Units, 1 of which is reserved for casianho... if you are interested, let me know
yes i am
Actualy using KT-LCD3, are the SW102 connector compatible with standard higo KT-LCD3 ?
Do you have a link to BT program ( android one ) ?
casainho : Also I want to setup min motor assistance power as min of 75 watts and max of 500 watts.
that about what i m using ( 50 w min et 450 w max ) but i don t know how calculate, was determined by test only .
using v 0.16 actualy, planned to move to 0.18 ( specaily for walk assist as it s about absolutly necessary in MTB ; )

Don t remenber exactualy value used for assist lvl but i can check if needed .
Don t look a at human power because it s crazy ;)
it s about twice the true i thinck, but as it s used to calculate moteur power i let it like that ..
My girlfriend tested max and min measured values of pedal human power on LCD3:
Max: 180 watts
Min: 40 watts
as i know, actualy motor power is half the human power ( may be i m wrong only remenber what i saw on display ) on lvl 1 in my system
soo for min 40 if you need 75 ( watts ) it s only a ratio, but it will not match the upper ( 180 ) human power ...

for 40 EHP ( effective human power ) if you need 75 MP ( motor power ) * must be 1.875
for 180 EHP and 500 MP * will 2.777
soo desired lvl * must be for example 1.8/2/2.2/2.4/2.7 or something like that ...
lvl 1 * 1.8 : min 75MP max 324
lvl2 * 2 : min 80, max 360
lvl3 * 2.2 : min 88, max 396
lvl4 * 2.4 : min 96, max 432
lvl5 * 2.7 : min 108, max 486
RockRider 9.1 TSDZ2 open source firmware .
https://www.strava.com/athletes/20806862

casainho   100 MW

100 MW
Posts: 2866
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by casainho » Feb 23 2019 1:11pm

elem wrote:
Feb 23 2019 2:30am
My girlfriend tested max and min measured values of pedal human power on LCD3:
Max: 180 watts
Min: 40 watts
as i know, actualy motor power is half the human power ( may be i m wrong only remenber what i saw on display ) on lvl 1 in my system
soo for min 40 if you need 75 ( watts ) it s only a ratio, but it will not match the upper ( 180 ) human power ...

for 40 EHP ( effective human power ) if you need 75 MP ( motor power ) * must be 1.875
for 180 EHP and 500 MP * will 2.777
soo desired lvl * must be for example 1.8/2/2.2/2.4/2.7 or something like that ...
lvl 1 * 1.8 : min 75MP max 324
lvl2 * 2 : min 80, max 360
lvl3 * 2.2 : min 88, max 396
lvl4 * 2.4 : min 96, max 432
lvl5 * 2.7 : min 108, max 486
Well, I didn't tested yet but I though on this:
I assume a med value for my girlfriend of 90 (180/2) human power. I am limiting my battery current to 10A and power to 500W (small battery pack), so I start with my max assist level of 500W where I would like that my girlfriend human med power to equal the 500W and each assist level increase the battery/motor power in 50% (x1.5):
Assist level 5: 90 * assist_level_multiplier = 500 --> assist_level_multiplier = 5.6
Assist level 4: 90 * assist_level_multiplier = (500/ (1.5*1)) --> assist_level_multiplier = 3.7
Assist level 3: 90 * assist_level_multiplier = (500/ (1.5*2)) --> assist_level_multiplier = 2.5
Assist level 2: 90 * assist_level_multiplier = (500/ (1.5*3)) --> assist_level_multiplier = 1.6
Assist level 1: 90 * assist_level_multiplier = (500/ (1.5*4)) --> assist_level_multiplier = 1.1

And the values for me, where my max of human power is 250, med of 125:
Assist level 5: 125 * assist_level_multiplier = 500 --> assist_level_multiplier = 4
Assist level 4: 125 * assist_level_multiplier = (500/ (1.5*1)) --> assist_level_multiplier = 2.7
Assist level 3: 125 * assist_level_multiplier = (500/ (1.5*2)) --> assist_level_multiplier = 1.3
Assist level 2: 125 * assist_level_multiplier = (500/ (1.5*3)) --> assist_level_multiplier = 0.9
Assist level 1: 90 * assist_level_multiplier = (500/ (1.5*4)) --> assist_level_multiplier = 0.7

What I can see, and that I feel when looking at my girlfriend LCD while she is riding is that his assist level multipliers are low and his motor never reaches max power of 500 watts (because are my values and I have more force in my legs).

Next I want to play with a similar algorithm to configure power boost, I guess the idea is to measure the max torque an user does on the torque sensor (can be measured while wheel is blocked on the ground and the brakes are active or assist level is 0).
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and LCDs (KT-LCD3 and Bafang 850C color LCD).

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

User avatar
elem   1 W

1 W
Posts: 54
Joined: May 26 2017 4:27pm
Location: alpes maritimes
Contact:

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by elem » Feb 24 2019 1:01am

I am limiting my battery current to 10A and power to 500W
You are using 14S pack on each bike ?
RockRider 9.1 TSDZ2 open source firmware .
https://www.strava.com/athletes/20806862

casainho   100 MW

100 MW
Posts: 2866
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by casainho » Feb 24 2019 1:54am

elem wrote:
Feb 24 2019 1:01am
I am limiting my battery current to 10A and power to 500W
You are using 14S pack on each bike ?
14S3P with 3600mAh max 10A each cell.
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and LCDs (KT-LCD3 and Bafang 850C color LCD).

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

User avatar
elem   1 W

1 W
Posts: 54
Joined: May 26 2017 4:27pm
Location: alpes maritimes
Contact:

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by elem » Feb 24 2019 2:50am

casainho wrote:
Feb 24 2019 1:54am
elem wrote:
Feb 24 2019 1:01am
I am limiting my battery current to 10A and power to 500W
You are using 14S pack on each bike ?
14S3P with 3600mAh max 10A each cell.
are you using 36V or 48V motor ?
I would try to move to a 48V if it s usefull for mtb, it s not priority but it could be a better option in MTB, as i m using 11S for friendly/sister use, and 12S for mine i thinck even whith 14S 48V motor couldn t reach my personnal goal RPM ( about 100 and 110 max )
RockRider 9.1 TSDZ2 open source firmware .
https://www.strava.com/athletes/20806862

casainho   100 MW

100 MW
Posts: 2866
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by casainho » Feb 24 2019 2:55am

elem wrote:
Feb 24 2019 2:50am
casainho wrote:
Feb 24 2019 1:54am
elem wrote:
Feb 24 2019 1:01am
I am limiting my battery current to 10A and power to 500W
You are using 14S pack on each bike ?
14S3P with 3600mAh max 10A each cell.
are you using 36V or 48V motor ?
I would try to move to a 48V if it s usefull for mtb, it s not priority but it could be a better option in MTB, as i m using 11S for friendly/sister use, and 12S for mine i thinck even whith 14S 48V motor couldn t reach my personnal goal RPM ( about 100 and 110 max )
I am using 52V (hence the 14S3P as I said). I don't usually do many MTB as professional/competition, I go to that events but I stay at the end and for me is mostly like a bicycle ride.
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and LCDs (KT-LCD3 and Bafang 850C color LCD).

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

User avatar
elem   1 W

1 W
Posts: 54
Joined: May 26 2017 4:27pm
Location: alpes maritimes
Contact:

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by elem » Feb 24 2019 6:02am

ok, it s different, i would ask, is your motor a 0 type ( 48V ) or a 1 type ( 36V ) ?
as they all match 4000 rpm but 48V motor need 48 V to match it and 36V motor only need 36V to match 4000 rpm .

With 14S battery 36v motor could run at 4000*1.40= 5600 rpm and 48V motor only 4000*14/13= 4300 rpm .

that why i use 12S on a 36 V motor, gain is 20%, soo it match my rpm goal 4800/44=109 rpm max ( at cranck )
RockRider 9.1 TSDZ2 open source firmware .
https://www.strava.com/athletes/20806862

casainho   100 MW

100 MW
Posts: 2866
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by casainho » Feb 24 2019 11:33am

elem wrote:
Feb 24 2019 6:02am
ok, it s different, i would ask, is your motor a 0 type ( 48V ) or a 1 type ( 36V ) ?
as they all match 4000 rpm but 48V motor need 48 V to match it and 36V motor only need 36V to match 4000 rpm .

With 14S battery 36v motor could run at 4000*1.40= 5600 rpm and 48V motor only 4000*14/13= 4300 rpm .

that why i use 12S on a 36 V motor, gain is 20%, soo it match my rpm goal 4800/44=109 rpm max ( at cranck )
I never verified max RPM of my TSDZ2 with my battery. My motor is of 48V.
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and LCDs (KT-LCD3 and Bafang 850C color LCD).

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

mctubster   10 W

10 W
Posts: 69
Joined: Feb 26 2018 6:21am

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by mctubster » Feb 25 2019 4:07am

Rafe wrote:
Feb 02 2019 8:56am

The lag is a different issue with power boost Buba, this is when power boost sometimes does not cut in when pedalling resumes so there is no pedal assist at all for about 3 seconds, and even then when the pedal assist resumes is normal assist not the boost. This is an intermittent fault that I can't find a sequence or logic to.

The resting the foot on pedal and the bike takes off under power boost even though wheel speed must be zero is disabled is another intermittent fault. I mostly remember to keep the wired rear brake on when at the lights in case it happens but like others I've found it to be dangerous, only the other day I was off the bike chatting to a friend with a foot resting on a pedal and the bike decided to try and run her over.

These faults have been present for sometime so I doubt your modifications have anything to do with them.
I also have these two exact issues. Power boost does not work randomly and when power boast does not activate I also get no assist for around 3 seconds too. Not cool when at the lights!

I also have random surges at the lights, bike stopped, resting foot on pedal ... no pedal rotation ... Sometimes I wonder if I have backpedalled slightly to get the best foot position and as I rest my foot back down the motor surges. But then sometimes it will do two or three surges a number of seconds apart. Is there averaging on the rotation (direction not counted) so that small torque + previous rotation = power output ... this is on 17 though I am about to go to 19.

What testing can I do to help diagnose further?

Regards
Steve

casainho   100 MW

100 MW
Posts: 2866
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by casainho » Feb 25 2019 6:01am

mctubster wrote:
Feb 25 2019 4:07am
Rafe wrote:
Feb 02 2019 8:56am

The lag is a different issue with power boost Buba, this is when power boost sometimes does not cut in when pedalling resumes so there is no pedal assist at all for about 3 seconds, and even then when the pedal assist resumes is normal assist not the boost. This is an intermittent fault that I can't find a sequence or logic to.

The resting the foot on pedal and the bike takes off under power boost even though wheel speed must be zero is disabled is another intermittent fault. I mostly remember to keep the wired rear brake on when at the lights in case it happens but like others I've found it to be dangerous, only the other day I was off the bike chatting to a friend with a foot resting on a pedal and the bike decided to try and run her over.

These faults have been present for sometime so I doubt your modifications have anything to do with them.
I also have these two exact issues. Power boost does not work randomly and when power boast does not activate I also get no assist for around 3 seconds too. Not cool when at the lights!

I also have random surges at the lights, bike stopped, resting foot on pedal ... no pedal rotation ... Sometimes I wonder if I have backpedalled slightly to get the best foot position and as I rest my foot back down the motor surges. But then sometimes it will do two or three surges a number of seconds apart. Is there averaging on the rotation (direction not counted) so that small torque + previous rotation = power output ... this is on 17 though I am about to go to 19.

What testing can I do to help diagnose further?

Regards
Steve
1. when lag occurs because of some fail on power boost, I quick hit the brakes and power boost starts immediately. This is a workaround.

2. I always use "Motor assistance startup without pedal rotation" = 1 so I do not have that issue. If you acan, give a look at the code to try understand what may be causing that issue.
Developer of the Flexible OpenSource firmware for EBike motor controllers (TSDZ2 and KT) and LCDs (KT-LCD3 and Bafang 850C color LCD).

If you like my work, please consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

e3s   1 mW

1 mW
Posts: 14
Joined: Jan 08 2018 12:40pm

Re: TSDZ2 mid drive -- Flexible OpenSource firmware for TongSheng TSDZ2 mid drive motor

Post by e3s » Feb 25 2019 3:50pm

which is the best version? 36v or 48v? how many amperes can withstand for short, medium and long time? (1min, 5min, long travel) How much is efficient the 36v version at 48v?

Post Reply