I'm planning to make a data logger project with 3-axis sensor and SD card. I would like to store 3200 samples per every second on SD card. Currently I could able to store only 630 samples per second.
Someone told me writing in binary format is the solution.
Then I did accordingly.
fwrite(readings,sizeof(int16_t),6,logFile);
I can see .bin file with more data size compared to .txt or printf
.
How can I get the readable ASCII format from .bin file?
I tried by using fread
.
FILE *logFile = fopen(fileName,"rb");
int readings[6];
nr = fread(readings,sizeof(int16_t),6,logFile);
How can I see the readable ASCII data?.
Thank you.
Best Answer
how can I see the readable ASCII data?
use something similar to: