0

Logging 40,000 Samples/Sec to a SD!
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Logging 40,000 Samples/Sec to a SD!

by fat16lib on Sat Jun 18, 2011 7:58 am

The new version of SdFat will have features to log data at higher speeds.

Here is a plot of a 1 kHz sine wave logged at 40,000 samples per second.

The waveform was digitized with a 12-bit MCP3201 ADC and logged as 16-bit binary data to a file using an Adafruit Data Logging Shield.

40ksps.png
40ksps.png (37.25 KiB) Viewed 4807 times


Would you use this capability?

I plan to include an example program to read the file on a PC/Mac since the file is binary. What language would be best for the PC part of the example? I am considering Java, Perl, or Python.

The files are very large since they are written at 80 KB/sec or 288 MB/hour.
fat16lib
 
Posts: 593
Joined: Wed Dec 24, 2008 1:54 pm

Re: Logging 40,000 Samples/Sec to a SD!

by CharlieD on Sat Jun 18, 2011 10:00 am

Hi, I will certainly try this out - I have a couple project ideas this will tie-in nicely with.
When are you planning to release it ?
Charles
CharlieD
 
Posts: 37
Joined: Thu Mar 11, 2010 2:14 pm
Location: Natal Midlands, South Africa

Re: Logging 40,000 Samples/Sec to a SD!

by franklin97355 on Sat Jun 18, 2011 11:16 am

I would think of the three choices Java is the most universal.

franklin97355
 
Posts: 22268
Joined: Mon Apr 21, 2008 2:33 pm
Location: Lacomb, OR.

Please be positive and constructive with your questions and comments.