wrmoy / avr-fft-display Goto Github PK
View Code? Open in Web Editor NEWFrequency spectrum analyzer and matching LED display with unrelated code demos
Frequency spectrum analyzer and matching LED display with unrelated code demos
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.