sparkfun / SparkFun_Thing_Plus_ESP32_WROOM_C

ESP32-WROOM Thing Plus with USB-C.
https://docs.sparkfun.com/SparkFun_Thing_Plus_ESP32_WROOM_C/
Other
5 stars 6 forks source link

High Leakage From VBAT to VBUS #3

Open DominicChm opened 5 months ago

DominicChm commented 5 months ago

This issue is spawned from the Sparkfun forum post here.

I've noticed the Thing Plus USB-C has an issue with high leakage from VBATT to VBUS when only the battery is connected. From testing I've done on my own board, the issue appears to be that D4 has extremely poor reverse leakage (along the lines of the Infineon BAT60A) which allows a non-negligible amount of current to flow through R7 when on battery.

Schematic ![image](https://github.com/sparkfun/ESP32_Thing_Plus/assets/45153623/eb4e5251-40e9-4394-b8ff-93a0f8bf0611)

On my board, this results in VBUS being pulled to 2.5V when on battery power when it really should be ~0V. Given the 10K pulldown on this rail, it seems about 250uA is reverse leaking through the diode. The ESP32's deep sleep current is specced at ~10uA, so this leakage represents an obstacle to battery-powered projects.

This issue also prevents effectively recognizing when power is coming from USB vs when it's coming from battery b/c the rail never drops low enough to be registered as a digital LOW by the ESP32 (.25v). In my application this prevents me from setting the ESP to wake from deep sleep when USB power is supplied. I've mitigated by adding a 500ohm resistor to pull the rail low harder but I really wish this wasn't a problem in the first place.

Whatever diode is in the BOM really ought to be replaced with one that has a better reverse leakage spec. It looks like there's probably enough space on the PCB to even include one with a larger package which should allow the existing spec to be met without the reverse leakage problem.

DominicChm commented 5 months ago

Update: Bodged in a random large(r) diode from a scrap PCB I had lying around and the issue is resolved as suspected. I now measure .0002v under the same conditions as above. Original diode is to the right of the bodged diode for reference.

image

brhoff720 commented 5 months ago

Thanks Dominic! Glad you were able to get the performance you needed.

We appreciate the feedback on this. We'll need to evaluate and likely get a bom change made,. It might be a bit before it makes it into production.

Thanks again!

On Thu, Jun 6, 2024 at 6:17 PM Dominic C. @.***> wrote:

Update: Bodged in a random large(r) diode from a scrap PCB I had lying around and the issue is resolved as suspected. I now measure .0002v under the same conditions as above. Original diode is to the right of the bodged diode for reference.

image.png (view on web) https://github.com/sparkfun/SparkFun_Thing_Plus_ESP32_WROOM_C/assets/45153623/aacad3f4-d9f2-4247-be06-e41a85fc7101

— Reply to this email directly, view it on GitHub https://github.com/sparkfun/SparkFun_Thing_Plus_ESP32_WROOM_C/issues/3#issuecomment-2153491673, or unsubscribe https://github.com/notifications/unsubscribe-auth/AKLJJKG75GAIBGBZ5ISMUYLZGDNWLAVCNFSM6AAAAABIXZPR6SVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNJTGQ4TCNRXGM . You are receiving this because you are subscribed to this thread.Message ID: @.*** .com>