SparkFun Forums 

Where electronics enthusiasts find answers.

Hardware or product specific questions are best asked here.
User avatar
By rustycoat
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.

User avatar
By TS-Chris
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

long long title how many chars? lets see 123 ok more? yes 60

We have created lots of YouTube videos just so you can achieve [...]

Another post test yes yes yes or no, maybe ni? :-/

The best flat phpBB theme around. Period. Fine craftmanship and [...]

Do you need a super MOD? Well here it is. chew on this

All you need is right here. Content tag, SEO, listing, Pizza and spaghetti [...]

Lasagna on me this time ok? I got plenty of cash

this should be fantastic. but what about links,images, bbcodes etc etc? [...]