AKA "The Rough-looking Muffle Tent Poll"
What I want to do
I wanted to measure temperature, relative humidity, and carbon dioxide concentration in my tent during the LEAFFEST 2014 gathering using the Riffle-ito data logger board from the Public Lab Open Water Project. We are half-seriously calling this a prototype for the MUFFLE (Mushroom Urban Farming Factors Logger Electronics) project, a spoof on the name RIFFLE (Remote Independent Friendly Field Logger Electronics). Why? See below...
My attempt and results
Here are the parts that I cobbled together, from the left: an Enercell 9V alkaline battery; one of the early riffle-ito (Arduino compatible) prototypes which has an ATmega328P MCU, DS3231 real-time clock, and microSD card slot; a hand-crafted sensor pin breakout board with screw terminals; a Riffle project add-on sensor board with a surface-mounted SHT21 humidity and temperature sensor which communicates via I2C; a SainSmart MH-Z14 NDIR carbon dioxide sensor module which speaks serial UART among other protocols and gives calibrated values in ppm; and a 4x4 in. Carlon marine conduit box. Most of the wiring and soldering was completed in my home lab in Providence before the trip up to Salisbury, VT, but I had to fix some flaky connections on the breadboard at the last moment. On the other hand, the majority of the Arduino firmware was hacked together that Saturday night in the chilly garage while others were merry making music by the fireplace with some traditional instruments and the Coqui conductivity probe by poking at some fruits, vegetables, and fungi. Much thanks goes to Don Blair for pioneering the accessible riffle-ito platform and to Rui Wang who patiently helped me debug a problem that we had with using the Arduino SoftwareSerial library - all while dealing with my failing laptop onto which I had previously spilled my beer. I'd love for this note to be truly open source, but unfortunately my dying laptop may have swallowed the exact version of the firmware we used - which was badly in need of a redo anyway ;)
After the prototype was assembled and running, I paraded it from the drafty garage into the fireplace-warmed living room, and back to the garage (I forgot my flash light), and then back into the living room, and then outside into my tent. You can see the effects of my wandering between climatic zones within the first 15 minutes of the data record below. The 9V battery actually lasted for 2 hours, but I am showing a cleaned-up version of the first hour of the record.
If you are interested, the raw data and Python plotting code can be found in this repository location.
Questions and next steps
During the wandering between rooms, the sensors show an interesting dynamic response: RH seems to change quickly and discontinuously at inflections of the temperature, carbon dioxide readings lag behind temperature and RH changes. As might be expected, the carbon dioxide levels spike some time after entering the room with the fireplace. We should devise some experiments to more carefully measure sensor dynamics in these rapidly changing environmental conditions. Perhaps with some more careful documentation procedures and an LCD readout for user feedback, a similar portable logger system can be used to sniff out indoor air quality issues.
During the period when I am sleeping peacefully in my tent (after ~25 mins), the RH and CO2 readings seem to fluctuate in a correlated way. Could this be caused by breathing patterns? Might this be a interesting way to monitor sleeping behavior and metabolism?
The Riffle was designed to be a low power remote data logger which fits inside a plastic water bottle. How should we optimize the Muffle for cost and function in an indoor farming context where we probably have access to mains power and maybe even a wireless network?
Why I'm interested
Eventually, I want to make robust data logging and web-connected open source sensor devices that are targeted to growroom environments, especially urban mushroom farms - like the startup Mycopolitan Mushroom Company that my brother is co-founding. The parameters of interest are similar to indoor air quality monitoring, but the high humidity and spore-laden environment of mushroom farms is particularly challenging for long-term sensor installations. Temperature, relative humidity, carbon dioxide, oxygen and particulate concentration (increasing during fungal sporulation) are possibly the most interesting factors to investigate in these semi-controlled environments.
8 Comments
This is fantastic!
I love the idea of using CO2 and/or RH as a metric for sleep quality / breathing patterns. I suppose you're getting a much stronger signal in your tent than you would in an open room? But seems worth a shot!
Interesting to see the apparent correlations in temp, CO2, and RH, and what that might say about e.g. Craig health / mushroom health / the nature of the enclosure. I wonder if the cross-correlation time of each of these variables against the other could be used as a metric for e.g. how much air is circulating around the sensor, or how 'closed' a 'grow box system' is ...
Could we use the CO2 sensor, in a closed container, plus infragram, as a way of correlating plant respiration w/ photosynthetic activity?
How much are the parts in all of this, again? It's looking like it'd make for a neat little kit!
Can't wait to see this applied to mushrooms!
Is this a question? Click here to post it to the Questions page.
Reply to this comment...
Log in to comment
I'm trying to imagine how to calibrate the CO2 sensor-- Do you think we could fill up a series standard-sized balloons of some sort with a known air mixture? Could we do it with SodaStream cans?
I volunteer to make airtight plastic balloons of a known size for the purpose.
Is this a question? Click here to post it to the Questions page.
Reply to this comment...
Log in to comment