tatobari / hx711py

HX711 Python Library for Raspberry Pi.
Apache License 2.0
215 stars 153 forks source link

No tare #35

Open DavidMolevelt opened 4 years ago

DavidMolevelt commented 4 years ago

Dear, I am looking for a change in the program. Once the scale is set, tare is known, it should run at startup without rescale. Is it possible to change this?

girardcarillo commented 3 years ago

Hi, I think I have kind of the same question. I would tare only at first use, and then be able to run again the code without taring again. I suppose we can edit the hx711.py ? Thanks a lot :)

girardcarillo commented 3 years ago

What I have found: go to hx711.py and fine the method tare_A() After the line self.set_offset_A(value) add print(value) Save the file and with nothing on your scale run the example.py code. The printed value is what you need to save somewhere if you don't want to tare again.

I'm not saying this is a solution to our issue, but a way to find the solution.

If you have any suggestion how to proceed, I would be glad to hear it :)

GC