This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28335:Questions about current harmonic injection

Part Number: TMS320F28335

I am using TMS320F28335 for motor control. Now I want to inject the 7th current harmonic into the motor and implement control of the current harmonic, but now I can control the amplitude of the current harmonic but not the phase of it. Maybe I can't understand how to use _IQsinPU().

For example, I use Ia=_IQmpy(_IQsinPU(7*Theta_VA_RA+1/360*30), Im) to make the 7th current harmonic offset by 30 degrees, but it doesn't work when I perform the experiment, I can't find the solution, can anyone help me?

Note: Theta_VA_RA is the electrical angle measured by resolver, its value is 0~1, and Im is the amplitude of current harmonics.

  • It's difficult to inject the current directly to a phase of the motor if you don't have the separated current closed-loop control on each phase. You may try to implement the injection voltage for this.

    You may take a look at the related textbook to see how to inject the harmonic current into the motor. The issue is not related to the IQmath, just the method you used is not correct.

  • You mean I have used _IQsinPU() correctly. But my control method is a closed-loop control of current harmonic separation. Maybe something went wrong with me. Let me think about it again.

  • It's not related to the IQmath if the Im is a IQ format and the value of "7*Theta_VA_RA+1/360*30" is between _IQ(0.0) and _IQ(1.0). You have to check if your control algorithm is workable.

    You can have a look at the IQMATH user’s Guide if you want to know more about IQmath.