Feather nRF52840 Sense Power Source
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- cagiva
- Posts: 56
- Joined: Wed Nov 04, 2015 10:00 pm
Feather nRF52840 Sense Power Source
Using CircuitPython, could it be possible to detect whether the board is being powered by a USB port or a battery?
- dastels
- Posts: 15662
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Feather nRF52840 Sense Power Source
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
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
Please be positive and constructive with your questions and comments.