Skip to main content

A CircuitPython driver class for the NAU7802 24-bit ADC

Project description

Introduction

Discord Build Status Code Style: Black

A CircuitPython driver class for the NAU7802 24-bit ADC.

Dependencies

This driver depends on:

Please ensure all dependencies are available on the CircuitPython filesystem. This is easily achieved by downloading the Adafruit library and driver bundle or individual libraries can be installed using circup.

Installing to a Connected CircuitPython Device with Circup

Make sure that you have circup installed in your Python environment. Install it with the following command if necessary:

pip3 install circup

With circup installed and your CircuitPython device connected use the following command to install:

circup install cedargrove_nau7802

Or the following command to update an existing version:

circup update

Usage Example

import board
from cedargrove_nau7802 import NAU7802

# Instantiate NAU7802 ADC
nau7802 = NAU7802(board.I2C(), address=0x2A, active_channels=2)

nau7802_simpletest.py and other examples can be found in the examples folder.

Documentation

NAU7802 CircuitPython Driver API Class Description

Clue Coffee Scale (Adafruit Learning Guide)

CedarGrove NAU7802 FeatherWing OSH Park Project (16-SOIC version)

CedarGrove NAU7802 FeatherWing OSH Park Project (16-DIP version)

https://github.com/CedarGroveStudios/CircuitPython_NAU7802/blob/main/media/glamor_shot.jpeg https://github.com/CedarGroveStudios/CircuitPython_NAU7802/blob/main/media/Clue_scale_trim.png

Needing a calibration weight? The U.S. Mint coin specifications might have some information that could help – if you have some spare change.

Contributing

Contributions are welcome! Please read our Code of Conduct before contributing to help this project be welcoming to everyone.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cedargrove-nau7802-2.0.0.tar.gz (11.0 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cedargrove_nau7802-2.0.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file cedargrove-nau7802-2.0.0.tar.gz.

File metadata

  • Download URL: cedargrove-nau7802-2.0.0.tar.gz
  • Upload date:
  • Size: 11.0 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.3

File hashes

Hashes for cedargrove-nau7802-2.0.0.tar.gz
Algorithm Hash digest
SHA256 721882d98d58ed3a86c14e0f7587c396ee296a57717e219a40d8f5521361a587
MD5 bb1e5498c5a9e9665b95ec3d970adc79
BLAKE2b-256 a1f4c903c36a002add8f12492f60474a70e2101d75da02c92663d48b1662811e

See more details on using hashes here.

File details

Details for the file cedargrove_nau7802-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for cedargrove_nau7802-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b798eff02a453fe0d45c8499e73b8cc82499f760ba8b34ac67fe70d4d08fa2ee
MD5 96c9d674bce3266072517536e9bef49b
BLAKE2b-256 895aed527045f145f70ff51b60677918dd3e11a6f644ea70b63c4ddd08e8eb36

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page