Skip to content
This repository has been archived by the owner on Jul 27, 2023. It is now read-only.

Tare is unsuccessful ERROR #50

Open
Klaudia19 opened this issue Dec 27, 2022 · 1 comment
Open

Tare is unsuccessful ERROR #50

Klaudia19 opened this issue Dec 27, 2022 · 1 comment

Comments

@Klaudia19
Copy link

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 Klaudia19 changed the title Tare is unsuccessful Tare is unsuccessful ERROR Dec 27, 2022
@james-e-morris
Copy link
Contributor

@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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants