hx711-mpython
Micropython driver for the HX711 24-Bit Analog-to-Digital Converter
Latest version supports:
- retrieving data from the channel 'A' with gain 128 and 64, the channel 'B' with gain 32 in a raw form and a form converted from the two's complement.
- sending "power off" sequence to switch device to the power-saving mode.
- sending "power on" sequence with the gain saved before the "power off".
- checking if the device is ready for the data retrieval.
Example for the ESP8266:
Refer to the example folder. It can permorm tare and set a ratio to change the raw input.
D_OUT pin is connected to the GPIO 5
PD_SCK pin is connected to the GPIO 4
Using internal HX711 oscillator, so ESP8266's frequency is set to 160000000
from scales import Scales
scale = Scales(d_out=4, pd_sck=5)
scale.reset()
scale.tare()
while True:
if scale.is_ready():
val = scale.stable_value()
print(val)
sleep_us(500)
Release files for hx711-micropython-impementation 0.0.2
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_micropython_impementation-0.0.2.tar.gz | 2.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hx711_micropython_impementation-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.5 kB
Release files / hx711_micropython_impementation-0.0.2.tar.gz
| Download URL | hx711_micropython_impementation-0.0.2.tar.gz |
|---|---|
| Size | 2.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
229c89253093070f493010b712ee1ea6fc80b966e4f73885d717c5b94fdfa31c
|
|
BLAKE2b-256 checksum How to use checksums |
0b54f408ad833ce1c329d67b9b25aeafe26a99a0db9f248fdfa6ec087054b111
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|
Release files / hx711_micropython_impementation-0.0.2-py3-none-any.whl
| Download URL | hx711_micropython_impementation-0.0.2-py3-none-any.whl |
|---|---|
| Size | 2.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
62865cefa2a1a812567f0f52fff3b1ee42749313fbd8c27fcc8b459cfd2fc612
|
|
BLAKE2b-256 checksum How to use checksums |
d554c529728c9728d26e2e1e8c93e0dd5c29ef078a460761152eb94ea3e344e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.11.7
|