Coder Social home page Coder Social logo

ha-esphome-scale's Introduction

Home Assistant ESPHome Smart Scale

STLs and ESPHome config for a scale intended to sit in front of my cat's food bowl to track her struggles to lose weight.

alt textalt textalt text

Size: 220mm x 220mm x 40mm. Load: Has 2x 10kg load cells, but is more limited by the cantilever platform. It works for a 4kg cat at least.

I printed this with supports in the load cell holes, it resulted in quite a lot of support-unpicking in front of the TV, but I can't print bridges reliably. The load cell holes were designed at 12.9mm. Off of my printer my calipers said the result was 12.6mm and that resulted in a tight push fit that practically didn't need screws. If your printer under-prints by any more you'll struggle to insert the load cells. This was designed for an eBay load cell that was 12.5mm x 12.5mm x 80mm, but I didn't order additional ones carefully from Aliexpress and they were 70mm long and M4 tapped on both sides (rather than M5 on one side) - I've used the 70mm ones without adjusting the design and only using one screw hole and it's all turned out alright.

alt textalt text

Care is needed when inserting the load cells into the base, there is a cut-out in the print but you'll need to neatly fold the wires down in a 'U' shape to come back out of the load cell hole. The print unfortunately shaves some of the silicone but it hasn't caused me a problem yet. The photo has the wiring drilled through as the printed-in tunnel was too small, I've since enlarged the tunnel which should fix the problem.

alt text

I put a coat of plasti-dip on the bottom thinking it would make a nice non-slip surface, maybe it would work if I put more coats but one coat was thinner than I expected and had too many peaks and valleys to give good grip on wood floor. I ended up with double sided tape which has worked well.

alt text

The wiring can be almost anything you want, this is what I did.

I calibrated each of the load cells after installing/wiring in the base, but before installing the platform. I weighed a bottle on a kitchen scale and then, after uploading the ESPHome firmware with the "calibrate_linear" filters removed, watched the logs and noted the 'zero' count and 'bottle' count. Those should then be substituted into "calibrate_linear".

The output in Home Assistant should be stream of readings at 2Hz while the cat is on the scale. I would like to eventually emulate a human scale and present one number from a weigh-in, I think it would involve sampling until the variance settles and then averaging the low variance data... but for now it's raw values. A manual tare button in Home Assistant zeros both of the load cells, I've only had to zero it a couple of times and it's only ever drifted by a couple of grams anyway.

On the cat behaviour front - I had to initially put sides up to stop her walking around the scale. With it not sliding or rocking she now uses it happily. I also had to 'encourage' her back paws on initially, if I had a larger printer I think I'd make the platform 10% bigger but she took the hint and now sits fully on the scale.

ha-esphome-scale's People

Contributors

gregsumner avatar

Watchers

 avatar

Forkers

vlastelin40

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.