HX711
HX711 copied to clipboard
Tare is unsuccessful ERROR
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
Does anyone have an idea why this is happening ?
@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