Prius Gen 3 Inverter Logic Board Support Thread
- konstantin8818
- Posts: 287
- Joined: Sun Jan 19, 2020 2:33 pm
- Location: Minsk, Belarus
- Been thanked: 5 times
Re: Prius Gen 3 Inverter Logic Board Support Thread
Interesting things I've found out about MGR (Sorry for the offtopic as this thread is not about MGR)
Max_motor_current for the MGR is ~110A according to this: Also according to this and my pure knowledge about motor polepairs, if there are 8 coils, there is actually 4 pole pairs.
And in that thread it was a guess that resolver also has 4 pole pairs.
Will check it right now, with max manualid of 55A
Max_motor_current for the MGR is ~110A according to this: Also according to this and my pure knowledge about motor polepairs, if there are 8 coils, there is actually 4 pole pairs.
And in that thread it was a guess that resolver also has 4 pole pairs.
Will check it right now, with max manualid of 55A
- 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
So some guy measures the wire diameter, uses an online calculator designed for power distribution and bingo we have a max motor current. Oh and even better it fits in perfectly with the 650v "fact". Sweet. What could possibly be wrong.
Back in the real world it seems I need to provide another hint. Did I say the resolver settings were wrong? No I didn't. So if we have the right settings but the wrong behavour whats left? and no I won't answer this one.
Back in the real world it seems I need to provide another hint. Did I say the resolver settings were wrong? No I didn't. So if we have the right settings but the wrong behavour whats left? and no I won't answer this one.
I'm going to need a hacksaw
- konstantin8818
- Posts: 287
- Joined: Sun Jan 19, 2020 2:33 pm
- Location: Minsk, Belarus
- Been thanked: 5 times
Re: Prius Gen 3 Inverter Logic Board Support Thread
Sorry for the previous post.
I'm officially state that I'm now achieved confusion of the highest order: revolutions count changes whenever polepairs or respolepairs is changed.
From now I'm not writing anything about this case. I'm reading now.
I'm officially state that I'm now achieved confusion of the highest order: revolutions count changes whenever polepairs or respolepairs is changed.
Does direction depends on iq being positive or negative? Motor runs smooth both directions if I enter negative or positive manualiq, while manualid is 0.1Jack Bauer wrote:What changes in terms of signals when we reverse motor direction?
From now I'm not writing anything about this case. I'm reading now.
- 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
In order for the inverter to calculate the angle of the rotor it needs sine and cosine inputs. Each of these has two wires. Therefore there are 4 possible connections for the sine and cosine signals.
Johannes uses an arctan function of these two signals to calculate rotor angle.
https://www.rapidtables.com/math/trigon ... rctan.html
So, suppose you had one of those signals backwards. Guess what happens?
Johannes uses an arctan function of these two signals to calculate rotor angle.
https://www.rapidtables.com/math/trigon ... rctan.html
So, suppose you had one of those signals backwards. Guess what happens?
I'm going to need a hacksaw
- Jack Bauer
- Posts: 3563
- Joined: Wed Dec 12, 2018 5:24 pm
- Location: Ireland
- Has thanked: 1 time
- Been thanked: 87 times
- Contact:
- konstantin8818
- Posts: 287
- Joined: Sun Jan 19, 2020 2:33 pm
- Location: Minsk, Belarus
- Been thanked: 5 times
Re: Prius Gen 3 Inverter Logic Board Support Thread
Back in a days when I've graduated from uni, I've got like 4 points out of 10 for mathematics... Geometry however was 10 out of 10 at the middle of semester.... what I'm saying is I never was good at those sinus/cosinus stuff...Jack Bauer wrote: ↑Tue Aug 18, 2020 9:21 am So, suppose you had one of those signals backwards. Guess what happens?
Anyway, thank you for the most obvious hint in history of hints, otherwise i would wondering about this for ages...
- 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
No worries:) I'm just trying to get people thinking. I was totally rubbish at maths also.
I'm going to need a hacksaw
- Bigpie
- Posts: 1594
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 75 times
- Been thanked: 303 times
Re: Prius Gen 3 Inverter Logic Board Support Thread
Are you able to post any hits to get me thinking?
I'm having issues with the buck/boost.
Setup:
I've got 83v connected to the right most side (DC Bus 2) and a volt meter on the left (DC Bus 1)
If I PWM pin 10 I get 83v on DC Bus 1, regardless of PWM value.
If I PWM pin 9 I get 0v on DC Bus 1, regardless of PWM value.
I've attached a scope on the correct pins of the connector on the Toyota board on the other side, so I'm assuming the 50 pin connector is not the issue.
BOOST_FAULT is held at 5v, I'm assuming it is pulled low for a fault.
I've got to be doing something stupid somewhere.
I'm having issues with the buck/boost.
Setup:
I've got 83v connected to the right most side (DC Bus 2) and a volt meter on the left (DC Bus 1)
If I PWM pin 10 I get 83v on DC Bus 1, regardless of PWM value.
If I PWM pin 9 I get 0v on DC Bus 1, regardless of PWM value.
I've attached a scope on the correct pins of the connector on the Toyota board on the other side, so I'm assuming the 50 pin connector is not the issue.
BOOST_FAULT is held at 5v, I'm assuming it is pulled low for a fault.
I've got to be doing something stupid somewhere.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
- bexander
- Posts: 835
- Joined: Tue Jun 16, 2020 6:00 pm
- Location: Gothenburg, Sweden
- Has thanked: 63 times
- Been thanked: 89 times
Re: Prius Gen 3 Inverter Logic Board Support Thread
I just verified the MGR resolver polepair to 2. Set the motor to spin at ~1670rpm according to SW and then measured driveshaft flange speed with a optical tachometer to 244rpm. Result, 1670 / 244 = 6,84. Gear ratio is 6,86 so I call that a match!
- konstantin8818
- Posts: 287
- Joined: Sun Jan 19, 2020 2:33 pm
- Location: Minsk, Belarus
- Been thanked: 5 times
Re: Prius Gen 3 Inverter Logic Board Support Thread
Yup, already came to this conclusion as well "angle" parameter is calculated not only by "respolepairs", it also depends on "polepairs" as I've found out. I believe, Johu can tell exactly how it is calculated...
Anyway, for some reason, I had to swap sinus phases of resolver, for it to operate correctly. I really don't know why they were swapped in first place. Either toyota engineers can make it work correctly with software and they don't care what is the polarity, or someone already played with them before me.
Re: Prius Gen 3 Inverter Logic Board Support Thread
Apologies for being thick, but if I understand correctly, Resolver pin #5 is now MSN and #2 is MSNG? If so, that is very odd indeed.konstantin8818 wrote: ↑Tue Aug 18, 2020 5:13 pm
Anyway, for some reason, I had to swap sinus phases of resolver, for it to operate correctly. I really don't know why they were swapped in first place. Either toyota engineers can make it work correctly with software and they don't care what is the polarity, or someone already played with them before me.
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
- konstantin8818
- Posts: 287
- Joined: Sun Jan 19, 2020 2:33 pm
- Location: Minsk, Belarus
- Been thanked: 5 times
Re: Prius Gen 3 Inverter Logic Board Support Thread
Before swap sine, I've swapped cosine, it didn't helped. So I've switched it back. Red wire was connected to 5 and now it is connected to 2.
Re: Prius Gen 3 Inverter Logic Board Support Thread
Whelp, tried MSNG <> MSN and MSN <> MCS and both were a total fail. What I learned was that in both cases, there are 65576 wrong syncoff settings and when MSN = MSN & MCS = MCS, at least it spins smoothly at low throttle input.konstantin8818 wrote: ↑Tue Aug 18, 2020 7:04 pmBefore swap sine, I've swapped cosine, it didn't helped. So I've switched it back. Red wire was connected to 5 and now it is connected to 2.
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
- konstantin8818
- Posts: 287
- Joined: Sun Jan 19, 2020 2:33 pm
- Location: Minsk, Belarus
- Been thanked: 5 times
Re: Prius Gen 3 Inverter Logic Board Support Thread
Is it a typo? 65536 is max gain 65536=0ZooKeeper wrote: ↑Tue Aug 18, 2020 10:38 pm65576konstantin8818 wrote: ↑Tue Aug 18, 2020 7:04 pmBefore swap sine, I've swapped cosine, it didn't helped. So I've switched it back. Red wire was connected to 5 and now it is connected to 2.
Re: Prius Gen 3 Inverter Logic Board Support Thread
Yes, yes it is I ran from 0 to 65536 by 1k and got only growling/wiggling in either direction.
Huebner VCU controlling a Gen2 Prius Inverter powering an MGR
"Talent is equally distributed but opportunity is not." - Leila Janah
"Talent is equally distributed but opportunity is not." - Leila Janah
- 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
I'll get the instruction video made asap. Hopefully will clear up a lot of confusion. I've been a bit busy the past few days holding back floodwaters with 2 three phase sub pumps and a prius inverter so not entirely irrevalent:)
I'm going to need a hacksaw
- konstantin8818
- Posts: 287
- Joined: Sun Jan 19, 2020 2:33 pm
- Location: Minsk, Belarus
- Been thanked: 5 times
Re: Prius Gen 3 Inverter Logic Board Support Thread
And I was wondering where all our water gone... wells are dry... I'm digging water bore right nowJack Bauer wrote: ↑Wed Aug 19, 2020 1:00 pm I've been a bit busy the past few days holding back floodwaters with 2 three phase sub pumps and a prius inverter so not entirely irrevalent:)
- Bigpie
- Posts: 1594
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 75 times
- Been thanked: 303 times
Re: Prius Gen 3 Inverter Logic Board Support Thread
I've blown up my power supply, this is my theory after looking at a diagram.
I've fed in to pin 9 and pin 10 complimentary PWM with a deadtime, verified this on oh-silly-scope using a Arduino UNO, all good. Signals as expected.
Run this on the board in the inverter and my power supply released all the magic. I noticed the diode on the high side on the diagram. My theory is I very briefly boosted the voltage above 80v and the diode lets it pass through to DC bus 2 and caused the boom?
With the upshot being that it cannot boost from DC Bus 2 to DC Bus 1 and therefore cannot be used as a charger on single phase for packs above 340VDC?
I've fed in to pin 9 and pin 10 complimentary PWM with a deadtime, verified this on oh-silly-scope using a Arduino UNO, all good. Signals as expected.
Code: Select all
int val = 80 ;
int dead = 20 ;
void setup() {
Serial.begin(115200);//
TCCR1B = TCCR1B & B11111000 | B00000010; // set timer 1 divisor to 8 for PWM frequency of 3921.16 Hz
TCCR1A = (TCCR1A & 0x0F) | 0xB0 ; // set pin 10 inverted
analogWrite (9, val-dead) ;
analogWrite (10, val+dead) ;
}
With the upshot being that it cannot boost from DC Bus 2 to DC Bus 1 and therefore cannot be used as a charger on single phase for packs above 340VDC?
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
- konstantin8818
- Posts: 287
- Joined: Sun Jan 19, 2020 2:33 pm
- Location: Minsk, Belarus
- Been thanked: 5 times
Re: Prius Gen 3 Inverter Logic Board Support Thread
Did you precharge main capacitor before connecting power supply?
- Bigpie
- Posts: 1594
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 75 times
- Been thanked: 303 times
Re: Prius Gen 3 Inverter Logic Board Support Thread
I did, turns out I've blown an internal fuse on the power supply, My other thought was I boosted enough to enable the DC DC that then put a big load on the power supply.
Can it buck and boost is both directions?
I'm thinking maybe not because of the diode on the high side IGBT, but I'm far from an expert in these things, and trying to learn along the way.
Can it buck and boost is both directions?
I'm thinking maybe not because of the diode on the high side IGBT, but I'm far from an expert in these things, and trying to learn along the way.
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
- 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
It can only boost from the battery input to the hv bus and buck from the hv bus back to the battery input.
I'm going to need a hacksaw
- Bigpie
- Posts: 1594
- Joined: Wed Apr 10, 2019 8:11 pm
- Location: South Yorkshire, UK
- Has thanked: 75 times
- Been thanked: 303 times
Re: Prius Gen 3 Inverter Logic Board Support Thread
Thanks for clearing that up. I guess that means if you want to use single phase to charge the higher voltage pack you could use an external rectifier and boost from the battery input?
VW Beetle 2003
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
Outlander front generator
Prius Gen 3 inverter (EVBMW logic board)
Outlander charger
3x Golf GTE batteries
Chademo Charging
Outlander water heater
- celeron55
- Posts: 776
- Joined: Thu Jul 04, 2019 3:04 pm
- Location: Finland
- Has thanked: 28 times
- Been thanked: 110 times
- Contact:
Re: Prius Gen 3 Inverter Logic Board Support Thread
That's one option. The other option is to use an external voltage doubling rectifier to feed the HV bus.
-
- Posts: 264
- Joined: Fri Apr 12, 2019 10:42 pm
- Location: Adelaide, South Australia
- Has thanked: 59 times
- Been thanked: 48 times
Re: Prius Gen 3 Inverter Logic Board Support Thread
Just a bit of info on the boost inductor: It is 258.5uH inductance at 10kHz, and 0.267 ohms resistance.
-
- Posts: 264
- Joined: Fri Apr 12, 2019 10:42 pm
- Location: Adelaide, South Australia
- Has thanked: 59 times
- Been thanked: 48 times
Re: Prius Gen 3 Inverter Logic Board Support Thread
just did a few calcs on the inductance and resistance. The resistance looks too high. Measured inductor wire, it is approx 1mm by 5mm or 5mm2. This equates to something more like 0.048 ohms.