I set up a routine to calc sine wave data, calculated data for 4 cycles of a 5V/5Hz signal, taking 4096 samples overall.
I fed this data into my FFT routine, the result is a single peak of 2.5 V @ 5 Hz.
I am using a Hann window function. Looks like this:
for(i=0;i<nSamples;i++)...
I am using an FFT package (GFT) to analyze a signal from a pressure sensor. I am unsure of the results I am getting, so I decided to try to verify the FFT package using a known input.
I am using a signal generator to produce a sine wave of +/- 5V @ 5 and 100 Hz.
When I run the FFT on the...