gandalf15 / HX711

Read HX711 ADC for Weigh Scales on Rasperry PIs.
BSD 3-Clause "New" or "Revised" License
114 stars 82 forks source link

how to fix "Tare unsuccessful" error #47

Open hillyuyichu opened 2 years ago

hillyuyichu commented 2 years ago

My hx711 is giving me this error. It was working. I haven't used it for a long time.

Binary value as received: 0b111111000000101000110100
Converted 2's complement value: -259532
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
Binary value as received: 0b111111111111111111111111
Converted 2's complement value: -1
From method "zero()".
get_raw_data_mean(readings) returned False.

Traceback (most recent call last):
  File "/home/pi/Downloads/0.1-OnionBot-API/utils/weigh_scale/scale_calibra.py", line 14, in <module>
    raise ValueError('Tare is unsuccessful.')
ValueError: Tare is unsuccessful.

I did tried to reinstalled it.

./.local/lib/python3.9/site-packages/hx711.py
./.local/lib/python3.9/site-packages/HX711-1.0.0.dist-info
./.local/lib/python3.9/site-packages/__pycache__/hx711.cpython-39.pyc
Klaudia19 commented 1 year ago

I have a similar problem, but for me, no values ​​are shown, only a message with tarring is printed, did you manage to fix it?