I have purchased a SparkFun Qwiic Scale - NAU7802 breakout board and I am connecting the same with Arduino Uno R3 and interfacing with LabVIEW 2019 (with LINX).
I am unable to read data from the bar type load sensors.
I am unable to find any example LabVIEW codes to help me out.
Any pointers would be appreciated. The NAU7802 data sheet is not very clear to me as to what commands I should use and the address of the registers to get the data over I2C protocol.
P.S. I have used Labview (Linx) with SHT85 sensor on I2C protocol, thanks to the detailed datasheet, it was pretty easy.
For Nau7802 I am not able to find/figure out these hex/binary commands to write to.
I tried to look above example 1, but I cant see the hex/binary commands to write to the 0x2A address. Only thing I was able to understand is that the device address is x2A (in Hex).
Example 1 does not ask the student to interpret those commands; it relies on the provided library.
You can write your own based on the register tables given in the specsheet:
I only skimmed it but think it shows a few options on page 34 (typos are the original author’s):
There are two options are necessary read a complete 24 bit ADC conversion result:
I still recommend stepping through the examples before attempting the more difficult stages.
Based on the suggestion of @brow , I have gone ahead and created a 2 wire burst mode reading of Nau7802 ADC converter using LabVIEW VI.
The hardware includes any 4 wire, bar type load cell connected to NAU7802 based Sparkfun Qwiic Scale which in turn is connected to Arduino Uno R3.
I have used Linx “plugin” in labVIEW to communicate with my Arduino Uno R3 board.
Since I cannot upload my VI (limitation of this reply box), I am sharing a “labelled” VI picture. The VI works with the default setting of ~80 Hz (sps) frequency.
Please note that in the future I will enable ways to set the sampling rate, etc.