jvoermans / Vibration_Logger

Logger to measure sea ice vibrations
3 stars 1 forks source link

status - code development #9

Closed jerabaul29 closed 3 years ago

jerabaul29 commented 3 years ago

Hi @jvoermans ,

Just some small status updates to keep you up to date :)

https://github.com/jvoermans/Vibration_Logger/blob/master/material_Jean/Due_ADC_reading/src/main.cpp

So I think that there is no real difficulty ahead, and hope to get something going in the next couple of weeks. I will let you know. The only thing is that you will need some quite big SD cards. If you go for 1kHz with 5 channels, this is 1kHz 5 channels 2 bytes per ADC reding = 10kB per second, i.e. 36MB per hour i.e. 864MB per day ie 6GB per week ie 180 GB per month if I am not mistaken. I suppose we can always use a 256 or 512 GB SD card ^^ . I will have to check how well the SD card library handles these though.

jvoermans commented 3 years ago

Yes, I found the file naming system of the LowLatencyLogger difficult as it has to read files from sd card first in a loop to see if it already exists. In the old system, I was thinking of rather doing the loop, just write a separate txt file with the latest file name in it or something...

I checked the LowLatencyLogger (also based on SdFat) a while back on a 128GB Sandisk Extreme Pro I had around. I had to download some software to format it to fat32 rather than exfat. I tried and logger worked fine, though haven't tried what happens if the 128GB card is half/near full...