Skip to content

Releases: jsphuebner/stm32-sine

Active low shoot through fix

10 Nov 20:11
Compare
Choose a tag to compare

Most importantly this release fixes shoot through (all IGBTs on) on the second startup when in active low mode.
Other changes:

  • Improved switch between regen and accel by introducing a second PI controller
  • Fixed Blue Pill break input - again
  • Changed PWM frequency handling - always same controller frequency and 3 possible PWM frequencies - 4.4, 8.8, 17.6kHz

The last change means that I removed 1.1 and 2.2kHz, I hope nobody used it.

FOC field weakening

07 Nov 20:21
Compare
Choose a tag to compare
  • Added MTPA and field weakening
  • Added syncadv parameter to compensate for phase lag
  • Disabled user_pwm code on BluePill

Reverse Regen Fix

01 Oct 19:10
Compare
Choose a tag to compare
  • Detecting rotor direction in encoder module/resolver mode
  • Using direction information to trigger regen with correct polarity
  • Turned on CAN automatic retransmission (This may cause problems when debugging CAN but solves problems when on a larger CAN network)
  • Calculating frequency less often but more accurate
  • Removed unused parameters in FOC implementation
  • Consolidated parameters for current controllers
  • Corrected bug in CAN SDO handling

General documentation: https://openinverter.org/wiki

First FOC Release

27 Sep 19:47
Compare
Choose a tag to compare

This is the first official release that contains both Sine and FOC implementation. If you use an asynchronous motor, download stm32_sine.. If you use a synchronous/PMSM motor download stm32_foc.

Also in this release I fixed charge mode which I broke in the v4.55.R release

Do not use, go straight to v4.56.R!

26 Sep 14:32
Compare
Choose a tag to compare
  • Do not rely on ETR pin for single channel encoder (except rev1 hardware)
  • Fixed TMPHSMAX message
  • fmax derating now implemented as a smooth derater
  • Allow regen at rotor frequencies > fmax
  • Removed unused UVLO pin (fixes blue pill throttle issue)
  • Corrected error in quadrature encoder module that would lead to unwanted regen at higher speeds
  • Enable internal pull-up of timer break on Blue Pill board (spurious trips otherwise)
  • Timer break on blue pill always yields "Overcurrent" error (Blue Pill can't distinguish)
  • brkpedalramp renamed to regenramp because it ramps all regen activity now

Blue Pill support, CAN deletion, additional temp sensors

24 Aug 08:18
Compare
Choose a tag to compare
  • Added error message for stuck PWM pins
  • Added possibility to selectively delete CAN mappings
  • Made real use of GPIO bit set/reset register
  • Do not calculate slip in synchronous mode
  • Added support for Blue Pill board (reduced and remapped pins)

v4.17.R

08 Apr 20:26
Compare
Choose a tag to compare
  • Added possibility for a constant power region, set fslipconstmax=fslipmax if you don't want it!
  • Using DMA for serial communication if possible (all boards but Rev1)
  • Calculation of ilrms is now being done by averaging with previous RMS values
  • Do not swallow the new line in echo
  • FP multiplication fixed under LimitCurrent() method. Also, max current is calculated by SVM approach.
  • Fix infinite speed when fmax<20
  • Fmax minimum set to 21

Improved velocity calculation in resolver and sin/cos mode

07 Feb 11:29
Compare
Choose a tag to compare

Improved velocity calculation in resolver and sin/cos mode

Usability Upgrades

16 Jan 20:30
Compare
Choose a tag to compare
  • Better support for high pulse count single channel encoders (contributed by Nail Güzel)
  • Displaying last error in spot value channel (that also makes it possible to send it via CAN)
  • Added error code when AC current limit kicks in
  • Added experimental (!) AC_HEAT mode. It is supposed to heat the battery pack by cycling current between two pack halfes. UNTESTED!!
  • Added possibility to hide parameters (flag hidden) or unhide them (flag !hidden). The flags are stored alongside the parameter values with the "save" command

Removed velocity trackers, replaced by simple math

20 Dec 15:27
Compare
Choose a tag to compare

I highly recommend updating to this release when using synchronous motors.
There is also a small bugfix for single channel encoder mode