Skip to main content

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 DeepsleepADS1219 Board
QwiicQwiic
ℹ️

If you prefer, you can use I2C pins to manually connect:

NULA DeepsleepADS1219 Board
IO8 (Default SDA pin)SDA
IO9 (Default SCL pin)SCL
VCCVCC
GNDGND

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:

TypeNameDescription
uint8_taddrI2C address to use, matching your A0/A1 jumper configuration. Defaults to 0x40 if not given.
TwoWire &wireOptional. The Wire instance to use, for boards with multiple I2C buses. Defaults to Wire.
ℹ️
This is most useful when running multiple ADS1219 boards on the same I2C bus, each one needs its own object constructed with its own address.