Part Number: TMS320F28069
I've been working with custom hardware to try to identify a compressor.
The bus voltage is 48V on a 25A power supply.
I've checked the calculations for my hardware a few times, but here's my user.h file.
The datasheet gives the following characteristics:
- 4 poles
- Id of 1mH
- Iq of 1mH
- 0.24Ω winding resistance
- 1800-4500 RPM or 60-150 Hz
- Induced voltage constant (the description is line-to-neutral)
Or line-to-line voltage (line-to-line)) (Vrms/krpm) of 9.65V/kRPM - Flux in Wb of 0.0251
I've seen the software lock onto a nice clean sinewave only a handful of times when adjusting my parameters for ID, but the ID always gives me a control and estimate error during flux identification when I see a clean current sine wave.
What I've seen in the monitoring window is that I can get up to speed during ramp up, but the motor practically drops to zero during flux identification.
I've followed along with the instructions in spruhj1i and set the USER_MOTOR_FLUX_EST_FREQ_Hz up to 140 to see if I would get a flux identification to no avail.
When I change the current, I get the following waveform:

The motor will ID with that, but the flux makes no sense.
#define USER_MOTOR_Rs (0.223651111)
#define USER_MOTOR_Ls_d (0.000982604688)
#define USER_MOTOR_Ls_q (0.000982604688)
#define USER_MOTOR_RATED_FLUX (0.234035224)
I guess the math checks out that 48V/0.234035224 is roughly the 200 Hz I have USER_IQ_FULL_SCALE_FREQ_Hz set too, but the motor is unstable with labs 3 and 5, and I would expect the flux to be lower than that.
I've used this hardware to identify other compressors, and I believe my current waveforms at the input to my processor look fairly good with the other compressors.
See the blue below:

I will say that I know the PWM is slow, but the MOSFETs have a decent amount of switching losses at 45kHz PWM, and the heat sinks get quite warm. That is with a dead time of 1µs between PWM waveforms.
I've tried changing a variety of variables in user.h without seeing any noticeable differences from run-to-run.
Could it be that the PWM is too slow and I need faster MOSFETs to handle a higher fundamental frequency for flux ID?