New "TSDZ2 Torque Sensor Central Motor"

Discussions related to motors other than hub motors.
This includes R/C motors, botttom bracket, roller and geared drives.
vscope   100 mW

100 mW
Posts: 39
Joined: Jun 19 2018 5:42am

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by vscope » Oct 10 2018 3:34pm

jbalat wrote:
Oct 10 2018 6:22am
Great feedback !
I agree with you. If you want the guys to follow up suggest you post them in the issues area.
https://github.com/OpenSource-EBike-fir ... ike/issues
thx, i created an issue on the lag bug.
hope i am correct :)

cheers

EndlessCadence   100 W

100 W
Posts: 217
Joined: Aug 22 2018 4:31am

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by EndlessCadence » Oct 10 2018 3:54pm

vscope wrote:
Oct 10 2018 3:34pm
jbalat wrote:
Oct 10 2018 6:22am
Great feedback !
I agree with you. If you want the guys to follow up suggest you post them in the issues area.
https://github.com/OpenSource-EBike-fir ... ike/issues
thx, i created an issue on the lag bug.
hope i am correct :)

cheers
Thanks! I left a comment there :D

Please also use the correct forum topic for questions or remarks about the opensource firmware.

Rydon   10 W

10 W
Posts: 86
Joined: Aug 11 2016 5:26pm

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by Rydon » Oct 10 2018 9:32pm

casainho wrote:
Oct 10 2018 12:27pm
I started documenting Bafang 850C color display, the JTAG flash/debug pins are easy accessible just like on KT-LCD3 display:
At Interbike a saw a new version of the 750C that has Bluetooth built-in. They said it is now shipping.

cascarabias   1 mW

1 mW
Posts: 12
Joined: Sep 12 2018 3:42pm

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by cascarabias » Oct 11 2018 3:04am

hello, what problems does firmware V0.13 cause? I use it every day to climb great slopes by mountain and I have only observed that with increased energy consumption, less kmts of travel compared to the original software of the tsdz2. It can be this by the screen configuration. I do not find any other problem.
Best regards

vscope   100 mW

100 mW
Posts: 39
Joined: Jun 19 2018 5:42am

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by vscope » Oct 11 2018 3:59am

cascarabias wrote:
Oct 11 2018 3:04am
hello, what problems does firmware V0.13 cause? I use it every day to climb great slopes by mountain and I have only observed that with increased energy consumption, less kmts of travel compared to the original software of the tsdz2. It can be this by the screen configuration. I do not find any other problem.
Best regards
do you have 48v or 36v motor?
did you correctly configure the motor voltage in the configuration?

i can only tell that with opensource firmware (0.12 at the moment) my bike is much more efficient ( and controllable) than with the original firmware. it saved me from buying a bigger battery!
i travel 25km at 40km/h average 2 times a day and with the opensource firmware i am now only using about 140wh one way.
so my 200wh battery is safe.
before it was hard to judge how much energy i am consuming. sometimes i used 200wh sometimes 150wh... (depending on wind...)
now i just stay at average 250watt and everything is fine.
i rode now 100km with the open source firmware and i am really happy.

i am also loving the boost function!
however i changed the boost time to 1.2 seconds and boost fade to 3.5 seconds.
this makes the bike much more agile and consistent!

casainho   100 MW

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

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by casainho » Oct 11 2018 4:12am

vscope wrote:
Oct 11 2018 3:59am
i am also loving the boost function!
however i changed the boost time to 1.2 seconds and boost fade to 3.5 seconds.
this makes the bike much more agile and consistent!
Good to know!! Maybe I will try that duration times also!!
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, you can consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

kortina   10 mW

10 mW
Posts: 29
Joined: Feb 19 2017 9:24pm

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by kortina » Oct 11 2018 5:40am

So I have all the gear to do the firmware install, now I have a spare magnet for the wheel, because I cut up a spare speed sensor.

If I add TWO magnet sensors to the wheel (2050mm), then put the value into the firmware as 1025 (Option 0,1)

Will I get twice the resolution of speed updates?

User avatar
jbalat   10 kW

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

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by jbalat » Oct 12 2018 2:28am

kortina wrote:
Oct 11 2018 5:40am
So I have all the gear to do the firmware install, now I have a spare magnet for the wheel, because I cut up a spare speed sensor.

If I add TWO magnet sensors to the wheel (2050mm), then put the value into the firmware as 1025 (Option 0,1)

Will I get twice the resolution of speed updates?
I guess that will work...
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 viewtopic.php?f=30&t=93818&start=150

EndlessCadence   100 W

100 W
Posts: 217
Joined: Aug 22 2018 4:31am

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by EndlessCadence » Oct 12 2018 3:47am

jbalat wrote:
Oct 12 2018 2:28am
kortina wrote:
Oct 11 2018 5:40am
So I have all the gear to do the firmware install, now I have a spare magnet for the wheel, because I cut up a spare speed sensor.

If I add TWO magnet sensors to the wheel (2050mm), then put the value into the firmware as 1025 (Option 0,1)

Will I get twice the resolution of speed updates?
I guess that will work...
But why would anyone need this? Are there wheel speed resolution issues anyway?

casainho   100 MW

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

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by casainho » Oct 12 2018 3:59am

EndlessCadence wrote:
Oct 12 2018 3:47am
But why would anyone need this? Are there wheel speed resolution issues anyway?
I even think we should low pass filter a bit the speed indication on LCD, or simple maybe show using less frequency because we can see it change very fast and I think would be better to have a bit more stable value being shown.
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, you can 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
feketehegyi   1 W

1 W
Posts: 51
Joined: Jul 11 2018 6:18am

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by feketehegyi » Oct 12 2018 3:06pm

fyi, I've made a TSDZ2 Display from scratch

casainho   100 MW

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

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by casainho » Oct 12 2018 7:42pm

I connected the STLinkV2 clone to Bafang LCD 850C and I was able to flash and debug (run step by step and add breakpoints) a test firmware that toggles a pin. Here is the debug session on Eclipse:
Image

And the pin signal on oscilloscope:
Image

I am sharing the firmware here: https://github.com/OpenSource-EBike-fir ... C_firmware

And technical notes about the LCD: https://github.com/OpenSource-EBike-fir ... afang-850C

As now I have all the wiring from the microcontroller to LCD, next step is try to initialize and write to LCD. The issue is that I don't know which LCD driver it uses... but I guess it is something popular, something that uses 16 data lines + some control lines.

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, you can consider making a donation. I am being using the donations to buy needed resources for my developments. My paypal: casainho AT gmail.com.

Bartman   100 mW

100 mW
Posts: 37
Joined: Feb 11 2018 2:38pm

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by Bartman » Oct 13 2018 6:19am

So finally the got my open source firwmware on. It's great, thanks Casainho fir all the work. Next question - when is walk mode going to be enabled ? This is a feature I make a lot of use of as I go bikepacking with my toute terrain mule trailer and often have to push when in difficulty terrain as I find it difficult with only one lung . Will this be part of 0.14 ?

EndlessCadence   100 W

100 W
Posts: 217
Joined: Aug 22 2018 4:31am

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by EndlessCadence » Oct 13 2018 6:45am

@casainho
You're making good progress, nice!
Bartman wrote:
Oct 13 2018 6:19am
So finally the got my open source firwmware on. It's great, thanks Casainho fir all the work. Next question - when is walk mode going to be enabled ? This is a feature I make a lot of use of as I go bikepacking with my toute terrain mule trailer and often have to push when in difficulty terrain as I find it difficult with only one lung . Will this be part of 0.14 ?
No I don't think so. 0.14 will be stable version of the firmware with some resolved issues, restructured code and feature toggles. Next on the list is walk assist. I already have some kind of walk assist implemented but couldn't get a speed low enough for walking pace at that time :P
I found the firmware quite hard to read and understand back then and it was easier for me to first restructure and properly document the code before continueing, then also a few bugs were reported. When all of this is done I'll continue with walk assist! I think 0.15 will probably have walk assist.

Bartman   100 mW

100 mW
Posts: 37
Joined: Feb 11 2018 2:38pm

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by Bartman » Oct 13 2018 7:24am

EndlessCadence wrote:
Oct 13 2018 6:45am
@casainho
You're making good progress, nice!
Bartman wrote:
Oct 13 2018 6:19am
So finally the got my open source firwmware on. It's great, thanks Casainho fir all the work. Next question - when is walk mode going to be enabled ? This is a feature I make a lot of use of as I go bikepacking with my toute terrain mule trailer and often have to push when in difficulty terrain as I find it difficult with only one lung . Will this be part of 0.14 ?
No I don't think so. 0.14 will be stable version of the firmware with some resolved issues, restructured code and feature toggles. Next on the list is walk assist. I already have some kind of walk assist implemented but couldn't get a speed low enough for walking pace at that time :P
I found the firmware quite hard to read and understand back then and it was easier for me to first restructure and properly document the code before continueing, then also a few bugs were reported. When all of this is done I'll continue with walk assist! I think 0.15 will probably have walk assist.
Great, look forward to seeing this feature.

nbdriver   10 mW

10 mW
Posts: 32
Joined: Jul 31 2015 4:38am
Location: Belgium

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by nbdriver » Oct 13 2018 11:58am

Did someone uses this motor with a 9 speed chain ?

User avatar
Marin   1 kW

1 kW
Posts: 355
Joined: May 20 2015 4:51pm
Location: BC, Canada

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by Marin » Oct 13 2018 12:04pm

nbdriver wrote:
Oct 13 2018 11:58am
Did someone uses this motor with a 9 speed chain ?
Yes and without issues
Marin ex-rental hybrid with 48v bionx...sold
Specialized hardrock with magic pie 4-5
Lunacycle with l/r mid drive coming soon
Kona Caldera with QS 30H (maybe), and phase runner
Giant Yukon bbs02
Kona Abra Cadabra bbshd
Wildfire fat bike bbshd

EndlessCadence   100 W

100 W
Posts: 217
Joined: Aug 22 2018 4:31am

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by EndlessCadence » Oct 13 2018 1:52pm

EndlessCadence wrote:
Oct 10 2018 2:59pm
...
I've now also ordered this power control board because it is very small, can switch my battery voltage and should handle the load well. Although it's a logic level MOSFET, 6V control voltage shouldn't be a problem I think.

Should receive it very soon, will let you guys know!

The MOSFET is also really cheap on aliexpress: https://www.aliexpress.com/item/5pcs-lo ... 35967.html
My lights are working with the MOSFET above and this DC-DC converter: https://www.aliexpress.com/item/DC-24V- ... 23315.html

The lights turn on perfect and the motor keeps assisting while the lights are on. Nothing runs hot or even warm. But, the lights don't turn off until I switch off battery power. I must have some phantom power somewhere or the TSDZ2 light output has a buffer (capacitor) and the MOSFET wasn't drawing enough current to empty the buffer during my test. Should be able to fix this soon, will review the firmware as well. I'll post some pictures and a guide soon!

Bartman   100 mW

100 mW
Posts: 37
Joined: Feb 11 2018 2:38pm

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by Bartman » Oct 14 2018 11:30am

Great to see 0.14 released endlesscadence. Does this fix the lag is motor Assis when you stop /start pedalling when the bike is moving ? I kinda like the lag on Forrest tracks, but it's no good when doing MTB tracks.

Bartman   100 mW

100 mW
Posts: 37
Joined: Feb 11 2018 2:38pm

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by Bartman » Oct 14 2018 11:51am

Does the 48v version of the TSDZ2 have noticeable more torque than th 36v version ? I tow a trailer with camping gear and was wondering if there would be any benefit to intstall a 48v motor to get more torque,

aja   10 W

10 W
Posts: 69
Joined: May 06 2014 2:05pm

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by aja » Oct 14 2018 1:41pm

Can someone please help me; I've tried connecting the ST Link to the Speed sensor on the TSDZ2 to flash the firmware to the motor but whatever I do, I get the same Swim comms error; started with cables inc connectors at 9cm and cut them down to 5cm...still doesn't work; spent the whole weekend creating cables then soldering and re-soldering t different lengths; nothings worked. I do have a speed sensor cable but don't want to cut it up if I get the same result as I've followed JB's and Casainho and indeed Eco ebikes instructions but to no avail. :(
I've flashed the 0.14 hex file to the LCD3 without a problem.

Waynemarlow   100 W

100 W
Posts: 211
Joined: Jul 09 2016 7:22am
Location: Bucks, England

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by Waynemarlow » Oct 14 2018 3:13pm

Hi Guys, bought a dissembled motor as an additional motor to build another bike for friends to use and starting to put it back together. It had previously a catastrophic failure of the torque sensor ( it totally broke up some how ) and all parts of the engine are apart. I've now purchased another torque sensor.

It would appear that the 3 small springs that pressure the stationary part of the sensor outwards are missing, does anyone have any idea of what size they are or perhaps have them spare or a part number and /or a contact for purchasing them.

Is there a repair manual online any where as there's a couple of shims I'm not to sure of where they should go ?

Thanks.

EndlessCadence   100 W

100 W
Posts: 217
Joined: Aug 22 2018 4:31am

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by EndlessCadence » Oct 14 2018 5:27pm

Bartman wrote:
Oct 14 2018 11:30am
Great to see 0.14 released endlesscadence. Does this fix the lag is motor Assis when you stop /start pedalling when the bike is moving ? I kinda like the lag on Forrest tracks, but it's no good when doing MTB tracks.
I hope you'll enjoy it!
No, not yet. But we should be able to fix that soon. I also find it a bit annoying.
aja wrote:
Oct 14 2018 1:41pm
Can someone please help me; I've tried connecting the ST Link to the Speed sensor on the TSDZ2 to flash the firmware to the motor but whatever I do, I get the same Swim comms error; started with cables inc connectors at 9cm and cut them down to 5cm...still doesn't work; spent the whole weekend creating cables then soldering and re-soldering t different lengths; nothings worked. I do have a speed sensor cable but don't want to cut it up if I get the same result as I've followed JB's and Casainho and indeed Eco ebikes instructions but to no avail. :(
I've flashed the 0.14 hex file to the LCD3 without a problem.
Do you use battery power while programming or the power from the programmer (5V) itself? Btw I have two ST Link V2 programmers, they both have another connector layout and I think have the RST/SWIM swapped. Both are bought from the same supplier. Maybe check this too. Are you using a USB extension cable or hub?
But programming your display worked...

aja   10 W

10 W
Posts: 69
Joined: May 06 2014 2:05pm

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by aja » Oct 14 2018 6:50pm

EndlessCadence wrote:
Oct 14 2018 5:27pm
aja wrote:
Oct 14 2018 1:41pm
Can someone please help me; I've tried connecting the ST Link to the Speed sensor on the TSDZ2 to flash the firmware to the motor but whatever I do, I get the same Swim comms error; started with cables inc connectors at 9cm and cut them down to 5cm...still doesn't work; spent the whole weekend creating cables then soldering and re-soldering t different lengths; nothings worked. I do have a speed sensor cable but don't want to cut it up if I get the same result as I've followed JB's and Casainho and indeed Eco ebikes instructions but to no avail. :(
I've flashed the 0.14 hex file to the LCD3 without a problem.
Do you use battery power while programming or the power from the programmer (5V) itself? Btw I have two ST Link V2 programmers, they both have another connector layout and I think have the RST/SWIM swapped. Both are bought from the same supplier. Maybe check this too. Are you using a USB extension cable or hub?
But programming your display worked...
I’ve tried using battery power and the 5V wire on the ST Link. I used 5V for the LCD3. I’ve swapped RST and Swim around as well as GND and tried to read the controller in the ST software. No USB extension- straight into USB port. ST Link straight into speed sensor on motor. As the display programming worked perhaps it’s the wiring? Continuity is fine.

User avatar
jbalat   10 kW

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

Re: New "TSDZ2 Torque Sensor Central Motor"

Post by jbalat » Oct 14 2018 10:37pm

See if you can still read the LCD ? Just checking that your drivers are still working..
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 viewtopic.php?f=30&t=93818&start=150

Post Reply