HX711
Description
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.
Getting started
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))
License
- Free software: MIT license
Credits
I used https://github.com/gandalf15/HX711/ as base.
This package was created with Cookiecutter_ and the audreyr/cookiecutter-pypackage_ project template.
Release files for hx711 1.1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hx711-1.1.2.1.tar.gz | 16.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hx711-1.1.2.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 21.7 kB
Release files / hx711-1.1.2.1.tar.gz
| Download URL | hx711-1.1.2.1.tar.gz |
|---|---|
| Size | 16.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19a1bbea2ec32966d13d422cc905b8648201887b7d05349449b87d4b8f2379e8
|
|
BLAKE2b-256 checksum How to use checksums |
535d605f910fe7a41aab7b645d834d2d3718a61699013f554f2d4063d2ce74ce
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / hx711-1.1.2.1-py2.py3-none-any.whl
| Download URL | hx711-1.1.2.1-py2.py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
eb5d1765dcd93acea9f7b24f939736839e2be23263a2bfed9adaca216f273c2d
|
|
BLAKE2b-256 checksum How to use checksums |
1afd7e9252bfd60b0667ee319dc4543ec6768ed8facae0784622c0b24a65a72b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |