Feather nRF52840 Sense Power Source

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
cagiva
 
Posts: 56
Joined: Wed Nov 04, 2015 10:00 pm

Feather nRF52840 Sense Power Source

Post by cagiva »

Using CircuitPython, could it be possible to detect whether the board is being powered by a USB port or a battery?

User avatar
dastels
 
Posts: 15662
Joined: Tue Oct 20, 2015 3:22 pm

Re: Feather nRF52840 Sense Power Source

Post by dastels »

Not as the board comes. There is a voltage divider connected to A6 that lets you read the battery voltage, but that has no connection to the USB 5v line.

You could add something similar with the voltage on the USB pin. Reading it would tell you if there was 5v on the pin (and thus power from the USB connector).

Dave

Locked
Please be positive and constructive with your questions and comments.

Return to “Feather - Adafruit's lightweight platform”