dangrie158 / opencushion

A c++ driver and a node binding for the HX711 Load Cell Amp
MIT License
14 stars 17 forks source link

No readings when running sudo node test.js #10

Open mrzephros opened 5 years ago

mrzephros commented 5 years ago

I'm trying out the test.js from the examples folder in this library, however, I couldn't get any readings... I'm just getting 0s all the ways... is there any tutorial for this library? I'm using 4 load cells btw...

mrzephros commented 5 years ago

Anyone help?

brendjuan commented 3 years ago

Did you figure this out? I just ran into it as well

brendjuan commented 3 years ago

My issue was the pin numbering. You have to use GPIO pin numbering from WiringPi GPIO not the actual GPIO pin numbering... https://pinout.xyz/pinout/wiringpi I used this to figure it out. Trial and error until I figured it out

christiaanwesterbeek commented 1 year ago

To clarify. You have for example:

Then you need to enter the physical pin numbering: 29 and 31.

BTW: I also had only 0 readings. Turned out I had the gnd and vcc from the HX711 connected to the Raspberry PI the other way around. Once I changed that, I got readings.