Nano ble v2:: arduino IDE:: get current power supply



I wants to know the best (or at least one) way to get the voltage input.

Long history: I am reading from analog input using the normal ADC reference, the voltage is going down in time and I need scale the analog result using the real voltage input.



Hi psigelo,
regarding to this , you can refer to the tutorial about ReadAnalogVoltage


I mean the power supply voltage, thanks anyway, for example my battery is changing voltage from 3.1V to 2.7V in some time and for the correct functionality I wants to know the batery voltage always.


You can follow the article below, I was measuring lipo voltage for nrf51 using this technique, and internal reference.