Set sampling rate


I'm trying to make a decibel meter and I already have an electret mic and an amplifier circuit, but I need to limit the sampling rate of the A/D converter so I can sample at 50 kHz. Is it possible to change the sampling rate?

Yes. See section 24.4 of the Holy Datasheet.

By default using analogRead you are sampling at about 10kHz. Speeding it up to 50kHz is going to cost you some resolution.

Thank you! :slight_smile:

Here you can find an example of samplig up to 70 Khz.

Cheers, Ale.