gandalf15/HX711

Returning false readings

Opened this issue · 1 comments

hoping you can help me out.
I'm trying to run this code:

import RPi.GPIO as GPIO
from hx711 import HX711
from time import sleep

GPIO.setmode(GPIO.BCM)
hx = HX711(dout_pin=6, pd_sck_pin=5)

while True:
    reading = hx.get_raw_data_mean()
    print(reading)
    sleep(3)

It only returns the readings
"False"

after that and its ran again it still returns False but has this warning as well.

home/dpi/.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

False

Raspberry Pi 3B
VCC - 5V
GRD (20)
DOUT - GPIO6 (6)
SCK - GPIO5 (18)
(none of the other things in the box are hoked up. that's part of a different project)

any advice?
IMG_6142
IMG_6143
IMG_6146
IMG_6147

Did you solve it? It is giving me the same error