I am having trouble getting some load sensors to work with my raspberry pi. I am going off some instructions I found on GitHub, but every time I run example.py It says to “Put known weight on the scale and then press Enter”, and when I do that it says “Cannot calculate mean value. Try debug mode. Variable reading: 0”
The current connection is:
VCC – 5v
GRND – GRND
DATA – Pin 21
CLK – Pin 20
I have tried using 3.3v also since the datasheet for the hx711 said it was fine to no avail. I also tried running a different HX711 code that still gave me 0. I even changed to GPIO Pins 5 and 6 (Both within the code and physically with the same result)
I also tried switching the red and white wires that run from my load sensor into the combinator boards combinator board since the electrical diagram said sometimes the red and white wires may have switched the red and white wire on the combinator board. I put the link that said that below
https://learn.sparkfun.com/tutorials/lo … 1560690169
Maybe the HX711 I purchased and the code I’m trying to use aren’t compatible since it references a dout and a sck pin, but the HX711 read DATA and CLK. I have seen other models of the HX711 that read dout and sck.
Any help would be very much appreciated
My setup is:
Hx711: https://www.sparkfun.com/products/13879
4 Load Sensors: https://www.sparkfun.com/products/10245
Load Combinator: https://www.sparkfun.com/products/13878
Code (under python3 folder): https://github.com/gandalf15/HX711