I think the corruption of the micro SD card I was using in the Riffle had nothing to do with the ...
Public Lab is an open community which collaboratively develops accessible, open source, Do-It-Yourself technologies for investigating local environmental health and justice issues.
Public Lab chatroom
Reset your password
Read more: publiclab.org/n/13127
I think the corruption of the micro SD card I was using in the Riffle had nothing to do with the Riffle. I have a USB card reader for both regular and micro SD cards and I inserted the micro SD card when another SD card was already inserted. Then I removed the regular SD card. That must have bricked the micro SD card. Strange.
So this time I took the other SD card out before I inserted the one fresh from the Riffle. The CSV file went right into Excel and includes some useful data.
Figure 1. 400 data points from the temperature sensor embedded in the real time clock integrated circuit on the Riffle. The Riffle and battery were carried to three places during an hour of recording the temperature.
The sensor in the RTC seems to respond well to temperature changes (Fig. 1). The temperature data are stepped, i.e., identical data points are repeated, usually seven times (Tables 1 and 2). During the first half of the data log file, the timestamps indicate that the readings were made every eight seconds (Table 1), but that changed after about 35 minutes so that timestamps are only one second apart and then skip 55 seconds (Table 2). I don't know whether this is the way the sketch was written or an artifact of the hardware. The data for battery status are not stepped like the temperature data.
Table 1. Example from the first part of the data file. For the first half of the data file the timestamps are regularly spaced about eight seconds apart. The temperature readings are typically repeated seven times, so a new temperature is recorded about every minute.
Table 2. Example from the later part of the data file. For the second half of the data file the timestamps are not at regular intervals, but are about one second apart for about seven readings and then skip a minute or so. Temperature readings are typically repeated seven times.
The data for battery level indicate that level increased when the Riffle was in the freezer (Fig. 2). Battery level is also erratic when the Riffle is being moved around compared to sitting stationary. Carrying the Riffle from the 3D printer to the freezer causes more variation than being inside my shirt while I am sitting. The change in timestamp interval after about 35 minutes is conspicuous in Figure 2.
Fig. 2. 400 data points for battery level (green) and temperature from RTC (red).
Data for analog0 voltage, whatever that is, are not very interesting (Fig. 3).
Fig. 3. 400 data points for temperature (red) and "analog0 voltage" (purple). I don't know what analog0 voltage is.
I have a bunch of external sensors I could hook up to the Riffle. It looks like it is going to be a lot of work to figure out how to wire them up and modify a sketch to log the data. It would be good to have a step by step procedure for doing that.
I wonder about the erratic battery readings. fascinating.
Chris-- which sensors do you want to attach? perhaps we can find an arduino tutorial that can be adapted to the riffle's wiring.
Is this a question? Click here to post it to the Questions page.
I'm wondering if it just has to do with the power switch setting. it should be on "USB/Lith" for programming.
Interesting! At first I was wondering if the change in time-step occurred after the Riffle reached 0 deg-C, but then when I looked at your data table, it looks like it never goes below 19.75 C (when there was the 55 second delay), but in your plot it does show it recording temps to -5 C. Do you know what is going on there? Anyway, the top plot shows more data spacing just after passing below 0 C -- maybe at -1 C. I wonder if that is somehow related.
I also wondered whether the change in logging frequency was caused by the Riffle dropping below 0°C. There is more about that possibility in the response to this note. That note has a table of the part of the logged data which records the temperature dropping to 0°C. The tables above are just examples of the pattern before and after the shift in logging pattern. There are 400 logged data points in the entire file.
This calls for another Riffle to be tested by being put into the freezer while logging, and also when the time is 10:00:00 (AM or PM).
You must be logged in to comment.
Riffle test 1
updated over 2 years ago