The last example, Example6_DisplayMillivolts.ino, will work much like Example1_ReadBasic.ino, however it
also will print out the reading in millivolts. To convert from the raw reading values from the ADC, you must use a
multiplier to get to millivolts. This changes depending on what gain setting you are using. For ease of use, we have
included a function in the library that looks at your current gain settings, and then returns the correct multiplier you
need. It is named
.
.getMultiplier()
Code highlight of .getMultiplier() in Example 6.
In the following serial monitor readout, you can see me turning the on-board trimpot on A3 (from 0V up to 3.3V) as
it prints out both the return values and millivolts.
Serial Monitor readout for Example 6.
Troubleshooting
Here are a few tips for troubleshooting this device.
Power
If you are not using the Qwiic system, make sure your supply voltage is within the electrical specifications of the
ADS1015.
Connections
Make sure your inputs have proper contacts and that you are grounding looping them. If you are using the inputs
in differential mode, be sure to cut the potentiometer jumper for accurate readings.
Inputs Voltages
Need help?
Do you have a question about the Qwiic 12-Bit ADC and is the answer not in the manual?
Questions and answers