When I’m connected 3s 2200mAh battery via power module and run the ADC example it gives battery voltage value as 1.13V (adc.read(2)). After that I checked battery voltage and it shows 12.55V.So how we convert adc reading to get actual battery voltage???
By using a multiplier.
12.55 / 1.13 = 11.10619469
@schuermannsebastian Thanks for the quick reply. Problem is that is linear always???
I do not know the exact specs, but it should be linear enough for our usage.
@schuermannsebastian Thank you very much