this post was submitted on 13 Aug 2024
16 points (100.0% liked)

homeassistant

12025 readers
80 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

founded 1 year ago
MODERATORS
 

Just got a new water cooler and the jug sits at the bottom. I want to track how full the bottle is and I have a spare esp32.

I was thinking about using the weight of the water jug but I'm not sure yet.

There is also a low water led but it seems to be lit all the time. Possible defect? The manual says it turns on when the water is low.

top 2 comments
sorted by: hot top controversial new old
[–] solidgrue@lemmy.world 22 points 2 months ago* (last edited 2 months ago) (1 children)

Sure that's easy. All you need is an HX711 sensor load cell amplifier taped to the floor of the chamber where it sits under an edge of your bottle.

Full, 5 gal (US) jug or water weights 40lbs nominal. If you have the same bottom feed dispenser I have, it starts drawing air with about 16-20oz of water left in the bottom.

You'd want to calibrate first for the sensor without weight (tare), and then for a full bottle's weight (40lb) accounting for cosine error of the bottle being slightly tilted by the thickness of the sensor. Or, tape a couple of shims at 120° offset from the sensor to level out the bottle.

Finally, note the weight of an "empty" bottle with that 18ish oz of water in it, which will probably be close to the zero value.

Now you can calculate % full by looking at the ratio of the current weight between your full/empty value as:

%Water = [ (W_full - (W-18oz -W_tare) ) - W_now ] / (W_full - (W_18oz - W_tare) ) x 100

[–] christopher@lemmy.ca 3 points 2 months ago

Thanks for the detailed write-up!