AnsweredAssumed Answered

Phase angle calculation

Question asked by k.kvresto on Apr 19, 2016
Latest reply on Apr 19, 2016 by ForumSTM32.ForumSTM3

Hi Everyone.

I’ve been trying to calculate the phase angle between two sine waves differing only in phase, and I’ve got it working in MATLAB, using the FFT of each sine wave and then applying MATLAB’s angle function. (as an example I think from the mathworks site??)

 Now I’m trying to do  the same with the STM32F3. I’m using the DSP Lib that can be downloaded from ST, and I’ve gotten as far as the FFT part, but as I’m not at all familiar with the library, I’m hoping someone with more experience can help with some direction as to how to use the Lib and get my phase angle.

Any ideas??