TSDZ2 48v 2020 new firmware

Electric Motors and Controllers
Post Reply
Pealy   1 µW

1 µW
Posts: 3
Joined: Feb 03 2021 7:01am

TSDZ2 48v 2020 new firmware

Post by Pealy » Apr 09 2021 7:43am

Hi,
Since May 2020, the firmware of the TSDZ2 in 48V version has to be changed, so the open source software is unusable for this version.
Do you know if a porting is in progress.
Thanks for the information

casainho   100 GW

100 GW
Posts: 5338
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 48v 2020 new firmware

Post by casainho » Apr 10 2021 1:24pm

Pealy wrote:
Apr 09 2021 7:43am
Hi,
Since May 2020, the firmware of the TSDZ2 in 48V version has to be changed, so the open source software is unusable for this version.
Do you know if a porting is in progress.
Thanks for the information
Please donate / send to me 2 of this new motor controllers so I can start the development work.
- 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

michih.   10 W

10 W
Posts: 96
Joined: Nov 11 2018 8:33am

Re: TSDZ2 48v 2020 new firmware

Post by michih. » Apr 11 2021 10:59am

Hello everybody,

I could order 2 of these controllers and send them to Cashino. How about we get the 90 € together with the donation? I would start with € 10.

MFG Michael

Cashino said a complete engine would be the easiest for him to install and test. so we put together. we can all benefit from it together .....

cresny   1 mW

1 mW
Posts: 14
Joined: Feb 18 2018 6:06pm

Re: TSDZ2 48v 2020 new firmware

Post by cresny » Apr 13 2021 10:18pm

I'm confused by this post. I received a new 48v model last week and it's running great with the OSF.

Nfer   10 W

10 W
Posts: 98
Joined: Sep 17 2019 6:51am

Re: TSDZ2 48v 2020 new firmware

Post by Nfer » Apr 14 2021 5:51pm

cresny wrote:
Apr 13 2021 10:18pm
I'm confused by this post. I received a new 48v model last week and it's running great with the OSF.
Where did you order it? PSWPower?

michih.   10 W

10 W
Posts: 96
Joined: Nov 11 2018 8:33am

Re: TSDZ2 48v 2020 new firmware

Post by michih. » Apr 16 2021 11:34am

psw has the old controllers. at enerprof the new versions. I collected donations in a German pedelec forum and have now been able to send a new controller to Cashino. I am currently collecting. the amount for a 2nd controller would be together. We may get support from enerprof and with additional donations we can send an entire motor.

MFG Michael

casainho   100 GW

100 GW
Posts: 5338
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 48v 2020 new firmware

Post by casainho » Apr 16 2021 11:37am

michih. wrote:
Apr 16 2021 11:34am
psw has the old controllers. at enerprof the new versions. I collected donations in a German pedelec forum and have now been able to send a new controller to Cashino. I am currently collecting. the amount for a 2nd controller would be together. We may get support from enerprof and with additional donations we can send an entire motor.

MFG Michael
Thanks and I promise to do everything I can to start document the hardware and find the tools needed for developers, this will be the very first steps.
- 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

michih.   10 W

10 W
Posts: 96
Joined: Nov 11 2018 8:33am

Re: TSDZ2 48v 2020 new firmware

Post by michih. » Apr 16 2021 11:41am

andibrainer has already measured the port assignment. I don't know if it will help you.

MFG Michael

casainho   100 GW

100 GW
Posts: 5338
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 48v 2020 new firmware

Post by casainho » Apr 16 2021 11:52am

michih. wrote:
Apr 16 2021 11:41am
andibrainer has already measured the port assignment. I don't know if it will help you.

MFG Michael
I just created the repository, please add that information there (images files and any text can be added to that README file or you can create a new one). Do a fork of the repository to your github account, do the changes on your fork and finally do a pull request to the original repository and I will accept.

https://github.com/OpenSourceEBike/TSDZ ... /README.md
- 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

User avatar
neptronix   100 GW

100 GW
Posts: 15654
Joined: Jun 15 2010 5:56pm
Location: Utah, USA
Contact:

Re: TSDZ2 48v 2020 new firmware

Post by neptronix » Apr 16 2021 12:04pm

Nice to see you supporting the DIY community here this much, cas. :)
"Love and compassion are necessities, not luxuries. Without them, humanity cannot survive." - Dalai Lama

My first major build: 1.6kW 8T MAC motor on a Trek 4500 MTB.
Monster MTB: Leafmotor 1500w @ 4kW on a Turner O2 full suspension.
The monster scooter: Heavy duty Cannondale semi recumbent - under construction.
Blue Dream: Maxaraya FS semi recumbent and high efficiency mid-drive - under construction.

shirk   10 mW

10 mW
Posts: 25
Joined: Oct 11 2013 4:26pm

Re: TSDZ2 48v 2020 new firmware

Post by shirk » Apr 16 2021 12:14pm

michih. wrote:
Apr 16 2021 11:34am
psw has the old controllers. at enerprof the new versions. I collected donations in a German pedelec forum and have now been able to send a new controller to Cashino. I am currently collecting. the amount for a 2nd controller would be together. We may get support from enerprof and with additional donations we can send an entire motor.

MFG Michael
Do you have a link for the 2nd donation? I'd but in bit to help with the project.

michih.   10 W

10 W
Posts: 96
Joined: Nov 11 2018 8:33am

Re: TSDZ2 48v 2020 new firmware

Post by michih. » Apr 16 2021 12:20pm

you can simply send it to me via PayPal. I then order from enerprof and send it off. You get the PayPal address via PN.

MFG Michael

abrainer   1 mW

1 mW
Posts: 18
Joined: Dec 11 2020 12:29pm

Re: TSDZ2 48v 2020 new firmware

Post by abrainer » Apr 17 2021 6:08am

@casainho, I have measured the pinout of the new XMC1302 controller. I attach the document as an attachment. If you are interested I can contribute a disassembled cleaned controller board and an Infineon XMC1302 boot kit. I would send the parts to @michih. so he can send them with the next shipment to you.
Kind regards abrainer
Attachments
XMC1303 pin assignment Tongsheng Controller.odt
(10.25 KiB) Downloaded 52 times
21-04-17 12-54-19 1428.jpg
21-04-17 12-54-19 1428.jpg (3.88 MiB) Viewed 1810 times
21-04-17 12-54-31 1429.jpg
21-04-17 12-54-31 1429.jpg (2.62 MiB) Viewed 1810 times
21-04-17 12-54-45 1430.jpg
21-04-17 12-54-45 1430.jpg (3.26 MiB) Viewed 1810 times

casainho   100 GW

100 GW
Posts: 5338
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 48v 2020 new firmware

Post by casainho » Apr 17 2021 6:32am

abrainer wrote:
Apr 17 2021 6:08am
@casainho, I have measured the pinout of the new XMC1302 controller. I attach the document as an attachment. If you are interested I can contribute a disassembled cleaned controller board and an Infineon XMC1302 boot kit. I would send the parts to @michih. so he can send them with the next shipment to you.
Kind regards abrainer
I think we are all very interested!! - so fork the repository, add the files and your notes on your fork and finally do a pull request and then I will accept it: https://github.com/OpenSourceEBike/TSDZ ... r_firmware
- 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

casainho   100 GW

100 GW
Posts: 5338
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 48v 2020 new firmware

Post by casainho » Apr 17 2021 3:44pm

abrainer wrote:
Apr 17 2021 6:08am
@casainho, I have measured the pinout of the new XMC1302 controller. I attach the document as an attachment. If you are interested I can contribute a disassembled cleaned controller board and an Infineon XMC1302 boot kit. I would send the parts to @michih. so he can send them with the next shipment to you.
Kind regards abrainer
I can accept that boards, and clean motor controller would be great, but, don't you prefer to use it yourself? Don't you plan to help on the development??
- 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

abrainer   1 mW

1 mW
Posts: 18
Joined: Dec 11 2020 12:29pm

Re: TSDZ2 48v 2020 new firmware

Post by abrainer » Apr 18 2021 9:38am

I still have a second XMC boot kit, so I can assist with development. I think the controller board is more useful for you.
At the moment I have more of a problem with uploading to Github. I don't want to succeed in uploading the files.

Pealy   1 µW

1 µW
Posts: 3
Joined: Feb 03 2021 7:01am

Re: TSDZ2 48v 2020 new firmware

Post by Pealy » Apr 18 2021 12:41pm

I just sent a contribution of 15€ to help the development of the new firmware.
Do you know if the new displays sold on aliexpress and
Enerpower (TFT 560C, TFT 500S-U, TFT 510S-U) work only with the new controllers or are they also compatible with the previous generation controllers?

michih.   10 W

10 W
Posts: 96
Joined: Nov 11 2018 8:33am

Re: TSDZ2 48v 2020 new firmware

Post by michih. » Apr 18 2021 1:12pm

we have the money for a second controller. and now € 15 over. Now it goes to an engine. enerpower has a return with a controller problem. on monday i will be informed what the engine should cost. the tft only fit the new controller. have a tft 500 here. think it's great because it's small.

MFG Michael

michih.   10 W

10 W
Posts: 96
Joined: Nov 11 2018 8:33am

Re: TSDZ2 48v 2020 new firmware

Post by michih. » Apr 19 2021 11:23am

I will cancel the collection campaign for the engine. Unfortunately, there is not enough feedback. we could at least send 2 controllers and tools.

MFG Michael

Pealy   1 µW

1 µW
Posts: 3
Joined: Feb 03 2021 7:01am

Re: TSDZ2 48v 2020 new firmware

Post by Pealy » Apr 19 2021 11:39am

2 controllers and tools is better than nothing and i hope that enough to product a new release of open source firmware.
Philippe

cresny   1 mW

1 mW
Posts: 14
Joined: Feb 18 2018 6:06pm

Re: TSDZ2 48v 2020 new firmware

Post by cresny » Apr 19 2021 10:01pm

Nfer wrote:
Apr 14 2021 5:51pm
cresny wrote:
Apr 13 2021 10:18pm
I'm confused by this post. I received a new 48v model last week and it's running great with the OSF.
Where did you order it? PSWPower?
I ordered it at http://recycles-ebike.com/. I guess I got an older model.

casainho   100 GW

100 GW
Posts: 5338
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 48v 2020 new firmware

Post by casainho » Apr 22 2021 3:09am

I received the new motor controller, thanks to everyone who donated and to @michih. My days are super busy so do not expect fast advances. And there are a lot of work on documentation that anyone can do only with a computer, so, if your guys want to contribute, please submit pull requests with your contributions on the documentation about this new motor controller:

How to make a pull request: https://guides.github.com/activities/hello-world/ to the repository TSDZ2_new_motor_controller_firmware: https://github.com/OpenSourceEBike/TSDZ ... r_firmware

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

casainho   100 GW

100 GW
Posts: 5338
Joined: Feb 14 2011 2:43pm

Re: TSDZ2 48v 2020 new firmware

Post by casainho » Apr 25 2021 12:50pm

I am starting looking at the TSDZ2 motor controller V2 and I see the following differences:
- microcontroller ARM Cortex M0, 32 bits at 64MHz
- that three big R003 resistors are for sure to measure each motor phase current while on the controller V1 there was only one big resistor to measure the battery current

The increasing of processing power and the capability to measure the 3 phase currents means the system can implement FOC. Anyway, we should be able to port the firmware of controller V1 to controller V2 and ignore at start that 3 phase currents, as the sum of the phase currents is equal to the total phase currents that we calculate already on the controller V1 firmware, as total phase current = battery current / PWM duty_cycle:

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

michih.   10 W

10 W
Posts: 96
Joined: Nov 11 2018 8:33am

Re: TSDZ2 48v 2020 new firmware

Post by michih. » Apr 25 2021 1:06pm

which is immediately noticeable when you install the controller in the old motor. the engine is much quieter! do you then use the v12 of mspider65?

There will be more material for you next week. according to dhl it is already in portugal 😉

MFG Michael

User avatar
stancecoke   100 kW

100 kW
Posts: 1458
Joined: Aug 02 2017 2:56pm

Re: TSDZ2 48v 2020 new firmware

Post by stancecoke » Apr 25 2021 1:07pm

casainho wrote:
Apr 25 2021 12:50pm
Anyway, we should be able to port the firmware of controller V1 to controller V2 and ignore at start that 3 phase currents
:shock: I strongly recomment to analyse the circuit deeply, to understand which ADC_x setup, ADC timing, Timer_x config etc. is needed for doing real FOC. Otherwise you will throw away all your work afterwards.
I don't see any battery current shunt, so you have to read the phase current anyway.
casainho wrote:
Apr 25 2021 12:50pm
as the sum of the phase currents is equal to the total phase currents that we calculate already on the controller V1 firmware
?! the sum of the phase currents is zero at any time....

regards
stancecoke

Post Reply