SparkFun Forums 

Where electronics enthusiasts find answers.

Hardware or product specific questions are best asked here.
User avatar
By rustycoat
#211493
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.
User avatar
By TS-Chris
#211560
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.
 Topic permissions

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum