Skip to main content
Dinakaran Palani
Associate III
October 15, 2020
Question

how to generate random time series signal in stm32 and perform fft and compare its results

  • October 15, 2020
  • 2 replies
  • 770 views

..

    This topic has been closed for replies.

    2 replies

    gregstm
    Senior II
    October 15, 2020

    I created a simple random number sequence in a spreadsheet to test my FFT/FHT routines. I set N to something pretty small (32 I think). Then used a spreadsheet to compare the results of my program with the results generated by the following web site - https://scistatcalc.blogspot.com/2013/12/fft-calculator.html

    This method helped me catch a minor bug in my algorithm that I would probably have never discovered otherwise (an array addressing error - the original Pascal program I was converting from had arrays that started at 1..N, whereas the C program array started at 0)

    Dinakaran Palani
    Associate III
    October 15, 2020

    may be I didn't explain it properly I am using arm dsp library to do it i just need to know how to generate an random input and give to fft inbuilt function