Page 1 of 1

Inverter Firmware v4.73.R

Posted: Thu Feb 06, 2020 11:37 am
by johu
Decided to make another release.

I have added the throtmin parameter so that regen can be limited temporarily from outside. I use this for antilock braking and charge power limiting.
There are some improvements and cleanup in FOC code:
- I have removed the bus voltage limiting field weakening controller, so now there is only one fwkp parameter left
- I made curki frequency dependent by the curkifrqgain parameter.

So integral gain increases with speed. This ensures good regulation in upper rev range while not being jumpy at low speeds.

https://github.com/jsphuebner/stm32-sin ... /v4.73.R-2

Nissan Leaf parameters here: https://openinverter.org/wiki/Configura ... Leaf_Motor

Re: Inverter Firmware v4.73.R

Posted: Fri Feb 07, 2020 10:35 pm
by arber333
johu wrote: Thu Feb 06, 2020 11:37 am Decided to make another release.
Compiled code .bin and .hex for the uninitiated please.
EDIT: Got it here: https://github.com/jsphuebner/stm32-sin ... /v4.73.R-2

Re: Inverter Firmware v4.73.R

Posted: Sat Feb 08, 2020 10:16 am
by johu
Oh, wrong link, corrected :)
Erm, could you do more precise quoting in general ;) Like only the relevant line

Re: Inverter Firmware v4.73.R

Posted: Sat Feb 08, 2020 12:34 pm
by arber333
johu wrote: Sat Feb 08, 2020 10:16 am Erm, could you do more precise quoting in general ;) Like only the relevant line
Check!

Re: Inverter Firmware v4.73.R

Posted: Sat Feb 08, 2020 1:17 pm
by johu
arber333 wrote: Sat Feb 08, 2020 12:34 pm Check!
Great :D

Re: Inverter Firmware v4.73.R

Posted: Sun Feb 23, 2020 8:59 am
by ManuFromParis
Hello Johannes,
Thanks for the update.
I've searched the code and documentation to understand how the parameters drive the Regen Algorythm, but could find out how it works.
Could you point me out to the documentation, if any, or to the portion of code that handles Regen ?
thanks !
Emmanuel

Re: Inverter Firmware v4.73.R

Posted: Sun Feb 23, 2020 11:17 am
by johu
There is no such thing as "regen" code. It is naturally part of the control algorithm, just with negative slip (sine variant) or negative iq (FOC variant). In throttle.cpp you'll find how regen is controlled via throttle pedal and brake pedal.

Re: Inverter Firmware v4.73.R

Posted: Sun Feb 23, 2020 10:10 pm
by ManuFromParis
Ok, I see. I'll read again.
thanks !