I have DRV8301-LS31-KIT. I have TMS570LS3137 controller. I want to control my motor using Field Oriented Control. Also, I want to feedback from my quadrature encoder. In other words I want to control my motor with its sensor not sensorless control. To do this, I am using,
Motorware_1_00_03_03\sw\solutions\foc_encoder_speed\boards\drv8301kit_revD\hercules\tms570ls3137\projects
In addition, I am using Code Composer Studio v5 so that I can import projetcs and control my motor with microcontroller.
Q1)
I have suprised about clarke transformation algorithm (clarkeHandle) in the code because it is different from theoretical equation which is below.
Ialfa=Ia
Ibeta=(Ia+2*Ib)/sqrt(3)
However in the program;
pOutVec->value[0] = pInVec->value[0] * alpha_sf;
pOutVec->value[1] = (pInVec->value[0] + (pInVec->value[1] * 2) ) * beta_sf;
alpha_sf=1.00 and beta_sf=1.00
I think that this beta_sf should be 1/sqrt(3) not 1.00. I couldn't understand why beta_sf value is 1.00?
Q2) My motor currents are measured from low side sense resistor. To read correct motor current from sense resistor low
side A and B leg switches should on. In other words I should read sense voltage by ADC when low side switches conduct. Whic
part of the code is doing this interrupt?
Q3) My motor rated current is 7.1 Amper. However in the code speed saturation is 0.71 A (speed control output is current reference). Where this 1/10 scale come from?