TSDZ2 mid drive with 860C, 850C or SW102 displays only -- Flexible OpenSource firmware (Casainho code only)

redwater said:
Can we ask for compiled version 850c ?
regards

I've just compiled it for 850C. You can find it on my Github : https://github.com/Kenny-54/Color_LCD/tree/WIP-trips-memories

Direct download links :
850C bootloader : https://github.com/Kenny-54/Color_LCD/raw/WIP-trips-memories/850C_v1.0.0-trip-bootloader.bin
850C standard : https://github.com/Kenny-54/Color_LCD/raw/WIP-trips-memories/850C_v1.0.0-bootloader.bin

Be aware that I did not flash/test it on 850C as I only own a 860C.
 
The new 2020 TSDZ2 uses no STM processor any longer, obviously. :( See the german forum.

index.php


regards
stancecoke
 
stancecoke said:
The new 2020 TSDZ2 uses no STM processor any longer, obviously. :( See the german forum.

index.php
Do you know what is the microcontroller?

And I hope we can still buy the motor controller for the 30€ price as previous version.
 
There is a 20€ evaluation board with a detachable programmer, I suppose it should work.
https://www.infineon.com/cms/de/product/evaluation-boards/kit_xmc13_boot_001/
 
romelec said:
There is a 20€ evaluation board with a detachable programmer, I suppose it should work.
https://www.infineon.com/cms/de/product/evaluation-boards/kit_xmc13_boot_001/
On eBay the dev board costs 35€ while the TSDZ2 motor control costs only 25€, so, the motor controller is cheaper even to be used as a development board!!

And as a compiler, programmer and debugger, seems there is the OpenSource Arduino: https://docs.platformio.org/en/latest/boards/infineonxmc/xmc1300_sense2gol.html -- the best documentation may be here on this GitHub from the chip manufacturer: https://github.com/Infineon/platformio-infineonxmc/blob/master/README.md

And the manufacturer provides datasheets and application notes in english.

So, I think we have all the needed tools to start developing the firmware :)

I would need to have access to at least 4 units on this new motor controller - anyone that can donate this motor controllers to me? - the very first step is to disassemble and write a wiki page with the details of how the schematic may be, etc.
 
casainho said:
romelec said:
There is a 20€ evaluation board with a detachable programmer, I suppose it should work.
https://www.infineon.com/cms/de/product/evaluation-boards/kit_xmc13_boot_001/
On eBay the dev board costs 35€ while the TSDZ2 motor control costs only 25€, so, the motor controller is cheaper even to be used as a development board!!

And as a compiler, programmer and debugger, seems there is the OpenSource Arduino: https://docs.platformio.org/en/latest/boards/infineonxmc/xmc1300_sense2gol.html -- the best documentation may be here on this GitHub from the chip manufacturer: https://github.com/Infineon/platformio-infineonxmc/blob/master/README.md

And the manufacturer provides datasheets and application notes in english.

So, I think we have all the needed tools to start developing the firmware :)

I would need to have access to at least 4 units on this new motor controller - anyone that can donate this motor controllers to me? - the very first step is to disassemble and write a wiki page with the details of how the schematic may be, etc.

Just sent you 25Eur so you can buy at least one to start. By the way can you post the link to the ebay where we can get a new controller, I'll buy one for myself so I can help get the pinout figured out.
Thanks
 
casainho said:
Since I recall, I used the sample code from ST for RTC. You are free to change if needed.

I am thinking that maybe next version can have the pedal crank length configuration.

Than'ks, I'll try it.

vshitikov said:
Just sent you 25Eur so you can buy at least one to start. By the way can you post the link to the ebay where we can get a new controller, I'll buy one for myself so I can help get the pinout figured out.
Thanks

I'm interested too for the ebay link. Less cheap I found is 43€ with shipping cost (ebay and aliexpress).
 
casainho said:
romelec said:
There is a 20€ evaluation board with a detachable programmer, I suppose it should work.
https://www.infineon.com/cms/de/product/evaluation-boards/kit_xmc13_boot_001/
On eBay the dev board costs 35€ while the TSDZ2 motor control costs only 25€, so, the motor controller is cheaper even to be used as a development board!!
It's at 20€ +VAT on Mouser, Farnell and certainly others, with generally free shipping if buying a few other things

I was thinking at buying it for its programmer since the official J-Link are pretty expensive and the clones do not always work well, but there is the EDU Mini version at 20€ as well: https://fr.farnell.com/segger/8-08-91-j-link-edu-mini/unit-d-education-cortex-m/dp/3106578
 
I'm running 1.0.0Alpha from a few weeks ago, and though I can see throttle values change in the Technical screen from 0-255 on pressing the throttle, it has no effect on the motor.

Have I missed a configuration option to enable it somewhere?

Everything else works fine, very impressive. :D

Cheers, Paul
 
paulcatchpole said:
I'm running 1.0.0Alpha from a few weeks ago, and though I can see throttle values change in the Technical screen from 0-255 on pressing the throttle, it has no effect on the motor.

Have I missed a configuration option to enable it somewhere?

Everything else works fine, very impressive. :D

Cheers, Paul

In the Temperature menu you can choose to activate either the temperature sensor or throttle.
 
ilu said:
paulcatchpole said:
I'm running 1.0.0Alpha from a few weeks ago, and though I can see throttle values change in the Technical screen from 0-255 on pressing the throttle, it has no effect on the motor.

Have I missed a configuration option to enable it somewhere?

Everything else works fine, very impressive. :D

Cheers, Paul

In the Temperature menu you can choose to activate either the temperature sensor or throttle.

Also assist level must be greater than 0. :wink:
 
Brilliant, thanks for that. Working fine.

I had wrongly assumed 'Motor Temperature: disabled' meant the throttle was enabled by default. Hadn't twigged the options were 'disabled, Throttle, Temperature' ... :)

Ta, PC
 
Here is an article about implementing motor control with FOC using XMC1302 - just the same of TSDZ2:

http://motor-control-design.com/article/knowhow/2446/a-quick-and-easy-way-to-design-sensorless-foc-motor-controls

Screenshot-20200612-203414-Chrome.jpg
 
casainho said:
romelec said:
There is a 20€ evaluation board with a detachable programmer, I suppose it should work.
https://www.infineon.com/cms/de/product/evaluation-boards/kit_xmc13_boot_001/
On eBay the dev board costs 35€ while the TSDZ2 motor control costs only 25€, so, the motor controller is cheaper even to be used as a development board!!

And as a compiler, programmer and debugger, seems there is the OpenSource Arduino: https://docs.platformio.org/en/latest/boards/infineonxmc/xmc1300_sense2gol.html -- the best documentation may be here on this GitHub from the chip manufacturer: https://github.com/Infineon/platformio-infineonxmc/blob/master/README.md

And the manufacturer provides datasheets and application notes in english.

So, I think we have all the needed tools to start developing the firmware :)

I would need to have access to at least 4 units on this new motor controller - anyone that can donate this motor controllers to me? - the very first step is to disassemble and write a wiki page with the details of how the schematic may be, etc.

how much do the controllers cost and who has them? Depending on the price I will get you one or more......
 
or I can just send you some cash and you can get them so I do not have to have them shipped to me than ship them to you. How can I send you money? Paypal to friends and family?
 
So after searching a bit more, I think the best is to use PlatformIO as the tool for development for XMC1302.

The IDE can be the modern Visual Studio Code with the plug-in for the PlatformIO.

The flasher and debugger supported by XMC1302 and PlatformIO is the JLink, which I see on eBay for about 3€ (I never used it, the original one seems very expensive like 300€).

As I am also starting the firmware for fully wireless TSDZ2 (following the Ebike wireless standard), that uses the NRF52840 microcontroller, the PlatformIO also supports this one. And the common framework for both XMC1302 and NRF52840 is the Arduino - so the idea is to try use the same platform for develop the next firmwares, for the TSDZ2 motor controller 2020 version and for the TSDZ2 Ebike wireless.

For start, I think the best idea would be to port the current TSDZ2 firmware for the new controller version - I understand this new microcontroller is way more capable to implement motor control but still the current motor control on STM8 is good enough and would be the fast path to have the firmware working. I guess the motors are just the same, as the circuit for the sensors like the torque sensor, etc, so is just like the same motor controller with the same inputs and outputs but with a more capable microcontroller, so, the current firmware should work easily on it if is ported.

cavi said:
or I can just send you some cash and you can get them so I do not have to have them shipped to me than ship them to you. How can I send you money? Paypal to friends and family?
Yes, send to my PayPal. Now I need to make sure I can buy the new version of the motor controller... I don't know how.
 
I just ordered another motor from pswpower EU warehouse because controller that I ordered in February still didn't arrive. Now I'm not sure if the motor I'm going to get is with old or new controller.
 
NexusG said:
I have bought a spare controller in mid-may on Pswpower and it still have the STM8 microcontroller
I ordered my 48V TSDZ2 (no throttle version) on the 31st of May (from pswpower) and while my VLCD5-display (version 5.0) allow setting max speed up to 60km/h (instead of the 45km/h I expected) it does allow for disabling speed limit or just increasing it, something I understand (if my german skills did not deceive me) from the german thread was a problem with the new version. Also I do not experience the hard shut-off when it reaches the speed limit that's also described in the german thread. Still waiting for my STLinkV2 to arrive to be able to confirm for sure.
 
Back
Top