Skip to content

Releases: adafruit/CircuitPython_NAU7802

2.1.1 - add README pip3 instructions

28 Nov 18:59
dbf17dd
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.1.0...2.1.1

2.1.0 - add selection of polling rate

28 Nov 18:54
f668c62
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 2.0.0...2.1.0

2.0.0 - Added to Adafruit Bundle

23 May 02:04
366845d
Compare
Choose a tag to compare

Added library to Adafruit CircuitPython Bundle.

To use in CircuitPython, simply install the Adafruit CircuitPython Bundle.

To use in CPython, pip3 install cedargrove-nau7802.

Read the docs for info on how to use it.

Channel Change Improvements

14 Jan 20:18
Compare
Choose a tag to compare

Two issues were addressed in this release.

The first was ghosting of unread data left in the device data register after changing channels making it appear that the data was coming from the newly selected channel.

The second was a change to how the Cycle Ready (CR) flag is monitored after a channel change. The channel change process takes at least five conversion cycles (approximately 500ms) to fully prepare the ADC with channel offset and calibration settings. When switching from channel two to channel one, the CR flag will indicate that the channel switch settling had elapsed but is still in progress. Clearing the data buffer prior to changing channels fixes this issue, but the flag monitoring logic was set to only return from the channel change function when the CR flag indicated completion, creating a potential endless loop if timing isn't perfect. The CR check now times out after one second and returns False if the CR flag wasn't set.

Tested on a Clue and PyPortal Titano with the CedarGrove dual-channel NAU7802 wing as well as the Adafruit NAU7802 Stemma breakout.

include fixed settling time for channel change

13 Jan 18:49
Compare
Choose a tag to compare
1.6.3

include default settling time for channel change

reduce sample averaging count in example

13 Jan 17:43
Compare
Choose a tag to compare
1.6.2

Update nau7802_simpletest.py

Reset default sample rate; update simpletest example

13 Jan 17:20
Compare
Choose a tag to compare

Restored the default ADC conversion rate to 10 samples per second after eliminating a racing condition caused by a fixed delay in the driver's channel setter. The setter now waits for the Cycle Ready (CR) flag. Successfully tested channel setting for all conversion rates. Note: high sample rates are inherently less accurate but may be useful for some applications.

Updated nau7802_simpletest.py to wait for the CR flag when acquiring data.

Both changes are expected to be transparent to all existing applications.

Also remove the outdated Clue Scale examples. They have been replaced by the Adafruit Clue Scale guide.

Thank you to @Swicano for discovering the initial issue in nau7802_simpletest.py that revealed the timing problem.

Change default sample rate; update simpletest example

13 Jan 07:58
f5dd504
Compare
Choose a tag to compare

Increased the default ADC conversion rate from 10 to 20 samples per second to eliminate a racing error where the conversion completion (Cycle Ready) flag wasn't consistently set. The error made it appear that the ADC data wasn't available. Successfully tested conversion rates up to 320 sps. Note: high sample rates are inherently less accurate but may be useful for some applications.

Fixed an error in the simpletest example was causing the example to continuously read the ADC data, ignoring the conversion completion (Cycle Ready) flag.

Both changes are expected to be transparent to all existing applications.

Thank you to @Swicano for discovering the issue in simpletest that revealed the timing problem.

fix incorrect cookiecutter repo address insertion

26 Oct 02:30
Compare
Choose a tag to compare
1.5.9

Merge branch 'main' of https://github.com/CedarGroveStudios/CircuitPy…

refactor for learning guide

31 Jul 20:49
Compare
Choose a tag to compare
1.5.8

refactor for learning guide