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.
Metadata
Release files for hx711 1.1.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| hx711-1.1.2.3.tar.gz | 8.6 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hx711-1.1.2.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.8 kB
Release files / hx711-1.1.2.3.tar.gz
| Download URL | hx711-1.1.2.3.tar.gz |
|---|---|
| Size | 8.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d1b6c968d3b2bc21214c574d28869c96f3b591d787097bcda93b9e7b91d60a4b
|
|
BLAKE2b-256 checksum How to use checksums |
4f91333b188a67f3bdf5975c38443f1f569325aba7183bb7987b272ba16a76d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.6
|
Release files / hx711-1.1.2.3-py3-none-any.whl
| Download URL | hx711-1.1.2.3-py3-none-any.whl |
|---|---|
| Size | 5.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0ee0cfc91ad033d1c50353f2caadfcda8c4b74d5248f6f45628524b55723d426
|
|
BLAKE2b-256 checksum How to use checksums |
b0451409bd0c3bde918c01a70eb0fde00cfae85b33c45554e8d2665dcd91196b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.6
|
Security for hx711 1.1.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.