Measuring IPM Motor Parameters from Plots

johnspark
Posts: 264
Joined: Fri Apr 12, 2019 10:42 pm
Location: Adelaide, South Australia
Has thanked: 59 times
Been thanked: 48 times

Re: Measuring IPM Motor Parameters from Plots

Post by johnspark »

I agree with aiming for 80% with only 20% effort :).
Well here is some info on harmonics to help understand this stuff a bit better.
image.png
So there are no rotation forces on the motor either positive or negative, but we do get the center of the 3 windings wanting to do something, so if the neutral is isolated, which it is, there will be 3rd harmonic voltages on this center point.
image.png
For 5th harmonics we get torque going against our fundamental frequency torque. Mind you, we hope 5th harmonic is very low so this effect is very low.

7th harmonic rotates WITH the fundamental! At last! we have something nice!
johnspark
Posts: 264
Joined: Fri Apr 12, 2019 10:42 pm
Location: Adelaide, South Australia
Has thanked: 59 times
Been thanked: 48 times

Re: Measuring IPM Motor Parameters from Plots

Post by johnspark »

EMC with very sharp voltage source waveforms.

For Toyota motors, each individual phase wire is shielded, so no voltage EMC from the 3 phase supply wires.
As far as current EMC, if the motor has high L, current EMC will be low...
Pete9008
Posts: 1801
Joined: Sun Apr 03, 2022 1:57 pm
Has thanked: 102 times
Been thanked: 347 times

Re: Measuring IPM Motor Parameters from Plots

Post by Pete9008 »

Thanks to @FFMan for taking some logs we now have data for the Outlander rear motor :)

Lq=0.36mH, Ld=0.20mH, Flux Linkage=60.8mWb, Rs 27mR

Also added to summary of motor data post here : viewtopic.php?p=52763#p52763
User avatar
Romale
Posts: 441
Joined: Fri May 20, 2022 4:16 pm
Location: Romania
Has thanked: 204 times
Been thanked: 45 times

Re: Measuring IPM Motor Parameters from Plots

Post by Romale »

Pete9008 wrote: Tue Jun 20, 2023 12:18 pm Thanks to @FFMan for taking some logs we now have data for the Outlander rear motor :)

Lq=0.36mH, Ld=0.20mH, Flux Linkage=60.8mWb, Rs 27mR

Also added to summary of motor data post here : viewtopic.php?p=52763#p52763
and where can I see the settings file of this motor and the pinout drawing of the resolver socket? I recently bought such a motor, but I haven't figured out the connection yet
evil neodymium :twisted:
Pete9008
Posts: 1801
Joined: Sun Apr 03, 2022 1:57 pm
Has thanked: 102 times
Been thanked: 347 times

Re: Measuring IPM Motor Parameters from Plots

Post by Pete9008 »

Romale wrote: Tue Jun 20, 2023 1:01 pm and where can I see the settings file of this motor and the pinout drawing of the resolver socket? I recently bought such a motor, but I haven't figured out the connection yet
Best data I'm aware of is herehttps://openinverter.org/wiki/Mitsubish ... Drive_Unit
User avatar
Romale
Posts: 441
Joined: Fri May 20, 2022 4:16 pm
Location: Romania
Has thanked: 204 times
Been thanked: 45 times

Re: Measuring IPM Motor Parameters from Plots

Post by Romale »

Pete9008 wrote: Tue Jun 20, 2023 1:09 pm Best data I'm aware of is herehttps://openinverter.org/wiki/Mitsubish ... Drive_Unit

excellent. thanks a lot, that's what I was looking for in the wiki, for some reason I couldn't find it myself. It remains to find an excellent settings file for it, so as not to look for the correct sensor angle)
evil neodymium :twisted:
User avatar
nickyivyca
Posts: 13
Joined: Thu Jul 06, 2023 4:45 pm
Location: California
Has thanked: 2 times
Been thanked: 7 times

Re: Measuring IPM Motor Parameters from Plots

Post by nickyivyca »

Seemed to work for getting params for my mystery motor.
Screenshot from 2023-07-17 23-51-07.png
Since I am running what the inverter thinks is reverse to go forwards, I had to flip the sign on iq and uq as they are read from the file, otherwise I got nonsense values.

What could the error spikes in Vd mean? Are those just from when flux weakening kicks in and throws off id from the normal MTPA calculations?
Pete9008
Posts: 1801
Joined: Sun Apr 03, 2022 1:57 pm
Has thanked: 102 times
Been thanked: 347 times

Re: Measuring IPM Motor Parameters from Plots

Post by Pete9008 »

Looks good, that's a pretty high value for flux linkage which explains why the motor doesn't like to spin too fast. It should make good torque but it's going to need a lot of field weakening current!

Not 100% sure about the spikes but think it's due to the flux moving up the B/H curve, not quite saturating but getting there, which reduces the apparent inductance and so increases the error. I did try using different error terms in the calculator to bias it more towards higher currents, it improved the spikes but overall made things worse. The plan, once I have a motor in the car, is to make the inverter dynamically measure the inductance as the current changes to allow a full motor model to be built up. No idea whether it will work, or whether the improved characterisation will allow improved motor control, but curious enough to give it a try. In theory it should be possible to do it with logs and the calculator but it would need much larger data sets.

Good point on the sign reversal, I should really add a checkbox to cater for that!

Edit - I produced this the other day https://openinverter.org/forum/vi ... 79#p59079 . Given that your motor has much higher flux linkage than all the others used when producing it (and it is only calculated using Ld) I'd be interested to know how your kp and ki compare to it once you have finished tuning?
User avatar
nickyivyca
Posts: 13
Joined: Thu Jul 06, 2023 4:45 pm
Location: California
Has thanked: 2 times
Been thanked: 7 times

Re: Measuring IPM Motor Parameters from Plots

Post by nickyivyca »

I retuned my gains the other night and ended up with iqkp of 250, idkp of 125, and curki of 22000. The previous ones I was using were not too different. Not sure what the metric for 'best' gains is - I did my tuning with a current clamp probe and tried to tune in the best step response as possible, using d current so the rotor would stay mostly stationary. Then doubled the gain for iq because of higher q inductance, just as a rough guess. This made the motor sound pretty similar to the original inverter which makes me think I'm in the right ballpark - with lower gains it would sound more 'rumbly'. And with these updated gains I seem to maybe be getting slightly better regen performance at higher RPMs.
PXL_20230721_044629128.jpg
I did then re-run the parameter estimator, and got slightly different results, though I was driving in a different area this time, still mostly flat though with no braking.
Screenshot from 2023-07-21 00-05-16.png
Still seems like I need more flux weakening current - I was inching it up and getting better performance until I was approaching low battery today, I think I need to give it even more but that's an adventure for another day.
User avatar
Vita1ii
Posts: 4
Joined: Tue Sep 24, 2019 12:33 am
Location: Kyrgizstan
Has thanked: 2 times

Re: Measuring IPM Motor Parameters from Plots

Post by Vita1ii »

Hello friends,
I've been working on building an electric car using parts from Opel for some time now.

I've created a non-standard combination of a Prius Gen2 inverter and a Leaf EM61 motor with the original Nissan gearbox. Currently, in my tests, the battery voltage is at 190V.

I would like to request assistance with calculations and calibration settings for my inverter and motor setup. How can I gather the specifications?

I've taken a few screenshots of my testing while climbing a slight incline and driving on a straight road.
Attachments
photo_2023-10-16_16-03-17.jpg
photo_2023-10-16_16-03-15.jpg
photo_2023-10-16_16-03-10.jpg
params (6).json
(1.62 KiB) Downloaded 41 times
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: Measuring IPM Motor Parameters from Plots

Post by johu »

The motor parameters are the same regardless of the inverter. For the EM57 we found Lq=0.426mH, Ld=0.164mH (lqminusld=262 uH), Flux Linkage=73mWb
viewtopic.php?p=52763#p52763
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
User avatar
Vita1ii
Posts: 4
Joined: Tue Sep 24, 2019 12:33 am
Location: Kyrgizstan
Has thanked: 2 times

Re: Measuring IPM Motor Parameters from Plots

Post by Vita1ii »

Thank you, I'll make changes today.
johu wrote: Mon Oct 16, 2023 11:02 am (lqminusld=262 uH), Flux Linkage=73mWb
viewtopic.php?p=52763#p52763
Johannes, You mentioned "lqminusld" in uH units; should I record it as 0.262 mH ?
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: Measuring IPM Motor Parameters from Plots

Post by johu »

Vita1ii wrote: Tue Oct 17, 2023 4:43 am Thank you, I'll make changes today.

Johannes, You mentioned "lqminusld" in uH units; should I record it as 0.262 mH ?
Oh yes indeed 0.262 mH
Support R/D and forum on Patreon: https://patreon.com/openinverter - Subscribe on odysee: https://odysee.com/@openinverter:9
Post Reply