Battery voltage

The Argon device does not have a fuel gauge chip, however you can determine the voltage of the LiPo battery, if present.

float voltage = analogRead(BATT) * 0.0011224;

The constant 0.0011224 is based on the voltage divider circuit (R1 = 806K, R2 = 2M) that lowers the 3.6V LiPo battery output to a value that can be read by the ADC.


This technique applies only to the Argon. For the Boron, Electron, and E Series, see the FuelGauge, below.

The Photon and P1 don't have built-in support for a battery.