ADS1115 [KY-053] Analog to I2C Converter Documentation
1. Introduction
The ADS1115 [KY-053] Analog to I2C Converter is a high-precision, 16-bit analog-to-digital converter (ADC) module. It is designed to interface analog signals with digital systems, such as microcontrollers, via the I2C communication protocol. This module is particularly useful for applications requiring precise analog signal measurements, such as sensors, instrumentation, and data acquisition systems.
The ADS1115 is equipped with four analog input channels, which can be configured as single-ended inputs or differential pairs. It also features a programmable gain amplifier (PGA) for handling a wide range of input voltages. The module is compact, easy to use, and compatible with popular development boards like the Arduino UNO and Raspberry Pi.
Common Applications
- Sensor data acquisition (e.g., temperature, pressure, light sensors)
- Battery monitoring and management
- Industrial process control
- Precision voltage measurement
- IoT devices requiring analog signal processing
2. Technical Specifications
The following table outlines the key technical details of the ADS1115 [KY-053]:
Pin Configuration
The ADS1115 [KY-053] module has the following pinout:
3. Usage Instructions
Connecting the ADS1115 to an Arduino UNO
To use the ADS1115 with an Arduino UNO, follow these steps:
Wiring the Module:
- Connect the VCC pin of the ADS1115 to the 5V pin on the Arduino.
- Connect the GND pin of the ADS1115 to the GND pin on the Arduino.
- Connect the SCL pin of the ADS1115 to the A5 pin on the Arduino (I2C clock line).
- Connect the SDA pin of the ADS1115 to the A4 pin on the Arduino (I2C data line).
- Optionally, connect the ADDR pin to GND (default I2C address: 0x48).
Install Required Libraries:
- Install the Adafruit ADS1X15 library in the Arduino IDE. Go to
Sketch > Include Library > Manage Libraries, search for "Adafruit ADS1X15", and install it.
Write and Upload Code:
- Use the example code below to read analog values from the ADS1115.
Example Code: Reading Analog Values
#include <Wire.h>
#include <Adafruit_ADS1X15.h>
// Create an ADS1115 object
Adafruit_ADS1115 ads;
void setup() {
Serial.begin(9600); // Initialize serial communication at 9600 baud
Serial.println("Initializing ADS1115...");
// Initialize the ADS1115
if (!ads.begin()) {
Serial.println("Failed to initialize ADS1115. Check connections!");
while (1); // Halt execution if initialization fails
}
Serial.println("ADS1115 initialized successfully!");
}
void loop() {
// Read analog values from all four channels
int16_t adc0 = ads.readADC_SingleEnded(0); // Channel 0
int16_t adc1 = ads.readADC_SingleEnded(1); // Channel 1
int16_t adc2 = ads.readADC_SingleEnded(2); // Channel 2
int16_t adc3 = ads.readADC_SingleEnded(3); // Channel 3
// Print the readings to the Serial Monitor
Serial.print("ADC0: "); Serial.print(adc0);
Serial.print(" | ADC1: "); Serial.print(adc1);
Serial.print(" | ADC2: "); Serial.print(adc2);
Serial.print(" | ADC3: "); Serial.println(adc3);
delay(1000); // Wait 1 second before the next reading
}
Important Considerations
- Ensure the input voltage to the analog channels does not exceed the configured PGA range.
- Use appropriate pull-up resistors (typically 4.7kΩ) on the SDA and SCL lines if not already present.
- The I2C address can be changed by connecting the ADDR pin to GND, VCC, SCL, or SDA.
4. Troubleshooting and FAQs
Common Issues and Solutions
Frequently Asked Questions
Q1: Can I use the ADS1115 with a 3.3V microcontroller?
A1: Yes, the ADS1115 operates at 2.0V to 5.5V, making it compatible with both 3.3V and 5V systems.
Q2: How do I measure differential signals?
A2: Configure the ADS1115 to read differential pairs (e.g., A0-A1 or A2-A3) using the readADC_Differential function in the Adafruit library.
Q3: What is the maximum sampling rate of the ADS1115?
A3: The maximum sampling rate is 860 samples per second (SPS), configurable via the library.
Q4: Can I connect multiple ADS1115 modules to the same I2C bus?
A4: Yes, you can connect up to four ADS1115 modules by configuring their I2C addresses using the ADDR pin.
This documentation provides a comprehensive guide to using the ADS1115 [KY-053] module. Whether you're a beginner or an experienced user, this guide will help you integrate the ADS1115 into your projects with ease.