2016-04-19 04:32 AM
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?? thanks kvresto2016-04-19 07:27 AM
Hi,
You can have a look to the provided CMSIS/DSP_Lib examples for STM32CubeF3 available in STM32Cube_FW_F3_V1.4.0\Drivers\CMSIS\DSP_Lib\Examples There is the DSP library containing example programs for FFT. I found this and this ,it may be helpful for you. Regards