[WIP]Yamaha YZF+Prius GEN2 Mg1

Tell us about the project you do with the open inverter
Post Reply
User avatar
PRuslan
Posts: 10
Joined: Sun Jan 01, 2023 5:59 pm
Has thanked: 2 times
Been thanked: 3 times

[WIP]Yamaha YZF+Prius GEN2 Mg1

Post 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)
Attachments
last.png
IMG_20230129_141640.jpg
User avatar
PRuslan
Posts: 10
Joined: Sun Jan 01, 2023 5:59 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Yamaha YZF+Prius GEN2

Post by PRuslan »

User avatar
Bigpie
Posts: 1585
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 74 times
Been thanked: 299 times

Re: Yamaha YZF+Prius GEN2

Post by Bigpie »

That looks awesome.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
User avatar
PRuslan
Posts: 10
Joined: Sun Jan 01, 2023 5:59 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Yamaha YZF+Prius GEN2

Post 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:
Attachments
1_100_3_150_3_216.png
DATA.pdf
(4.28 MiB) Downloaded 67 times
User avatar
mjc506
Posts: 343
Joined: Wed Sep 09, 2020 9:36 pm
Location: Wales, United Kingdom
Has thanked: 30 times
Been thanked: 28 times

Re: Yamaha YZF+Prius GEN2

Post 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?
Pete9008
Posts: 1801
Joined: Sun Apr 03, 2022 1:57 pm
Has thanked: 102 times
Been thanked: 347 times

Re: Yamaha YZF+Prius GEN2

Post 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.
User avatar
Ev8
Posts: 801
Joined: Sat Jan 30, 2021 11:05 am
Has thanked: 41 times
Been thanked: 149 times

Re: Yamaha YZF+Prius GEN2

Post 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
User avatar
PRuslan
Posts: 10
Joined: Sun Jan 01, 2023 5:59 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Yamaha YZF+Prius GEN2

Post 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
User avatar
mjc506
Posts: 343
Joined: Wed Sep 09, 2020 9:36 pm
Location: Wales, United Kingdom
Has thanked: 30 times
Been thanked: 28 times

Re: Yamaha YZF+Prius GEN2

Post 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 :-)
User avatar
Ev8
Posts: 801
Joined: Sat Jan 30, 2021 11:05 am
Has thanked: 41 times
Been thanked: 149 times

Re: Yamaha YZF+Prius GEN2

Post by Ev8 »

Your parameters suggest you are already using field weakening
User avatar
Bigpie
Posts: 1585
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 74 times
Been thanked: 299 times

Re: Yamaha YZF+Prius GEN2

Post by Bigpie »

Could your battery be reconfigured to have fewer parallel connections and more series? Increase voltage without more weight?
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
User avatar
PRuslan
Posts: 10
Joined: Sun Jan 01, 2023 5:59 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Yamaha YZF+Prius GEN2

Post 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?
Attachments
BOOSTER.PNG
User avatar
johu
Site Admin
Posts: 5684
Joined: Thu Nov 08, 2018 10:52 pm
Location: Kassel/Germany
Has thanked: 153 times
Been thanked: 960 times
Contact:

Re: Yamaha YZF+Prius GEN2

Post 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
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
PRuslan
Posts: 10
Joined: Sun Jan 01, 2023 5:59 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Yamaha YZF+Prius GEN2

Post 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
Attachments
IMG_20230406_155359.jpg
IMG_20230410_191357.jpg
User avatar
PRuslan
Posts: 10
Joined: Sun Jan 01, 2023 5:59 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Yamaha YZF+Prius GEN2

Post 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?
Attachments
Знімок екрана 2023-04-14 203812.png
Знімок екрана 2023-04-14 204008.png
Знімок екрана 2023-04-14 204114.png
User avatar
PRuslan
Posts: 10
Joined: Sun Jan 01, 2023 5:59 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Yamaha YZF+Prius GEN2

Post by PRuslan »

Dyno test
Attachments
ELEKTRYK14.pdf
(220.73 KiB) Downloaded 48 times
bigmotherwhale
Posts: 107
Joined: Tue Sep 22, 2020 6:48 pm
Has thanked: 15 times
Been thanked: 22 times

Re: Yamaha YZF+Prius GEN2

Post by bigmotherwhale »

Looks awesome! could you find a smaller inverter and use the space to increase the battery voltage?
User avatar
PRuslan
Posts: 10
Joined: Sun Jan 01, 2023 5:59 pm
Has thanked: 2 times
Been thanked: 3 times

Re: Yamaha YZF+Prius GEN2

Post 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.
bigmotherwhale
Posts: 107
Joined: Tue Sep 22, 2020 6:48 pm
Has thanked: 15 times
Been thanked: 22 times

Re: Yamaha YZF+Prius GEN2

Post by bigmotherwhale »

Maybee you could grab a Kia HSG they are pretty cheap, that might give you more power at lower voltages.
Post Reply