Skip to content

ESP-DSP: DC-Offset and Nyquist frequency in output? (DSP-146) #93

Open
@ruig25

Description

@ruig25

Answers checklist.

  • I have read the ESP-DSP documentation and the issue is not addressed there.
  • I have read the documentation ESP-IDF Programming Guide and the issue is not addressed there.
  • I have updated my ESP-DSP branch (master or release) to the latest version and checked that the issue is present there.
  • I have searched the issue tracker for a similar issue and not found a similar issue.

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.

  1. Bit reverse op applied to output (dsps_bit_rev_fc32).
  2. dsps_cplx2reC_fc32 is also applied.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions