ADC to DMA to External SPI Flash

Hi, I am trying to make a datalogger reading the A0 and A1 pins of an Adafruit QT PY. The analogRead() function is not fast enough so I am trying 2 different methods and I am stuck on both.

The first method involves using the ADC in free-running mode and polling the ADC using DMA to store in a buffer. I have accomplished this so far using this adc to dma example: ZERO/adcdma.ino at master · manitou48/ZERO · GitHub but I have not been able to take the buffer and store it in the external flash memory

The second method is changing the prescaler on the ADC and trying to make the analogRead() faster so I can store the values in a file using the SDFat library but i see no difference in performance.

Any thought? Thank you!

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.