cancel
Showing results for 
Search instead for 
Did you mean: 

why get differemt value of FOC's current iab?

itri532600
Associate II
Posted on December 18, 2015 at 04:28

I used stm32 library ADC & DMA to get the FOC Ia,b values, but the values are  different at using PMSM library

PWMC_GetPhaseCurrents(oCurrSensor[MC_NUM], &Iab); 

I didn't know why have different values.

The values of using ADC library are correct.

How could I debug the error of PMSM library?

Thanks!
1 REPLY 1
Gigi
ST Employee
Posted on January 07, 2016 at 17:53

Ciao Sapphira

Hard to say why you get different values.

Did you consider the offset calibration done by the MC lib?

Ciao

Gigi