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)
hoping you can help me out. I'm trying to run this code:
It only returns the readings "False"
after that and its ran again it still returns False but has this warning as well.
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?