Skip to content

adafruit/CircuitPython_NAU7802

Folders and files

NameName
Last commit message
Last commit date

Latest commit

dbf17dd · Nov 28, 2023

History

93 Commits
Feb 7, 2023
Apr 23, 2022
May 17, 2023
Jan 13, 2023
Sep 14, 2022
May 17, 2023
May 17, 2023
May 17, 2023
May 17, 2023
May 17, 2023
Sep 2, 2022
Oct 30, 2023
May 17, 2023
Aug 6, 2023
May 17, 2023
May 17, 2023
Jul 25, 2022

Repository files navigation

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

Installing for Blinka with Pip

pip3 install cedargrove-nau7802

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.