Inverter Firmware v4.87.R

fransoa
Posts: 22
Joined: Thu Oct 03, 2019 5:41 pm
Location: Entrepierres, France
Contact:

Re: Inverter Firmware v4.87.R

Post by fransoa »

We are lucky for this time, i have the data brake and throttle pedals up :
{
"boost": 1850,
"fweak": 258,
"fconst": 450,
"udcnom": 350,
"fslipmin": 1.31,
"fslipmax": 3.03,
"fslipconstmax": 9,
"polepairs": 2,
"respolepairs": 1,
"encmode": 1,
"fmax": 500,
"numimp": 36,
"dirchrpm": 300,
"dirmode": 1,
"snsm": 12,
"pwmfrq": 1,
"pwmpol": 0,
"deadtime": 63,
"ocurlim": -5000,
"il1gain": -1,
"il2gain": -1,
"udcgain": 7.5,
"udcofs": 0,
"udclim": 450,
"snshs": 0,
"bmslimhigh": 100,
"bmslimlow": -20,
"udcmin": 300,
"udcmax": 400,
"idcmax": 5000,
"idcmin": -5000,
"tmphsmax": 85,
"tmpmmax": 300,
"throtmax": 100,
"throtmin": -50,
"iacmax": 5000,
"ifltrise": 10,
"ifltfall": 3,
"chargemode": 0,
"chargecur": 0,
"chargekp": 80,
"chargeki": 10,
"chargeflt": 8,
"chargemax": 90,
"potmin": 50,
"potmax": 4095,
"pot2min": 4095,
"pot2max": 4095,
"potmode": 0,
"throtramp": 5,
"throtramprpm": 20000,
"ampmin": 0.34,
"slipstart": 50,
"brknompedal": -40,
"regenramp": 5,
"brknom": 30,
"brkmax": -40,
"brkcruise": -30,
"brkrampstr": 20,
"brkhistr": 1000,
"brkhistp": 1000,
"brkout": -50,
"idlespeed": 150,
"idlethrotlim": 50,
"idlemode": 1,
"speedkp": 0.37,
"speedflt": 7,
"cruisemode": 1,
"udcsw": 0,
"udcswbuck": 0,
"tripmode": 0,
"pwmfunc": 0,
"pwmgain": 100,
"pwmofs": 0,
"canspeed": 0,
"canperiod": 0,
"fslipspnt": -1.31,
"ampnom": 0,
"version": 4,
"hwver": 3,
"opmode": 1,
"lasterr": 0,
"status": 0,
"udc": 385.31,
"idc": 0,
"il1": -2,
"il2": 1,
"ilmax": 1,
"uac": 0,
"il1rms": 6,
"il2rms": 6.03,
"boostcalc": 1691.4,
"fweakcalc": 282.18,
"fstat": 20.87,
"speed": 750,
"cruisespeed": -1,
"turns": 1971,
"amp": 0,
"angle": 176.09,
"pot": 19,
"pot2": 21,
"potnom": -0.03,
"potnom1": -0.03,
"potnom2": -0.03,
"potnom3": -0.03,
"potnom4": -0.03,
"potnom5": -0.03,
"potnom6": -0.03,
"potnom7": -0.03,
"dir": 1,
"tmphs": 28.12,
"tmpm": 28.9,
"uaux": 16.43,
"pwmio": 0,
"canio": 0,
"din_cruise": 0,
"din_start": 0,
"din_brake": 0,
"din_mprot": 1,
"din_forward": 1,
"din_reverse": 0,
"din_emcystop": 1,
"din_ocur": 1,
"din_desat": 1,
"din_bms": 0,
"cpuload": 24.87
}
fransoa
Posts: 22
Joined: Thu Oct 03, 2019 5:41 pm
Location: Entrepierres, France
Contact:

Re: Inverter Firmware v4.87.R

Post by fransoa »

The same with brake down:
{
"boost": 1850,
"fweak": 258,
"fconst": 450,
"udcnom": 350,
"fslipmin": 1.31,
"fslipmax": 3.03,
"fslipconstmax": 9,
"polepairs": 2,
"respolepairs": 1,
"encmode": 1,
"fmax": 500,
"numimp": 36,
"dirchrpm": 300,
"dirmode": 1,
"snsm": 12,
"pwmfrq": 1,
"pwmpol": 0,
"deadtime": 63,
"ocurlim": -5000,
"il1gain": -1,
"il2gain": -1,
"udcgain": 7.5,
"udcofs": 0,
"udclim": 450,
"snshs": 0,
"bmslimhigh": 100,
"bmslimlow": -20,
"udcmin": 300,
"udcmax": 400,
"idcmax": 5000,
"idcmin": -5000,
"tmphsmax": 85,
"tmpmmax": 300,
"throtmax": 100,
"throtmin": -50,
"iacmax": 5000,
"ifltrise": 10,
"ifltfall": 3,
"chargemode": 0,
"chargecur": 0,
"chargekp": 80,
"chargeki": 10,
"chargeflt": 8,
"chargemax": 90,
"potmin": 50,
"potmax": 4095,
"pot2min": 4095,
"pot2max": 4095,
"potmode": 0,
"throtramp": 5,
"throtramprpm": 20000,
"ampmin": 0.34,
"slipstart": 50,
"brknompedal": -40,
"regenramp": 5,
"brknom": 30,
"brkmax": -40,
"brkcruise": -30,
"brkrampstr": 20,
"brkhistr": 1000,
"brkhistp": 1000,
"brkout": -50,
"idlespeed": 150,
"idlethrotlim": 50,
"idlemode": 1,
"speedkp": 0.37,
"speedflt": 7,
"cruisemode": 1,
"udcsw": 0,
"udcswbuck": 0,
"tripmode": 0,
"pwmfunc": 0,
"pwmgain": 100,
"pwmofs": 0,
"canspeed": 0,
"canperiod": 0,
"fslipspnt": -1.31,
"ampnom": 0.03,
"version": 4,
"hwver": 3,
"opmode": 1,
"lasterr": 0,
"status": 0,
"udc": 385.18,
"idc": 0,
"il1": -4,
"il2": 4,
"ilmax": 4.5,
"uac": 0,
"il1rms": 5.03,
"il2rms": 4.46,
"boostcalc": 1691.4,
"fweakcalc": 282.18,
"fstat": 54.18,
"speed": 1665,
"cruisespeed": -1,
"turns": 2545,
"amp": 2,
"angle": 149.87,
"pot": 19,
"pot2": 21,
"potnom": -0.03,
"potnom1": -0.03,
"potnom2": -0.03,
"potnom3": -0.03,
"potnom4": -0.03,
"potnom5": -0.03,
"potnom6": -0.03,
"potnom7": -0.03,
"dir": 1,
"tmphs": 28.75,
"tmpm": 30.46,
"uaux": 16.43,
"pwmio": 0,
"canio": 0,
"din_cruise": 0,
"din_start": 0,
"din_brake": 1,
"din_mprot": 1,
"din_forward": 1,
"din_reverse": 0,
"din_emcystop": 1,
"din_ocur": 1,
"din_desat": 1,
"din_bms": 0,
"cpuload": 24.87
}
User avatar
johu
Site Admin
Posts: 6642
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 348 times
Been thanked: 1502 times
Contact:

Re: Inverter Firmware v4.87.R

Post by johu »

Thanks. Very strange, will check.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Isaac96
Posts: 656
Joined: Sat Oct 05, 2019 6:50 pm
Location: Northern California, USA
Been thanked: 2 times
Contact:

Re: Inverter Firmware v4.87.R

Post by Isaac96 »

Try idlespeed = -100
fransoa
Posts: 22
Joined: Thu Oct 03, 2019 5:41 pm
Location: Entrepierres, France
Contact:

Re: Inverter Firmware v4.87.R

Post by fransoa »

With idlespeed=-100
{
"boost": 1850,
"fweak": 258,
"fconst": 450,
"udcnom": 350,
"fslipmin": 1.28,
"fslipmax": 3,
"fslipconstmax": 9,
"polepairs": 2,
"respolepairs": 1,
"encmode": 1,
"fmax": 500,
"numimp": 36,
"dirchrpm": 300,
"dirmode": 1,
"snsm": 12,
"pwmfrq": 1,
"pwmpol": 0,
"deadtime": 63,
"ocurlim": -2500,
"il1gain": -1,
"il2gain": -1,
"udcgain": 7.5,
"udcofs": 0,
"udclim": 450,
"snshs": 0,
"bmslimhigh": 100,
"bmslimlow": -20,
"udcmin": 300,
"udcmax": 400,
"idcmax": 5000,
"idcmin": -5000,
"tmphsmax": 85,
"tmpmmax": 300,
"throtmax": 100,
"throtmin": -100,
"iacmax": 5000,
"ifltrise": 10,
"ifltfall": 3,
"chargemode": 0,
"chargecur": 0,
"chargekp": 80,
"chargeki": 10,
"chargeflt": 8,
"chargemax": 90,
"potmin": 100,
"potmax": 4095,
"pot2min": 4095,
"pot2max": 4095,
"potmode": 0,
"throtramp": 5,
"throtramprpm": 20000,
"ampmin": 0.31,
"slipstart": 50,
"brknompedal": -40,
"regenramp": 5,
"brknom": 30,
"brkmax": -40,
"brkcruise": -30,
"brkrampstr": 20,
"brkhistr": 1000,
"brkhistp": 1000,
"brkout": -50,
"idlespeed": -100,
"idlethrotlim": 50,
"idlemode": 3,
"speedkp": 0.34,
"speedflt": 7,
"cruisemode": 1,
"udcsw": 0,
"udcswbuck": 0,
"tripmode": 0,
"pwmfunc": 0,
"pwmgain": 100,
"pwmofs": 0,
"canspeed": 0,
"canperiod": 0,
"fslipspnt": -1.28,
"ampnom": 0.03,
"version": 4,
"hwver": 3,
"opmode": 1,
"lasterr": 0,
"status": 0,
"udc": 385.06,
"idc": 0,
"il1": -1,
"il2": 3,
"ilmax": 2.75,
"uac": 0,
"il1rms": 4.59,
"il2rms": 8.56,
"boostcalc": 1691.4,
"fweakcalc": 282.18,
"fstat": 65.34,
"speed": 2040,
"cruisespeed": -1,
"turns": 762,
"amp": 3,
"angle": 158.31,
"pot": 19,
"pot2": 21,
"potnom": -0.03,
"potnom1": -0.03,
"potnom2": -0.03,
"potnom3": -0.03,
"potnom4": -0.03,
"potnom5": -0.03,
"potnom6": -0.03,
"potnom7": -0.03,
"dir": 1,
"tmphs": 27.18,
"tmpm": 29.53,
"uaux": 16.43,
"pwmio": 0,
"canio": 0,
"din_cruise": 0,
"din_start": 0,
"din_brake": 0,
"din_mprot": 1,
"din_forward": 1,
"din_reverse": 0,
"din_emcystop": 1,
"din_ocur": 1,
"din_desat": 1,
"din_bms": 0,
"cpuload": 24.87
}
User avatar
johu
Site Admin
Posts: 6642
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 348 times
Been thanked: 1502 times
Contact:

Re: Inverter Firmware v4.87.R

Post by johu »

Can you set potmin to 0?

What the above test resulted in is that the UserThrottleCommand is already 0. The the 0 isn't caused by derating or idle speed.
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
fransoa
Posts: 22
Joined: Thu Oct 03, 2019 5:41 pm
Location: Entrepierres, France
Contact:

Re: Inverter Firmware v4.87.R

Post by fransoa »

potmin 100 -> 0 : exacly the same problem. potnom1..7 = 0.00
User avatar
johu
Site Admin
Posts: 6642
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 348 times
Been thanked: 1502 times
Contact:

Re: Inverter Firmware v4.87.R

Post by johu »

Think I found it now. Can you set pot2min=1 and pot2max=10
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
fransoa
Posts: 22
Joined: Thu Oct 03, 2019 5:41 pm
Location: Entrepierres, France
Contact:

Re: Inverter Firmware v4.87.R

Post by fransoa »

Thank you very much. The test is conclusive. The regen works with these parameters. idlespeed management works. It's an all-terrain vehicle and the idlespeed, brkmax and brknompedal settings are managed by the driver and transmitted by CAN bus.

If anyone has an idea also for my OVERCURRENT error problem when I put the START to ON. (see below in this topic)
Today I replace the electronic card without understanding what's going on.
User avatar
johu
Site Admin
Posts: 6642
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 348 times
Been thanked: 1502 times
Contact:

Re: Inverter Firmware v4.87.R

Post by johu »

Great :) Will be fixed in the next release.
Try lowering idlethrotlim or alternatively slowly ramping idlespeed
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
arber333
Posts: 3557
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 133 times
Been thanked: 331 times
Contact:

Re: Inverter Firmware v4.87.R

Post by arber333 »

fransoa wrote: Wed Aug 19, 2020 7:04 am If anyone has an idea also for my OVERCURRENT error problem when I put the START to ON. (see below in this topic)
Hi strangely i also have this problem when i start my sine inverter with ACIM motor. First i get "pwmstuck" warning. Then OC if i try to start.
I tried to setup start with "single encoder", "AB encoder" and "resolver" option and its allways the same. OC event. I also tried to start via manual start and i see it shows the "run" indication, but immediately jumps to OC event.

If i use the FOC code programmed chip with the same circuit i can start, then apply some throttle and hear PWM as it loads the motor shaft. It wouldnt spin obviously siince it is ACIM motor and code is for PMSM, but i see some PWM and this is more than with sine code.

I tried to measure both sensor inputs and they are steady at 1.65V. I tried to measure comparator signal and all outputs are high as they should be. It seems that at the moment of starting main shutdown line turns low and so everything shuts down...

Anyone has similar problem? I use 4.90R code now...
Isaac96
Posts: 656
Joined: Sat Oct 05, 2019 6:50 pm
Location: Northern California, USA
Been thanked: 2 times
Contact:

Re: Inverter Firmware v4.87.R

Post by Isaac96 »

I believe I had similar issues... Volt inverter still?
I would get OC sometimes when starting. But also some OC events when I took my foot off the gas (lots of bumps from drivetrain too). It hasn't happened in a while though, so I'm leaning more towards a loose wire than a firmware issue.
Other drivability issues too but I blame encoder noise/drivetrain slop for that.
arber333
Posts: 3557
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 133 times
Been thanked: 331 times
Contact:

Re: Inverter Firmware v4.87.R

Post by arber333 »

Isaac96 wrote: Mon Sep 14, 2020 6:15 am I believe I had similar issues... Volt inverter still?
I would get OC sometimes when starting. But also some OC events when I took my foot off the gas (lots of bumps from drivetrain too). It hasn't happened in a while though, so I'm leaning more towards a loose wire than a firmware issue.
Other drivability issues too but I blame encoder noise/drivetrain slop for that.
Yes i use Volt inverter with two brain chips. First one is master and is FOC. The second one is ACIM and should work independently from the first one save the DC and precharge lines. Those should be used from the first brain. I also think of wiring the "Start" button to start both controlers at he same time.

I keep getting OC error at start pulse or at manual start. I think this is connected with resolver/encoder lines. Maybe i will try to rewire single channel encoder and see where it leads to.
Isaac96
Posts: 656
Joined: Sat Oct 05, 2019 6:50 pm
Location: Northern California, USA
Been thanked: 2 times
Contact:

Re: Inverter Firmware v4.87.R

Post by Isaac96 »

Any possibility of a high/low pulse being sent to the Volt inverter? I know the 74LS06 is supposed to handle that but it's possible that a pulldown resistor is loose or something silly of that source. You could scope things on powerup as well. There could be an inductive spike from the contactors.
arber333
Posts: 3557
Joined: Mon Dec 24, 2018 1:37 pm
Location: Slovenia
Has thanked: 133 times
Been thanked: 331 times
Contact:

Re: Inverter Firmware v4.87.R

Post by arber333 »

Isaac96 wrote: Mon Sep 14, 2020 7:45 am Any possibility of a high/low pulse being sent to the Volt inverter? I know the 74LS06 is supposed to handle that but it's possible that a pulldown resistor is loose or something silly of that source. You could scope things on powerup as well. There could be an inductive spike from the contactors.

Might be, but the second brain doesnt have any relais on it. So no spike at start... It all happens before that with brain1 control. Brain2 should just start on demand and run with Sine control. I will have to go to scope for help...

DOH! Again i populated the resistor on track to PA0 when firmware doesnt need to pull this high. When i start this pin is pulled down and so triggers AND gate.
Post Reply