1

Digilent PMOD AD5, AD7193 Accuracy Issues

In this project i built a, let´s call it „precision“, scale.
Resolution 0.001 Gramms, Accuracy 0.01 Gramms, 2 Hz output Data Rate

The Hardware:
Arduino Nano
Pmod Ad5
LT 3042
OLED Display

The Libary:
https://github.com/annem/AD7193 thanks Anne m

A very handy tool to manipulate specific bits and instant get hexadecimal / decimal values:
http://calc.50x.eu/index.html

Ratiometric Measurement

The ADC is hooked up in a ratiometric setup, which means that the Vref of the ADC is tied to the reference voltage of the load cell. This decreases the noise of the measurement since the ADC is comparing the „noisy“ Ain agains the same „noisy“ Vref. As you can see the noise cancels out.

Transducer/Sensor Excitation and Measurement Techniques | Analog Devices
Ratiometric configuration of the Load cell

Source: Transducer/Sensor Excitation and Measurement Techniques
https://www.analog.com/en/analog-dialogue/articles/transducer-sensor-excitation-and-measurement-techniques.html

Accuracy Issues AD7193

At the beginning of the project i had quite a hard time figuring out why my noise values are far off what is shown in the datasheet. To measure the noise i tied A1&A2 together, put the device in differential measuring mode and plotted my ADC Counts. Settings: Gain = 1, Chop Disabled, Sinc4 Filter supplyvoltage of 4.7 volts. (please dont ask why i am using 4.7 volts … =))

Count Distribution show in the Datasheet – Span roughly 60 Counts
My count distribution is far off, they vary between 8388588 and 8388830, span ~ 350

What finally resolved my accuracy issue was modifing the Git Libary.

Original Part:

registerMap[1] &= 0x1FFFFF; //keep all bit values except Channel bits
registerMap[1] |= 0x800000; // internal zero scale calibration

Modified Part:

registerMap[1] |= 0x801000; // internal zero scale calibration

Working Registers:

seems like you may have to specify the used channel (a1,a2 in my case) to calibrate the ADC correctly.
After changing the libary my counts were much better – just slightly off the values in the Datasheet. (Next time you´ll get a better looking Gaußian – stopped the sampling to early ..)

Histogram ADC Counts – Gain1, Chopping 0, Averaging 0, Sinc4 Filter, Output Data Rate 2400Hz

I will update this entry if i have some spare time and provide you the code.

1 Gedanke zu „Digilent PMOD AD5, AD7193 Accuracy Issues“

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.