Power distribution plan for Arduino Project using TP4056 USB charging unit and the XL6009 buck boost board

Hi everyone,
I need to ask for some help. I am a computer science Ph.D. student using an Arduino system to build a tangible user interface. I am by no means an expert and am really here to humbly ask for assistance.
I am busy with the power distribution. I have watched hours of tutorials and ended up building a rechargeable power bank using a LiON battery and the TP4056 USB-C charging unit. I next added an XL6009 buck-boost board and this is where things got a little weird. All the tutorials wire the out + to the in the + on the XL6009 board. I cannot do that, it fries the MOSFET in the USB charging unit. I have had to invert the wires... then it works fine?

I am really confused as to why that happens. I have attached a diagram of what I have working so far. There are likely a lot of things here that can be better and fixed. Any and all advice is welcome. I am mainly worried about swapping over the + and - wires from the USB C charging module to the XL6009 buck-boost converter.

]

Mislabelling perhaps?
Using a power supply, have you verified the polarities of the buckboost and its operation?

Can you provide links to the charger module and XL6009 module you are using? It's a bit confusing because the datasheet for the XL6009 says the minimum input voltage is 5V, which the TP4056 could not provide.

Thank you both so much for your replies. It turns out that my battery holder was indeed mislabelled. The red and black wires were inversed ( I feel really silly for taking this long to realize this !) I would still like any advice on wether this is a feasable and safe solution ? I have used the following components:
Buck boost converter: https://www.diyelectronics.co.za/store/switch-mode-modules/2489-xl6009-dc-dc-adjustable-buck-boost-module.html?search_query=buck+boost&results=17

TP4056 charging unit: https://www.diyelectronics.co.za/store/battery-charger/1195-1a-lithium-battery-charging-module-with-protection.html?search_query=TP4056+Li-Po+charger+with+protection&results=1
Then just standard bus bars to split out the wiring. From the docs (which I might be reading incorrectly because I am very new to this) it seems like the XL6009 board will take 3.8V as input.

Thank you again !

Sarina

There you are mistaken, check the datasheet

That depends on how you intent to use it. The TP4056 does not allow for load-sharing !! Do not power the charger, with the battery connected and at the same time draw current from the system.
Also the unit that you have has it's charging current set at 1A, (by means of resistor R3 on your board) , what size battery do you intend to use ? And well, the input voltage isn't enough.

Ah I see what you mean, can you recommend a different board to convert voltages? (3v, 5v and 12v). This project is a smart activity quilt that uses a lot of sensors in order to help mom's in Africa with early childhood development for children. I am using a lot of touch, knock , and tilt sensors, some gyroscopes and magnetic sensors , a voice recorder and a speaker. The Arduino makes the quilt fully interactive and sends the sensor data to thingspeak for analysis. I am also using the ESP8266 Wifi module to create a wlan that sends stats on how the kids are progressing through activities to a mobile app for the moms. I need to power all of this, and make sure it can be charged since my research community is in rural South Africa where electricity is not always a given. Thank you again for your help !

Here is an example of what one piece of the quilt might look like. The electronics components is encased in a waterproof component , all the wires are covered in shrink , I have a hard shut off as well as a moisture sensor that will shut down the quilt if anything feels damp.
quilt

Apologies, I forgot to mention that I am using a 3.7V li-po battery

Yeah i figured as much, but what size ?

You can use a MT3608 based unit, but for the input voltage you should make sure that the charging will only happen when the converter is disconnected.

I found that datasheet too, but then I found this version, which shows 3.6V input:

https://www.nikom.biz/pdf/XL6009.pdf

So presumably the module makers used the 3.6V version, which allows them to claim 3.8V input.

well yes in that case you are fine, still make sure No load sharing through the TP4056 !!
If you charge the battery while draining current from the system, the TP4056 won't be able to determine when the battery is full, and it won't stop charging even if it is full, which may cause your battery to eh.. Explode, now we don't want that. And you still haven't given indication of the size of the battery ?

Thank you so much for your reply. I am using the following battery:

and I have this one:

I am not 100% sure what you mean by size (apologies) do you mean Amps?

Again, if anyone could recommend improvements - that would be greatly appreciated.

Sarina

Thank you so much for your reply ShermanP :slight_smile:

Do you perhaps have any pointers for me, or any improvements I can make? I really really want to do a good job of this.

I don't have any experience with this buck/boost regulator, and I don't understand your circuit. So I'm not the one to be giving you suggestions.

With size i mean the actual capacity, which is defined in AmpHour, so for the 1st that is 2.6 Ah and for the 2nd 3.35Ah. Both are fine to charge with the maximum 1A that the TP4056 unit provides. You could increase the charging current without issue, but the TP4056 has a 1A maximum.
Standard charging time for a LiPo is the current that is required to fully charge the battery in 1 Hour, but as far as i know it is safe to double that (charging the battery in half an hour)
So the charging is safe, and as long as you can ensure that the circuit does not draw any current during the charging process, all is good. If you do want to use the circuit while it is plugged in you need to devise a 'load-sharing circuit, the simplest solution 2 diodes, but the voltage-drop may drop the battery voltage out of the range for the buck-booster's input voltage. There is a method that you could use that uses mosfets, but that is a little more complex. The simplest is not to use the circuit while it is plugged in,

Thank you for taking the time to reply :slight_smile:

Thank you so much for your reply! Based on your reply, can I ask another potentially not-so-enlightened question? I currently have a slide switch between the battery and the TP4056 and nothing between the TP4056 and the XL6009. Would it be better to add the on of the switch between the TP4056 and the XL6009 to ensure that there is no current being pulled while charging happens?

Yes !! this is required. In fact there should always be a switch between them, and the switch between the battery and the TP4056 is obsolete. The TP4056 does not draw current from the battery, but the buck converter (and whatever is beyond it) does.

Yep, that makes perfect sense :slight_smile:

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.