michaelstetner
New member
I wanted to share a sketch I wrote to acquire data and store it on an SD card. In my tests using a Teensy 3.6 and a SanDisk Ultra 16GB SDHC micro SD card, I was able to record an analog pin at 25 kHz. That's pretty fast
There has been some discussion of how to do this on this forum, but I couldn't find a complete working example, so I made by own.
It uses the beta version of the SdFat library written by Bill Greiman, which is available at https://github.com/greiman/SdFat-beta. I have tested this sketch with revision ffbccb0 of SdFat-beta. This code was inpired by SdFat's LowLatencyLogger and TeensySdioDemo examples.
I hope my code will help you make your own loggers.
Download the code here:
https://github.com/MichaelStetner/TeensyDataLogger
There has been some discussion of how to do this on this forum, but I couldn't find a complete working example, so I made by own.
It uses the beta version of the SdFat library written by Bill Greiman, which is available at https://github.com/greiman/SdFat-beta. I have tested this sketch with revision ffbccb0 of SdFat-beta. This code was inpired by SdFat's LowLatencyLogger and TeensySdioDemo examples.
I hope my code will help you make your own loggers.
Download the code here:
https://github.com/MichaelStetner/TeensyDataLogger