Here is a web link regarding using LED forward voltage with ADC : link
![]() |
The battery voltage measured 1.76V as the RED LED forward voltage. |
![]() |
Left:calculated the VDD=3.1V Middle:Circuit Diagram Right: Calculation |
The ADC of LED forward voltage 1.76V got 581 counts. 581 = (1.76/ 3.1)*1024
The Vdd estimation: Vdd = (1024*1.76 )/ ADC-count