Access to VBATT voltage on Artemis Nano

I’m wondering if there’s a straightforward way to get access to the current voltage from the LIPO JST connector on an Artemis Nano within an arduino program. I see VBATT in the schematic but I don’t know how to access that within an arduino program. Basically, I’d like to implement some kind of feedback as to the charge level of my LIPO so that I know when to connect to USB power to charge.

I’ve looked through the source for variant.h/cpp and the “board support package” source looking for anything alluding to VIN or VBATT but no luck.

Thanks.

Unfortunately there isn’t any circuitry on the Nano that allows access to the battery voltage.

You’d need to either build a voltage divider and connect it’s output to an analog input, or you could use something like the [LiPo Fuel Gauge and talk to that over Qwiic/I2C to get battery voltage.](SparkFun LiPo Fuel Gauge - TOL-20680 - SparkFun Electronics)

Thanks for the input. That solves that problem (or at least, it clarifies it).