How can I charge the battery faster than 150 mA on the Xiao RA4M1?

I have a Xiao RA4M1 connected to a 5000 mAh battery via the BAT+ and BAT- pins. It works great and charges the battery when I connect the USBC. The problem is that it is unbearably slow, 150 mA. I need to charge at least at 1A. What is the simplest way to make this happen? The only requisite is that it must be charged using the USBC port of the Xiao board.

Maybe a TP4056 could fix my issues, but I don’t know how to make it all work together. Can I simply connect the battery to both the BAT pins of the Xiao so that it powers it, and also to the BAT pin of the TP4056 so basically I have two chargers at the same time (150 mA + 1A) or will this make things explode?

What’s the recommended way to power the Xiao with a big battery that also needs to be charged via the USBC of the Xiao?

Connecting two chargers to the battery is dangerous.

https://www.aliexpress.us/item/3256808606364019.html

Not to disagree with my friend…MF and with saying that dealing with battery is dangerious and dont use this with production, I will say this

It appears the “Charging” circuit of the XIAO is not that sophisticated… its basicly a 4.7v voltage regulator/gate 4.7v←>4.7v

so i would say try the unit you discribed… according to the link above, schematic, i would say

2 options power thru XIAO USB or Power thru TP USB

try hook the XIAO bottom to the Load Side, provide 18650 and power the device via TP unit

or connect 5V pin and GND of XIAO to USB Power IN on the TP

I was going to draw a schematic… but i couldnt scrape the image from the internet

I have not done any testing, so please report back your findings, but my basic opinion is the under battery pins can equally be used to power the XIAO, and this is the better way to do so, rather than using the 5V pin, or the (needs regulated) 3v3 which many people have had problems with.

also be awair without a diode, you could backfeed your USB, so do not connect to a computer or sensitive device… if using data, disconect the power at pin 5v for maximum safety for upstream devices. you dont want a high current backfeed.

I assume you are powering with a fast usb charger, do not leave the experiment unattended watch for fire or heat.