ADS1219 24-bit ADC - Getting started
Arduino library
To install the Arduino library, use the Arduino library manager or download it from the GitHub repository:
ADS1219 24-bit ADC Arduino library
ADS1219 24-bit ADC Arduino library by Soldered
First time Arduino user? For a detailed tutorial on getting started with Arduino, see this section of our docs:
Getting started with Arduino
A full, comprehensive tutorial on how to fully set up and upload code for the first time on an Arduino board, from scratch!
Connections
Below is an example connection diagram for NULA Deepsleep. These pins will be used in the examples throughout this documentation.
If your board has a Qwiic connector, connect it directly to the ADS1219 board with a Qwiic cable:
| NULA Deepsleep | ADS1219 Board |
|---|---|
| Qwiic | Qwiic |
If you prefer, you can use I2C pins to manually connect:
| NULA Deepsleep | ADS1219 Board |
|---|---|
| IO8 (Default SDA pin) | SDA |
| IO9 (Default SCL pin) | SCL |
| VCC | VCC |
| GND | GND |
Using a custom I2C address
All the examples in this documentation assume the default address (0x40). If you've configured the address jumpers for a different address, pass it into the constructor instead of using the default one:
#include <Wire.h>
#include "ADS1219-SOLDERED.h"
// Replace 0x44 with whichever address your jumpers are set to
ADS1219_Soldered adc(0x44);
ADS1219_Soldered()
Constructs the ADC object for a given I2C address and Wire instance.
Returns value: None (constructor).
Function parameters:
| Type | Name | Description |
|---|---|---|
uint8_t | addr | I2C address to use, matching your A0/A1 jumper configuration. Defaults to 0x40 if not given. |
TwoWire & | wire | Optional. The Wire instance to use, for boards with multiple I2C buses. Defaults to Wire. |