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

Electric Motors and Controllers
buba   100 W

100 W
Posts: 193
Joined: Aug 31 2018 12:36am

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

Post by buba » Jan 31 2019 10:27am

Rafe wrote:
Jan 28 2019 5:38pm
Absolutely no problems with either walk assist or cruise. Yes tried to replicate and no re-occurrence, as soon as the button was released they dropped out every time. They work very well too and are a great addition.
That is great! Thanks a lot for the testing!

perryscope wrote:
Jan 31 2019 3:49am
Installed and working fine Thanks!

However, I did notice that after a 'Factory reset from the display configuration menu' I had to re-enter some of the 'default' settings such as each of the Walk Assist levels? These were defaulted after a factory reset as in the wiki document in the beta. Not a big issue but it's worth checking through each menu item to be sure they are as expected.
Good point! Always good to look through the menus, especially with big new versions.

I think there is a long-lived bug with the factory reset. I do not know how far back it has existed. Basically, after you activate the reset and the system powers down, you need to hold down the on/off button. The screen will be black and nothing will happen. But when you release the button and then click it again the system will power on and everything is then reset to default values. Have not looked too much into this to be honest.

Popo15 wrote:
Jan 31 2019 7:34am
Good morning, installed version 0.18.2, everything working very well 43 km. thank you
Thank you for the feedback!
GitHub: https://github.com/leon927
PayPal: leonstor at bredband.net

andrea_104kg   10 W

10 W
Posts: 65
Joined: Mar 05 2018 5:51pm

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

Post by andrea_104kg » Jan 31 2019 6:13pm

i installed v. 0.18.02 yesterday night and today i have done 14km. All it's ok it woks perfectly !!
only small defect if I stop with the foot on the pedal the bike tries to start. This slight defect is common to all the versions I tried but does not affect the use of the bike. I'm very very happy :D thank's

Ron Paul's Blimp   10 W

10 W
Posts: 85
Joined: Jun 12 2017 3:17am

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

Post by Ron Paul's Blimp » Feb 01 2019 2:54am

andrea_104kg wrote:
Jan 31 2019 6:13pm
i installed v. 0.18.02 yesterday night and today i have done 14km. All it's ok it woks perfectly !!
only small defect if I stop with the foot on the pedal the bike tries to start. This slight defect is common to all the versions I tried but does not affect the use of the bike. I'm very very happy :D thank's
I have this problem too (but I'm still back on 0.16).

BrisneyLand   10 µW

10 µW
Posts: 6
Joined: Nov 05 2018 4:30am
Location: Brisbane, Australia

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

Post by BrisneyLand » Feb 01 2019 6:48pm

perryscope wrote:
Jan 29 2019 3:42pm
Having some issues with v18.0.0 release for KTLCD3. I have been running KTLCD3-v.0.18.0-beta-2 without issue and decided to upgrade to the release.

However, in STVP I get the following when i load the program file...
STVP-v18.0.0.PNG

File Checksum is 0x2DE60F is that correct?

This does not look right , It will upload but the screen refuses to start, when you pres power it just flashes all LCD elements and goes blank.

I switched back to KTLCD3-v.0.18.0-beta-2. and its working fine again.

Has anyone else tested the release yet? have I missed a step? I noticed the v18 release is 1K bigger than the beta 2 91KB vs 90KB
I got this issue with the 18.2 release.

Not sure how to upload a screenshot here?

buba   100 W

100 W
Posts: 193
Joined: Aug 31 2018 12:36am

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

Post by buba » Feb 01 2019 7:13pm

BrisneyLand wrote:
Feb 01 2019 6:48pm
perryscope wrote:
Jan 29 2019 3:42pm
Having some issues with v18.0.0 release for KTLCD3. I have been running KTLCD3-v.0.18.0-beta-2 without issue and decided to upgrade to the release.

However, in STVP I get the following when i load the program file...
STVP-v18.0.0.PNG

File Checksum is 0x2DE60F is that correct?

This does not look right , It will upload but the screen refuses to start, when you pres power it just flashes all LCD elements and goes blank.

I switched back to KTLCD3-v.0.18.0-beta-2. and its working fine again.

Has anyone else tested the release yet? have I missed a step? I noticed the v18 release is 1K bigger than the beta 2 91KB vs 90KB
I got this issue with the 18.2 release.

Not sure how to upload a screenshot here?

Sorry to hear you had problems! It should work. Make sure that you have chosen STM8S105x6 and not STM8S105x4 or anything else when configuring the STVP for the KT-LCD3.

---------------------------------------------------------------

Press Configure and then Configure ST Visual Programmer

In the new window named Configuration you can select STM8S105x6 under the Device list

Everything else should be set to these parameters:

Hardware: ST-LINK
Port: USB
Programming mode: SWIM


Pro tip:

There is a shortcut to selecting the device. Simply find the scroll down menu in the tool bar and select your device. Or press the small button just left of the drop down menu to enter the Configuration menu.

---------------------------------------------------------------
Last edited by buba on Feb 01 2019 7:45pm, edited 3 times in total.
GitHub: https://github.com/leon927
PayPal: leonstor at bredband.net

buba   100 W

100 W
Posts: 193
Joined: Aug 31 2018 12:36am

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

Post by buba » Feb 01 2019 7:40pm

andrea_104kg wrote:
Jan 31 2019 6:13pm
i installed v. 0.18.02 yesterday night and today i have done 14km. All it's ok it woks perfectly !!
only small defect if I stop with the foot on the pedal the bike tries to start. This slight defect is common to all the versions I tried but does not affect the use of the bike. I'm very very happy :D thank's

Glad to hear! :D

That lag is something we will look into.

Ron Paul's Blimp wrote:
Feb 01 2019 2:54am
andrea_104kg wrote:
Jan 31 2019 6:13pm
i installed v. 0.18.02 yesterday night and today i have done 14km. All it's ok it woks perfectly !!
only small defect if I stop with the foot on the pedal the bike tries to start. This slight defect is common to all the versions I tried but does not affect the use of the bike. I'm very very happy :D thank's
I have this problem too (but I'm still back on 0.16).

That lag has been mentioned from a couple of users now the last couple of weeks and is therefore something that will have to be investigated in the future and hopefully solved in future versions.

Thank you all for the feedback!
GitHub: https://github.com/leon927
PayPal: leonstor at bredband.net

Rydon   100 W

100 W
Posts: 216
Joined: Aug 11 2016 5:26pm

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

Post by Rydon » Feb 01 2019 9:00pm

Ron Paul's Blimp wrote:
Feb 01 2019 2:54am
andrea_104kg wrote:
Jan 31 2019 6:13pm
i installed v. 0.18.02 yesterday night and today i have done 14km. All it's ok it woks perfectly !!
only small defect if I stop with the foot on the pedal the bike tries to start. This slight defect is common to all the versions I tried but does not affect the use of the bike. I'm very very happy :D thank's
I have this problem too (but I'm still back on 0.16).
Do you have "Motor assistance startup without pedal rotation" enabled? That is what is what is supposed to happen with that enabled.

Ron Paul's Blimp   10 W

10 W
Posts: 85
Joined: Jun 12 2017 3:17am

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

Post by Ron Paul's Blimp » Feb 02 2019 1:11am

Rydon wrote:
Feb 01 2019 9:00pm
Do you have "Motor assistance startup without pedal rotation" enabled? That is what is what is supposed to happen with that enabled.
No, I have it disabled.

andrea_104kg   10 W

10 W
Posts: 65
Joined: Mar 05 2018 5:51pm

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

Post by andrea_104kg » Feb 02 2019 5:13am

AlSo, i disabled it, it's Very dangerereuse whithout Brake Cut off

Rafe   1 W

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

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

Post by Rafe » Feb 02 2019 8:56am

buba wrote:
Feb 01 2019 7:40pm
andrea_104kg wrote:
Jan 31 2019 6:13pm
i installed v. 0.18.02 yesterday night and today i have done 14km. All it's ok it woks perfectly !!
only small defect if I stop with the foot on the pedal the bike tries to start. This slight defect is common to all the versions I tried but does not affect the use of the bike. I'm very very happy :D thank's

Glad to hear! :D

That lag is something we will look into.


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.

andrea_104kg   10 W

10 W
Posts: 65
Joined: Mar 05 2018 5:51pm

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

Post by andrea_104kg » Feb 02 2019 11:55am

I have another bike whith 0.7 software and it's the same. So it's not your good work .

perryscope   100 mW

100 mW
Posts: 46
Joined: Jan 06 2019 4:29pm
Contact:

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

Post by perryscope » Feb 02 2019 12:45pm

Hi,

Can I ask is anyone running a 48v motor on a 36v battery? Are there any issues doing that? Or can either motor be run on any voltage 24v-52v?
Empowered people support rider and techie.
www.empoweredpeople.co.uk

Rydon   100 W

100 W
Posts: 216
Joined: Aug 11 2016 5:26pm

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

Post by Rydon » Feb 02 2019 11:49pm

perryscope wrote:
Feb 02 2019 12:45pm
Hi,

Can I ask is anyone running a 48v motor on a 36v battery? Are there any issues doing that? Or can either motor be run on any voltage 24v-52v?
It works fine. The 48v motor has more windings which makes it run at a lower rpm but with more torque at any given voltage. So running it with a 36v battery it will run slower than a 36v motor but will be better on hills. Gear selection (bigger chainring) can compensate for this since it is a mid-drive.

thineight   100 W

100 W
Posts: 147
Joined: Oct 05 2018 3:53am

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

Post by thineight » Feb 06 2019 12:27pm

Not a single message in 4 days... Are you guys ok lately? :wink:
MTB KTM Ultra 29" - City bike DAYTONA 28"

User avatar
itsallwhite   10 mW

10 mW
Posts: 34
Joined: Feb 07 2019 5:02am

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

Post by itsallwhite » Feb 07 2019 5:08am

Firstly thank you for creating the open source firmware - I am going to order the display and equipment and give it a go on my 48v 500w TSDZ2 (fingers crossed!)

I am going to order another TSDZ2 for my partner and wondered if I 'share' one display between the two motors. So I flash LCD and then flash each motor, but then on one bike go back to using the old LCD once settings changed?

Or would this not work?

Thanks again
Bike 1: Giant Hybrid Steel Frame (old) with TSDZ2 48v 500w.
Bike 2: GT Sensor 2 full suspension mountain bike. Work in Progress - ready to 'electrify'!
House: 100% off grid - 5.6kw solar array with selectronics inverter and 24 Volt 1450 Ah BAE Gel battery Bank

User avatar
elem   10 W

10 W
Posts: 75
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 07 2019 5:28am

I am going to order another TSDZ2 for my partner and wondered if I 'share' one display between the two motors. So I flash LCD and then flash each motor, but then on one bike go back to using the old LCD once settings changed?
dont thinck it match ...
for vlcd5 use, go to : https://endless-sphere.com/forums/viewt ... ilit=TSDZ2

i use 2 tsdz2 motor, one with open source firmware " standard " ( with kt-lcd3 display ), the other one with VLCD5 and modified firmware from marcoq, all works fine .
RockRider 9.1 TSDZ2 open source firmware .
https://www.strava.com/athletes/20806862

buba   100 W

100 W
Posts: 193
Joined: Aug 31 2018 12:36am

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

Post by buba » Feb 07 2019 6:57am

thineight wrote:
Feb 06 2019 12:27pm
Not a single message in 4 days... Are you guys ok lately? :wink:
Update coming soon... :wink:
GitHub: https://github.com/leon927
PayPal: leonstor at bredband.net

casainho   1 GW

1 GW
Posts: 3168
Joined: Feb 14 2011 2:43pm

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

Post by casainho » Feb 07 2019 7:52am

thineight wrote:
Feb 06 2019 12:27pm
Not a single message in 4 days... Are you guys ok lately? :wink:
I am being busy "testing" the firmware -- bellow some pictures of my tests ;-)

The true is that the year started with many MTB events and the rate of them will grow up to the spring and summer!! -- I really enjoy them!!

One year ago I did discover TSDZ2 and started the OpenSource firmware for it... this year is the time to test it fully :-)

Image

See the the works to build bases for wind turbines, on top of our mountains, to generate our electricity:

Image

Image

Image
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.

andrea_104kg   10 W

10 W
Posts: 65
Joined: Mar 05 2018 5:51pm

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

Post by andrea_104kg » Feb 07 2019 5:23pm

it's the same for me :D i'm testing my new bike whit tsdz2 48v and firmware .18.02
i have also a turbo levo 2018, and it's incredible, i really prefere the bike whith tsdz2 :D i get over 850w on the display :D and the shock absorbers are really better on this bike even if old...
I thought about getting a "second bike", but it came too well, in the last days I use only this one and the turbo levo is still, I almost wanted to sell it :D
the only thing that really keeps me is that I do not know if the poor engine will be able to withstand my weight for a long time :(
Attachments
gt_tsdz22.jpg

User avatar
jbalat   10 kW

10 kW
Posts: 554
Joined: Nov 10 2012 11:50pm
Location: Melbourne, Australia

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

Post by jbalat » Feb 07 2019 5:42pm

buba wrote:
Feb 07 2019 6:57am
thineight wrote:
Feb 06 2019 12:27pm
Not a single message in 4 days... Are you guys ok lately? :wink:
Update coming soon... :wink:
Might as well wait for 19 then :bigthumb:
Please subscribe to my Youtube home page for Quadcopters, FPV and Bike Rides http://www.youtube.com/jbalatutube
My build log here http://endless-sphere.com/forums/viewto ... =6&t=55352
For some cool ebike talk join us on The Best ebike https://www.facebook.com/groups/193581737807033/
Tech talk TSDZ2 Opensource firmware https://endless-sphere.com/forums/viewt ... &start=150
Opensource TSDZ2 Wiki https://github.com/OpenSource-EBike-fir ... _wiki/wiki

perryscope   100 mW

100 mW
Posts: 46
Joined: Jan 06 2019 4:29pm
Contact:

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

Post by perryscope » Feb 08 2019 6:36am

Small Issue.

When testing walk assist, I noticed that in the highest assist levels if your speed goes over 8km/h then you quickly switch into cruise mode. This without letting go of the down button. I noticed this most when testing the bike on a stand, without any load in higher gears the wheel would speed up quickly up to about 10km/h and then trigger cruise mode which would then (if set to target speed) give me full throttle to reach that speed.

On the bike its less of an issue due to the time it takes to build up speed, but I would have expected that once in WalkAssist mode you could not engage cruise mode just by changing speed?

What do you guys think?
Empowered people support rider and techie.
www.empoweredpeople.co.uk

buba   100 W

100 W
Posts: 193
Joined: Aug 31 2018 12:36am

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

Post by buba » Feb 08 2019 1:11pm

perryscope wrote:
Feb 08 2019 6:36am
Small Issue.

When testing walk assist, I noticed that in the highest assist levels if your speed goes over 8km/h then you quickly switch into cruise mode. This without letting go of the down button. I noticed this most when testing the bike on a stand, without any load in higher gears the wheel would speed up quickly up to about 10km/h and then trigger cruise mode which would then (if set to target speed) give me full throttle to reach that speed.

On the bike its less of an issue due to the time it takes to build up speed, but I would have expected that once in WalkAssist mode you could not engage cruise mode just by changing speed?

What do you guys think?
This is something I have thought about. One solution I had was to enable Cruise at speeds over 10 kph (around 6 mph) and walk assist at speeds under 8 kph (around 5 mph). But I wanted to keep Cruise active at speeds from 8 kph (around 5 mph) so that users have the possibility to cruise around at slower speeds. So that solution was discarded.

But another solution is to not activate Cruise if Walk Assist is activated and vice versa. The user would have to re-press the down button to enable Cruise, and vice versa. I can implement this in the coming 0.19.0.

Appreciate feedback as always!
GitHub: https://github.com/leon927
PayPal: leonstor at bredband.net

perryscope   100 mW

100 mW
Posts: 46
Joined: Jan 06 2019 4:29pm
Contact:

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

Post by perryscope » Feb 08 2019 2:47pm

buba wrote:
Feb 08 2019 1:11pm
perryscope wrote:
Feb 08 2019 6:36am
Small Issue.

When testing walk assist, I noticed that in the highest assist levels if your speed goes over 8km/h then you quickly switch into cruise mode. This without letting go of the down button. I noticed this most when testing the bike on a stand, without any load in higher gears the wheel would speed up quickly up to about 10km/h and then trigger cruise mode which would then (if set to target speed) give me full throttle to reach that speed.

On the bike its less of an issue due to the time it takes to build up speed, but I would have expected that once in WalkAssist mode you could not engage cruise mode just by changing speed?

What do you guys think?
This is something I have thought about. One solution I had was to enable Cruise at speeds over 10 kph (around 6 mph) and walk assist at speeds under 8 kph (around 5 mph). But I wanted to keep Cruise active at speeds from 8 kph (around 5 mph) so that users have the possibility to cruise around at slower speeds. So that solution was discarded.

But another solution is to not activate Cruise if Walk Assist is activated and vice versa. The user would have to re-press the down button to enable Cruise, and vice versa. I can implement this in the coming 0.19.0.

Appreciate feedback as always!
Yes I think that will be better. I had considered also maybe having a setting to define the cross over speed in the menu? At times when moving slowly over tricky single-track rutted terrain I have found cruise useful to keep me rolling while keeping pedals flat and clear of the ruts. Also when navigating slippy cobbles. I mentioned this a bit here

https://empoweredpeople.co.uk/2019/01/2 ... tem-part-2

At the moment I find I may be just under 8kph and get WalkAssist other time just over and get Cruise. So it would be nice to fine tune that cross over point.
Empowered people support rider and techie.
www.empoweredpeople.co.uk

Rydon   100 W

100 W
Posts: 216
Joined: Aug 11 2016 5:26pm

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

Post by Rydon » Feb 08 2019 3:53pm

Just a thought. Is holding down the plus button used for anything? The minus is pretty much a universal standard for walk assist. Since cruise control is a new feature, how about using the plus button so they don't conflict?

Popo15   1 mW

1 mW
Posts: 19
Joined: Nov 25 2018 9:56am

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

Post by Popo15 » Feb 08 2019 6:51pm

Good night, I think it's a good option, more cruise button and button less assistance on foot.u :bigthumb:

Post Reply