Page 1 of 1

[WIP]Yamaha YZF+Prius GEN2 Mg1

Posted: Tue Jan 31, 2023 10:25 am
by PRuslan
Hi all.
I've been working on an electric motorcycle for several months now.At the moment, the transmission and the motorcycle have been tested. Battery 24S12P (86v). Mg2. inverter Prius gen 2. (fstat=khm/h)More info later, need help now. Tested for 44v, 72v, and 86v, the torque is excellent, but the maximum currents are not more than 78A.
lqminusld and fluxlinkage Can influence it? Or direction of current is wrong?

Code: Select all

{
  "curkp": 500,
  "curki": 10000,
  "vlimflt": 10,
  "vlimmargin": 2000,
  "fwcurmax": -90,
  "syncofs": 38400,
  "lqminusld": 3.09,
  "fluxlinkage": 74,
  "syncadv": 10,
  "polepairs": 4,
  "respolepairs": 2,
  "sincosofs": 2048,
  "encmode": 4,
  "fmax": 70,
  "numimp": 60,
  "dirchrpm": 1,
  "dirmode": 1,
  "snsm": 23,
  "pwmfrq": 0,
  "pwmpol": 0,
  "deadtime": 0,
  "ocurlim": 200,
  "il1gain": 3.18,
  "il2gain": 3.18,
  "udcgain": 3.62,
  "udcofs": 323,
  "udclim": 101,
  "snshs": 0,
  "pinswap": 5,
  "potmin": 1025,
  "potmax": 4095,
  "pot2min": 1041,
  "pot2max": 4095,
  "potmode": 0,
  "throtramp": 2,
  "throtramprpm": 20000,
  "throtcur": 2.5,
  "brakeregen": -25,
  "regenramp": 2,
  "regentravel": 50,
  "offthrotregen": -5,
  "cruiseregen": -30,
  "regenrampstr": 5,
  "brklightout": -100,
  "bmslimhigh": 100,
  "bmslimlow": -1,
  "udcmin": 72,
  "udcmax": 100,
  "idcmax": 5000,
  "idcmin": -5000,
  "idckp": 2,
  "idcflt": 9,
  "tmphsmax": 85,
  "tmpmmax": 300,
  "throtmax": 100,
  "throtmin": -50,
  "chargemode": 0,
  "chargecur": 0,
  "chargekp": 80,
  "chargeki": 80,
  "chargeflt": 8,
  "chargepwmin": 0,
  "chargepwmax": 90,
  "idlespeed": -100,
  "idlethrotlim": 50,
  "idlemode": 3,
  "holdkp": -0.25,
  "speedkp": 0.25,
  "speedflt": 5,
  "cruisemode": 0,
  "udcsw": 0,
  "udcswbuck": 540,
  "tripmode": 0,
  "bootprec": 0,
  "pwmfunc": 0,
  "pwmgain": 100,
  "pwmofs": 0,
  "canspeed": 0,
  "canperiod": 0,
  "nodeid": 1,
  "manualiq": 0,
  "manualid": 0
}
p.s. Sorry, sometimes use a Translator)

Re: Yamaha YZF+Prius GEN2

Posted: Thu Feb 02, 2023 2:56 pm
by PRuslan

Re: Yamaha YZF+Prius GEN2

Posted: Thu Feb 02, 2023 3:04 pm
by Bigpie
That looks awesome.

Re: Yamaha YZF+Prius GEN2

Posted: Thu Feb 02, 2023 4:28 pm
by PRuslan
Today I tested different combinations. Parameters from the forum, measurements and pdf for Toyota Prius. More than 80A has never been. I use LG chem 18650 batteries. Therefore, I can’t determine if the current is limited due to the battery or inverter parameters.
"Evaluation of 2004 Toyota Prius Hybrid Electric Drive System":
Motor voltage constant 1.338 Vrms/Hz
Prius based on static measurements: 5 mH and 1.92 mH,
>>lqminusld 3,09mH
>>fluxlinkage 74mWeber
But in the end I got this data, IDC is calculated in terms of phase currents, so this is inaccurate. The measurement was carried out through a current meter:

Re: Yamaha YZF+Prius GEN2

Posted: Thu Feb 02, 2023 4:36 pm
by mjc506
Strange that the magnitude of id is larger than iq? (I think? Maybe not)

If your battery is limiting things, udc will drop as you increase current demand (resistive losses in the pack and wiring).

It may be that the (relatively) low udc combined with a relatively high inductance motor just doesn't allow sufficient current to flow? Do you still have the boost converter from the prius inverter? Another heavy lump to carry around, but could boost your udc to 300V or more.

Alternatively, you could maybe improve performance by fitting a smaller front sprocket (more torque) and relying on field weakening at higher speeds?

Re: Yamaha YZF+Prius GEN2

Posted: Thu Feb 02, 2023 4:42 pm
by Pete9008
If your values for lqminusld and flux linkage are right for your motor then I think you need to change fwcurmax to something like -40A.

Re: Yamaha YZF+Prius GEN2

Posted: Thu Feb 02, 2023 4:45 pm
by Ev8
You can try the over modulated firmware
https://openinverter.org/forum/viewtop ... ion#p48964

Seems to gain most people who’ve tried 10%

But realistically you are going to need to up your battery voltage a lot

Re: Yamaha YZF+Prius GEN2

Posted: Thu Feb 02, 2023 8:33 pm
by PRuslan
mjc506 wrote: Thu Feb 02, 2023 4:36 pm Strange that the magnitude of id is larger than iq? (I think? Maybe not)

If your battery is limiting things, udc will drop as you increase current demand (resistive losses in the pack and wiring).

It may be that the (relatively) low udc combined with a relatively high inductance motor just doesn't allow sufficient current to flow? Do you still have the boost converter from the prius inverter? Another heavy lump to carry around, but could boost your udc to 300V or more.

Alternatively, you could maybe improve performance by fitting a smaller front sprocket (more torque) and relying on field weakening at higher speeds?
Since this is a motorcycle, I am limited by the maximum weight. The first battery was 44v) but 5.4 kWh. Boost converter did not want to put it so it's 3.23kg. But I will definitely try.
Pete9008 wrote: Thu Feb 02, 2023 4:42 pm If your values for lqminusld and flux linkage are right for your motor then I think you need to change fwcurmax to something like -40A.
I tried without FW,because the speed suits me, vnom = 87.12v-> 65hz-> 65kmh. At 0, - 40 and - 95, butthe current consumption has not changed
Ev8 wrote: Thu Feb 02, 2023 4:45 pm You can try the over modulated firmware
https://openinverter.org/forum/viewtop ... ion#p48964

Seems to gain most people who’ve tried 10%

But realistically you are going to need to up your battery voltage a lot
I'll try it

Re: Yamaha YZF+Prius GEN2

Posted: Thu Feb 02, 2023 10:39 pm
by mjc506
PRuslan wrote: Thu Feb 02, 2023 8:33 pm I tried without FW,because the speed suits me, vnom = 87.12v-> 65hz-> 65kmh. At 0, - 40 and - 95, butthe current consumption has not changed
Ah, in that case, I'd go with smaller sprocket and enable field weakening :-)

Re: Yamaha YZF+Prius GEN2

Posted: Fri Feb 03, 2023 6:33 am
by Ev8
Your parameters suggest you are already using field weakening

Re: Yamaha YZF+Prius GEN2

Posted: Fri Feb 03, 2023 7:02 am
by Bigpie
Could your battery be reconfigured to have fewer parallel connections and more series? Increase voltage without more weight?

Re: Yamaha YZF+Prius GEN2

Posted: Fri Feb 03, 2023 8:40 pm
by PRuslan
Bigpie wrote: Fri Feb 03, 2023 7:02 am Could your battery be reconfigured to have fewer parallel connections and more series? Increase voltage without more weight?
Unfortunately no. Also I am limited to 120A>10sec

EDIT1: After analyzing the advice, I came to a decision. The rated voltage of the battery is 87V, the recommended maximum current is 120A, which is 10.5kW. Due to the high inductance, the motor does not consume more than 80A at any voltage from 36 to 100V. Therefore:
10.5 kW / 80a =130v.
fstat=130V/1.338V/Hz=97(Hz),
this will allow you to reach speeds of up to 97 km / h without FW.
Can I connect a booster converter to the VCU to provide a PWM signal? Or is it better to have a separate microcontroller with voltage / temperature monitoring and variable PWM duty cycle?

Re: Yamaha YZF+Prius GEN2

Posted: Sat Feb 04, 2023 9:54 am
by johu
PRuslan wrote: Fri Feb 03, 2023 8:40 pm Can I connect a booster converter to the VCU to provide a PWM signal? Or is it better to have a separate microcontroller with voltage / temperature monitoring and variable PWM duty cycle?
see here: viewtopic.php?p=50226#p50226

Re: Yamaha YZF+Prius GEN2

Posted: Mon Apr 10, 2023 5:15 pm
by PRuslan
Mg2 is too heavy and has a very high inductance. I redid it on mg1 and am very pleased with the result. Now I'm setting it up, because after 35 km / h (74 Hz or 1100 rpm) the power drops

Re: Yamaha YZF+Prius GEN2

Posted: Fri Apr 14, 2023 7:04 pm
by PRuslan
Full throtle.This is the best performance I have achieved after trying to tune the engine. But it is not possible to achieve 12 kW stably
Can I equalize the current consumption? Maybe resolver or reverse?
EDIT1: regen not working
EDIT2: could it be te engine saturations?

Re: Yamaha YZF+Prius GEN2

Posted: Mon Oct 09, 2023 2:04 pm
by PRuslan
Dyno test

Re: Yamaha YZF+Prius GEN2

Posted: Mon Oct 09, 2023 2:51 pm
by bigmotherwhale
Looks awesome! could you find a smaller inverter and use the space to increase the battery voltage?

Re: Yamaha YZF+Prius GEN2

Posted: Mon Oct 09, 2023 3:13 pm
by PRuslan
bigmotherwhale wrote: Mon Oct 09, 2023 2:51 pm Looks awesome! could you find a smaller inverter and use the space to increase the battery voltage?
I don’t plan to increase the voltage, the bike is a cross bike and it will be difficult to seal everything well. I've been trying to flatten the ability curve for several months now.

Re: Yamaha YZF+Prius GEN2

Posted: Mon Oct 09, 2023 3:20 pm
by bigmotherwhale
Maybee you could grab a Kia HSG they are pretty cheap, that might give you more power at lower voltages.