Using an ADS1115 ADC: Input Limits, Gain Selection and Four-Channel Measurements
An external ADC can make a sensor project easier to measure, but more bits do not remove the need for a sound analogue interface. The ADS1115 is popular because it combines several input choices with a programmable gain amplifier and I2C communication. Its most important settings also create its most common misunderstandings.
The ADC breakout boards collection provides options for extending a microcontroller's analogue inputs. This guide focuses on configuring an ADS1115 for slowly changing sensor signals and checking whether the resulting numbers mean what you expect.
Separate the chip from the breakout
The ADS1115 breakout board brings the converter's connections to accessible pads. Confirm the supplied board's pin labels, pull-up resistors and any extra circuitry before connecting it. A chip's broad supply range does not mean the complete I2C connection is compatible with every host voltage.
Draw the sensor supply, ADC supply, grounds and signal path together. Identify where I2C pull-ups connect and what voltage the host sees when the bus is idle. If several boards share the bus, include all their pull-ups and address settings in that drawing.
Full-scale range is not an input protection rating
The Texas Instruments ADS1115 datasheet lists programmable full-scale ranges up to ±6.144 V. Selecting that range does not permit an analogue pin to exceed its allowed voltage relative to ground and VDD. Keep each input within its specified operating limits, independently of the measured difference.
For example, a 3.3 V-powered ADC is not made into a 6 V voltmeter by choosing the widest range. Use a properly designed divider or conditioning circuit for a higher signal. Consider normal operation, startup and credible fault conditions, not only the expected steady value.
The same principle applies in differential mode. Measuring a small difference between two wires does not make arbitrary voltages on those wires acceptable. Check both input voltages against the ADC's limits before connecting them.
Choose gain around the largest expected signal
A narrower full-scale range gives a smaller voltage per output count, but also clips sooner. Begin with a range that safely covers the signal's expected maximum, including offset and variation. Reduce it only after observing the actual signal and understanding the margins.
At the ±2.048 V range, the signed converter's nominal step is 62.5 µV. A raw result of 16000 therefore represents approximately 1.000 V. This is a conversion example, not a guarantee that an assembled measurement system is accurate to 62.5 µV.
If software changes the gain, its conversion scale must change too. Store the selected range with logged raw samples or convert them using the same configuration that produced them. A stale scale factor can make an otherwise stable measurement consistently wrong.
Use signed results deliberately
The ADS1115 reports signed conversion data. Preserve that sign when reading registers or using a library. A negative differential reading stored in an unsigned variable can become a very large positive number.
Check the library's return type and voltage-conversion function with known test inputs. For a low-voltage differential test, swapping the two signal inputs should reverse the indicated sign while remaining inside both pins' permitted voltage range. Do not perform this test by swapping power connections.
Label channels by their physical measurement, not only A0 or A1. A useful record contains channel configuration, range, raw result, converted value and time. That makes a wiring change visible in the data rather than hidden in a sketch comment.
Plan four channels as sequential measurements
The ADS1115 uses an input multiplexer; its four single-ended inputs are not four simultaneous converters. Texas Instruments' multi-channel measurement circuit guide shows how channel selection and single-shot conversion can be organised.
After changing the selected input, obtain a completed conversion for that configuration rather than immediately labelling an old register value as the new channel. Use the documented completion mechanism or suitable timing through your chosen library.
Suppose a project reads four slow temperature-related voltages in sequence. Record their individual acquisition times or accept the small timing offset explicitly. If the application instead compares rapidly changing phase-related signals, sequential sampling may be unsuitable even if each channel's numerical resolution looks attractive.
The maximum conversion rate is 860 samples per second for the converter, not 860 simultaneous samples per second on each of four channels. Communication, configuration and application work can reduce the achieved per-channel rate further. Measure the real schedule rather than multiplying the headline rate by four.
Investigate noise before adding decimal places
Hold the input at a stable, known low voltage and collect a series of readings. Observe their spread, any periodic variation and whether activity elsewhere in the project changes them. Then repeat with the sensor connected.
Texas Instruments' guidance on system noise and effective resolution explains why a higher-resolution ADC cannot eliminate dominant noise arriving from the signal chain. Sensor noise, grounding, supply interference and source impedance can limit the practical result.
Route analogue wiring away from switching loads and inspect the intended return path. Follow appropriate input filtering and source-drive guidance. Averaging can make random variation less visible, but it cannot correct an overloaded input or a systematic calibration error.
Validate the measurement from end to end
- Confirm the ADC and host supply and logic compatibility.
- Check each analogue pin's actual voltage against operating limits.
- Read a known input using a documented range and channel setting.
- Verify signed conversion and units against a suitable reference instrument.
- Repeat at several values across the intended range.
- Add the real sensor and test with the whole project operating.
Keep raw readings during development, including out-of-range or failed transactions as explicit status rather than plausible zero values. State the useful resolution and calibration conditions honestly. The value of an ADS1115 is not merely a longer number: it is a measurement chain whose limits and behaviour you understand.