Page 1 of 1

Inverter Firmware v5.14.R

Posted: Tue Nov 16, 2021 2:05 pm
by johu
This is merely a bug fix release, so not too many, but significant changes:
  • Using filtered frequency to calculate syncadv
  • Fixed bug with regen ramp
  • Also downramping throttle with throtramp
  • no longer limit d-controller output to half amplitude. Can cause unwanted regen
  • Removed unused hardware variants
https://github.com/jsphuebner/stm32-sin ... ag/v5.14.R

Re: Inverter Firmware v5.14.R

Posted: Thu Dec 02, 2021 3:53 pm
by Renegate2020
Installed this version instead of 4.96FOC on the Leaf engine - the regeneration disappeared. This is fine? How to get regeneration back?

Re: Inverter Firmware v5.14.R

Posted: Thu Dec 02, 2021 7:10 pm
by johu
can you try setting pot2min=pot2max=0

Must be some combination of settings that I don't test as regen works on my car.

Re: Inverter Firmware v5.14.R

Posted: Mon Dec 06, 2021 10:35 am
by Renegate2020
I can not do this. The wires from the accelerator pedal are directly connected to the inverter board without CAN

Re: Inverter Firmware v5.14.R

Posted: Tue Dec 21, 2021 5:46 pm
by Renegate2020
On the weekend I tried to put different versions. All versions from 5.05 (5.05, 5.11, 5.14) do not have recuperation. When installing version 4.96 or 4.97, recuperation appears immediately. Something in the code is not correct.

Re: Inverter Firmware v5.14.R

Posted: Tue Dec 21, 2021 9:53 pm
by johu
Can you post the parameter json file

Re: Inverter Firmware v5.14.R

Posted: Wed Dec 22, 2021 7:12 am
by Renegate2020
johu wrote: Tue Dec 21, 2021 9:53 pm Can you post the parameter json file

Re: Inverter Firmware v5.14.R

Posted: Wed Dec 22, 2021 9:57 am
by johu
You have configured the second pot input to adjust regen. Are you using it as such? Otherwise set pot2min and pot2max to 0. I believe I have changed the behaviour somewhat since 4.97

Re: Inverter Firmware v5.14.R

Posted: Wed Dec 22, 2021 5:03 pm
by Renegate2020
OK. I am not using the second potentiometer yet. I'll try to change it. Thank you.

Re: Inverter Firmware v5.14.R

Posted: Sun Dec 26, 2021 10:29 am
by Renegate2020
Everything worked out. Although the connection with the pedal is not clear. Thanks Johu.

Re: Inverter Firmware v5.14.R

Posted: Sun Dec 26, 2021 10:51 pm
by johu
See here: https://openinverter.org/wiki/Parameters
potmode

0=Pot 1 is throttle and pot 2 is regen strength preset
1=Pot 2 is proportional to pot 1 (redundancy)
2=Throttle/regen controlled via CAN (like 0)
3=Throttle via CAN with redundancy (like 1)

Re: Inverter Firmware v5.14.R

Posted: Sat Jan 22, 2022 5:37 pm
by geduxaz
Get wrong Idc in 5.14, but all good in 4.96
At no spin is like -18, rises slowly to 0 when spinning. Older FW Idc was measured OK.

Re: Inverter Firmware v5.14.R

Posted: Sat Jan 22, 2022 6:14 pm
by geduxaz
In the code 104 and 105 lines use idc twice. Like second line overwrites firat idc calculation.

Re: Inverter Firmware v5.14.R

Posted: Tue Jan 25, 2022 9:01 am
by johu
I will have to test this but currently I'm out of office. Will check later this week.
The various lines are just pre-calculations, the final value is set in the Param::SetFixed() call

EDIT
what I can say for now is that since 4.96 the calculation was changed in two ways:
1. the d-current and voltage is also taken into account, before it was just q-current
2. The result is filtered to smooth out the DC current limiter

Re: Inverter Firmware v5.14.R

Posted: Mon Feb 21, 2022 6:49 am
by geduxaz
Sometimes IDC shows ok. Sometimes too low.

Re: Inverter Firmware v5.14.R

Posted: Tue Feb 22, 2022 8:16 pm
by P.S.Mangelsdorf
Just a note to clarify an issue/solution discussed above: With this version, if you are only using one potentiometer/pedal, set pot2 min and max to the same number, or you won't have regen.

Re: Inverter Firmware v5.14.R

Posted: Wed Feb 23, 2022 11:46 am
by geduxaz
P.S.Mangelsdorf wrote: Tue Feb 22, 2022 8:16 pm Just a note to clarify an issue/solution discussed above: With this version, if you are only using one potentiometer/pedal, set pot2 min and max to the same number, or you won't have regen.
I use only POT1. POT2 min/max are set to 0 and I get regen.

Re: Inverter Firmware v5.14.R

Posted: Thu May 19, 2022 10:15 pm
by Boxster EV
I’m having an ongoing issue with sine UDC randomly measuring too low when switching from waitstart to run. Any advice gratefully received.

Re: Inverter Firmware v5.14.R

Posted: Wed Jun 08, 2022 9:00 am
by Romale
johu wrote: Tue Nov 16, 2021 2:05 pm This is merely a bug fix release, so not too many, but significant changes:

Hi!
I discovered a serious problem due to the fact that my buggy is all open and the high-voltage battery along with the contactor is on the street next to my ears. there is no sequence or reason, however, sometimes when the ignition is switched on, the main contactor is triggered for a short time!!! only after that, the pre-charge relay turns on and then, after pressing the start button, the contactor again. This is very bad, the contactor clearly does not like to turn on high voltage for half a second without precharging. What to do about it? this does not always happen, sometimes everything is as it should be.

Re: Inverter Firmware v5.14.R

Posted: Wed Jun 08, 2022 6:19 pm
by johu
I don't remember every setup... which board? Specifically with this version or any version?

Re: Inverter Firmware v5.14.R

Posted: Wed Jun 08, 2022 8:00 pm
by Renegate2020
I'm assuming it's a V3 + adapter board Nissan Leaf. It was similar for me - when turned on, an impulse passes to the main contactor. Because of this, the main contactor is welded. I set a timer to turn on the main contactor.

Re: Inverter Firmware v5.14.R

Posted: Thu Jun 09, 2022 7:35 pm
by Romale
Renegate2020 wrote: Wed Jun 08, 2022 8:00 pm I'm assuming it's a V3 + adapter board Nissan Leaf. It was similar for me - when turned on, an impulse passes to the main contactor. Because of this, the main contactor is welded. I set a timer to turn on the main contactor.
all right. foc version 5.14.R and board version 3.
how to set the timer on the main contactor?

Re: Inverter Firmware v5.14.R

Posted: Fri Jun 10, 2022 1:05 pm
by joromy
I got the same problem with high impedance load.
I don't think this can be version related.

Moved to more appropriate place: https://openinverter.org/forum/viewtopi ... 309#p41309

Re: Inverter Firmware v5.14.R

Posted: Sat Jun 11, 2022 11:10 am
by Romale
joromy wrote: Fri Jun 10, 2022 1:05 pm

Moved to more appropriate place: https://openinverter.org/forum/viewtopi ... 309#p41309
thank you very much. it really helped