Hey, where I was mention voltage divider???
Quote Originally Posted by pedja089
But you can only use R3 and D1 connected to ADC pin.
That isn't voltage divider.
Biased D1 will produce almost constant voltage on ADC input pin. By keeping constant voltage on ADC input, and changing reference voltage(Vdd)
Quote Originally Posted by pedja089
for larger Vdd ADC result will be lower, and for lower Vdd result will bi higher.
At least try to read response when you ask for help. That is all from me...