Skip to content

Releases: sparkfun/SparkFun_Qwiic_Scale_NAU7802_Arduino_Library

Version 1.0.6

29 Oct 15:20
e15210f
Compare
Choose a tag to compare

This release:

  • Version bump - using branch main
  • Corrects a comment in the code - thank you @dankamongmen #12

Version 1.0.5

26 Feb 10:28
e6b91f8
Compare
Choose a tag to compare

This release:

  • Updates the examples so they use 115200 baud
  • Updates Example2 so the EEPROM storage will work correctly on ESP32
  • Updates the type for getReading and zeroOffset to int32_t
    • long will work on most platforms but int32_t is more correct
  • Sets the default zeroOffset to zero and the default calibrationFactor to 1.0
    • This prevents Not A Number divide-by-zero errors before calibration
  • Adds a default LDO ramp delay of 250ms to give the LDO (AVDD) time to ramp to the correct voltage
    • This can be changed if needed with setLDORampDelay
  • Adds new methods to make it easier to access the NAU7802's 24-bit signed and 32-bit registers
    • Adds get24BitRegister, set24BitRegister, get32BitRegister, set32BitRegister
    • Adds helper methods setChannel1Offset, getChannel1Offset, setChannel1Gain, getChannel1Gain to make it easy to read and change the Channel 1 offset and gain registers
  • Updates calibrateAFE so the calibration type can be defined
    • calibrateAFE(NAU7802_CALMOD_OFFSET) will perform an external offset calibration
  • Adds a timeout parameter for calculateZeroOffset, calculateCalibrationFactor, getWeight and getAverage
    • Previously this was hard coded to 1000ms and could result in divide-by-zero errors if the sample rate * number of samples exceeded this
  • Adds Example7 which shows how to calibrate the scale using External calibration
    • This sets the NAU7802's offset register to the measured (zero weight) value
    • The NAU7802 then performs the offset subtraction instead of the library. Although, strictly, the library still does it too - but the library zeroOffset can be left as zero and calculateZeroOffset becomes unnecessary
    • This may provide better performance over the default Internal calibration
    • The example also shows how to change the LDO voltage. 3.0V is a better choice for Qwiic systems. The default is 3.3V which means the LDO isn't actually regulating; AVDD sits at about 3.25V
    • EEPROM works correctly on ESP32

v1.0.4

03 Jan 19:35
Compare
Choose a tag to compare

Add average amount to getWeight()

v1.0.3

17 Sep 17:44
Compare
Choose a tag to compare

Add non-block calibration

v1.0.2

01 Jul 16:00
Compare
Choose a tag to compare

Fix signed-ness of 24-bit reading.

v1.0.1

21 Jun 22:37
Compare
Choose a tag to compare

Remove old/bad example.

v1.0.0

05 Apr 20:37
Compare
Choose a tag to compare
Readme image update