

The ADS1115 is a precision, low-power, 16-bit analog-to-digital converter (ADC) with an integrated programmable gain amplifier (PGA). It is designed for applications requiring high-resolution measurements, such as portable instrumentation, battery monitoring, temperature sensing, and factory automation. The ADS1115 can be used in single-ended or differential mode, making it versatile for various signal acquisition needs.








| Pin Number | Pin Name | Description | 
|---|---|---|
| 1 | VDD | Power supply (2.0 V to 5.5 V) | 
| 2 | GND | Ground reference for power supply | 
| 3 | SCL | I2C clock input | 
| 4 | SDA | I2C data input/output | 
| 5 | ADDR | Address select pin for I2C interface | 
| 6 | ALERT/RDY | Alert/Ready pin (configurable) | 
| 7 | A0 | Analog input channel 0 | 
| 8 | A1 | Analog input channel 1 | 
| 9 | A2 | Analog input channel 2 | 
| 10 | A3 | Analog input channel 3 | 
Below is an example code snippet for interfacing the ADS1115 with an Arduino UNO using the Adafruit ADS1X15 library.
#include <Wire.h>
#include <Adafruit_ADS1015.h>
Adafruit_ADS1115 ads;  // Create an instance of the ADS1115
void setup(void) {
  Serial.begin(9600);
  ads.begin();  // Initialize the ADS1115
}
void loop(void) {
  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
}
Remember to install the Adafruit ADS1X15 library through the Arduino Library Manager before compiling the code. This example reads from channel 0 of the ADS1115 and prints the result to the Serial Monitor.
Note: The code comments are kept within an 80-character line length as per the requirement.