SdFat
SdFat copied to clipboard
How to reach 100khz from two ADC
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

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:

Here is code I used: AvrAdcLogger.zip
please let me know:
- Could i achieve 100khz sampling rate of reading two channel at same time using Arduino Mege2560?
- if answer of question one is yes, what should i edit the code?
- if answer of question one is no, may i use Teensy 4.1 to achieve the goal?
Best, Jackson
You will never achieve 100kHz with an AVR. You might with a Teensy 4.1 but only if you have experience with Teensy DMA.