-->
Page 1 of 2

What is sample rate of analogRead()?

PostPosted: Wed May 06, 2015 10:57 am
by CptanPanic
I am investigating using the esp8266 for a audio related task, where it would read in a input from microphone. Ideally I would read in at 40khz, but using at analogRead() what is the default rate using arduino IDE? How can I speed this up?
Thanks.

Re: What is sample rate of analogRead()?

PostPosted: Thu May 07, 2015 3:27 pm
by Ben Baron
I'm also interested in this, as I want to do FFT on a microphone signal for a visualizer.

Re: What is sample rate of analogRead()?

PostPosted: Thu May 07, 2015 10:06 pm
by ulumu
I think you will be much better off with an external chip, like this one:
https://www.sparkfun.com/datasheets/Com ... MSGEQ7.pdf

Its a 7 band Graphical EQ chip, feed your mic data to this chip, and use ESP to read output from the ADC pin. U can get a MSGEQ7 chip for around $1.50 in Ebay.

Re: What is sample rate of analogRead()?

PostPosted: Fri May 08, 2015 12:56 pm
by CptanPanic
So I asked the @espressifSystem on twitter, and unfortunately they said that it is limited to 200Hz which is way too slow. So alternatives would have to be either a separate ADC chip, that graphic equalizer chip, or a AVR. It sucks because something like the MSGEQ7, cost almost double what the entire ESP board costs.