Additionally, you can connect your input voltages to the available inputs on the screw terminals and or use the
breakout pins on the board. Make sure the connections are fully inserted and that you are ground looping your
inputs. Ground looping can be done by connecting the ground of your input to the ground of the ADC.
Arduino Library
Note: This example assumes you are using the latest version of the Arduino IDE on your desktop. If this is
your first time using Arduino, please review our tutorial on installing the Arduino IDE. If you have not
previously installed an Arduino library, please check out our installation guide.
We've written a library to easily get setup and take readings from the Qwiic 12-bit ADC. However, before we jump
into getting data from the sensor, let's take a closer look at the available functions in the library. You can install this
library through the Arduino Library Manager. Search for SparkFun ADS1015 Arduino Library and you should be
able to install the latest version. If you prefer manually downloading the libraries from the GitHub repository, you
can grab them here:
DOWNLOAD THE SPARKFUN ADS1015 ARDUINO LIBRARY (ZIP)
Let's get started by looking at the functions that set up the Qwiic 12-bit ADC.
Setup and Settings
or
.begin()
.begin(i2caddr, Wire)
Creates a connection to an I C device over the I C bus using the default or specified I C address.
Input: i2caddr
Example setup with RedBoard Qwiic.
Example of attaching inputs through screw terminals.
2
2
2
Need help?
Do you have a question about the Qwiic 12-Bit ADC and is the answer not in the manual?
Questions and answers