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.

CCS/TMS320F28069M: question about the lab05b and the lab07a in motorware

Part Number: TMS320F28069M
Other Parts Discussed in Thread: BOOSTXL-DRV8305EVM

Tool/software: Code Composer Studio

Now I design a ESC board according to the BoostXL-DRV8305EVM and the launchpad-F28069M.I use the motorware16.

and I use the BoostXL-DRV8305EVM to identify my motor parameter.

#elif (USER_MOTOR == My_Motor)
#define USER_MOTOR_TYPE MOTOR_Type_Pm
#define USER_MOTOR_NUM_POLE_PAIRS (11) //kv420
#define USER_MOTOR_Rr (NULL) //kv420
#define USER_MOTOR_Rs (0.01386916) //kv420
#define USER_MOTOR_Ls_d (0.000008358466)//kv420
#define USER_MOTOR_Ls_q (0.000008358466)//kv420
#define USER_MOTOR_RATED_FLUX (0.007650606) //kv420
#define USER_MOTOR_MAGNETIZING_CURRENT (NULL)
#define USER_MOTOR_RES_EST_CURRENT (1)
#define USER_MOTOR_IND_EST_CURRENT (-1)
#define USER_MOTOR_MAX_CURRENT (30.0)
#define USER_MOTOR_FLUX_EST_FREQ_Hz (30.0)

then I run the lab05b program.once I set the gMotorVars.Flag_Run_Identify = 1,the motor begins to shake.and the mosfet is overheat.

why the motor begin to have a shake ?and what I should do to avoid the motor shake in close loop mode ?

the motor parameter is too small ?the motor id result is not accurate?

I just want to avoid the motor shaking when I enable the instaspin-foc algorithm.

when the motor has no load,I set the motor max current = 30A ,the motor can not start up well. 

but when I set the max current  = 5A ,the motor can start up well. 

when I add the propeller to the motor ,I should set the motor max current = 30A ,in this case ,the motor is also have a little shake .

sometimes the motor can not start up,I try to reset the parameter.

#define USER_ZEROSPEEDLIMIT   (1 / USER_IQ_FULL_SCALE_FREQ_Hz)  from 0.5 to 5.

I want to know the realition ship between the motor max current and the start up program in instaspin-foc? 

whether the max current can affect the motor start up process? 

I use the lab07a program to implement the Rsonline function.I find that the gMotorVars.Rs_Ohm and the gMotorVars.RsOnLine_Ohm is refresh all the time .and they are not same.

at first,I think the gMotorVars.Rs_Ohm is the Rs_offline_recalc result or I set the USER_MOTOR_Rs in user.h?

for the gMotorVars.Rs_Ohm and the gMotorVars.RsOnLine_Ohm, which one is the detect Rs by Injected Current ?

where the oher value come from?

I want to use the lab07a to  implement the Rsonline function in current loop mode.

but the lab07a is in speed mode .and I can not find the flag between the speed loop and the current loop.

what should I do to make the lab07a work in current loop mode ?

thanks

  • Did you use lab02c to identify the motor parameters first using your designed board and set the correct parameters in user.h? And can the motor be identified the similar parameters as TI EVM board?
    The Kp and Ki of speed and Current PI is too high for motor startup in your case, change them to a small value. The maximum current is use to limit the torque current output, is used for motor startup also.
    The motor Rs is too small for lab07c, it can't work well and get a correct Rs if you inject a small current for Rs online calibration.
  • I use the EVM board to run the lab02c project to identify the motor parameter。

    but I don't use my board to identify my motor parameter。and I just copy the motor parameter to my user.h。

    I will try to use my board to identify the motor parameter。

    when I use the TI board and the default PI value of speed and current loop,the start up shaking is still happen。

    so I decrease the Ki of the current loop,and the shaking is decrease。

    I think it is because my motor inductor is too small。

    and I will use the lab05h to reset the pid parameter of current and the speed loop。

    Now I can use the lab07a to implement the Rsonline in current loop mode。

    but Istill have some question about the lab07a。

    why the Rsonline stop refreshing when I run the lab07a and the program work for a while?