Prius Gen 3 Inverter Logic Board Support Thread

Topics concerning the Toyota and Lexus inverter drop in boards
Locked
m.art.y
Posts: 558
Joined: Sat Jun 06, 2020 6:54 pm
Location: UK
Has thanked: 28 times
Been thanked: 16 times

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by m.art.y »

johu wrote: Wed Nov 25, 2020 9:56 pm Ok, definitely no resolver
They mention various feedback devices
I think we found out it is in fact a UVW encoder and all 3 phase leads were fed through one hall effect current sensor in the original inverter for that motor. Encoder has 3 signal wires that seem to produce 4 pulses each per full motor revolution although it seems pulses start and end at different motor positions with each signal wire. Is a software solution (or signal conversion) even possible for such an encoder with openinverter? :)
Dylan Witt
Posts: 116
Joined: Sat Apr 18, 2020 4:23 am
Location: Kentucky, USA
Been thanked: 1 time

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by Dylan Witt »

Well Crap!!!!!!!!!
Openinverter FOC Tuning. i have drove my self crazy.
i hate guess work. wrote down wiring connections for the Prius Gen 3 to the P314 transmission for my electric mazda, now after finding the exciter wiring and resolver wiring, i now have tried over 16 different combinations for the resolver winding, anyways i keep getting a crazy 180-260 degree jump on the angle sensor of the open inverter gen three prius board, now my question, has anyone figured this wiring mess out?
m.art.y
Posts: 558
Joined: Sat Jun 06, 2020 6:54 pm
Location: UK
Has thanked: 28 times
Been thanked: 16 times

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by m.art.y »

Dylan Witt wrote: Sun Nov 29, 2020 6:11 am Well Crap!!!!!!!!!
Openinverter FOC Tuning. i have drove my self crazy.
i hate guess work. wrote down wiring connections for the Prius Gen 3 to the P314 transmission for my electric mazda, now after finding the exciter wiring and resolver wiring, i now have tried over 16 different combinations for the resolver winding, anyways i keep getting a crazy 180-260 degree jump on the angle sensor of the open inverter gen three prius board, now my question, has anyone figured this wiring mess out?
Have you watched Damien's video carefully? After you identify exciter windings (lower resistance ones) you only got 4 possible combinations left.
User avatar
UStas
Posts: 35
Joined: Fri Nov 06, 2020 11:37 am
Location: Moscow (Russia)
Contact:

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by UStas »

Dylan Witt wrote: Sun Nov 29, 2020 6:11 am Well Crap!!!!!!!!!
Openinverter FOC Tuning. i have drove my self crazy.
i hate guess work. wrote down wiring connections for the Prius Gen 3 to the P314 transmission for my electric mazda, now after finding the exciter wiring and resolver wiring, i now have tried over 16 different combinations for the resolver winding, anyways i keep getting a crazy 180-260 degree jump on the angle sensor of the open inverter gen three prius board, now my question, has anyone figured this wiring mess out?
At the first I would be check resolver polpair in your inverter settings. (Hint: polpair=1 )
User avatar
UStas
Posts: 35
Joined: Fri Nov 06, 2020 11:37 am
Location: Moscow (Russia)
Contact:

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by UStas »

Is anybody try to start MG1 and MG2 power stages in parallel with six jumpers SJ1-6?
How connect three phases outputs? If I connect in parallel to regular outputs, then MG2 current will be measured with regular current sensors, but MG1 current sensors connect to Arduino and MG1 current stay not measured.
Is this problem may be fixed with MG2 current sensors calibration?
m.art.y
Posts: 558
Joined: Sat Jun 06, 2020 6:54 pm
Location: UK
Has thanked: 28 times
Been thanked: 16 times

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by m.art.y »

UStas wrote: Wed Dec 02, 2020 11:22 pm Is anybody try to start MG1 and MG2 power stages in parallel with six jumpers SJ1-6?
How connect three phases outputs? If I connect in parallel to regular outputs, then MG2 current will be measured with regular current sensors, but MG1 current sensors connect to Arduino and MG1 current stay not measured.
Is this problem may be fixed with MG2 current sensors calibration?
Konstantin8818 had both MG1 and MG2 running at the same time, he posted youtube video about it. Maybe he could advise you?
m.art.y
Posts: 558
Joined: Sat Jun 06, 2020 6:54 pm
Location: UK
Has thanked: 28 times
Been thanked: 16 times

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by m.art.y »

Anybody knows if there is some sort of firmware to run DCDC converter on the gen 3 Prius inverter? There is a section 'Charger' in the web interface. What is it for? Thanks 😊
User avatar
UStas
Posts: 35
Joined: Fri Nov 06, 2020 11:37 am
Location: Moscow (Russia)
Contact:

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by UStas »

m.art.y wrote: Sun Dec 06, 2020 9:06 pm Konstantin8818 had both MG1 and MG2 running at the same time, he posted youtube video about it. Maybe he could advise you?
Sorry, but there are an AC motors, and I need control MGR (IPM motor) here need FOC and current sensor. Because a question is.
m.art.y
Posts: 558
Joined: Sat Jun 06, 2020 6:54 pm
Location: UK
Has thanked: 28 times
Been thanked: 16 times

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by m.art.y »

Anybody knows if we still need to do pin swaping with the latest FOC firmware? Thanks 🙂
User avatar
Bigpie
Posts: 1595
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 304 times

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by Bigpie »

You still need to pin swap, though in the latest firmware you can just select PWMOutput23.

One thing I've noticed is in the FOC tuning video Damien manually sets pinswap=5 but the the params file above and in the web interface it's set to 8.
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
Bigpie
Posts: 1595
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 304 times

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by Bigpie »

I've been struggling to get my motor to rotate the last few days, after it previously working, same settings as before so I've re-run through the FOC video.

Resolver looks good.
1 blue_green.png
2 blue_red.png
3 yellow_green.png
4 red_yellow.png
Same arrangement as before, I've gone with combination 3.

Lightbulb is bypassed after pre-charge.

Setting syncofs back to 0 and entering 3 amps in manualid, a bit of squealing, same for 6,9, 10.
I tried syncofs 10000, 20000, 30000, 40000, 50000, 6000 with the same result.

Also tried setting manualid to 0.1 and manualiq to 3 at both syncofs 0 and 46550 (which I previously got through the procedure)



Also tried the other motor, same problem and I've tried switching back to sine firmware to run in manual mode and no longer starts to turn?

Any pointers as to where to look and what I could have messed up?
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
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by Jack Bauer »

Inverter temperature? Deadtime setting? inverter cooling? pwm freq?
I'm going to need a hacksaw
User avatar
Bigpie
Posts: 1595
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 304 times

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by Bigpie »

All other parameters are from the file you posted a few posts up. There's some current flowing, if I turn lightbulb back on it gets progressively brighter with more current.
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
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by Jack Bauer »

disconnect the motor windings and test again. does the bulb glow? it shouldnt. Watch the tmphs. if it gets too high Johannes will limit current. If it gets higher the Toyota engineers will limit current. Lots of little gotchas in this stuff.
I'm going to need a hacksaw
m.art.y
Posts: 558
Joined: Sat Jun 06, 2020 6:54 pm
Location: UK
Has thanked: 28 times
Been thanked: 16 times

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by m.art.y »

Does FOC firmware has to have motor temp sensor connected as a must or is it optional?
User avatar
Bigpie
Posts: 1595
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 304 times

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by Bigpie »

Jack Bauer wrote: Fri Dec 11, 2020 9:36 am disconnect the motor windings and test again. does the bulb glow? it shouldnt. Watch the tmphs. if it gets too high Johannes will limit current. If it gets higher the Toyota engineers will limit current. Lots of little gotchas in this stuff.
The bulb doesn't glow with the motor phase wires disconnected. Temperature doesn't see to be an issue, though I'm pretty confident it's not reading the temperature correctly.

If I set syncofs to a value of 36000, previously a manualid of 3 would have it spinning clockwise according to my notes from tuning, it now doesn't with either motor.

With a syncofs of 46550, previously a manualid 0.1 and manualiq of 3 would have the motor spinning, again it now doesn't with either motor.

With some current flowing I cannot turn the shaft by hand.
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
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by Jack Bauer »

So in this case we need to backtrack to something that works. go to sine firmware, disconnect resolver, set enc mode to single and do a manual run to check the inverter hardware, motor and wiring.
I'm going to need a hacksaw
User avatar
Bigpie
Posts: 1595
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 304 times

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by Bigpie »

I think I need to tear up my PhD in resolvers.

I had spinning with the sine firmware.

Although my notes says I had combination 3, I thought what the hell, combination 4 graph looks ok too. I wired up in that combination and it's spinning again.

Top tip, make accurate notes

Thanks for the help
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
m.art.y
Posts: 558
Joined: Sat Jun 06, 2020 6:54 pm
Location: UK
Has thanked: 28 times
Been thanked: 16 times

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by m.art.y »

johu wrote: Wed Nov 25, 2020 1:06 pm You may be better off mounting a Melexis sin/cos chip instead.
This is what I have mounted:
Image

I get a reading now but it is not full 360 degrees but varies from around 120 to 240 when I spin the motor. Is the signal voltage wrong and how would I solve this?
User avatar
Bigpie
Posts: 1595
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 304 times

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by Bigpie »

Does it matter if when you've found what appears to be a good syncofs value that the motor spins anti clockwise with a manualid of 0.1 and manualq of 3 or does it need to spin clockwise for the signal of a good syncods?
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
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by Jack Bauer »

Nope direction is unimportant in this case. Yeah you gotta watch the steps. FOC is unforgiving of mistakes. I should know:)
I'm going to need a hacksaw
User avatar
bobby_come_lately
Posts: 466
Joined: Sun May 03, 2020 5:39 am
Location: Manchester, UK
Has thanked: 37 times
Been thanked: 39 times
Contact:

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by bobby_come_lately »

Just had a fun moment setting my inverter up. Was following the FOC instructions so started inverter in manual mode and started to rotate the spindle to check angle. To my great surprise the motor started spinning. Before I could shut it down, there was then a pop and some magic smoke came out of my junction box (BMW S-Box). Pre-charge resistor has gone bye-bye. Thankfully everything else looks fine.

Clearly the main contactor wasn't closed and it was drawing current through the pre-charge relay. But manualiq and manualid were both zero and I can't work out why it was even trying to spin?

It was freshly flashed firmware, and I had uploaded @Bigpie's parameters from the database. But other than that, hadn't done anything other than hit 'Start in Manual Mode' and opened up the plot to check angle.

Working around it and have a replacement resistor on the way, but interested if anyone knows what I did wrong.
User avatar
Jack Bauer
Posts: 3563
Joined: Wed Dec 12, 2018 5:24 pm
Location: Ireland
Has thanked: 1 time
Been thanked: 87 times
Contact:

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by Jack Bauer »

So foc is always looking to control current. Kinda it's one true mission in life. I'm guessing you didnt have the resolver offset setup? Anyway as you rotated the motor the mini Johannes brain said : hmmm...motor turning I'd better send some current into the stator in response to this. But as the resolver offset was wrong the current went into the wrong place which started pulling the rotor around, causing the mini brain to inject more current and so on:)
I'm going to need a hacksaw
User avatar
bobby_come_lately
Posts: 466
Joined: Sun May 03, 2020 5:39 am
Location: Manchester, UK
Has thanked: 37 times
Been thanked: 39 times
Contact:

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by bobby_come_lately »

Jack Bauer wrote: Thu Jan 14, 2021 5:48 pm So foc is always looking to control current. Kinda it's one true mission in life. I'm guessing you didnt have the resolver offset setup? Anyway as you rotated the motor the mini Johannes brain said : hmmm...motor turning I'd better send some current into the stator in response to this. But as the resolver offset was wrong the current went into the wrong place which started pulling the rotor around, causing the mini brain to inject more current and so on:)
Aha! Brilliant. Thank you. I understand now.
User avatar
Bigpie
Posts: 1595
Joined: Wed Apr 10, 2019 8:11 pm
Location: South Yorkshire, UK
Has thanked: 75 times
Been thanked: 304 times

Re: Prius Gen 3 Inverter Logic Board Support Thread

Post by Bigpie »

I'm having an issue with one of the MG1 current sensors. The Atmega pin A5 is held at 5v when no current, where as A4 is at around 2.5v as expected. Unplugging the current sensor sees A5 dropping to 0v. I get the same behaviour with the current sensor from another gen3 inverter plugged in.

Anyone able to offer a suggestion as to what else to look at?
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Locked