-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Weird results while imag input other than 0 at example FFT_1 #79
Comments
/*
*/ /* #include "arduinoFFT.h" arduinoFFT FFT = arduinoFFT(); /* Create FFT object / #define SCL_INDEX 0x00 void setup() void loop() void PrintVector(double vData, uint16_t bufferSize, uint8_t scaleType) |
Nobody? |
Hi,
I'm running the example FFT_1 on an Arduino Due. It works like expected.
Then I changed the input vector vImag[] from [0,0,...0] to a cosine wave with same amplitude and frequency as the vReal[] vector. That is a quadrature signal with 90 degrees phase difference.
I expect the same sharp peaks in the spectrum at f and fS-f as with a real only input signal. Only the sign of the peaks is different, depending if the phase lag is +90 or -90 degrees. But instead, the arduinoFFT() produces a weird result: The peaks at f an fS-f are wrong, and there is much noise in the whole spectrum.
Anyone else who detected this issue?
BR, hippoo0
The text was updated successfully, but these errors were encountered: