A library to drive a HX711 load cell amplifier on a Raspberry Pi
This library allows to drive a HX711 load cess amplifier with a Raspberry Pi. It just provides the capabilities:
- to set channel an gain and
- to read raw values
This package requires RPi.GPIO to be installed in Python 3.
Just install by
pip3 install HX711. A basic usage example is given below:
#!/usr/bin/python3 from hx711 import HX711 try: hx711 = HX711( dout_pin=5, pd_sck_pin=6, channel='A', gain=64 ) hx711.reset() # Before we start, reset the HX711 (not obligate) measures = hx711.get_raw_data(num_measures=3) finally: GPIO.cleanup() # always do a GPIO cleanup in your scripts! print("\n".join(measures))
- Free software: MIT license
I used https://github.com/gandalf15/HX711/ as base.
This package was created with Cookiecutter_ and the
audreyr/cookiecutter-pypackage_ project template.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size||File type||Python version||Upload date||Hashes|
|Filename, size hx711-22.214.171.124-py3-none-any.whl (5.2 kB)||File type Wheel||Python version py3||Upload date||Hashes View hashes|
|Filename, size hx711-126.96.36.199.tar.gz (8.6 kB)||File type Source||Python version None||Upload date||Hashes View hashes|