New "TSDZ2 Torque Sensor Central Motor"

Decided to restore the broken casting. Where it is possible imposed seam welding. Inside the lined surface. Also modified the surface of the body Motor, it is well found support in the frame in two places where attached metal plate and on the other hand frame. On the bb did back mounting bolts fixation. Extended mounting bolts metal plate and planted on lock thread. Now design looks very strong. I understand that Weld much weaker factory casting, but let's try welding. If it will break, I buy another set)) p.s. also has established a bronze gear. It is quite heavy (162 grams). Turner reduce weight, removing the extra metal. It looks strong enough even now and weighs (102 grams).
 

Attachments

  • IMG_20180723_113603.jpg
    IMG_20180723_113603.jpg
    68.5 KB · Views: 2,422
  • IMG_20180723_113420.jpg
    IMG_20180723_113420.jpg
    168.6 KB · Views: 2,422
  • IMG_20180723_113433.jpg
    IMG_20180723_113433.jpg
    120.9 KB · Views: 2,422
  • IMG_20180723_113300.jpg
    IMG_20180723_113300.jpg
    70.4 KB · Views: 2,422
  • IMG_20180723_113322.jpg
    IMG_20180723_113322.jpg
    70.5 KB · Views: 2,422
  • IMG_20180723_113358.jpg
    IMG_20180723_113358.jpg
    72.9 KB · Views: 2,422
  • IMG_20180723_113506.jpg
    IMG_20180723_113506.jpg
    60.8 KB · Views: 2,422
Hi Casainho!

I'm really excited to try out your Open Source Firmware with LCD3 - I compiled the latest firmware and flashed the controller and the LCD3. When I first plugged it in, it kept running the motor until the max speed (which it then reduced): throttle worked and brakes stopped everything, but I didn't do any more digging, and wanted to have a functional bike for a bit. I then tried to reflash back to my original improved original firmware and LCD3 I had before, and it didn't work. Then I reflashed the Open Source TSDZ2 firmware and appropriate LCD3 firmware for it, and now using the LCD for debugging, I have throttle and torque signals (zero at rest, and engaged when activated), but the motor doesn't turn. I'm not sure where the error is: maybe blown MOSFETS, but my current stated maximum 18, and it had no load just for 10-15 seconds.

I'm curious if I'm supposed to flash some option bytes and different eeprom values for the Open Source Firmware for the TSDZ2 controller. Could you give me any advice?

Update: turns out that the option bytes and eeprom were incorrectly configured - I got my original configuration back after re-flashing the original eeprom/option bytes and the updated firmware. I tried re-flashing the Open Source Firmware and matched LCD3, but it didn't work (values work in debugging, but the power doesn't transfer to the controller - no longer keeps the motor on).

Also, I realized my guide for the windows made reference to .bin files, where the windows program can only read .hex files: not sure if there is an easy way to convert or upload the files to .hex (I know how to compile both, but can't find the option_bytes.hex for the LCD3. I will get on this because what you did is really awesome!
 
This is my solution to mount to the frame when the stock solution doesn't fit: I had a sideways hose clamp for a while, and it worked great, just changed to this setup, as I realized it was possible - will update if this doesn't work, but currently trying to get the open source firmware working on my machine :)
 

Attachments

  • 20180722_220942.jpg
    20180722_220942.jpg
    97.6 KB · Views: 2,416
MaartenL said:
Seems all fine no? Or should I get another Chainring?

I cannot give you a number from the center of the bb as I do not know how you plan on shimming it. I measured my motor for you (rough measurement plus or minus a few millimeters) from the edge of the bottom bracket casting to the center-line of the 42t offset chainring. I am getting about 17mm +/-. I believe I read the stock offset chainring is about 5mm so I would assume a non offset chainring would be about 22mm +/-.

Also you might want to measure how far back the chainstays get wider than the bb to make sure the engine housing plate is not going to hit that before reaching the bb, otherwise you will need to put a washer(s) between the bb and the engine housing until it does not make contact with the chainstays, and thus increasing the chainline measurement.
 
pawepie said:
Hi Casainho!

I'm really excited to try out your Open Source Firmware with LCD3 - I compiled the latest firmware and flashed the controller and the LCD3. When I first plugged it in, it kept running the motor until the max speed (which it then reduced): throttle worked and brakes stopped everything, but I didn't do any more digging, and wanted to have a functional bike for a bit. I then tried to reflash back to my original improved original firmware and LCD3 I had before, and it didn't work. Then I reflashed the Open Source TSDZ2 firmware and appropriate LCD3 firmware for it, and now using the LCD for debugging, I have throttle and torque signals (zero at rest, and engaged when activated), but the motor doesn't turn. I'm not sure where the error is: maybe blown MOSFETS, but my current stated maximum 18, and it had no load just for 10-15 seconds.

I'm curious if I'm supposed to flash some option bytes and different eeprom values for the Open Source Firmware for the TSDZ2 controller. Could you give me any advice?

Update: turns out that the option bytes and eeprom were incorrectly configured - I got my original configuration back after re-flashing the original eeprom/option bytes and the updated firmware. I tried re-flashing the Open Source Firmware and matched LCD3, but it didn't work (values work in debugging, but the power doesn't transfer to the controller - no longer keeps the motor on).

Also, I realized my guide for the windows made reference to .bin files, where the windows program can only read .hex files: not sure if there is an easy way to convert or upload the files to .hex (I know how to compile both, but can't find the option_bytes.hex for the LCD3. I will get on this because what you did is really awesome!
I am now only using the OpenSource firmware in my ebike and I use it daily. Also I will do a hard trail in some days of 75kms + 60kms and I will need to manage very well the batteries packs power other way I will not be able to finish, so limiting the power on LCD is a must, so I really need to have OpenSource firmware working well.
Right now, the only thing missing is startup from torque sensor because right now it only does human power that is zero if cadence is zero, so don't startup the motor if pedals are stopped.

To help you, I need to follow your steps! So, please give me your github account so you can write a wiki page with the steps you are doing to flash and I will follow and correct them - and yes, this way we will be helping the next ones :)
 
pawepie said:
This is my solution to mount to the frame when the stock solution doesn't fit: I had a sideways hose clamp for a while, and it worked great, just changed to this setup, as I realized it was possible - will update if this doesn't work, but currently trying to get the open source firmware working on my machine :)
:shock: :shock: :cry: .. that is a seriously BAD IDEA !!
Do not ride like that.
You have strapped the motor casing to the swing arm which moves independent to the bbracket to which the rest of the drive is fixed .
 
feketehegyi said:
I've created an Android app to act as LCD Display for TSDZ2.
[youtube]ttrdwND6kCI[/youtube]

Hey thats really cool! Thx for your work. Would be nice to have to OpenSource Firmware being controlled by android phone! :wink:

In my opinion it would make more sense to leave the lcd3 path and go straight to an app for the opensource firmware.
nodemcu devel board with wifi included would be very easy to attach and costs only 3 dollars.

one other thing: could you make a drawing of the pin out of your poor man connector?
so which pin of tsdz2 male connector do we need for flashing / powering? thx!
 
Some cool stuff going on here!
Question
To program the lcd3 without connection to the motor can I just use 5v to j7 from the dongle ?
 
jbalat said:
To program the lcd3 without connection to the motor can I just use 5v to j7 from the dongle ?

yes, worked for me with a chinese clone dongle.
 
TomTom,

Yes, that is the FS design but there is also a hardtail one with more to follow I'm sure. The manufacturers are ready and able to meet individual design criteria as well.

The Bafang M600 is my target motor not the Ultra. Much lighter at 3.4kg and a 176mm Q factor: https://www.youtube.com/watch?v=ZR0gFy1xIGQ

Bafang will always make kit motors but they seem to be going toe to toe with the EU integrated motor/battery designs in a big way. https://www.bike-eu.com/home/nieuws/2017/08/bafang-introduces-m500-mid-motor-for-e-mtbs-10130989

At this time though regarding the TSDZ2 Q Factor is about as good as it is going to get. I was not a fan of mid drives based on the BBS motors and their cadence sensing PAS and am thankful it came along and turned me on to the possibility of torque assist going forward. I'll stick with it until something develops with the M600 no problem.
 
:shock: :shock: :cry: .. that is a seriously BAD IDEA !!
Do not ride like that.
You have strapped the motor casing to the swing arm which moves independent to the bbracket to which the rest of the drive is fixed .
[/quote]

Thanks for pointing that out! The swing arm distance travelled there is small, but that could cause something to crack for sure.
 
casainho said:
feketehegyi said:
I've created an Android app to act as LCD Display for TSDZ2.
[youtube]ttrdwND6kCI[/youtube]
Android app would be perfect for the ones that would prefer no LCD on the ebike!! While I use an LCD, there are users of KT motor controllers that prefer the Bluetooth Android version/no LCD. For TSDZ2, this must be DIY in terms of hardware to add the Bluetooth and the power switch.

Can you have at the same time lcd3 display and bluetooth adapter?
We have to connect bluetooth directly to the controler or can be connected in paralel with the display?
 
casainho said:
feketehegyi said:
I've created an Android app to act as LCD Display for TSDZ2.
[youtube]ttrdwND6kCI[/youtube]
Android app would be perfect for the ones that would prefer no LCD on the ebike!! While I use an LCD, there are users of KT motor controllers that prefer the Bluetooth Android version/no LCD. For TSDZ2, this must be DIY in terms of hardware to add the Bluetooth and the power switch.

Can you have at the same time lcd3 display and bluetooth adapter?
We have to connect bluetooth directly to the controler or can be connected in paralel with the display?
 
AZUR said:
casainho said:
feketehegyi said:
I've created an Android app to act as LCD Display for TSDZ2.
[youtube]ttrdwND6kCI[/youtube]
Android app would be perfect for the ones that would prefer no LCD on the ebike!! While I use an LCD, there are users of KT motor controllers that prefer the Bluetooth Android version/no LCD. For TSDZ2, this must be DIY in terms of hardware to add the Bluetooth and the power switch.

Can you have at the same time lcd3 display and bluetooth adapter?
We have to connect bluetooth directly to the controler or can be connected in paralel with the display?
No, it is not possible. Anyway, it will always be a DIY solution.
 
pawepie said:
[Thanks for pointing that out! The swing arm distance travelled there is small, but that could cause something to crack for sure.

Perhaps you could run something between the bb and the swing arm pivot and then anchor the motor up over the bb and around the seat tube. Perhaps an open ended stainless clamp could slip through the opening while being pressed up tightly against the bb and then attached to a heavy duty cable tie which goes around the seat tube.
 
vscope said:
feketehegyi said:
I've created an Android app to act as LCD Display for TSDZ2.
[youtube]ttrdwND6kCI[/youtube]

Hey thats really cool! Thx for your work. Would be nice to have to OpenSource Firmware being controlled by android phone! :wink:

In my opinion it would make more sense to leave the lcd3 path and go straight to an app for the opensource firmware.
nodemcu devel board with wifi included would be very easy to attach and costs only 3 dollars.

one other thing: could you make a drawing of the pin out of your poor man connector?
so which pin of tsdz2 male connector do we need for flashing / powering? thx!

Thanks! My ST-Link V2 Programming Unit is ordered already, so it takes some time till I can play with OpenSource Firmware. I can also imagine that the app will be capable to deal with both original and casainho's firmware.
I'll try out if data can be sent via Bluetooth, however it's a relative frequent communication between Display and Motor.
I've not heard about nodemcu yet. It seems to be an Arduino like board.
Regarding to your question, I've used hurzhurz's documentation. Take care this is the female one going to LCD. Pin out:
https://github.com/hurzhurz/tsdz2/blob/master/pinout.md
Serial communication:
https://github.com/hurzhurz/tsdz2/blob/master/serial-communication.md
 
casainho said:
AZUR said:
casainho said:
feketehegyi said:
I've created an Android app to act as LCD Display for TSDZ2.
[youtube]ttrdwND6kCI[/youtube]
Android app would be perfect for the ones that would prefer no LCD on the ebike!! While I use an LCD, there are users of KT motor controllers that prefer the Bluetooth Android version/no LCD. For TSDZ2, this must be DIY in terms of hardware to add the Bluetooth and the power switch.

Can you have at the same time lcd3 display and bluetooth adapter?
We have to connect bluetooth directly to the controler or can be connected in paralel with the display?
No, it is not possible. Anyway, it will always be a DIY solution.

As a DIY solution the bluetooth module need to bo connected directly to the controler?

Is this case power on is on the lcd3 display. Yes?
 
feketehegyi said:
Thanks! My ST-Link V2 Programming Unit is ordered already, so it takes some time till I can play with OpenSource Firmware. I can also imagine that the app will be capable to deal with both original and casainho's firmware.
I'll try out if data can be sent via Bluetooth, however it's a relative frequent communication between Display and Motor.
Here a DIY Bluetooth module that can even turn on/off the motor controller -- this module works for KT motor controllers, so it is just equal for TSDZ2: https://opensourceebikefirmware.bitbucket.io/development/Motor_controllers--BMSBattery_S_series--Bluetooh--DIY_Bluetooth_module.html

And here an example of an Android app that communicates to a Bluetooth module and sends and receives data in real time from the motor controller (in this case from an electric unicycle): https://github.com/EGG-electric-unicycle/documentation/wiki/EGG-app
 
Using stm32 cube programmer in Windows with 5v from the stlink to j7
It would not connect to the lcd but recognised the stlink.
I pressed erase. The lcd3 power has gone off and it's been thinking for 10 minutes.. should I leave it ?

Actually nothing happened.. it won't connect. Any ideas gurus ?
 

Attachments

  • IMG_20180724_1125.jpg
    IMG_20180724_1125.jpg
    88 KB · Views: 2,222
  • IMG_20180724_33964.jpg
    IMG_20180724_33964.jpg
    97.7 KB · Views: 2,219
eyebyesickle said:
Also, I need to confirm, but I think my doc needs editing.... That was an old TS value chart... I looked at my saved profiles, and I use '83' for 52v, not 82. I think you need 83 or it won't run at full 58.8... waiting to confirm and I'll edit it

Thanks, eyebyesickle. I followed your instructions and it saved. I changed 78 & 14 to 83 & 17.
 
AWD said:
TomTom,

Yes, that is the FS design but there is also a hardtail one with more to follow I'm sure. The manufacturers are ready and able to meet individual design criteria as well.

Thanks for the links. None of the designs seem oriented to road use. Hmmm.
 
Hillhater said:
tomtom50 said:
.....Are you seeing integrated motor frames that are cheap? Where?....
There is a thread on new integrated motor bikes further down in this forum....not all cheap options though.
But i posted this commet before..
"complete bikes apearing daily for the Bafang Ultra and Max drive units..
Some well below $2k :shock: ,..EG...
https://ansbernbikes.en.alibaba.com/product/60774206054-806314918/2018_Hot_Sale_CE_Approved_27_5_3_0_Full_Suspension_Bafang_48V_1000W_21AH_Mountain_Electric_Bike.html?spm=a2700.icbuShop.prewdfa4cf.19.6c5e7cb5hpRLYi
https://ansbernbikes.en.alibaba.com/?sp ... 15e5UzuiwM
kWOaZY.png

:D
Interesting. Thanks for the links.
 
tomtom50 said:
eyebyesickle said:
Also, I need to confirm, but I think my doc needs editing.... That was an old TS value chart... I looked at my saved profiles, and I use '83' for 52v, not 82. I think you need 83 or it won't run at full 58.8... waiting to confirm and I'll edit it

Thanks, eyebyesickle. I followed your instructions and it saved. I changed 78 & 14 to 83 & 17.

Great, let me know if there are any problems, some versions need the program memory flashed to a different file also :/

Which I can provide as needed and if it comes up alot I'll edit the doc. 82 works fine for 52v though it seems, it's was the program memory problem I describe above in this case...
 
eyebyesickle hi.. i found your guide.. thank you.
https://www.eco-ebike.com/blogs/eco-cycles-instructionals/tsdz2programmingfromscratch

which is pretty cool. Im trying to erase the LCD but it wont because it says its protected...
Also the bin files posted need to be in hex format so i'm thinking they could be converted
 
Back
Top