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?
Charging status on Huzzah ESP32
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- mikeysklar
- Posts: 13936
- Joined: Mon Aug 01, 2016 8:10 pm
Re: Charging status on Huzzah ESP32
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
https://learn.adafruit.com/adafruit-huz ... ry-3122383
Please be positive and constructive with your questions and comments.