Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: kpc

Search: Search took 0.00 seconds.

  1. Thread: Fft256

    by kpc
    Replies
    22
    Views
    4,775

    OK, will try to verify here, but not before the...

    OK, will try to verify here, but not before the weekend.
  2. Thread: Fft256

    by kpc
    Replies
    22
    Views
    4,775

    Are you sure you are getting data? Bin 128 is the...

    Are you sure you are getting data? Bin 128 is the DC term so it looks like there is at least some offset present.
    An easy way to check (if you have an oscilloscope) is to connect the AudioInputI2S...
  3. Thread: Fft256

    by kpc
    Replies
    22
    Views
    4,775

    First, the compilation error seemed trivial. I...

    First, the compilation error seemed trivial.
    I did put your cpp and header file in the same directory as the sketch.
    I noticed that I had to add utility to the include


    #include...
  4. Thread: Fft256

    by kpc
    Replies
    22
    Views
    4,775

    Just for information: By testing the fft...

    Just for information:
    By testing the fft function above, I was trying to obtain a symmetric spectrum by disabling the cosine amplitude.
    I noticed that both AudioSynthWaveformSine and also...
  5. Thread: Fft256

    by kpc
    Replies
    22
    Views
    4,775

    There is one little bug, that is also in the...

    There is one little bug, that is also in the original FFT code, which depending on your usage might trouble you. In the header outputflag should be volatile


    volatile bool outputflag;

    Just...
  6. Thread: Fft256

    by kpc
    Replies
    22
    Views
    4,775

    Did you test it yet? I would start by applying a...

    Did you test it yet? I would start by applying a sine and cosine generator to both inputs.

    My remark about the reads was more towards when you use the read(unsigned int binFirst, unsigned int...
  7. Thread: Fft256

    by kpc
    Replies
    22
    Views
    4,775

    At first glance it looks like your almost there,...

    At first glance it looks like your almost there, just a few little mistakes

    In the header


    audio_block_t *prevblock_i, *prevblock_q;

    audio_block_t *inputQueueArray[2];

    And in...
  8. Thread: Fft256

    by kpc
    Replies
    22
    Views
    4,775

    I hope it is clear that my snippets are not...

    I hope it is clear that my snippets are not complete. Eg I stated replacing block by block_i. The rest of the function should also be modified using these variables, but in a similar way as block was...
  9. Thread: Fft256

    by kpc
    Replies
    22
    Views
    4,775

    Edit: I just see or posts crossed. Anyway I hope...

    Edit: I just see or posts crossed. Anyway I hope this post helps.

    To obtain the full spectrum from IQ data, you have to edit the files just a little bit.
    At the beginning of void...
Results 1 to 9 of 9