[Scott] is building a DIY yeast reactor for his aquarium. What’s a yeast reactor? [Scott] wants to pump carbon dioxide into his aquarium so his aquatic plants grow more. He’s doing this with a gallon of sugary, yeasty water bubbling into a tank of plants and fish. In other words, [Scott] is doing this whole thing completely backward and utilizing the wrong waste product of the yeast metabolism.
However, along the way to pumping carbon dioxide into his aquarium, [Scott] created a very high precision pressure sensor. It’s based on a breakout board featuring the MS5611 air pressure sensor. This has a 24-bit ADC on board, which translates into one ten-thousandths of a pound per square inch of pressure.
To integrate this pressure sensor into the aquarium/unbrewery setup, [Scott] created a pressure meter out of a syringe. With the plunger end of this syringe encased in epoxy and the pointy end still able to accept needles, [Scott] is able to easily plug this sensor into his yeast reactor. The data from the sensor is accessible over I2C, and a simple circuit with an ATmega328 and a character LCD displays the current pressure in the syringe.
We’ve seen these high-resolution pressure sensors used in drones and rockets as altimeters before, but never as a pressure gauge. This, though, is a cheap and novel solution for measuring pressures between a vacuum and a bit over one atmosphere.
Very good project…but in my discussions with people designing MEMS pressure sensors I have learned that the membrane is quite sensitive to the gas pushing on it. So the pressure indicated may or may not be accurate, even though the sensor is highly accurate in air.
Couldn’t you place it in a thin sealed semi air-inflated bag? Pressure outside the bag shoud translate through, plug no risk of corrosion
The only influence I could imagine would be corrosion by a corrosive gas. What influences could be expected except deterioration by a corrosive atmosphere?
Our humid oxygen-based atmosphere is pretty corrosive, just ask my old car!
MY LUNGS! MY LUNGS! What have you done to my lungs? :-p
Gasoline/ethanol.
A motorcycle fuel gauge.
I disagree, Scott is doing it the right way –
Give the plants the CO2 and put the resulting mash in a still for a bit of purification and consume :)
Plants are happy and Scott is now happy and relaxed watching his fish and sipping on a suitably blended beverage ;)
My first thought was cover for a moonshining operation. “It’s for my fishes.” Yah, of course it is.
The right way is to get a CO2 tank and a regulator for both applications: keg the beer and grow happy plants. (Ah, grad school!)
“and sipping on a suitably blended beverage ;)”
I think Scott needs to be introduced to the subtleties of single malt.
B^)
Holy 56 minute video!
I get he wanted to be thorough but there’s something to be said for brevity in communicating this stuff.
I question the need for this sensor in his project though. He’s just got a decorative airlock on the end of his yeast ranch, the pressure will always be equal to the hydrostatic pressure for whatever depth he puts the outlet at, plus a little for drag from the hose and airstone resistance.
There’s big money in brewing and yeast are a model organism (ie absurdly well studied) so if he’s planning on tracking CO2 output there’s probably whole books written on which formula gives the most accurate metabolism for his strain. Tracking specific gravity or refractive index of the wash are all probably simpler ways to track CO2 input into his aquarium.
This was ‘just’ an excuse for him to practice I2C and reading data sheets which is an admirable goal in its own right.
Nice simple forehead slap “I shoulda thought of this long ago” configuration. The best kinda hack! Solved a problem for I you did. Thank you!
I think the error band quoted in the data sheet at 25C and between 700 and 1100mbar is about 1mbar, and increases to 2 mbar between 0C and 50C….
…so I’m not entirely sure what the other 13 bits achieve in ADC; maybe something marketing related?
Consider precision vs. accuracy. This sensor has 24-bit precision (precise to 0.012 mbar) but less accuracy (accurate to 1mbar). If it is used to detect a “before then after” pressure difference (note the “baseline reset” button), the accuracy becomes less important for the application.
Yep, as the datasheet says, it can give you 10 cm of resolution. This helps to make precise altimeters where you can just reset to zero, you are interested in ho much it move, not so precise where it is. Can be used even in smartphones to GPS assist, best way for sports tracking to see if you gone up / down stairs.
I’m confused because it has a max pressure rating of 1200mbar, which is 17psi. I assumed that was absolute, since the range is 70mbar to 1200mbar, and sea level is ~1,013 mbar.
He’s shown pumping it up with the syringe to ~ 23-24 gauge PSI. Huh? How is that even possible?
These sort of sensors often work and indicate well outside their ratings, but the output is no longer linear or trustworthy
Nearly double its rating. And I’m further confused because he says it’s “rated to 2 atmospheres or something” – nowhere in the data sheet does it say that. They’re pretty clear that the max useable pressure is 1200mbar and the burst/damage pressure is 6 bar.
The sensor has an absolute maximum rating of 6 bar, that is much more than 24PSI, so it should not be damaged.
No, the 6 bar pressure rating is the maximum pressure it can take without the sensor being damaged. That’s not the same as “the range at which the sensor returns values.” It’s sort of like a thermometer that only reads up to 100C, but will not be damaged below 200C. That doesn’t mean you’ll get readings at 150C.
“We’ve seen these high-resolution pressure sensors used in drones and rockets as altimeters before, but never as a pressure gauge. This, though, is a cheap and novel solution for measuring pressures between a vacuum and a bit over one atmosphere.”
Wonder how well it would do as a blood pressure monitor?
Let’s measure blood pressure one red blood cell at a time =]
I think the BME280 is even more accurate or not?
I appreciate his effort of programming the Atmega directly but there are already arduino libs out, so this could be done in a few minutes…
There’s a lot to be said for doing it yourself here. I2C is not rocket science, it’s fundamental.
He’ll be done in a few minutes the next time. But he’ll understand the underlying system forever.
Well I appreciate the tutorial. Proper job Scott, thankyou.