Reading battery voltage on Argon

Given this schematic of the Argon, is the proper way to read the pin P0.05/AIN3 like this?

int32_t voltage = analogRead(BATT);

BATT is defined as pin 33 but I’m not sure what this relates to in the actual hardware.


hey, does this help?



Yep, helps confirm what I was thinking. Thanks @gusgonnet. I was just trying to map via documentation how one gets from BATT to the schematic. :-). Since BATT is just a constant at 33, wasn’t sure how 33 gets to AIN3.

1 Like

The fifth column in this table is the source of truth for that. It’s the analog input channel a GPIO is connected to. There’s one of these tables in the Device OS source for every platform:

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.