Page 20 of 33

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Sat Nov 28, 2020 11:00 pm
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? :)

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Sun Nov 29, 2020 6:11 am
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?

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Sun Nov 29, 2020 7:25 pm
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.

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Tue Dec 01, 2020 8:35 pm
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 )

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Wed Dec 02, 2020 11:22 pm
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?

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Sun Dec 06, 2020 9:06 pm
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?

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Sun Dec 06, 2020 9:09 pm
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 😊

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Mon Dec 07, 2020 9:23 pm
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.

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Wed Dec 09, 2020 11:46 pm
by m.art.y
Anybody knows if we still need to do pin swaping with the latest FOC firmware? Thanks 🙂

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Thu Dec 10, 2020 7:05 am
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.

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Thu Dec 10, 2020 2:21 pm
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?

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Fri Dec 11, 2020 8:34 am
by Jack Bauer
Inverter temperature? Deadtime setting? inverter cooling? pwm freq?

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Fri Dec 11, 2020 9:16 am
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.

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Fri Dec 11, 2020 9:36 am
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.

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Fri Dec 11, 2020 10:08 am
by m.art.y
Does FOC firmware has to have motor temp sensor connected as a must or is it optional?

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Fri Dec 11, 2020 2:59 pm
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.

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Fri Dec 11, 2020 3:18 pm
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.

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Fri Dec 11, 2020 6:42 pm
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

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Fri Dec 11, 2020 10:58 pm
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?

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Sat Dec 12, 2020 11:40 am
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?

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Sat Dec 12, 2020 2:15 pm
by Jack Bauer
Nope direction is unimportant in this case. Yeah you gotta watch the steps. FOC is unforgiving of mistakes. I should know:)

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Thu Jan 14, 2021 4:13 pm
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.

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Thu Jan 14, 2021 5:48 pm
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:)

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Thu Jan 14, 2021 8:50 pm
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.

Re: Prius Gen 3 Inverter Logic Board Support Thread

Posted: Sat Jan 16, 2021 2:16 pm
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?