Charging status on Huzzah ESP32

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
thesassyindian
 
Posts: 7
Joined: Sat Sep 04, 2021 3:14 am

Charging status on Huzzah ESP32

Post by thesassyindian »

Hello folks,
Is there a way to detect whether a charger is plugged in and charging a battery on the Huzzah ESP32?

I am considering connecting one of the legs of the CHG LED to an unused GPIO on the board and reading the status that way.

Is there a cleaner way to do this?

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Charging status on Huzzah ESP32

Post by mikeysklar »

Giving up a GPIO and reading off the charge LED seems like the easiest solution to me. The other options get more complicated like reading off the USB pin which means converting it down to 3v3 to detect plugin and then reading off the BAT pin for a battery detection. The A13 pin will give you a half battery voltage value so you can check that pin periodically to get an idea of charge.

https://learn.adafruit.com/adafruit-huz ... ry-3122383

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

Return to “Microcontrollers”