SD card writing
Computer Geek 101
Posts: 179
I am building a data logger. The device will get data every ½ second. Is it more efficient to store like 15 seconds of data in ram then write all at one time or write data every ½ second? Thanks for the help.
Comments
You probably want to run the SD card writing routines in their own cog because of this unpredictable write time. That way, your datalogging code can continue to read sensors, collect and format data, timestamp it, and otherwise prepare it to be written to the SD card even if the SD card "hiccups" occasionally taking as much as 1/2 second to 1 second to finish writing a 512 byte sector.