The Adafruit ADS1115 is a high-precision, 16-bit Analog-to-Digital Converter (ADC) that operates on an I2C bus interface. It is designed to accurately convert analog signals to digital form, allowing microcontrollers and other digital systems to process real-world data such as temperature, pressure, or light intensity. The ADS1115 is particularly useful in applications requiring high-resolution measurements, such as data loggers, sensors, and precision instrumentation.
Pin Number | Pin Name | Description |
---|---|---|
1 | VDD | Power supply (2.0V to 5.5V) |
2 | GND | Ground |
3 | SCL | I2C clock |
4 | SDA | I2C data |
5 | ADDR | Address selection pin |
6 | ALERT | Alert/Ready 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 |
To use the ADS1115 with an Arduino, you can utilize the Adafruit ADS1X15 library. Here's a basic example of how to read a single-ended voltage from channel A0:
#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; // Variable to hold the ADC result
adc0 = ads.readADC_SingleEnded(0); // Read from channel 0
Serial.print("AIN0: "); Serial.println(adc0);
delay(1000); // Wait for a second
}
Q: Can the ADS1115 be used with a 3.3V system? A: Yes, the ADS1115 can operate at voltages as low as 2.0V.
Q: How do I change the I2C address of the ADS1115? A: The I2C address can be changed by connecting the ADDR pin to GND, VDD, SDA, or SCL.
Q: What is the maximum voltage that can be measured by the ADS1115? A: The maximum voltage is determined by the PGA setting, which can be up to ±6.144V.
Q: How can I use the ALERT pin? A: The ALERT pin can be configured for various functions such as a conversion ready signal or a threshold alert. Refer to the ADS1115 datasheet for detailed configuration options.
For further assistance, consult the ADS1115 datasheet and the Adafruit ADS1X15 library documentation.