Code Monkey home page Code Monkey logo

avr-fft-display's People

Contributors

bdunlay avatar wrmoy avatar

Watchers

 avatar  avatar  avatar  avatar

avr-fft-display's Issues

Aliasing issues

Hi William,

I ran across your code looking for a AVR Goertzel implementation, and having a closer look at it and trying to understand your optimizations, I'm afraid I have found some flaws in it:

By only updating the n-th frequency bin every 2^n-th time and discarding all the samples in between, you are actually performing a downsampling by a factor of 2^n. But you need to perform lowpass filtering with a cutoff frequency of 2pi/2^n in order to avoid aliasing.

For the 0th frequency bin, everything is fine and you get the spectrum at 0.94 f_samp, but the 1st frequency bin contains not only the spectrum at 0.94/2 f_samp, but also at (1+0.94)/2 f_samp. For the 2nd bin, it's the superposition of the spectrum at 0.94/2 f_samp, (1+0.94)/2 f_samp, (2+0.94)/2 f_samp and (3+0.94)/2 f_samp, and so on for the following bins.

Even though you haven't been working on this project for 3 years now, maybe this info is helpful for you.

best regards
Henning

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.