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.

FOC total current monitoring with DRV8301 and low side shunt resistors

Other Parts Discussed in Thread: DRV8301, TMS320F28335

Hi everyone,

I am having some trouble to measure the total current used by our motor by using sensorless FOC technique. I am using the DRV8301 integrated op. amps. with two low sides shunt resistors. I have dimensioned the shunt resistors (20 mohms) so I can have up to +/-6A (scaled to 0-3.0V ADC, offset on 1.65V) with 10x gain on the op. amps.

I have no trouble with the control of the motor and I read nice sine waves from the currents feedback. Now, when I try to compute the total current used by the motor, I get values off the weed and very noisy and cannot match what I am measuring with current delivered by my laboratory power supply.

I basically take the current values from (Park.Isq and Park.Isd) and compute the norm from it : Itotal = sqrt(Park.Isq*Park.Isq + Park.Isd*Park.Isd) * baseCurrent. 

ADC value varies between 1.0 which corresponds to +6A and 0.0 which corresponds to -6A.

Am I missing something?