Ok I'm having a senior moment I've clearly misunderstood how prog gain works
I've been banging away at this all afternoon and not getting anywhere.
Tried 2 different ADS1115 (16bit)
I'm tying to measure 0 to 3.3v analog in
So started with gain setting is 4096 +/- 4.096V
So if I understand this correctly an input voltage of 2.048 should give 50% of range 32768 and 4.096v would give 65536
I can't get an val that correlates in any way.
I've tried other gains same result.
Any ideas welcomed with thanks.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Ok I'm having a senior moment I've clearly misunderstood how prog gain works
I've been banging away at this all afternoon and not getting anywhere.
Tried 2 different ADS1115 (16bit)
I'm tying to measure 0 to 3.3v analog in
So started with gain setting is 4096 +/- 4.096V
So if I understand this correctly an input voltage of 2.048 should give 50% of range 32768 and 4.096v would give 65536
I can't get an val that correlates in any way.
I've tried other gains same result.
Any ideas welcomed with thanks.
Lawrence