This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Ryuji,
In this case the full-scale input voltage range is +/- 4.096V (or 8.192V total) divided by the total bits available from the ADC. 8.192V/4096 = 2mV per LSB. Keep in mind that you cannot apply more than 0.3V more than the supply voltage. So even though your range is up to 4.096V you can only measure up to 3.6V maximum. Also you lose one bit of dynamic range when measuring single ended.
Best regards,
Bob B
Hello Bob san,
Asaka-san,
The typical ADC transfer function is:
Output Code = AIN/VREF*2^(n-1) where n is the number of bits in the system. As the ADS1015 does not have a typical reference value, you would use the full-scale value. For your configuration the result is:
Output Code = AIN/4.096V*2^(11) and for 3.3V the output code is 1650 (and 1650 times 2mV = 3.3V.) 1650 is 0x672 or b011001110010. Keep in mind that the ADS1015 measures differentially, and a single ended measurement reduces the range to 1/2 of the total available codes. On the positive side of the range the measurement is from 0 to 2047 codes. If the MSB is high, then you have a negative value returned.
Best regards,
Bob B