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.

TMS320F28034: My motor can't spin in LEVLE 3 based on HVPM project

Part Number: TMS320F28034

Hello,

I'm trying to use HVPM project to make my motor spin, I have checked LEVEL 1 and LEVLE 2, it's OK.

In Level 3, my motor is stalled. After trying with different speed_ref and Iq_ref, it's still failed, here is the waveform what I tested, can you please share your comments on this? Thanks...

CH1: Vbus   CH4: one phase current

  • What rated current and speed is your motor? You may change the SpeedRef and IqRef based on the motor specification, to spin the motor smoothly.
    Could you please check the offsetA/offsetB/offsetC in expression? Why the phase current of motor is always positive on your scope waveform?
  • Hi Yanming,

    The peak current is about 1A, and rated speed is 100HZ.

    The value of offsetA is 0x007E948D, and offsetB is 0x007E3904, I have converted it into 12BITS adc value, they are 2025 and 2019 respectively. I think those 2 values should be OK.

    I don't know why the current is always positive, I have tried with different SpeedRef and IqRef values, it still failed and the current are always positive. Sometimes it triggers OCP that makes the TZ signal pull low, and sometime the motor is vibrating. I still can't get what I expected.
    How to set the appropriate SpeedRef and IqRef? Is there any guideline?

    When I goes back to LEVEL2, the motor could spins in very slow speed, and I can see the negative current.
  • Hi Yanming,

    May I have your comments here?

    Thanks...
  • Were you using the TI HV kit or your own board? What's pi_id.Ref set? You'd better to set the pi_id.Ref to ZERO if you are running a PMSM. And you may run a ACIM with set pi_id.Ref to a positive value.
  • Hi Yanming,

    I'm running the code on my board, and PMSM are used.

    Yes, pi_id.Ref set to 0.

  • You may go back to level 1 and check the offset and gain of current sensing is correct. The current from oscilloscope is similar to the sampling current from ADC. You can use datalog or PWMDAC to check it if either one is supported in your project.
  • Hey Yanming,

    When I goes back to LEVEL1, the graph on CCS shows as below, I think this should be OK. Right?

  • Here is the offset value of current sense amplifier.

  • This waveform showed the output of SVGEN is correct, you may go ahead to verify the current sensing circuit by connecting motor in LEVEL2 if you didn't change the original project setting, you may check the current waveform in level2, to see if the waveform is symmetrical. You need to check the current sensing circuit and use level3 to calibrate the current sensing offset if it's asymmetrical.
    What current sensing circuit was used on your board?