HX711 icon indicating copy to clipboard operation
HX711 copied to clipboard

Tare is unsuccessful ERROR

Open Klaudia19 opened this issue 2 years ago • 1 comments

Hi, I Have problem with running example.py as it is giving me thiss error:

/home/klaudia/.local/lib/python3.9/site-packages/hx711.py:60: RuntimeWarning: This channel is already in use, continuing anyway. Use GPIO.setwarnings(False) to disable warnings. GPIO.setup(self._pd_sck, GPIO.OUT) # pin _pd_sck is output only True Traceback (most recent call last): File "/home/klaudia/Desktop/kb/HX711/python_examples/example.py", line 16, in raise ValueError('Tare is unsuccessful.') ValueError: Tare is unsuccessful.

Does anyone have an idea why this is happening ?

Klaudia19 avatar Dec 27 '22 16:12 Klaudia19

@Klaudia19 the tare can fail if the measurements coming in are bad, or have a lot of noise. Usually a failed tare/zero is because of bad wiring.

You can check out my raw GPIO example of my similar repo at the link below. You can see if running raw GPIO commands helps you identify the issue. You'll need to make sure you have the measurement pin and the clock/sck pin wired properly.

https://github.com/Morrious/hx711-multi/blob/prod/tests/raw_gpio.py

james-e-morris avatar Dec 27 '22 16:12 james-e-morris