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

Returning false readings #53

Open
Raspihelp opened this issue Apr 25, 2023 · 1 comment
Open

Returning false readings #53

Raspihelp opened this issue Apr 25, 2023 · 1 comment

Comments

@Raspihelp
Copy link

Raspihelp commented Apr 25, 2023

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

@guiosorio15
Copy link

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

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