Re: ADS1115 16-Bit ADC - 4 Channel with Progrmmable Gain Amplifier
I've run into some problems with the ADS1115 using the ADS1015 library and the single ended example program. It works fine with the 1015. When I swap out the board for the 1115 the program runs, but reports only the data from A0 for all 4 channels, e.g.
for 3.3 volts on AIN0 and any input on the others. It is likewise identical on all 4 at about 181 for AIN0 floating.
A little searching shows it's a timing problem in the library.
// Wait for the conversion to complete
is not a long enough wait. A little trial and error suggests delay(8) is long enough, but I don't know if that extends to the other acquisition modes. That's a lot slower than the 860 Hz in the catalog, but that's probably for continuous conversion mode.