-
Notifications
You must be signed in to change notification settings - Fork 92
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
ESP-DSP: DC-Offset and Nyquist frequency in output? (DSP-146) #93
Comments
Hi @ruig25 |
Hello! Sure. 1st example Raw accelerometer 512 samples used to calc magnitude |
2nd example Source: 3D magnet field sensor. The same routine as above but RAW values converted to milli Tesla before calculating magnitude. In both cases first two FFT bins (0 and 1) contain high values. I will try to prepare Octave snippet to verify fft... may my fault somewhere |
Hi @ruig25 You have a positive bin[0] and this bin is bigger then others for tree reasons.
Regards, |
Answers checklist.
General issue report
Hi!
I suspect, that fft output contains dc offset at index=0 and Nyquist frequency at index=1 (like in ARM CMSIS DSP library for cortex).
I have accelerometer signal. I feed input signal (hann window applied to real values) interleaved by zeros to dsps_fft2r_fc32.
After calc of magnitude on output sqrtf(real^2 + imag^2) the first bin (index = 1) is always bigger than others.
If I set bin 0 and 1 to zero - I get the results that seems to be near to reality (bin index multiplied by freq resolution... ~ expected fundamental freq of my test vibration).
I am i right about index 0 and 1?
Thanks
The text was updated successfully, but these errors were encountered: