We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I have the X Y Z coordinates data from the accelerometer which is taken at different frequencies and is in the time domain. I have to convert those values to the frequency domain. I know I have to use FFT but how do I implement that in C. Is there any example code for it?? {-237,-248,195,174,-23,-89,-224,...} Above is the sample X coordinate data which is in the time domain at 50Hz. How to find the FFT of this??
Go on - there's loads of stuff on the interwebs about doing FFTs in 'C' !
https://www.dspguide.com/pdfbook.htm
http://www.lmgtfy.com?q=fft+c
Since you're specifically on the Keil forum, the CMSIS DSP library would be the obvious place to start:
https://www.keil.com/pack/doc/CMSIS/DSP/html/index.html
https://www.keil.com/pack/doc/CMSIS/DSP/html/group__groupTransforms.html
There is a FFT example in the Pack Installer.You can take reference from it.