Author Topic: Need guidance to build UPS DC correctly (Tiny scale)  (Read 704 times)

0 Members and 1 Guest are viewing this topic.

Offline BlebekblebekTopic starter

  • Newbie
  • Posts: 4
  • Country: id
Need guidance to build UPS DC correctly (Tiny scale)
« on: July 22, 2021, 02:52:59 am »
I need help to point what's wrong in the build or what's necessary to change, because I don't want my house to be burned down.

I recently stumbled upon UPS DC DIY on youtube, while most build are using Lithium batteries, I'm using lead acid battery, the reason is I can't get any batteries shipped by plane.
What I want is no delay UPS, I look for modules that I think necessary, and starts to build it.
Here's a simple chart of what I build
V1


after few days, I realized while I was getting what I want, the bypass line is not really powering 100% load when the power is on, so battery is also being drained, and being switch all the time between adapter and battery.
I've read few comments that doing this bypass model, and they said this schematic is dangerous because of that, even with diodes in between (I genuinely have no idea is that true or false).

So, I look for more information, someone point add relay.
V2


So when the power is on, adapter fully used 100%, and when power is off, battery starts kick in, the issue with this obviously, there's a delay because of the switching and the router is going to be rebooted.

I haven't build v2 yet, need to order relay switch and probably wait a week to be arrived, other than that is there any other method for no delay switching, I've tried to find guide on youtube, but most video are from India, and most of them don't speak english.



 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9018
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Need guidance to build UPS DC correctly (Tiny scale)
« Reply #1 on: July 22, 2021, 03:07:45 am »
You're overcomplicating things, all you need is a 13.8V power supply with current limit and optionally a low voltage cutout.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline BlebekblebekTopic starter

  • Newbie
  • Posts: 4
  • Country: id
Re: Need guidance to build UPS DC correctly (Tiny scale)
« Reply #2 on: July 22, 2021, 03:18:08 am »
Isn't that what I did? looking and buying for exact 13.8v power supply is more expensive than buying $3 step up module and use existing 12v adapter, however that didn't address the battery usage when power is on, I just want to be on stand by mode when power is on so the battery could last longer.
 

Offline NiHaoMike

  • Super Contributor
  • ***
  • Posts: 9018
  • Country: us
  • "Don't turn it on - Take it apart!"
    • Facebook Page
Re: Need guidance to build UPS DC correctly (Tiny scale)
« Reply #3 on: July 22, 2021, 03:31:22 am »
13.8V is a "float charge" meaning it will maintain the battery at full charge and power the load at the same time.
Cryptocurrency has taught me to love math and at the same time be baffled by it.

Cryptocurrency lesson 0: Altcoins and Bitcoin are not the same thing.
 

Offline BlebekblebekTopic starter

  • Newbie
  • Posts: 4
  • Country: id
Re: Need guidance to build UPS DC correctly (Tiny scale)
« Reply #4 on: July 22, 2021, 04:05:21 am »
Yes, that's what I thought too, until I read somewhere (and it was said by multiple person) floating charge is fine but only within period of time, but if it's going to be on 24/7 it will degrade battery life significantly, again I have no idea if this was true or false.

I've seen more simpler schematic by using cheap 10a solar charge controller which only cost about $3, but lot's of comments their battery is dead within 3-6months.
 

Offline T3sl4co1l

  • Super Contributor
  • ***
  • Posts: 21686
  • Country: us
  • Expert, Analog Electronics, PCB Layout, EMC
    • Seven Transistor Labs
Re: Need guidance to build UPS DC correctly (Tiny scale)
« Reply #5 on: July 22, 2021, 04:21:23 am »
Not quite; you show a much higher charge voltage and several diodes.

Basically, the diodes aren't needed, the charger needs to handle the full load (4A, not a 2A step-up), and the charger needs to be a lower nominal voltage (so as to not overcook the battery).

The LV cutoff can be present regardless -- before or after the final diode(s) -- because as long as the charger is around, duh, sufficient output voltage is available. :)


It... makes me think about ways of thinking:

One way of approaching a problem, is to list all of the possible states, and assume they are exclusive; then the solution is a state machine which takes inputs, and transitions between those states conditionally.  This is a common trope just in ordinary life I think (do this, do that, etc.; do/don't do that other thingy if you have the stuff to do it, etc...).  It's also specific to software (procedural).  But it misses facts about the underlying systems, or components, or requirements.

So there's another approach, which is to cut through the state machine, and see what the lowest, basest, simplest realization is, and understand it in terms of the components used to build it.

We think of batteries as charging, idling, discharging, etc.; so we are tempted to think about implementing all those as discrete states, and so we toss in so many diodes and switches and controllers to do that.

But the battery really doesn't care, it's just a pile of gloop with wires stuck into it. :D  Charging and discharging are just two regions of a continuum variable, the terminal current.


What if we normally power the load from a power supply, and just happen to shove a battery in there?  Well, we do want to check that the power supply doesn't draw any power from the battery -- which is usually the case (the PSU's output stage is typically just diodes).  We also need to check that the supply can deliver full load current, so we aren't accidentally discharging the battery even while we have full power available.  (Or perhaps we do, because we want to supply peak loads at higher capacity than we have available otherwise?)  Finally, we need to check that the battery's rated charge and discharge cycles are compatible with this kind of treatment.  Which for lead acid, is absolutely fine.

We might consider a more complicated circuit for Li ion, where the charge current should be limited (and, I think they're not recommended for float duty?, but it can be done); or for NiMH, where the charge voltage is indeterminate (they cannot be floated, they'll take no charge, or overheat and dry out).

For that case, we should use a self-cycling charger, and that's it for the battery (well, and undervoltage or overcurrent protection on the load side).  Then we effectively wire the battery in parallel with the main power supply, using a wired-OR controller (or diodes if we don't mind the voltage drop).  For this to work, the power supply must be higher than the battery voltage.  The charger can be powered by the main power supply; simply check that there's no condition where the load is powered through the battery and charger (probably slowing or wasting charge, and costing efficiency from the extra power stage).

For a power supply comparable to or lower than the battery voltage, a wired-OR controller won't work, and active switchover is necessary.  The load should be tolerant of momentary dropouts (might be microseconds to milliseconds), while the switch operates.  Presumably the switch will be triggered by lack of POWERGOOD from the supply.  This has a negative resistance characteristic (when the switchover occurs, power supply output voltage momentarily dips as it adjusts to the new load; which can trigger POWERGOOD dropping momentarily, which triggers..), so the whole loop must be checked out carefully to ensure stable operation.  Delays might be built in to account for those response times, and a possible consequence is simply that the load may need to tolerate dropouts.

Basically, this whole mess of a process is why laptops typically use 18-20V supplies, and 14V battery packs.  The changeover is seamless and passive, you can just unplug and walk off with it.

Tim
Seven Transistor Labs, LLC
Electronic design, from concept to prototype.
Bringing a project to life?  Send me a message!
 

Offline BlebekblebekTopic starter

  • Newbie
  • Posts: 4
  • Country: id
Re: Need guidance to build UPS DC correctly (Tiny scale)
« Reply #6 on: July 22, 2021, 08:07:03 am »
Okay, so my first attempt was correct then.



I've replaced 2a step up with 10a step up
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf