Brewing beer or making wine at home isn’t complicated but it does require an attention to detail and a willingness to measure and sanitize things multiple times, particularly when tracking the progress of fermentation. This job has gotten easier thanks to the iSpindel project; an ESP8266 based IoT device intended as a DIY alternative to a costly commercial solution.
Tracking fermentation normally involves a simple yet critical piece of equipment called a hydrometer (shown left), which measures the specific gravity or relative density of a liquid. A hydrometer is used by winemakers and brewers to determine how much sugar remains in a solution, therefore indicating the progress of the fermentation process. Using a hydrometer involves first sanitizing all equipment. Then a sample is taken from the fermenting liquid, put into a tall receptacle, the hydrometer inserted and the result recorded. Then the sample is returned and everything is cleaned. [Editor (and brewer)’s note: The sample is not returned. It’s got all manner of bacteria on/in it. Throw those 20 ml away!] This process is repeated multiple times, sometimes daily. Every time the batch is opened also increases the risk of contamination.
To replace this process, the iSpindel measures specific gravity and temperature regularly and hands-free. The device consists of a plastic tube, a 3D printed raft, an IMU for measuring the angle at which the tube floats, a temperature sensor, a rechargeable battery, and a Wemos D1 mini (ESP8266EX based) microcontroller. The inclination angle of the floating device changes in relation to the device’s buoyancy, and therefore in relation to the sugar content of the fermenting liquid.
This is a clever DIY solution that hits all the right notes and takes advantage of all the right elements. The plastic tube is easily sealed and easy to keep clean. The device itself has no effect on the fermenting process, the battery is more than sufficient to monitor fermentation of a batch from start to finish, the sensors give readings every bit as accurate as a properly used manual hydrometer, and the wireless capabilities are used to transmit data from a sealed environment.
Compare this device to this DIY sensor suite for wine monitoring from 2010, which was originally envisioned as a self-contained floating probe but ended up a two-part device. It’s amazing what’s available for hobbyist use today compared to even just a few short years ago.
Thanks for [janniz] for the tip!
[Image source for hydrometer: grapestompers.com]
57 thoughts on “IoT Device Pulls Its Weight In Home Brewing”
This is really cool! I am curious if there has been any issues or not with CO2 bubbles adhering to the tube and distorting measurements, or if normalizes as fermentation calms down.
Hmmm, that would be most interesting to analyse as to its veracity because,
unless the “calibration procedure” is fully dynamic ie not Static, then it cannot
account for the dynamic of bubble formation & release both of which are
Pray tell how this paradigm can possibly be accommodated please ?
You might find that it’s not perfect, but “good enough” to indicate the process of a brew. Within about 2 gravity points would be handy – I want to tell the difference between a final gravity of 1.012 or a stalled brew at 1.020.
i had a quick look because i was intrigued by this “heeling cylinder” method..
“The inclination angle changes in relation to the buoyancy and thus directly in relation to the sugar content. There is an angle formed between the center of mass and the center of buoyancy depending on the density of the fluid.”
i have no clue about brewing, which is likely national treason here in Belgium. (degrees plato wut?)
he’s referring to this procedure :
from my limited understanding of the matter, it looks like they compensate with a value interpolated from empirically determined values (inclinations) from tests in solutions ranging from clean water (0 degrees Plato, SG 1.000) to (2.5 degrees Plato, SG 1.010 or 2.5 degrees Brix)
if this adequately compensates for the effect the CO2 bubbles have on the inclination, i have no idea.
You can achieve a precision of 0.002 SG quite easily, it depends all on your efforts to calibrate. But frankly this is not the first interest, because you are interested in the change over time to monitor the fermentation progress.
I wonder if a hydrophobic treatment would prevent bubbles from sticking? Of course, it would need to do so without tainting the beer.
For what it’s worth, there’s a commercial unit that works on a similar principle (https://tilthydrometer.com/pages/faqs) and their FAQ claims that in practice neither bubbles nor froth are problems. Worst case sounds like temporarily higher readings if the device is placed into an already actively fermenting brew.
I wonder if adding a small pager / vibration motor could shake off the bubbles prior to the measurement…
Well, someone in the german foum already tested a vibration motor. Unfortunately, it didn’t work. The bubbles stayed. Maybe a bigger motor qould help.
But the thing is: This device is not for the perfect measurement. It is to surveillance and log the data. As a brewer, you are interested when the yeast stops producing alcohol. So for this purpose, it is reallsy good.
Maybe add a small vibration motor. But its looks good enough already.
By then, you are just a firmware hack away from adding a very out-of-the-box feature to this oddly shaped device.
Bigger market penetration ;)
I regret nothing
I mean, we are hackers, and that means to use devices for purposes they were not intended for….
tested it here: https://youtu.be/As063Fy1lSQ
Nice, I’d have to do my own experiments to confirm. Another option might be ultrasonic vibrations. It would be quieter and might use less energy but might disturb the rest of the brew.
I know putting fizzy drinks in my ultrasonic cleaner gets the fizz out. But it’s working so probably no need to guild the lily.
Sounds interesting, I wonder what power is required though
search-fu: beer Refractometer
While it’s not automated, a refractometer is cheap and only wastes a tiny drop of wort.
Beer/Wine Thief allows you to return the wort/beer to the carboy after you take your measurements
Returning can be risky… the loss is minimal compared to the chance of ruining the whole batch.
A refractometer let’s you open your fermentation container serveral times. And you always have to take a sample. This is a infection risk. Also, the cheap analog refratometers from China are not accurate. Better use the iSpindel and and while brewing and at the end, a hydrometer.
Maybe I’m overthinking it a bit, but it seems like if you could incorporate some sort of inductive (wireless) charging for the battery, you could make the whole thing into a completely sealed unit that doesn’t need to be regularly opened. Just put it on a charging mat between batches.
Great idea in principle but I don’t think it is practical. Main reason is that yeast and other crud will get lodged in the thread of the cap, and if you leave it there will be a source for future infection. Far safer to completely dissasemble and soak in a sanitiser between uses.
A bead of epoxy would fix that.
There is already a member of the German forum testing it :)
For pictures: http://hobbybrauer.de/forum/viewtopic.php?f=7&t=11235&start=700
Man, I already had enough projects to build! How am I going to squeeze this one in? :)
The correct term for a device which measures density is “hygrometer.
This is incorrect, ‘hygrometer’ is a device for measuring humidity, not Specific gravity.
Er, no. A hygrometer measures humidity, not density.
A hygrometer is an instrument used for measuring the moisture content in the atmosphere.
For some reason, most of the people I encountered in homebrewing (at least when I started) including the guy at the home brewing supply shop called it a “hygrometer”. So did I, until I learned that was not the correct term! I wonder if it is one of those errors that simply caught on and spread for some reason.
Nice. But how about the wireless communication through my stainless fermentation vessle? That won’t work. Also the amount of hops that will stick to the tube will affect the angle, which is different for different beers.
So it would not measure perfectly but maybe good enough for a hobby. In larger stainless tanks it would be better to take a sample.
Works better than expected, while of course the range gets limited. Make sure your lid is electrically shielded from the pot to avoid a faradic cage.
There are some people in the German forum, who installed a simple repeater by the vessel. And it worked. Maybe there are even better solutions.
And yes, you are right, but for homebrewers, it is most insteresting at what time the yeast stop producing alcohol. So you don’t need the exact number, the curve is enough. And before botteling, you should measure once with a more precise instrument :)
Why is it that there is an undue fascination with beer making, and that every other article has to be about some device to control the temperature and timing of it? This has to be the 100th such article I’ve seen here. Why not a concrete setting machine? Why not a watering timer/humidity controller for a garden? Why not a device to properly measure or time ANYTHING other than beer making? Seriously, enough with the beer making.
My guess to answer your question is that drinking concrete doesn’t get you drunk. I wanna know why there aren’t more home distilling hacks!!!
Probably because in most countrys home distilling (high alcohol content) is illegal while home brewing (lower alcohol content) is allowed.
There’s a group that is trying to get home distilling legalized. https://www.hobbydistillersassociation.org/
if you’re looking for a smart watering timer: https://wiseorchard.com
If I put BEER in the search, I get around 10 articles about brewing in the past 5 years.
And the thing is, a lot of people like beer, and when you start making it by yourself, you realize how easy it is to automate the process.
I think I remember many garden timer/control/watering projects here. Although I buy my beer and did not yet think about brewing it myself.
Because homemade hooch is a staple among the DIY crowd.
It’s the one thing most have in common.
Brilliant! I’ve had many conversations with people over the years about how best to do this. Most of the ideas revolve around reading a hydrometer level, from ultrasound distance-measurement to using a mouse optical sensor to a coil of wire inside a magnet measuring changes in inductance as things floats up and down. All the ideas I’ve seen have problems with reliability, sensitivity, contamination or just the simple ability to keep everything sterile. This is really clever work.
Hi, How do you deal with different types of beer? For example German Wheat Beer produce a huge “foam” during fermentation (crop yeast). This can hold your tube providing a wrong measurement for long days. Thanks.
From my experiences the foam doesn’t play a rule at all. The yeast though can make it sticking to the kettle which can happen after the high krausen here and there. A little bit shaking helps…
As fermentation finishes up, the krausen dissipates back into the wort, and the sensor will settle. Since we’re looking for the final gravity, it shouldn’t be too big a deal. The other part to this, the temperature sensor, should still be accurate enough, and that’s more of a critical* factor during active fermentation than what the gravity is at that point.
*Temperature control being one of the major differences between a “pretty good” beer and “nectar of the gods” beer. Too-warm fermentations can lead to off-flavors as the yeast is stressed.
And who returns a sample, or *gasp!* throws it out? That always goes through a secondary sampling. Mmmmmm.
Finish your beer, there are sober kids in India.
Here is the point , since the iSpindel is floating in the center of yeast activity it was surprising how much it’s measured temperature derives from kettle outside. So the next step is to control fermentation temperature by the temperature measurement from the iSpindel. That’s already working surprisingly good and being developed called iRelay.
Thanks @Donald for bringing my project up to hackaday – wow!
Thank you for documenting it so it could be shared! It’s a great project.
My dad is a wine maker, I’ve been working for him, and I know people who analyse samples with much more complicated devices than a simple hydrometer which is a very important tool in winery and brewery, don’t get me wrong. But getting a consistent production over the years involves tracking much more stuff than density, however for the home gamer, doesn’t matter.
However… Not returning a sample, sanitizing the stuff… This is a freaking waste of time and money in WINERY (don’t know for beer). Acidity is so strong that it will destroy most of the bacteria that could be in the solution. That’s also why sulfur (sulfur dioxide to be accurate) is used in the making of wine, it kills most of the bad bacteria that could be introduce with the fruits. Because the main source of contamination is here! SO2 is bubbled through and dissolved in water, then this water is introduced in the grappe juice with the enzymes needed for fermentation (they ARE bacteria). Tank cleaning is done with tap water and usually you can’t remove everything from the wall (thick crystals form on the walls).
Would think the inclination measurement would be unreliable due to the yeast crown sticking on the edges, as it tends to do.
The inclination measurement works surprisingly fine. Only during the first 10 hours after yeast pitching the calculated SG is a bit too high but during the rest of the fermentation the SG is within 2 SG point of the actual SG. I have compared the iSpindel with my CO2 production sensor using my fermentation SW Tcontrol during a few fermentation’s and both SG curves match well.
Fermentation generates heat and is one of the reasons why we need to control the temperature in our fermentation chambers (mine is a fridge with my own controller).
The temperature inside the chamber (when the fridge is not active) will be influenced by external ambient temperature and the beer. If we find the relationship between ambient and chamber temperatures (ie. test without a beer in there) then the remaining factor is temperature change due to fermentation.
Once temperature change in the chamber approaches the relationship between it and ambient then fermentation is complete.
I have been data logging my fermentations and see that my fridge kicks in more at the start of fermentation, which makes sense.
Has anybody actually tried to use this relationship before?
I started developing this idea at LEAST 7 years ago and couldn’t figure out how to measure the SG. I researched patents on all kinds of devices and it **NEVER** occurred to me that the angle would work! Friggin’ GENIUS!!! I have Wemos chips right here and a Double IPA I just tapped… I will build this tonight!!!
Anyone have a source for the container in the US?
There is a big discussion going on here: http://www.homebrewtalk.com/showthread.php?t=598187
Some are using one off of ebay (link in thread) and the sled is about 2mm too big but soaking in hot water lets it slip into the container.
I’m pretty sure this is the most information I’ve found out about Moonshine in one place! Definitely some interesting facts about things like how Nascar was born? That’s a new one for me. I know that there are dozens of sponsors and A TON of beer influencers going on since one of my family members got to work for a well-known beer company. She got the chance to go around to events as a sponsor and give out free stuff.
It’s amazing at what it takes to brew this stuff. And, the fact that people have worked on it for so long! Talk about trial and error.
If ‘all you want to know is when fermentation has stopped’, put your ear to the bucket, or if you must. develop a wireless microphone and convert the unmistakeable sound of fizzing to a DC level or some numbers.
Please be kind and respectful to help make the comments section excellent. (Comment Policy)