Page 1 of 1

External battery charging when connected to USB-C power

Posted: Sat Mar 23, 2024 8:24 am
by wingsmelb
It looks like my ESP32 is charging the external battery when the ESP32 is also connected to USB-C power?

Re: External battery charging when connected to USB-C power

Posted: Sun Mar 24, 2024 2:24 am
by ESP_Sprite
You need to be a bit more specific. What hardware are you using exactly, how have you connected it, what battery do you have connected?

Re: External battery charging when connected to USB-C power

Posted: Sun Mar 24, 2024 10:38 am
by wingsmelb
ESP_Sprite wrote:
Sun Mar 24, 2024 2:24 am
You need to be a bit more specific. What hardware are you using exactly, how have you connected it, what battery do you have connected?
Just 2 normal rechargeable battery in a battery holder connected to 3v3 and ground PINs

Re: External battery charging when connected to USB-C power

Posted: Mon Mar 25, 2024 1:47 am
by ESP_Sprite
wingsmelb wrote:
Sun Mar 24, 2024 10:38 am
ESP_Sprite wrote:
Sun Mar 24, 2024 2:24 am
You need to be a bit more specific. What hardware are you using exactly, how have you connected it, what battery do you have connected?
Just 2 normal rechargeable battery in a battery holder connected to 3v3 and ground PINs
...
You're not really helping. What's a 'normal' rechargable battery in this context (LiIon, NiMh, ...?) and what is the hardware on the ESP32 side? Devboard (and if so, which one), custom board, ...?

Assuming something like a DevkitC and NiMh batteries, the 3.3V pin of those types of devboards is directly connected to the on-board LDO, which outputs that 3.3V on that pin if connected to 5V. So it will 'recharge' the batteries (in quotes, because it will just push 3.3V at whatever current the batteries will accept, which is not a good way of charging and can be dangerous to the batteries). You can work around this by putting something like a schottky-diode in series with the batteries, but you'll always have the issue that the 2.4V generated by two LiIon batteries is always going to be under what the flash on your devboard is likely specced for. You'd be better off buying a board that has integrated capabilities to run off/charge a LiIon cell and using that.

Re: External battery charging when connected to USB-C power

Posted: Mon Mar 25, 2024 3:20 am
by wingsmelb
ESP_Sprite wrote:
Mon Mar 25, 2024 1:47 am
...
You're not really helping. What's a 'normal' rechargable battery in this context (LiIon, NiMh, ...?) and what is the hardware on the ESP32 side? Devboard (and if so, which one), custom board, ...?

Assuming something like a DevkitC and NiMh batteries, the 3.3V pin of those types of devboards is directly connected to the on-board LDO, which outputs that 3.3V on that pin if connected to 5V. So it will 'recharge' the batteries (in quotes, because it will just push 3.3V at whatever current the batteries will accept, which is not a good way of charging and can be dangerous to the batteries). You can work around this by putting something like a schottky-diode in series with the batteries, but you'll always have the issue that the 2.4V generated by two LiIon batteries is always going to be under what the flash on your devboard is likely specced for. You'd be better off buying a board that has integrated capabilities to run off/charge a LiIon cell and using that.
Thanks for your reply!