Storing data from Arduino without Serial print- High Sample rate

Hello Everyone:

For my work, I need to acquire data at a high sample rate (>100kSa/sec) using Arduino portenta ADCs. I don't want to use Serial. print command as I came to know that this command takes much time to execute, which makes achieving the targeted sample rate impossible. What are the other possible ways to store the data from Arduino while maintaining this high sample rate? For example, saving the data and then printing them all at once at the end of testing. e.g. using an SD card or in Arduino internal memory? Can you suggest techniques employed for high-sample rate data acquisition from Arduino?

Thank you

I guess the most important criteria are: how much data, and for how long?, about which you say nothing.

Thank you Nick. I have 2 analog inputs that I want to acquire through 16-bit ADCs available on Portenta H7. My desired sample rate is 100kSa/sec. Whereas I want to acquire the data for about 3-5 Seconds.

If that means 4 bytes 100000 times a second, or 400KB persecod have a look at SDfat - more informatio here: SDFAT documentation - Storage - Arduino Forum

Also see the threads by fat16 about rapidly saving data.

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