Keg monitoring sensor integration

I was looking into a DIY project to build a keg volume monitoring system for my keezer using strain gauges. Something like this:

https://www.homebrewtalk.com/threads/simple-diy-keg-management.727150/

It got me thinking, is this something that has ever been considered to integrate into Brewblox? It would be great to be able to monitor this on the same Brewblox controller screen rather than having extra screens and logging would be fantastic.

The HX711 amplifier chip appears to be a custom protocol with 1 data line and 1 clock line so may need an interface board to utilise the RS422 on the Spark controller (I assume there is currently no software in the Spark to support this interface yet though).

https://www.digikey.com/htmldatasheets/production/1836471/0/0/1/hx711.html#:~:text=technology%2C%20HX711%20is%20a%20precision,multiplexer%20selects%20either%20Channel%20A

That solution uses a Wemos D1 mini (ESP8266), configured via ESPHome and attached to Home Assistant. I followed some instructions in the BrewBlox docs to expose the block data to Home Asssistant. My plan is to create a nice dashboard for monitoring brewing and fermentation activities on a wall mounted tablet running Home Assistant - and at that point, it would be trivial to add the keg scale stuff to the same dashboard. FWIW.

The analog module that I am about to release can directly be connected to a wheatstone bridge, 4 actually.

I have only tested with pressure sensors yet, but load cells are the basically the same thing.

2 Likes

Great Elco. Will keep an eye out.

Following this; I’m looking at scales for under my all-in-one kettle with the hope I can use it to control a solenoid for water in and pump control for out.

For now I’m using a Pi Zero W and Node-Red with relays via MQTT, so was looking at a serial connection to the scales. However I’m considering building my own (scales) due to the price of the models that are the right size. If I can reuse the components once I go to a Spark board, that’d be sweet.

I have tested a bit with a 600g load cell that I had lying around.

The large peak is the hex bit, which I think is about 6g. The small peaks are the coffee bean, which google tells me is 132 milligram.

So it looks like I can also measure load cells accurately with this new board.

For monitoring kegs though, I would like to investigate an alternative. If you measure the head pressure in the keg, I think you can calculate the head space from the pressure drop and how quickly it goes back up could after a pour.

Perhaps when combined with controlling a valve for the CO2 to the keg, you could put the regulator higher than the desired head pressure and with the valve control the head pressure.

This allows you to adjust the head pressure to the temperature. I think you can also dissolve CO2 quicker by measuring how quickly it dissolves and put CO2 into the keg in bursts.

2 Likes

Great work @Elco. Keg monitoring using pressure sounds interesting. I came across this post of a guy who had done something similar:

https://www.homebrewtalk.com/threads/arduino-keg-sensor-for-level-temperature-and-pressure-with-display.681549/

I assume your idea would also require installing a sensor inside the headspace of the keg?

I already have a temporary solution using a Raspberry Pi Pico and 3.5" LCD display but will definitely watch this space.

I hope that in the CO2 line near the keg would be enough. The regular limits the inflow, so I think the line pressure between regular and keg is equal to the headspace pressure. Not much resistance there I assume.

2 Likes

I ordered some of those same load cells to give it a try. Not with the HX711, but with my own board. Then I can also measure the total bridge resistance and do temperature compensation with that.

2 Likes

I printed this one:

And assembled:



I’ll update you with test results soon :smiley:

2 Likes