I know the Arduino ATmega-based boards’ maximum ADC sampling rate of an analog pin is 10 kHz, but what about the MKR family (SAMD21-based) boards?
I couldn’t find any info about it.
I know the Arduino ATmega-based boards’ maximum ADC sampling rate of an analog pin is 10 kHz, but what about the MKR family (SAMD21-based) boards?
I couldn’t find any info about it.
Under optimal circumstances (low source output impedance, etc.; see this answer) the ADC on the SAMD21G can do a maximum of 350 ksamples/s.
There's more to it than just the number from the datasheet, though; when using the standard Arduino libraries you will get nowhere near that number because of code overhead, but mainly because the library sets the ADC to a whopping 63 clock cycles per sample.
There are ways around this, of course; I have put some example code for faster settings for the SAMD21G's ADC here on GitHub.