2

I am using the FFT library from Open Music Labs and I am trying to analyze frequencies up to 40 kHz. Now I don't understand fully but know that my sample rate has to be at least twice as much, but my question is with the example code fft_adc_serial, how can I adjust the sample frequency to 80kHz? Is it even possible to sample at these high frequencies.

asked Sep 18, 2017 at 18:43
4
  • 1
    112 us, 8.9 k samples per second max on an arduino uno. And that is if you do extreme programming. Commented Sep 18, 2017 at 18:47
  • Trying to get 80kHz from an Uno will reduce the samples to unusable garbage. Commented Sep 18, 2017 at 18:47
  • 2
    From the datasheet: "Up to 76.9kSPS (Up to 15kSPS at Maximum Resolution)" Commented Sep 18, 2017 at 18:47
  • 2
    Nick Gammon has some ADC tests that show the accuracy as a function of the prescaler setting. From his data, prescaler = 16 (which gives a sampling rate of 76.9 kS/s) seems still almost accurate, whereas prescaler = 8 (153.8 kS/s) seems to leave only 3 – 5 bits of effective resolution. Commented Sep 18, 2017 at 20:02

0

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.