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.

TMS320F28069M: Inertia test

Part Number: TMS320F28069M
Other Parts Discussed in Thread: LAUNCHXL-F28069M, DRV8305

I am using the C2000 TMS320F28069MFOC card with the 8305 driver to perform an inertia test as detailed in Instaspin lab05c.

It appears that the files compiled and I was able to download the proj_lab05c.out file to the board. I have a green led light (3.3v) light on and everything appears to look ok. However, the motor does not spin. When I hit the resume icon, it looks like the program is running, but nothing happens.

 

I checked the motor parameters and they are right. We are using a 14 volt supply and when I hit the resume button, we draw about 140 milliamps.

 

Below is a screen shoot of my setup. Can you suggest anything??

  • Have you interacted with the variables in the "Expressions" watch window? You need to set the gMotorVars flags appropriately in order to have the code advance

    Sean
  •  Yes, I think I have.  I tried to attach a picture of my watch window, but this site will not allow it when I click

  • Is there anyone at TI who can help with this inertia test problem???

  • Could you please make sure that the lab02b or lab02c run well to get the motor parameters, and set these parameters in user.h for lab05c?
    Are you using LAUNCHXL-F28069M + BOOSTXL-DRV8305 with the related project? Or you are using a customized board you designed?
  • Hi Yamming, I am using LAUNCHXL-F28069M and DRV 8305 chips. I have successfully run LAB 2b, Lab 5a, and Lab5b. Both user_j1h and user_j5.h have the correct motor parameters.

    When I set the flags for gMotorVars.Flag_enableSys and gMotorVars.Flag_Run_Identify, the motor draws about 0.175 amps but no motion. When I set gMotorVars.SpinTAC.VelIdRun to 1, the motor draws a variable current up to 1.7 amps but no motor movement. It then resets this flag to zero.

    What's wrong?

    Thanks,

    Dave

  • Could you please post the user.h and user_j1.h or user_j5.h? And may you share the motor specification? You might help to capture several current waveforms when you set gMotorVars.SpinTAC.VelIdRun to 1.

    Does the motor spin well if you set both gMotorVars.Flag_enableSys and gMotorVars.Flag_Run_Identify? And what value is the gMotorVars.EstState after set both flags to 1? It should be automatically changed from EST_State_Idle->EST_State_Rs->EST_State_OnLine, the process will take about 15s before the motor start spinning. If not, did you modify any setting in example project?

    Btw, what value is et to gMotorVars.SpinTAC.VelIdGoalSpeed_krpm? The figure isn't clear to look the value.
  • 7220.user.h2376.user_j5.hHi Yamming, Attached are the user.h and user_j5.h files.

    Your questions are answered below in red.

    Thanks,

    Dave

    Could you please post the user.h and user_j1.h or user_j5.h? And may you share the motor specification? You might help to capture several current waveforms when you set gMotorVars.SpinTAC.VelIdRun to 1.

    Does the motor spin well if you set both gMotorVars.Flag_enableSys and gMotorVars.Flag_Run_Identify?  It does not spin at all. And what value is the gMotorVars.EstState after set both flags to 1?" EST_State_Idle" No change at all. It should be automatically changed from EST_State_Idle->EST_State_Rs->EST_State_OnLine, the process will take about 15s before the motor start spinning. If not, did you modify any setting in example project? No.

    Btw, what value is et to gMotorVars.SpinTAC.VelIdGoalSpeed_krpm? The figure isn't clear to look the value. 3.0

  • Did you add any load on the motor? What value is the gMotorVars.SpeedRef_krpm? Did you have the motor specification on hand? Why do you set so high USER_MOTOR_RES_EST_CURRENT and USER_MOTOR_IND_EST_CURRENT for motor identification?

    Keep gMotorVars.SpinTAC.VelIdRun equal to ZERO first in lab05c.
    1. Set gMotorVars.Flag_enableSys to 1. What value is the gMotorVars.VdcBus_kV and gMotorVars.UserErrorCode?
    2. Set gMotorVars.Flag_Run_Identify to 1. What value is the gMotorVars.Rs_Ohm, gMotorVars.Lsd_H, gMotorVars.Lsq_H and gMotorVars.Flux_VpHz?
    3. What value is the gMotorVars.EstState and gMotorVars.Speed_krpm after set gMotorVars.Flag_Run_Identify to 1?

    Is there any nFault on DRV8305 board? Could you please check if there is any pwm output signal from LaunchPad to DRV8305 board? The signal can be checked on J2 of DRV8305 board.

    I just ran Anaheim BLY172S motor with lab05c on the same kit as you, that's ok. Could you please run the lab05b again using the same motor parameters as lab05c to look what will happen?
  • Look at my answers in red.

    Did you add any load on the motor? No What value is the gMotorVars.SpeedRef_krpm?(There is no such term) Did you have the motor specification on hand? 4 pole PMSM Why do you set so high USER_MOTOR_RES_EST_CURRENT and USER_MOTOR_IND_EST_CURRENT for motor identification? The motor resistance is very low (0.007 ohms) and I found I needed to give it a higher current to get it started.

    Keep gMotorVars.SpinTAC.VelIdRun equal to ZERO first in lab05c.
    1. Set gMotorVars.Flag_enableSys to 1. What value is the gMotorVars.VdcBus_kV = 0.014 and gMotorVars.UserErrorCode? User_ErrorCode_NoError
    2. Set gMotorVars.Flag_Run_Identify to 1. What value is the gMotorVars.Rs_Ohm, 0.00779 gMotorVars.Lsd_H, 0.000022 gMotorVars.Lsq_H 0.000022 and gMotorVars.Flux_VpHz? 0.021
    3. What value is the gMotorVars. = 1 and gMotorVars.Speed_krpm 0.0 after set gMotorVars.Flag_Run_Identify to 1? 0.0

    Is there any nFault on
    DRV8305 board? NO Could you please check if there is any pwm output signal from LaunchPad to DRV8305 board? The signal can be checked on J2 of DRV8305 board.

    I just ran Anaheim BLY172S motor with lab05c on the same kit as you, that's ok. Could you please run the lab05b again using the same motor parameters as lab05c to look what will happen? Lab 5b runs perfectly.

  • The motor should run with gMotorVars.SpeedRef_krpm as lab05b if you set gMotorVars.Flag_enableSys and gMotorVars.Flag_Run_Identify to 1, before you set gMotorVars.SpinTAC.VelIdRun to 1. Could you please try to run the other motor using the same kit and lab05c project if possible? To look what happens.