HX711 icon indicating copy to clipboard operation
HX711 copied to clipboard

New idea to detect missing weight

Open MBENKI opened this issue 4 years ago • 1 comments

Hello everyone, I have this little project using the Raspberry scale, it consists of weighing a product (a bag of flour for example), if the original bag weighed 1kg and i decide to take 200g from it and put it back on the scale, and get a message that 200g are missing from the product weighed. I would like to ask if someone could help me implement this solution or give me an idea on how should i proceed? does this have to be part of the files in the python3 folder or does this has to be done in a different file or even in a different language? i wanted also to include a simple lcd screen to display the weigh at all times (should be connected to raspberry pi of course). Any help is welcome thank you so much.

MBENKI avatar Sep 23 '20 12:09 MBENKI

@MBENKI I can't help much because you're asking a lot. You could adapt the example scripts to track the weight continuously and calculate some sort of baseline. When the scale measurement stay flat for a while with a delta from the baseline of a certain amount, you could trigger your weight-change logic, whatever that would be for you. This would all be in python. Beyond what I just mentioned, you will need to watch some Raspberry Pi tutorials to figure out how to do it, that's beyond the extent of this library. There are probably some LCD screen tutorials out there.

I don't support this codeset, but I just made a new version of my own that samples multiple HX711 in parallel, if you're interested in trying that out: https://pypi.org/project/hx711-multi/ https://github.com/Morrious/hx711-multi

james-e-morris avatar Jun 08 '21 01:06 james-e-morris