Set the gain so the signal fits the range. Inputs must stay between ground and the supply voltage.
What the message means
The converter reports raw counts. The gain setting decides the full-scale voltage and the size of one count.
Fix it in this order
- Run an I2C scan and note the address set by the ADDR pin.
- Choose the gain for your signal, such as 4.096 V full scale.
- Convert counts to volts with the matching step size.
- Keep every input between ground and VDD.
- Use single-ended channels with a common ground.
- Average readings to reduce noise.
Why it happens
The ADS1115 returns raw counts, and the voltage per count depends on the gain setting. With the default range of about 6.144 V a count is 0.1875 mV, and a different gain changes it. Its address depends on the ADDR pin: ground gives 0x48 and VDD gives 0x49. An input must stay within the supply range.
Set the gain to match your signal, convert counts with the right factor, and run an I2C scanner to check the address.
If you see this, do this
| You see | Do this |
|---|---|
| Reads full scale | Gain too high for the signal. |
| Not found | Address or wiring. |
Related
Last reviewed: November 2026. These are the usual causes and the order that finds them fastest. Test on your own board; clones and cables differ.
Why this happens
The ADS1115 is a 16-bit signed converter with a programmable gain amplifier. The gain setting chooses the full-scale range, and the value of one count follows from it: full scale divided by 32768. At 6.144 V it is 187.5 microvolts per count; at 4.096 V, 125 microvolts; at 2.048 V, 62.5 microvolts; at 1.024 V, 31.25 microvolts. If your code uses the factor for a different range, every voltage is scaled wrongly.
The range is the largest signal the converter can measure, not a limit on what it can survive. An input must stay between ground and the supply voltage, about 0.3 V beyond at most per the data sheet. The address depends on the ADDR pin: ground gives 0x48, VDD 0x49, SDA 0x4A and SCL 0x4B.
How to confirm the cause
- Run an I2C scanner and compare the address with the code.
- Short the input to ground; the raw value should be a few counts at most.
- Measure a battery with a multimeter and compare with the computed voltage.
- Check for a raw value of 32767 or -32768; that is a clipped signal and needs a larger range.
Worked example
Arithmetic: a raw value of 16000 at 4.096 V is 16000 x 125 microvolts = 2.0 V. At 6.144 V the same count means 3.0 V.
#include <Adafruit_ADS1X15.h>
Adafruit_ADS1115 ads;
void setup() {
Serial.begin(115200);
ads.setGain(GAIN_ONE); // +/-4.096 V, 125 uV per count
if (!ads.begin(0x48)) Serial.println("ADS1115 not found");
}
void loop() {
int16_t raw = ads.readADC_SingleEnded(0);
Serial.println(ads.computeVolts(raw), 4);
delay(500);
}Common mistakes
- Leaving the ADDR pin floating.
- Using a 12-bit factor from an ADS1015 example.
- Feeding a signal above VDD, which can damage the input.
- Mixing up single-ended channels with a differential pair.
If this did not fix it
- Check noise: lower the data rate or average several readings.
- Check the ground between the source and the module.
- Check the I2C wiring and pull-up resistors.