tatobari / hx711py

HX711 Python Library for Raspberry Pi.
Apache License 2.0
211 stars 153 forks source link

Implement hx711 reading with pigpio #42

Open caseypen opened 3 years ago

caseypen commented 3 years ago

Hi Tatobari,

I created an example file with the functions I used for my own project. pigpio is pre-installed in Debian, so you do not need to install it manually. Before running it, you need to start the daemon of pigpio by running the command below on your raspberrypi terminal:

sudo pigpio

Then, you can directly run it with:

python hx711_gpio.py

I do not use the function of "tare" and calibration like in your code, as our cases need to calibrate two load cells with multiple weights together. You may want to merge the methods applied in your own code. Hope it helps.