Skip to content

Releases: TSDZ2-ESP32/TSDZ2-Smart-EBike

Version 16

22 Apr 15:18
Compare
Choose a tag to compare
v16

FOC angle parameter bug fix

Version 14

20 May 11:28
Compare
Choose a tag to compare

High load motor optimization:

  • motor_controller() loop removed
  • FOC Angle calculation algorithm changed
  • Field Weakening Enable/Disable

Version 13

29 Apr 06:59
Compare
Choose a tag to compare

Version 13

  • ADC values Right aligned.
  • To avoid overrun errors, ADC buffered values no more readed in ebike_app but in pwm-up interrupt (end of conversion)
  • Fixed minor bug in main loop timings
  • PWM freq decreased to 18KHz (all values parametrized in main.h)
  • Power glitch bug fix (race condition between PWM interrupt and Hall GPIO interrupt)
  • FOC angle asin_table optimization (thanks to beemac)
  • PWM Dead Time increased from 1us to 1.5us (OEM firmware uses a value of 3us!)

TSDZ2-ESP32 STM8 v11

28 Feb 21:18
Compare
Choose a tag to compare
  • Use different Hall counter offset for every Hall state
  • Updated low pass filter() function

TSDZ2-ESP32 STM8 v10

14 Feb 09:16
Compare
Choose a tag to compare
  • New Motor control algorithm:
    • IRQ based Hall detection
    • Hall counter @ 250KHz
    • Hall Calibration (Angular and Time correction)
    • Hall counter correction based on Hall state
    • Phase adjust step by step
  • HW triggered ADC conversion (OC4Ref signal)
  • Added calibration mode to riding modes

TSDZ2-ESP32 STM8 v7

15 Sep 21:01
Compare
Choose a tag to compare

v7 - Motor Optimizations:

  • TIM1 PWM Freq to 19KHz
  • Better rotor interpolation:
    • Double TIM1 IRQ rate
    • Hal sensor detection running at 38KHz
  • Updated motor svm_table according to TIM1 PWM freqency and to upper bound of TIM1 counter
  • Motor ref speed calculated two times every electr. revol.
  • Battery current sampled in the middle of PWM duty cycle (counter = 0)
  • Max Field Weakening angle calculated based on motor speed
  • Higher Power Assist multiplier resolution (2% insted of 10%)
  • ADC Freq. = CPU Freq/3

TSDZ2-ESP32 STM8 v6

01 Sep 19:19
Compare
Choose a tag to compare
  • Added Field Weakening
  • Various code speed optimizations
  • Increased PWM frequency to 20KHz

TSDZ2-ESP32 v4

21 Jun 11:53
Compare
Choose a tag to compare
Merge branch '0.20.0-Development' of https://github.com/TSDZ2-ESP32/T…

…SDZ2-Smart-EBike into 0.20.0-Development