SdFat icon indicating copy to clipboard operation
SdFat copied to clipboard

How to reach 100khz from two ADC

Open JacksonLtt opened this issue 3 years ago • 1 comments

Hello,

Thank you for your library. I am using Arduino Mega2560 and Ultra SanDisk SD card to read two ADC channel with 100 kHz each channel. Here is screen shot after testing bench.ino Screen Shot 2022-05-19 at 5 00 37 PM

I have tried to use your example AvrAdcLogger.ino. However, maximum sampling rate of reading two channel is 23809 Hz. Here is screen shot of result: Screen Shot 2022-05-19 at 5 11 44 PM

Here is code I used: AvrAdcLogger.zip

please let me know:

  1. Could i achieve 100khz sampling rate of reading two channel at same time using Arduino Mege2560?
  2. if answer of question one is yes, what should i edit the code?
  3. if answer of question one is no, may i use Teensy 4.1 to achieve the goal?

Best, Jackson

JacksonLtt avatar May 19 '22 21:05 JacksonLtt

You will never achieve 100kHz with an AVR. You might with a Teensy 4.1 but only if you have experience with Teensy DMA.

greiman avatar May 20 '22 03:05 greiman