Other Parts Discussed in Thread: CONTROLSUITE
I am trying about to change from the reference design ( HVMotorCtrl+PFCKit) of low side current measurement employing shunt resistors on inverter phase legs to using an isolated approach( LEM current sensor) on 2 out of 3 phases of a PMSM. However the rotor does not move when I drive it using exisitng codes which works well with the low side shunt resistor design. I did notice the current direction and also modified accordingly on the codes of Clark inputs:-
clarke1.As=_IQ15toIQ((int32)(AdcResult.ADCRESULT1<<3)-_IQ15(0.4978))<<1; // HVPM_Sensored code in Controlsuite
clarke1.Bs=_IQ15toIQ((int32)(AdcResult.ADCRESULT2<<3)-_IQ15(0.5039))<<1; // HVPM_Sensored code in Controlsuite
clarke1.As= _IQmpy(clarke1.As,_IQ(-1)); // added by me to align the current direction
clarke1.Bs= _IQmpy(clarke1.Bs,_IQ(-1)); //added by me to align the current direction
.........
The PMSM noised significantly however the rotor does not spin. Do I miss something important else to match this change or I did something wrong on the basis of start?
Thanks in advance!
Harvey