This project is not in development anymore. Instead, the idea is to use a small cheap VESC and install it inside the TSDZ2 motor, or outside, in a DIY way. Then a very small ESP32-C3 board, running high level Python firmware, read the sensors and send the commands to VESC to control the motor -- this is already done for other EBike motors lke Bafang M500 motor, or to Xiaomi M365 scooters or even more powerful 2000W microscooters as Fiido Q1S, see here:
https://opensourceebike.github.io
This repository has technical documentation about TSDZ2 motor controller V2 as also very initial, unfinished and not tested, OpenSource firmware for it.
To build the current firmware, call "make" on the command line (tested on Linux). This Makefile is where is defined which sources files are used to build the firmware.
You can buy the TSDZ2 motor controller V2 on Enerprof.
Forum messages:
Important documentation:
Microcontroller XMC1300:
- XMC1300 datasheet
- XMC1300 reference manual
- XMC1300 math coprocessor
- XMC1300 FOC paper from Infineon
- XMC1300FOC DAVE sample code
- Visual Studio Code Linux installation
Technical characteristics of TSDZ2 electric motor:
- there are 2 different motors, one that is 36V and other 48V
- motor voltage: 36V or 48V
- no load speed: 4000 RPM for both motors
- motor resistance: 36V motor has 0.094 ohm, 48V motor has 0.125 ohm
- motor inductance: 36V motor has 76uH, 48V motor has 135uH
- pole pair: 8 for both motors