i’m experiencing troubles using the sd_card example from the ArdusatSDK library.
when I try to upload it, I get an error “sketch too big”…
I made a smaller version of it, using only one of the sensors. now I’m able to upload the sketch properly, but it mentions the lack of available memory …
All of the SD card logging was broken out into a separate SDK. So when you download the new SDK, you’ll need to also download the Logging SDK. Then the logging example provided with the Logging SDK should work.
Well the good news - I’m seeing the same problem on my end. The bad news - I’m seeing the same problem on my end. I’ll work on figuring out what’s going on. Thank’s for the heads up!
In the mean time, is there a work around? Or do you need all of the sensors logging data?
in the meantime I can manage with one sensor, but I will appreciate some help making this work during this week.
OT: I’m trying to save a CSV file with an acceptable format for the experiment platform but I need to use the RTC Chip to convert Millis to a valid timestamp and I couln’t find any tutorial about it, so I would really appreciate some guidance integrating the RTC chip with the SD Board in one sketch.
This is the same sketch as the example (minus the comments), but I removed the bytesWritten integer. That only saved 2 bytes from the sketch and that was enough to get it working, but I’m hesitant to call it fixed. You can use this code, but I’m going to look into finding a better way to free up some space. The SD Card library is totally just a memory hog.
Concerning the Real Time Clock, the way it currently works is at the beginning of the data logging session the time from the RTC is logged at the top of the file in milliseconds. So every additional entry in the log file can be converted to a valid timestamp by adding the millis timestamp to the first RTC value logged at the beginning. And then there are a handful of tools out there for converting milliseconds to meaningful time.
Here’s a stack overflow response for doing it with Python:
Oh wow! We’ve been interested in stream-lining the process of logging data to an SD Card and then uploading it to the Experiment Platform, but we just haven’t gotten around to it yet. Would you care to share your updates to the SDK?