The Gravity: I2C ADS1115 16-Bit ADC Module is a high-precision analog-to-digital converter (ADC) that provides 16-bit resolution over an I2C interface. This module is ideal for microcontrollers that do not have an analog-to-digital converter or when a higher precision ADC is required. Common applications include sensor reading, data logging, and industrial automation.
Pin Number | Pin Name | Description |
---|---|---|
1 | VDD | Power supply (2.0V to 5.5V) |
2 | GND | Ground |
3 | SCL | I2C clock signal |
4 | SDA | I2C data signal |
5 | ADDR | Address selection pin (configures I2C address) |
6 | ALRT | Alert/RDY pin (optional use) |
7 | A0 | Analog input channel 0 |
8 | A1 | Analog input channel 1 |
9 | A2 | Analog input channel 2 |
10 | A3 | Analog input channel 3 |
#include <Wire.h>
#include <Adafruit_ADS1015.h>
Adafruit_ADS1115 ads; // Create an instance of the ADS1115
void setup() {
Serial.begin(9600);
ads.begin(); // Initialize the ADS1115
}
void loop() {
int16_t adc0 = ads.readADC_SingleEnded(0); // Read from channel 0
Serial.print("AIN0: "); Serial.println(adc0);
delay(1000);
}
Q: Can I use this module with a 3.3V system? A: Yes, the ADS1115 can operate at 3.3V.
Q: How do I change the I2C address? A: Connect the ADDR pin to GND, VDD, SDA, or SCL to set the address to one of four possible values.
Q: What is the maximum voltage that can be measured? A: The maximum voltage is determined by the PGA setting, which can be up to ±6.144V.
Q: Can the ADS1115 be used with Raspberry Pi? A: Yes, it can be interfaced with a Raspberry Pi using the I2C protocol.
Q: How do I use the ALRT/RDY pin? A: This pin can be used as an alert or a conversion ready signal. Consult the ADS1115 datasheet for detailed configuration instructions.