- Sun May 13, 2018 12:57 am
#75908
trackerj wrote:I would suggest you to take a look at this related article where is explained in details how to add a Voltage Divider to the ESP8266 Internal ADC input to increase the ADC input range and how to calculate voltage divider ratio, etc:
ESP8266 Internal ADC – the easy way example
Very interesting articles (also read adc-1), thank you!
However the problem here, once again is:
The value read on the ADC pin multiplied by some value (ratio) should give the voltage.
In my case there's no such ratio. I'm simply applying the rule of three and it just doesn't work.
Moreover I never get a value that seems to match 1V = 1024
Res Divider ratio: 0.19047619
5.23V (0.99619V on ADC) = 865
5.12V (0.97523V on ADC) = 842
5.00V (0.95238V on ADC) = 816
4.80V (0.91428V on ADC) = 776
4.70V (0.89523V on ADC) = 758
And final note
these are values from a few days ago, I just turned on the ESP with 5.23V -> ~1V on ADC and it values returned were between 770 and 787. I'm not looking for accuracy but it doesn't seem usable at all...