HX711
=====
[](https://pypi.python.org/pypi/hx711)
[](https://travis-ci.org/mpibpc_mroose/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:
```python
#!/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.
=====
[](https://pypi.python.org/pypi/hx711)
[](https://travis-ci.org/mpibpc_mroose/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:
```python
#!/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.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hx711-1.1.2-py2.py3-none-any.whl.
File metadata
- Download URL: hx711-1.1.2-py2.py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4cec0dbbeca82d31f8c3e4b1315ba29c4f99d650221c46ed7667a78ee54c1930
|
|
| MD5 |
bcd6dfb6cfa8b05664afdd50c2eaad6b
|
|
| BLAKE2b-256 |
84f49f5d7d68661a2a9c677bb460074d44823170c951790e7281d216bc8c8940
|