firmware icon indicating copy to clipboard operation
firmware copied to clipboard

[Bug]: Heltec tracker (and possibly all esp32-s3 targets) not properly setting usbPower detection

Open geeksville opened this issue 1 year ago • 1 comments

Category

Hardware Compatibility

Hardware

Heltec Wireless Tracker

Firmware Version

2.5.? (a private build from today's master)

Description

While working on something else I noticed that the heltec tracker isn't properly setting usbPowered detection to true when we are hooked to USB power. This will break many things ;-)

Alas - I can't look at this now but if no one has looked at it by October please pass it to me and I'll work on it.

Relevant log output

DEBUG | 00:34:59 46 [Power] Battery: usbPower=0, isCharging=0, batMv=3694, batPct=47

geeksville avatar Aug 29 '24 00:08 geeksville

The Heltec Wireless Tracker is something unique, also in this regard. While charging, the reported voltage on the ADC pin is not the VIN voltage, but still the battery voltage but roughly 0.2V or so higher. So you cannot determine from the ADC pin alone whether the battery is charging. However, you can monitor the battery charge this way! So.. mixed bag, but Tracker-only.

StevenCellist avatar Sep 02 '24 21:09 StevenCellist

With the Tracker v2 coming out soon, general consensus in the community that the power hardware in this module is a bit dodgy, and no progress on this issue for more than a year, it's time to close this issue to clean up the list.

fifieldt avatar Oct 08 '25 08:10 fifieldt