Skip to main content

Synapse SNAPpy library for HX711 Load Cell Amplifier/ADC

snappy-hx711 is a SNAPpy library that reads values from the HX711 24-bit ADC with amplifier designed to measure load cells.

Installation

For use in Portal

Download and extract the latest release zip file to Portal’s snappyImages directory. By default, this is located at ...\Documents\Portal\snappyImages on Windows.

For use with SNAPbuild/SNAPtoolbelt

The easiest way to install snappy-hx711 for use with SNAPbuild or SNAPtoolbelt is using pip:

pip install snappy-hx711

Alternatively you can download the source, extract it, and install it:

python setup.py install

Usage

To use the snappy-hx711 library functions, first import the library and call hx711_begin() with the pin numbers connected to the HX711. Then you can start taking measurements:

from snappy_hx711 import *

CLOCK_PIN = 6
DATA_PIN = 7

@setHook(HOOK_INIT)
def init():
    # Must be called before making measurements:
    hx711_begin(CLOCK_PIN, DATA_PIN)

def take_a_measurement():
    # Returns a 3-byte string:
    return hx711_read()

Metadata

Release files for snappy-hx711 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for snappy-hx711 1.0.0
File Size Uploaded
snappy-hx711-1.0.0.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for snappy-hx711 1.0.0
File Interpreter ABI Platform
snappy_hx711-1.0.0-py2-none-any.whl Python 2 none any Details

Total release size: 5.9 kB

Release files / snappy-hx711-1.0.0.tar.gz

Download URL snappy-hx711-1.0.0.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
5fe5e82bd6cf1b793c14b287fd93003885fe65c58f6c1f9012e2f3a0353c5279
BLAKE2b-256 checksum
How to use checksums
5670e7cb25f41820cde4617c99d7eba9d364eb5e661338d6716bf5ed816d24d2
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/2.7.14

Release files / snappy_hx711-1.0.0-py2-none-any.whl

Download URL snappy_hx711-1.0.0-py2-none-any.whl
Size 3.2 kB
Tags Python 2
SHA-256 checksum
How to use checksums
c5c3b80767ea15ebb82baf9e9dc18104444ce5f23a6d9a495a28ac7a87114602
BLAKE2b-256 checksum
How to use checksums
b5e21c1de8ad156aa026753ccc3f01cd80dd1029821daf1c2eeb212e2234fbf5
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/2.7.14

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page