Inverter Firmware v4.73.R

Post Reply
User avatar
johu
Site Admin
Posts: 7182
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 552 times
Been thanked: 1913 times
Contact:

Inverter Firmware v4.73.R

Post 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
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
arber333
Posts: 3795
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 166 times
Been thanked: 411 times
Contact:

Re: Inverter Firmware v4.73.R

Post 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
User avatar
johu
Site Admin
Posts: 7182
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 552 times
Been thanked: 1913 times
Contact:

Re: Inverter Firmware v4.73.R

Post by johu »

Oh, wrong link, corrected :)
Erm, could you do more precise quoting in general ;) Like only the relevant line
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
arber333
Posts: 3795
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 166 times
Been thanked: 411 times
Contact:

Re: Inverter Firmware v4.73.R

Post 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!
User avatar
johu
Site Admin
Posts: 7182
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 552 times
Been thanked: 1913 times
Contact:

Re: Inverter Firmware v4.73.R

Post by johu »

arber333 wrote: Sat Feb 08, 2020 12:34 pm Check!
Great :D
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
ManuFromParis
Posts: 34
Joined: Sat Feb 15, 2020 6:34 pm
Location: Near Paris
Been thanked: 1 time

Re: Inverter Firmware v4.73.R

Post 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
911 SC with Tesla SDU & i3 pack
User avatar
johu
Site Admin
Posts: 7182
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 552 times
Been thanked: 1913 times
Contact:

Re: Inverter Firmware v4.73.R

Post 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.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
ManuFromParis
Posts: 34
Joined: Sat Feb 15, 2020 6:34 pm
Location: Near Paris
Been thanked: 1 time

Re: Inverter Firmware v4.73.R

Post by ManuFromParis »

Ok, I see. I'll read again.
thanks !
911 SC with Tesla SDU & i3 pack
Post Reply