Is this the correct way to wire up a 5v circuit to use battery backup?

CancunManny

Jul 21, 2024
3
Joined
Jul 21, 2024
Messages
3
So I started to learn how to make my own UPS watching youtube videos, and now that I am looking deeper into it seems many if not most of these videos are wrong. I know very little, almost nothing about electronics, but it seems those that do "know" often criticize those that share YT videos but no one seems to reference a good video source or a good schematic we can look at.

Using different sources I came up with this schematic, would this be considered the "right" way of setting everything up?

Schematic_1BMSBatterySystem_2024-07-21 (1).png

The HLK10M05 is an AC to DC 5v 2A converter
The TP4056 module doesn't include a BMS, it provides cc and cv
The BMS I don't have an actual model number for, it is a 1s 3A BMS
The 18650 battery is unprotected
The SX1308 Step UP Booster would be set to offer 5v after the D2 Schotty Diode
The IRF9540 Power MOSFET prevents load on battery when main power source is present

Is this the correct way to set up a 5v project that includes battery backup?
 

Delta Prime

Jul 29, 2020
2,987
Joined
Jul 29, 2020
Messages
2,987
othing about electronics, but it seems those that do "know" often criticize those that share YT videos but no one seems to reference a good video source or a good schematic we can look at
Whatever happened to books ? I don't know anyone who doesn't have their own library.
What you need to do is to start with schematic layouts I'm pretty sure Google is working...
 

CancunManny

Jul 21, 2024
3
Joined
Jul 21, 2024
Messages
3
Whatever happened to books ? I don't know anyone who doesn't have their own library.
What you need to do is to start with schematic layouts I'm pretty sure Google is working...
Hola Delta. I seem to be the opposite of you, I don't know anyone that has their own library.
I have tried to look up schematic layouts, different videos, etc. but much of the info I find doesn't add up or contradicts itself. I know often for good results on searches having correct keywords make a HUGE difference. Also the source it comes from is important.
Perhaps you could do a quick search for me using the correct key words and post the links to some good schematics I can look at. I could look at 20 schematics myself and not be able to tell which one is the correct one.
 

Bluejets

Oct 5, 2014
7,374
Joined
Oct 5, 2014
Messages
7,374
You really need to look at how a P-channel mosfet is used as a high side switch.
Plenty of info on the internet.
 

CancunManny

Jul 21, 2024
3
Joined
Jul 21, 2024
Messages
3
You really need to look at how a P-channel mosfet is used as a high side switch.
Plenty of info on the internet.
Thank you for sending me in the right track. Seems I had my S and my D of the MOSFET backwards. From another forum it was suggested my MOSFET was in the wrong place as it allowed for the booster to continue drawing power from the battery when MOSFET off. I now have the mosfet connected to the boosters Vin, so there should be a very very small load on battery when MOSFET is off.

This is what I have now

Schematic_1BMSBatterySystem_2024-07-21 (2).png
 
Top