Prius Gen2 + EM57 FOC no workie.

Post Reply
User avatar
ZooKeeper
Posts: 526
Joined: Mon Mar 30, 2020 10:23 pm
Location: USA
Has thanked: 8 times
Been thanked: 5 times

Prius Gen2 + EM57 FOC no workie.

Post by ZooKeeper »

Trolling for suggestions I guess. I verified and re-verified all my wiring (resolver etc) and I can run the blinky test and motor in SINE firmware just fine, but 100% no joy with FOC. This leads me to think there is something in the resolver circuit or inverter pinswap (5 for Gen2 Prius), or.... an unholy combination of the two that is causing it not to tune, but after stepping back for a few days and re-tracing my steps, I am no further along.

Current state (pun intended), is that any time voltage >~5v is applied in Run, the motor turns with speed proportional to voltage. Throttle application causes the motor to slow, change direction and resume previous speed, but run less smoothly. AGAIN - suggesting a resolver wiring issue :oops:

Maybe I just need convincing that the third time will be the charm???

TIA.

EDIT: FOC v5.24.R
Time for ICE Melt
Huebner VCU controlling a Gen2 Prius Inverter attempting to power a Leaf EM57 motor.
"Talent is equally distributed but opportunity is not." - Leila Janah
User avatar
ZooKeeper
Posts: 526
Joined: Mon Mar 30, 2020 10:23 pm
Location: USA
Has thanked: 8 times
Been thanked: 5 times

Re: Prius Gen2 + EM57 FOC no workie.

Post by ZooKeeper »

Update, I *think* I found at least part of the problem. When I checked jitter again, I found it to be nearly 360* :shock:

I then power cycled the VCU and inverter and rechecked, jitter now <1* and was like WTF!?!?!?! :? After another Run, jitter back to well over 300* and that ain't gonna work.

Any ideas on why jitter would change like that? All metal bits are earthed together, resolver wires are twisted (untwisted resulted in jitter over 5* which I fixed way back in testing).
Attachments
&lt;1* jitter in Run before throttle applied
<1* jitter in Run before throttle applied
360* jitter in Run after throttle applied &amp; released
360* jitter in Run after throttle applied & released
params sine with 360 degrees of jitter.json
parameters
(1.53 KiB) Downloaded 1 time
Time for ICE Melt
Huebner VCU controlling a Gen2 Prius Inverter attempting to power a Leaf EM57 motor.
"Talent is equally distributed but opportunity is not." - Leila Janah
User avatar
manny
Posts: 195
Joined: Sun Jan 23, 2022 4:15 pm
Location: Netherlands
Has thanked: 58 times
Been thanked: 159 times

Re: Prius Gen2 + EM57 FOC no workie.

Post by manny »

Is this on Sine firmware?

If so the slip angle is added to the angle variable.
[DRIVING] Citroen Saxo electrique
  • Volvo ERAD motor, XC90 inverter/DCDC (custom OI board)
  • PSA battery (50kWh)
  • Foccci and MG ZS charger 6.6kW
  • Zombie VCU
User avatar
ZooKeeper
Posts: 526
Joined: Mon Mar 30, 2020 10:23 pm
Location: USA
Has thanked: 8 times
Been thanked: 5 times

Re: Prius Gen2 + EM57 FOC no workie.

Post by ZooKeeper »

I did not think of that :doh:

But both plots are from 0 motor volts, the only difference is what throttle applied fist or not.

Current jitter testing plans is to re-run tests w/o any HV:
  • If jitter is excessive
    - Disconnect one resolver pair at a time & retest
    - Disconnect progressively from motor to VCU while testing each change
  • if jitter is not excessive
    - add HV & retest
    - further separate cables
    - remove Toyota to Nissan jumper & wire VCU directly
    - install a ferrite (?) at the VCU end of cable

My 3ph cables are twisted (8ga 300v rated) extension cord, I would *think* they would not be a large emi source at low V and Hz, but I ain't to radio engineer so could be completely wrong. I do not pick up interference on any radio I own (AM/FM/CB) with antenna in the same room.

I think it bears reminding readers that I am absolutely stretching my knowledge with this project, in terms of programming, motor control and safe battery implementation at HV. I know perfectly well how not to die, but combining that with making it work.... a challenge :D
Time for ICE Melt
Huebner VCU controlling a Gen2 Prius Inverter attempting to power a Leaf EM57 motor.
"Talent is equally distributed but opportunity is not." - Leila Janah
User avatar
ZooKeeper
Posts: 526
Joined: Mon Mar 30, 2020 10:23 pm
Location: USA
Has thanked: 8 times
Been thanked: 5 times

Re: Prius Gen2 + EM57 FOC no workie.

Post by ZooKeeper »

:oops: Update: A self-inflicted situation is the short answer. :oops:

How/why? Well, see when you move from one procedure to another and do not completely restart from "0", things get missed. I am betting there are a few here who have done this, damned sure I have a time or two.

So what happened? In step 4 (based on my notes) of the "FOC Tuning" video, Damien admonishes everyone to use the plot function to check for 360* of rotation and measure the resolver signal for jitter "< 5* is ok, < 2* is better). Turns out this was at least my THIRD round of attempting the tune procedure and I HAD LEFT the FWD pin PULLED HIGH! The FWD wire was hiding behind the VCU and connected to a 12v source. So when I went troubleshooting, I found the grossly excessive jitter and lost two days due to wheel spinning.

MAKE SURE none of your direction wiring is pulled high when checking your resolver signals! :oops:

To be perfectly clear, I had carefully checked the resolver signal and rotation TWICE before ever attempting to power the motor and had not changed anything in the wiring since then.

The question still remains: Why will this motor not spin while performing the FOC tuning procedure? I have tried voltages from 50-100vdc and all four potential resolver connection arrangements, resulting in no joy :(

Second question: Which is the accepted SINE test procedure? 3Hz and add amps until it turns, or Ampnom = 70% and add Hz until it turns?
Time for ICE Melt
Huebner VCU controlling a Gen2 Prius Inverter attempting to power a Leaf EM57 motor.
"Talent is equally distributed but opportunity is not." - Leila Janah
MattsAwesomeStuff
Posts: 1079
Joined: Fri Apr 26, 2019 5:40 pm
Has thanked: 475 times
Been thanked: 307 times

Re: Prius Gen2 + EM57 FOC no workie.

Post by MattsAwesomeStuff »

Duplicate. Delete pls.
MattsAwesomeStuff
Posts: 1079
Joined: Fri Apr 26, 2019 5:40 pm
Has thanked: 475 times
Been thanked: 307 times

Re: Prius Gen2 + EM57 FOC no workie.

Post by MattsAwesomeStuff »

ZooKeeper wrote: Fri Jan 23, 2026 1:47 amThe question still remains: Why will this motor not spin while performing the FOC tuning procedure? I have tried voltages from 50-100vdc and all four potential resolver connection arrangements, resulting in no joy :(
Is it jittering and pulling current, or, just nothing happening?
Second question: Which is the accepted SINE test procedure? 3Hz and add amps until it turns, or Ampnom = 70% and add Hz until it turns?
I'm the wrong person to answer what's proper, but I was told a mixture of both. You start with both low, and then just see what can make it spin. I was told to increase ampnom.

Are you confused because you can observe 2 separate and conflicting sets of instructions, or, are you confused because you've come up with these two procedures on your own and aren't sure which is valid?
User avatar
ZooKeeper
Posts: 526
Joined: Mon Mar 30, 2020 10:23 pm
Location: USA
Has thanked: 8 times
Been thanked: 5 times

Re: Prius Gen2 + EM57 FOC no workie.

Post by ZooKeeper »

Thanks Matt, two different procedures is the confusion inducing thing. I am not sure, to your point above if it actually matters, but as I cannot get the syncofs to work correctly with my combination it does present a potential factor.
Time for ICE Melt
Huebner VCU controlling a Gen2 Prius Inverter attempting to power a Leaf EM57 motor.
"Talent is equally distributed but opportunity is not." - Leila Janah
Post Reply