in lab 5a, calculating Kp series gain, i get wrong values for Marathon ACIM from labs manual:
I use a BW 1/20 ISR freq. in my user.h, ISR is USER_ISR_FREQ_HZ = USER_PWM_FRE_KHZ*1000/USER_NUM_PWM_TICKS_PER_ISR_TICK=15*1000/3=5000,
Ls=0.04114207, ==> Kp series = Ls*2PI*5000/20=64.625812 (high number?)
Kp series(pu)=64.625812*Lsf/Vsf
Isf=USER_ADC_FULL_SCALE_CURRENT_A/USER_IQ_FULL_SCALE_CURRENT_A = 19.89/10 = 1.989
Vsf=USER_ADC_FULL_SCALE_V/USER_IQ_FULL_SCALE_V=409.6/450 = 0.910222
KpSeries (pu) = 64.625812*1.989/0.910222 = 141.219076. ==> Wrong???
Now we know what happens when we use this large value, the motor goes crazy (vibratrion). I think the calculations i did for Kp series = 64.62 is wrong, it should not be this high. When i put 141.2 in gMotorVars.Kp_Idq, the motor was not doing good.
Please help.