• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Get free circuit help 24/7

  • +1000 Circuits
  • Hobby Circuits
  • Basic Circuits
  • Learn Arduino
  • Logic IC Pinouts
  • Disclaimer
You are here: Home / Mini Projects / 3 Simple DC UPS Circuits for Modem/Router

3 Simple DC UPS Circuits for Modem/Router

Last Updated on June 22, 2020 by Swagatam 255 Comments

In the following article we discuss 3 useful DC to DC uninterruptible power supply circuits or DC UPS circuits for low DC to DC uninterruptible power applications

The first idea below presents a DC UPS circuit can be used for providing back up power to modems or routers during mains failures, so that the  broadband/WiFi connection never gets interrupted. The idea was requested by Mr. Galive.

Technical Specifications

I need a circuit like,
I have two 12v dc adapter(600mA and 2A).
When input Mains is present, with the 600ma adapter i want to charge the battery(7.5AH) and with the 2A adapter i want to use my wifi router.
when the AC mains fails the battery will backup my wifi router without interruption.like UPS.
MY modem is rated as 12V 2.0A. That is why i want to use two 12v dc adapter.

The Design

Two adapters actually are not required for the proposed application. A single adapter, probably the one which is being used for charging the laptop battery may be used for charging the external battery also.

Looking at the given DC modem UPS circuit diagram we can see a simple yet interesting configuration involving a couple of diodes D1, D2, and resistor R1.

Normally a laptop charger is specified with 18V, so for charging a 12V battery this needs to be lowered to 14V. This is easily done using a transistor zener stage.

When mains is present, the voltage at D1 cathode is more positive than D2, which keeps D2 reverse biassed. This allows only D1 to conduct, supplying the voltage from the adapter to the modem.

D2 being switched OFF, the connected battery starts receiving the required charging voltage via R1 and begins getting charged in the process.

In an event AC mains fails, D1 gets switched OFF, and therefore allows D2 to conduct, enabling the battery voltage to instantly reach the modem without causing any interruptions to the network.

R1 must be selected depending upon the charging current rate of the attached battery.

A much better and improved version of the above is shown in the following diagram:

router modem DC UPS circuit

2) 6V to 220V Boost UPS Circuit

The second circuit explains a simple boost converter UPS circuit for supplying an uninterruptible power to satellite TV set top boxes so that the offline recording is never allowed to fail during power outages. The idea was requested by Mr. Aniruddha Mukherji.

Technical Specifications

I am an enthusiast electronic hobbyist person. Though I know only the basics, I am sure you must be getting 100's of emails daily and I am completely betting on my luck if this one gets to your "eyes" 

My requirement:

16 volt 1 amp DC backup for my apartment Tata sky centralized distribution panel.
Issue: My apartment maintenance people do not run backup (generator) during day time, I have a Tata sky DVR which fails to record since there is signal loss due to power failure.

Resolution:

I had thought of a small back up system,I had purchased a small 6 volt 11 watt CFL Ballast circuit thinking as cheap alternate solution, but the same failed to work.

Why I am looking for AC supply instead of DC?I do not want to tamper with their system and get penalized for whatsoever failures which may come to it due to natural course of operation.

Could you please help me with a very simple cost effective circuit that will give me 220 volt 20 watts power from 6 volt 5ah battery. To be precise 220 volts from 6 volt battery, as I have purchased a 6 volt 5 ah battery recently. The output wattage requirement is less than 20 watts, the
adapter ratings are :

Output - 16 volt 1 amp
Input - 240 volt .06 amp

I know you have lot of work, but if you could spare some time and help me with this it would be of great help. thank you

Thanks,
Aniruddha

The Design

Since today all electronic systems employ an SMPS power supply, the input does not necessarily need to be an AC for powering these equipment, rather an equivalent DC or pulsed DC also become useful and works as good.

Referring to the diagram above, a couple of sections can be seen, the IC1 configuration enables a 6V DC to be boosted to a much higher 220V pulsed DC through a boost converter topology using the IC 555 in its astable form. The extreme left side battery section ensures an changeover from mains to battery back up every time a power failure is sensed by the circuit.

The idea is pretty simple and does not require much of an elaboration.

How the Circuit Functions

IC1 is configured as an astable oscillator, which drives T1 and consequently L1 at the same frequency.

T1 induces the entire battery current across L1, causing a proportionately boosted voltage to appear across it during the OFF periods of the T1 (induced back EMF from L1).

L1 must be appropriately calculated such that it generates the required magnitude of voltage across the shown terminals.

The indicated 200 turns is tentatively figured out and might need much tweaking for achieving the intended 220V from the input 6V battery source.

T2 is introduced for regulating the output voltage to the desired safe levels, which is 220V here.

Z1 should be therefore a 220V zener, which conducts only when  this limit is exceeded, which forces T2 to conduct and ground pin5 of the IC, stalling the frequency at pin3 to a zero voltage.

The above process continuously readjusts itself rapidly ensuring a constant 220V at the output.

The adapter which can be seen at the extreme left is employed for two reasons, first to ensure that IC1 works continuously and produces the required 220V for the connected load regardless of the mains presence (just as we have in online UPS systems), and also to ensure a charging current for the battery when mains voltage is present.

The associated TIP122 transistor is positioned to generate a regulated 7V DC for the battery and also to restrict over charging of the battery .

Using Op Amp Cut OFF

If you want a precise circuit which will accurately monitor the DC UPS battery and implement the required over charge and low discharge cut OFFs, the following design may prove useful.

3) Redundant DC UPS Circuit

In this third concept below we learn a couple of straightforward redundant UPS circuits for providing a secured uninterruptible power to crucial gadgets such as computer ATX or modems etc. The idea was requested by Mr.  Shayan Firoozi.

Circuit Objectives and Requirements

  1. There are many products which has 2 input for different power supply,for example one for normal mains,one for generator or other mains,like servers,routers,and some critical equipment,we call it redundant power supplies
  2. I have an equipment which consumes 3 ampere in 12 volt dc,if I use 2 transfer with 12 volt,3 amp output which one take responsibility and which one is waiting for first loss?? Both are same on voltage and amperage,I don,t want them to work together,
  3. I want second power supply to be standby
  4. Just a simple question: What would happens if I replace battery with another 12 volt power supply ?? Will it work as a redundant or standby power supply ??
  5. Thanks for your answer in advanced And if it's possible tell us about model of diode and other components for 12 volt 3 ampere

 The Design

As per the request, the circuit discussed in the above link can be modified to work with another DC power supply by eliminating the battery and associated stages as shown in the following form of redundant UPS circuit:

redundant UPS circuit with alternative power source

Using Two Power Supply Inputs

As we can see, the circuit is intended to work with a couple of power supplies having identical specs, such that whenever the primary power supply fails, the relay instantly changes over to the secondary power supply source ensuring an uninterruptible power supply to the connected load.

The diode D1 makes sure that while the primary power source is active and the relay in the deactivated position, it connects in series with D3 creating a greater forward drop than the primary supply diode D4...thus allowing the primary voltage to be in command and powering the load.

However as soon as the primary source goes through an outage, D4 is disabled, and for that split second D1 and D4 takes over powering the load, until the relay has changed over bypassing D1 and enabling the full rated power to the load.

The next diagram shows a method which allows a battery to be included within the proposed redundant UPS circuit, and the primary power source replaced with a solar panel, making the system a 3 way protected UPS circuit

redundant UPS circuit with charger and 18V solar panel

Using Power Supply with Battery

Referring to the diagram, as long as the solar energy is available, the relay stays activated keeping the mains derived 14v supply cut off from the system.

The solar power in the meantime charges the battery and also the connected load via D1.

The battery power being slightly subdued than the solar panel power keeps D2 deactivated such that only D1 is allowed to carry the solar energy to the attached load at the output.

Using TIP122 for CV Battery Charging

The TIP122 ensures a regulated and safe over charging protected supply for the battery which charges solely through the panel voltage during day time.

As night sets in, the relay deactivates at some of time when the solar supply gets too weak to hold the relay activated.

The above changeover instantly switches the mains operated 14V into the system enabling the load to switch to the mains derived voltage without an interruption.

The battery power makes sure that while the relay is transferring over from the solar to the mains adapter supply, it compensates the split second changeover lapse in power by supplying its own power to the load, and inhibiting even a microsecond break of supply for the load.

The battery also forms the third "line of defense" in case both the primary and the secondary power happens to fail together, and is always positioned in the standby mode for the recommended redundant uninterruptible power supply circuit operation.

The first redundant UPS circuit incorporating two power sources can be better modified in the manner shown below, here the relay N/C can be seen directly connected with the load, thus enabling zero drop in the supply line:

zero drop redundant UPS circuit

Modem UPS using TP4056 Li-IOn Charger

If you are interested to make a 5 V DC UPS for your router using high end chargers such as TP4056 and boost converter modules, the following design could help:

The above design could be also built without a relay as given below:

SHARING IS CARING!



Previous: Energy Saving Automatic LED Light Controller Circuit
Next: Laser Diode Driver Circuit

About Swagatam

I am an electronic engineer (dipIETE ), hobbyist, inventor, schematic/PCB designer, manufacturer. I am also the founder of the website: https://www.homemade-circuits.com/, where I love sharing my innovative circuit ideas and tutorials.
If you have any circuit related query, you may interact through comments, I'll be most happy to help!

You'll also like:

  • 1.  Simple ESR Meter Circuit
  • 2.  IC 556 Pure Sine Wave Inverter Circuit
  • 3.  Simple Peak Detector to Detect and Hold Peak Voltage Levels
  • 4.  High Current Li-Ion Battery Charger Circuit
  • 5.  Automatic Inverter Fan Switch ON while Charging and Inverting Modes
  • 6.  Simple Kitchen Timer Circuit – Egg Timer

Please Subscribe (Only if you are Genuinely Interested in our Newsletters)


 

Reader Interactions

Comments

    Your Comments are too Valuable! But please see that they are related to the above article, and are not off-topic! Cancel reply

    Your email address will not be published. Required fields are marked *

  1. Search Related Posts for Commenting

  2. DrZipZwan says

    A solution I found for delay/ reboot of router issue: add a dummy load at the input, with diode, it will decharge the capacitor of phone charger and tick relay much faster! Go for more than 200/300W and sees if it gets hot of course. Circuit with Tp4056 realised and it works fine.
    Sorin’s idea.
    Thx

    Reply
  3. Sunil Kumar says

    Dear Mr Swagatam,

    In recent days been through your website and found it really informative and interesting.
    Am trying to build an uninterrupted power supply for my 12V 2A router.
    Am using a 12V battery (7AH) and router adapter as 2 power sources connected via 2 relays (12v). The output of relay is connected to router. The relay is powered via the adapter.
    Now the problem is because the output voltage of battery is around 13v, am using a voltage booster / stabilizer to output 12v from battery to router.
    But when there is power off, the relay takes few milliseconds to change over and thus rebooting the router.
    When power comes there is no loss and relay switches smoothly from battery to adapter current.
    Please suggest how to handle this power loss during switching.

    Regards,
    Sunil Kumar

    Reply
    • Swagatam says

      Dear Sunil, you can use the first or the second circuit for your application which will ensure that the power is transferred without any interruption.

      To add a regulated 12V for the router, you can add the following circuit, between the D1/D2 cathodes and the router.

      Low-Dropout 5V, 12V Regulator Circuits using Transistors

      Reply
  4. ZipZwan says

    I tried the last option with the TP4056+ StepUp + Relay. But it is not working as intended, because the relay is not switching anough fast. So when Power fail the router is rebooting because relay is not anough fast 🙁
    And I tried also the option with the relay, directly TP4056+MT3906, but the green led of the TP4056 are never getting on. Why? because the TP4056 IC is behaving in a way, when a certain Amp flow through it, below 1/10 of the charge current the charge is completed and the led turn on. So it is never getting on because, always aroun 700mA is flowing through the IC. I hoocked a ampmeter and I descovered this. Because the router is always sucking, dicharge/recharge at the same time I guess…
    That is why, I first went for the option with the relay, I even added capacitor 2200 even parallel, it is still rebooting. I want the battery to be charge lonely by the TP4056 and light on when it is completed, and kick fast when the power fail…
    Is it possible to use BC547 as a switching relay instead of a magnetic relay maybe, for it to switch faster??
    Thx

    Reply
    • Swagatam says

      The diode version is perfect and has no problems. Your router is consuming all the current because your supply source is not rated with enough current to charge the battery and the router together. You can either use a higher rated input source or add a 5 ohm or 10 ohm 1 watt resistor in series with the router and check the response.

      The low current at the input source is also the reason why the relay is not operating quickly enough.

      Reply
      • ZipZwan says

        the issue is not in the turning ON of the relay, it is more in its turning OFF.
        When the Relay is on NO position (no power applied to the coils pin + Router Power by the Backup) and I simulated Power Back (Let say Main electricity came back) so Coils of Relay are again powered, and it switch from NO to NC: here there is no problem, it is working fine. The rooter do not reboot. So enough currrent is coming to the Relay to do the task required.
        The issue is in the opposite, when the relay need to OPEN, when it need to go NO! In this small milli second of time, the Router is rebooting. So the relay take to long to open, and to switch to battery supply.
        PS: My Router is only 450mA and I changed the Rprog of the TP4056 to charge the battery at a slower current rated. it is not helping. I am using 12v – 1A adatper, and still the same.
        So maybe better to use Solid State Relay go get a faster switch between DC Battery Backup for the Router?? What do you think??
        Thanx

        Reply
        • Swagatam says

          try putting a 1N5408 diode before the 2200uF capacitor, and possibly put another 2200uF capacitor in parallel to increase the back up power. This should should take care of the slight millisecond delay.

          For the diode version a 1 amp transformer might not help at all, because the battery will itself require a current equal to its mAh rating. Try a 2 amp or a 3 amp adapter and check the results.

          Reply
          • ZipZwan says

            Thx you for your help, I did not find any 1N5408 diode, but I got some 1N5401 and also 1N5399.
            So maybe try with 1N5401. I dont lose much trying…
            About capacitor, I paralleled 2 2200uF yesterday and still delay >>Router Reboot 🙁
            For Power Supply, I am currently testing directly with Lab Power Supply as main Power Source, that can deliver till 10A if required, so current part is covered, no stay the delay part of the relay…

            Reply
            • Swagatam says

              Yes a diode will make a lot of difference, since it will make sure the capacitor charge goes entirely to the router only. The 10 amp power supply should more than enough to keep the charging operation sustained while also operating the router.

  5. can says

    hi.
    Which one can I use instead of 1n5402 diode?
    thank you

    Reply
    • Swagatam says

      Hi, you can use 1N5408

      Reply
  6. Krishnendu das says

    Hi sir, I have a problem of power cuts, so I want a mini ups.I have a onu device which specification is 12v, 0.5A and a router which specification is 12v,0.5A. So I want a power backup system (2 hours power backup minimums) for those devices. In the market I found mini ups for the router but its very expensive. So I want to make the safest home made mini ups, which is not damage the equipment. Tell me how to make this. Thank you.

    Reply
    • Swagatam says

      Hi Krishendu, you can build the first circuit which is the simplest and the safest. You will required a 12 V, 4 Ah battery for a 2 hour back up. Make sure to adjust the output from the TIP122 to exactly 14.1 V.

      Reply
      • Krishnendu das says

        Thanks a lot. I will try this, if any problem I will contact with you.

        Reply
        • Swagatam says

          Sure, no problem!

          Reply
      • Krishnendu das says

        Please tell me about Intelligent electrical safety protection circuits with battery management systems in this project. Which type of battery and module or component I used? And please tell the input adapter specification.

        Reply
        • Swagatam says

          Which circuit are your referring to exactly?

          Reply
  7. gisele says

    Hi,i have a project which must supply power to the router and the radio (for a home wifi),while charging the backup battery when the a.c mains available and if the mains fail the battery must take over and supply power to the wifi system.i just wanted to know how to design it.

    Reply
    • Swagatam says

      Hi, the first circuit will be good for you requirement. You can try implementing the first one.

      Reply
  8. sabri says

    hello.
    I want to provide uninterrupted power for my arduino project.have 12v-7ah lead battery for backup.I want to use 12v dc adapter.Would you recommend me a circuit diagram to make a backup power supply?Please also write the materials I will use.thank you

    Reply
    • Swagatam says

      Hello, the first circuit is easiest and reasonably safe design which you can implement. But 12V adapter will not do, it must be a 15 V minimum, and the current rating must be 10% of the battery Ah value, meaning it should be 15 V/ 0.7 amps or 1 amp

      Reply
  9. Cristi says

    Hi,
    thank you for sharing this circuits. I want to use your first circuit to power a router and a modem ( both at 12V /1.3A each ). I have a 15.5V (laptop) adaptor and I want to use it for power a circuit that will enable to charge a 12V SMF type battery of 7Ah ( with charging around 14V/0.35A ) and to supply the necessary 12V for both devices. The maximum load estimated current is around 3A ( router + modem ), so 1N5402 it’s a good option for D1 and D2. For charging the battery the maximum current is ratted at 2A ( that value is written on the battery as initial current, even if I measured only 0.35A charging current ). So my 90W adaptor is sufficient. What I need is a steady 12V at output when AC is present or not. I don’t want to supply 13.5-15V to the 12V input modem , because I’m not sure that this will be ok for the modem.
    Please tell me how can I step down from 15.5V to around 12V at output ? If a put a series of 3 or 4 1N5402 diodes instead of D1, this will drop the voltage to around 15.5-4×0.7 = 12.7V ( if the drop forward voltage is 0.7V on each diode ) but this value on last diode cathode in the series ( and D2 cathode ) will make the make the D2 to conduct. So this in not a good solution.
    What simple voltage regulator to use at output to make sure that I will have around 12V when AC is present or not, even in the situation that his input is less then 15V ? ( when AC is missing and the load is present, the battery voltage will decrease in time from 13.7V to 12V, so this range must be the input voltage for the voltage regulator ).
    Is there any other simple solution to power my 12V modem and router , without an voltage regulator at output ?
    Thank you.

    Reply
    • Swagatam says

      Hi, You can use a 7812 IC for dropping the higher voltage input to 12V or slightly lower. Use it after the D1/D2 junction. Even at voltages below 12V, the 7812 will continue to conduct and allow the voltage to reach the load.

      Reply
      • Cristi says

        Hi, thank you for your support.
        I see that 7812 IC have 1A , is that corect ? If so, that is not enough because the load is about 3A* ( 2.6 A, router 1.3A + modem 1.3A ). Is there any other version of regulator with a minimum of 3A ?
        In the case of a missing AC, the battery voltage will drop significantly after an hour ( I will use a 7AH battery ) at about 12.5V or so. In this case, what will be the voltage after the regulator ? If it will be around 10-11v, this will be not so good. I am hoping to design a circuit that will be usefull for a few hours, not for 20 minutes.
        * Or there is another possibility: because only one device ( modem ) requires 12V, I need only a 1.5A regulator. ( The voltage input for the router is 10-57 DV )
        A few questions about the first diagram/circuit: my adaptor has 15.5V, so what is the R1 voltage/ R1 value for a battery of 7AH , and what will be the charging voltage on battery ? ( I know that the battery current will be between 0.35-0.7A ) The other components from the transistor + Zener stage remains the same in my case ? ( 14V Zener, two resistors of 220 ohm and 1kOhm )
        Thank you.

        Reply
        • Swagatam says

          Hi, If 7812 does not suit your application, you can use an additional TIP122/resistor//zener emitter follower stage at the output side of the D1/D2 junction. The zener could be a customized 13 V zener which will allow the output to be around 12 V. This will also drop around 1 V which is the minimum that you can get, since all linear regulator will drop some voltage. The tip122 will require a large heatsink for delivering 3 amp.

          You can adjust R1 using Ohms law so that 0.7 amp is able to reach the battery. R1 = 12 / 0.7 = 17 ohms / 10 watts

          Reply
        • Swagatam says

          The TIP122 base zener diode for the charger section should be actually a 15V zener, so that the output can be 14v, this will need to be fixed with some experimentation.

          Reply
          • Cristi says

            Hi Swagatam. Ok, I’ll try that. So I will must have 15V at the base of TIP122 and the transistor will be off when the emitter voltage reach about 14.4V, right ? I have find your Customizing Zener Diode Value exemple here, and I will follow it. https://www.homemade-circuits.com/zener-diode-circuits-characteristics-calculations/

            But I can’t understand the last part of “You can adjust R1 using Ohms law so that 0.7 amp is able to reach the battery. R1 = 12 / 0.7 = 17 ohms / 10 watts” . The voltage across R1 is not 12V, right ?
            With Kirchhoff’s law: with Zener of 15V and with VBE of 0.6V, if we have 14V on battery ( charging voltage ) and around but max 14.4V at emitter (Zener 15V – 0.6 VBE = 14.4V ), we are left with only 0.4V over R1 ( in this case R1=0.4V/0.7A =0.57 ohm ). Please correct me if I’m wrong, which is probably the case.
            ( Or maybe I will charge the battery at a slightly less voltage, and this will set the R1 voltage at about 1V; Or maybe is better to custom a transistor Base Voltage to a slightly higher value, at 15.5V )

            For the 12V output additional stage, an adjustable LM317 module like this is ok ?
            I prefer an already made module instead of experimentation and tweaking of a custom made TIP122/resistor//zener stage and I’m not very experienced. And it’s cheap, it’s about 1.5 Euro in my country.

            LM317 buck converter

            Btw, don’t you know an adjustable module that will serve the purpose of an auto cut-off for battery charging ? 😀

            Thank you very much for your support.

            Reply
            • Swagatam says

              Thanks Cristi, your calculations are right. In a hurry I forgot to deduct the load voltage specification from the supply voltage. However it should be 12V that must be considered in the calculation for the battery voltage, so R1 will be 14 – 12 / 0.7 = 2.85 ohms, 1.4 watts…. a 2 ohm will also do.
              Since TIP122 is a Darlington, the emitter voltage will be 1.2 V less, that is 15 – 1.2 = 13.8 V to be precise.

              A buck converter is the best option but if a readymade thing is what you want to include then why not buy the whole system readymade ? You may easily find a DC to DC UPS with all the required facilities very cheaply 😀

              The tip122 based regulator is perhaps one of the easiest designs, which requires very basic adjustments using a multimeter, and it is quite foolproof.

              And it will also do the auto-cut off job at the threshold level.

              The 317 buck can be also built at home using the following concept:

              LM317 Variable Switch Mode Power Supply (SMPS)

            • Cristi says

              Hi Swagatam,
              I tried to find a cheap (10-20 Euro) DC to DC UPS readymade system, but unfortunately I didn’t find any with my desired requirements ( 3A at 12V). If you do know one, please tell me.

              From your information, I will have 15-1.2 = 13.8 V on the emitter, but that is the voltage that is needed for battery charging, so I running out of voltage for R1.
              Because my laptop AC adapter is one in steps, maybe is better to use 17DC output for my design. With a 16V Zener – 1.2V VBE – 1 Volt across R1 = 13.8V on battery and that is ok ( 13.7 more or less, depending on the battery loading current which is varying ). In this case R1 = 1V/0.7A = 1.4Ohm but I think 2 ohm will do the job. ( or maybe 3 ohm, I just measured a similar battery and at discharged level of 12.5V across battery, it uses 0.35A for charging ).
              About the rest of the components: I think R of 1kohm is ok, but the R of 220ohm maybe must be replace with a smaller one, maybe 30- 50 ohms. Tell me please if all this values are correct or not and if this 17V DC design are feasible.

              Thank you for the link about LM317 Variable Switch Mode Power Supply (SMPS) and for the information about the TIP122.

            • Swagatam says

              Thank you Cristi, I too tried but couldn’t find any cheap readymade DC to DC UPS online, that’s indeed very strange.

              I think the R1 voltage must not be considered in the calculation, because as the battery charges this drop will reduce until eventually it reaches a zero.

              TIP122 being a Darlington has a very high gain, around 1000, so reducing the base resistor value might not matter too must. For analysis this could be calculated using the following formula:

              R = (15V – Battery discharge V + 1.2) x 1000 / 0.7 amp

              Although this formula is actually for a collector load, I think it can be also used for an emitter load since the current is through collector emitter.

  10. kerem says

    Hi.
    I dont know English.excuse me.
    I read the article from the translation.I am not very successful in electronics.my question is;
    I want to run the system with an adapter.
    when the power is cut off, I want the battery to be activated automatically.
    battery is 12v power.please would you recommend a circuit?
    thank you.

    Reply
    • Swagatam says

      Hi, you can try the 6th design from this article;

      https://www.homemade-circuits.com/how-to-make-efficient-led-emergency/

      Reply
  11. Salman says

    Sir I need your help I made 12v ups for router I used 5v 2A charger for input and connected to tp4056 and used 3*18650 batteries 3.7v 5000mAh in parallel combination then connected to dc booster xl6009 (and set the required voltages 12v)
    But I connected the ups to my router it can’t run properly the power light of router starts blinking.
    without connecting the ups and connected to the adapter its working fine without the power light blinking
    My specifications of router are
    Huawei 12V 1A
    Waiting for reply
    THANKS

    Reply
    • Swagatam says

      Hello Salman, it’s because your booster is not working correctly, and it is unable to supply the required amount of current to the router.
      Instead of using such complicated circuits, you can use a LM317 based charger, adjust the output to 12.2 V, and current to 1 amp. And attach the 3 li-ion in series with its output and simultaneously connect the router also, all will work perfectly, without any issues.

      Reply
  12. Lord Lovaduck says

    Dear Swagatam,
    Thanks for publishing the circuits. First, by reading your article I see the power supply is assumed to be a laptop power supply which provides 18-19 V. Looking at the first and second circuits, the drawing indicates 12V sourced from what looks like “wire tap” from a laptop ps. This confused me a while as I was looking into using this circuit with a modem/router power supply that is rated at 12V 2A. This would not work, I believe since the 12V would not charge the battery, at least 14V should be required. Is that the case? Can you confirm my interpretation that the source should be 18-19 volt (or anything above 16V I guess). If that is indeed the case it may make sense to modify the drawing and state 18 – 19 volt source to avoid confusion.
    Second, I wanted to go with the second circuit using LM317 until after discussing with a supplier who pointed out the second design will overcharge the battery, unlike the first design. How can I turn off the charging so it won’t be damaging the 12 V 7AH lead acid battery? Maybe add a simple circuit (found a couple online) that will switch off charging to the battery when it reaches 14.4 volt or so?
    Thanks in advance for your help!

    Reply
    • Swagatam says

      Dear Lord, yes you are right 12 V will not charge a 12 V battery. I have only tried to present a rough concept regarding the dC UPS and might have missed a few basic points in the design,and i am assuming the readers would take care of these by themselves or may consult me, as you have done.

      Actually you will need 15 to 16V in the first circuit since an emitter follower transistor is used. To implement this you can make a transformer based adapter for the 12 V adapter. For this you will need a 0-12V transformer, a bridge rectifier, and a 1000uf/25v capacitor.

      the second circuit will not overcharge the battery if the input supply is regulated at precise 14.1V. If I include an auto cut off that may unnecessarily complicate the simple design, which may not be required. To make a customized volatge regulator that will control the supply to exactly 14.1V you can apply a LM317 based design or a transistorized based regulator design.

      Reply
  13. Ruwan Fernando says

    Hello Sir…
    I need to a circuit, DC UPS With 150A Battery charger I using Solar Power and power supply smps with 12V 150A Battery

    Reply
    • Swagatam says

      Hello Ruwan,

      you can try the following design
      solae panel, DC UPS 150 Ah battery
      Replace the diodes with 20 amp diodes on heatsink

      Reply
  14. Mohamood ameen says

    Hi sir, i am planning to run a 12v 20w bldc fan even during power cuts. So, i have used 12v 2a smps power supply to power the load directly. Using 12v 1a battery charger with auto cut off feature to charge the 12v 7ah battery. Using relay to switch between regulator power supply to battery power supply while power cuts. Also using over discharge protector bought on aliexpress at the output of battery to prevent over discharging. Everything seems OK. But, my doubt is 12v 1a charger stops charging when it reaches certain voltage ex: 14v and starts charging instantly when voltage falls below 14v during normal discharge of battery. This continuous charging will affect the battery or not.

    Reply
    • Swagatam says

      Hi Mohammad, the ON/OFF charging and cut off at the full charge threshold will not harm the battery in anyway.

      Reply
  15. Jerry Thomas says

    Thank you for this nice tutorial. I was looking for a laptop-style charging circuit. This helped me understand it quite well.

    I wanted to create a Raspberry Pi Cluster containing max 8 Raspberry Pi’s. Each Raspberry Pi has 4 USB2 ports which can be used to connect to 4 external HDD’s leading to a max of 32 HDD’s. 32 external drives might be too much so I would limit this to 16. These HDD’s would need to be powered externally as the board itself does not provide sufficient power to each HDD. I believe the power required for each drive is 5V, 900mA. I also want to have a power module that consists of a battery that will be charged when external power is available. The power to the drives and Raspberry Pi’s should be provided from this battery when external power is not available. The switchover from A/C power to battery power should be seamless and should not cause the devices to power off.

    I was thinking that using a laptop-style circuit for charging a battery while also providing power to the cluster would be required in this case. I also assumed that I would need splitter USB cables to pass data from the Pi board to the HDD and power from the power circuit.

    What would you suggest as the circuit to power this cluster and what is the battery capacity would I need to support the power required for this cluster? Can you guide me on the circuit and the parts needed to build this power supply?

    A/C -> Power supply ( rechargeable battery + circuit + board with USB ports for power to HDD’s and Pi’s)

    Reply
    • Swagatam says

      Thanks, Glad you found the right article for your application. The first circuit can be ideally applied for powering the mentioned units.
      For 16 units, you would require a supply of 5 V, 15 amp. This could be acquired from a ready made SMPS adapter. The battery could be rather large if it is a lead acid battery at 5 V, (15 x 10 = 150 Ah). This would provide a back up of around 9 hours for all the connected HDDs.
      For this you can replace the adapter with a 5 V 15 amp SMPS input in the first diagram. Replace the transistor with a Darlington pair made using TIP35/2N2222
      For the diodes you can use any 15 amp diode (on heatsink)
      The zener diode must be experimented to at an output of around 6.5 V to 6.9V
      R1 can be eliminated since 15 amp from the adapter is the right charging voltage for a 150 Ah battery.
      I hope this will help you to achieve the intended purpose!

      Reply
  16. Fabio says

    Hi and tanks for share all your knowledge.

    I was looking at all the schematic and I think the second picture show what maybe will work with my system.

    I have different network device connected all together to a single power supply.
    The total load is around 7-8Amps at 12V but sometime I have spikes of 16A

    I am looking to an UPS circuit that I can connect the entire system and charge a Lithium pack with max 14V 2A (This already have a balance charger installed inside).
    I have a 15V power supply 18A but I am not sure what type of diode and resistance value to use for my environment.

    Can you help me please

    Reply
    • Swagatam says

      Hi, if you are interested in the second circuit, you can use it by replacing the LM317/R1 stage with your balance charger and the battery, and then terminate the battery positive through D2 for supplying the system.

      Reply
      • Fabio says

        I want limit the charger current to max 2A. What resistor value should I use? Also for 20A should I use 4x6A4 diodes in parallel ?

        Thanks

        Reply
        • Swagatam says

          You will need 1.25 / 2 = 0.625 Ohm resistor wattage will be 1.25 x 2 = 2.5 watts or 3 watt. For 20A load you will need a 25 amp diode

          Reply
          • Fabio says

            Thanks for the extra info.
            For the diode, any schottky diode rated to 25 or + Amps should be fine?

            Thanks a lot

            Reply
            • Swagatam says

              Yes will do, but it can be very costly..

  17. Harinath says

    Dear Swagatam,
    I was looking for ideas to make a good 12v ups for my modem and also a DVR. Your circuit ideas are very nice and informative. Now I will go ahead and build a unit.

    Thank you for sharing these ideas and explaining them so well.

    Best Regards,
    Hari

    Reply
    • Swagatam says

      I am glad you found them useful Harinath. I wish you all the best!

      Reply
  18. Danie Brink says

    Hi Swagatam,

    I don’t know much about circuits but am trying to adapt yours from the first image to run a 3.5A load backed-up by a 35AH battery. I have a 100W 13.5-18V adjustable power supply. Would my circuit at: https://www.lucidchart.com/publicSegments/view/4aeab8a0-f9b7-4575-be14-df8708da7af0/image.png work?

    I’ve used 3x 2.2Ω resistors to give me a 12/3.3 = 3.6A charge. I can’t source a 14V 1W zener diode locally but can get a 14V 5W one … would this work? If I wanted to add a hold-up cap to the output (I have 1 10k uF 16V cap lying around) how would I wire it in?

    Thank you so much for the great work & help.

    Reply
    • Swagatam says

      Hi Danie, yes your circuit looks OK and will work, just make sure the battery gets the minimum 14V for charging. A 14V zener might not produce 14V at the output due to the TIP122 internal drop. So you may have a to add a couple of 1N4007 diodes in series with the 14V zener to ensure that the voltage at the emitter of TIP122 gets to 14V. The 1N4007 diode polarity will be opposite to the zener polarity.

      If you want to include a capacitor at the output you can do it by joining the positive of the cap with the common cathode end of the 6A4 diodes, and negative terminal to the negative line.

      Reply
  19. ali says

    hi dear swagatam
    does the circuit in the following link work for 12 amps?

    https://drive.google.com/file/d/1Npz2anCUy_pp1CLUHpua7mt7FOt-NX8T/view?usp=sharing

    Reply
    • Swag says

      Hi Ali, it will work, but the diodes will need to be rated at 20 amps and on heatsink, the LM338 will also need a large heatsink

      Reply
  20. ali says

    Dear Swagatam
    to flow of 12 Amp, can I use SBL2040CT diode or two parallel 6A4 diodes ?
    please guide me

    Reply
    • Swag says

      Dear Ali, you can use two 6A4 in parallel by clamping them together on an aluminum heatsink

      Reply
      • ali says

        Thank you for your prompt response.

        Reply
  21. Shigida says

    What is the role of 1k resistor in the first diagram?

    Reply
    • Swag says

      without some kind of load the emitter side will show an incorrect reading on the meter while setting it up, connecting the 1K creates a dummy load for the transistor and allows a correct reading to appear on the meter.

      Reply
  22. Swag says

    1N4148 will not do, you must use the ones specified in the article, that is 1N5408 or 6A4

    Reply
  23. Swag says

    In the first circuit if you set the maximum output at the emitter of T1 to little below the specified full charge level of the battery, then extra no cut-off circuit would be required, for a 12V battery this could be set at 13.9V.
    The negative line which is connected with the battery negative should eb connected with the load’s negative.

    Reply
  24. Nish says

    Hi Swagatam. I have a 9V 600mA router and I was wondering if I could use this circuit with 18650 cells in 3S2P or 3P formation with a TP4056 charging circuit? Using a DC-DC step down converter to drop the input charging voltage to 5V and then using another DC-DC boost converter to increasing it back to 9v at battery output. Is this convoluted and if yes then is there a better way?
    Thanks.

    Reply
    • Swag says

      Hi Nish,

      You can use this circuit for the mentioned application, however you can keep things simple by eliminating the step down converter, and instead using the cells in series to match the 9V output, because using two converters together can waste some power in the process and also make the system unnecessarily bulky..

      Reply
  25. Sujay says

    Hi Swagatam,
    I have 1 switch [12V, 2A] & 1 router [12V, .5A], both of them needs a backup from 12V 7AH battery. So there will be 2 o/p from battery. I have following queries..
    1) Can I use D1 & D2 as 1N4007, so that it can limit to 12V, 1Amp output of the circuit and can be input for switch?
    2) How can I restrict the current to .5A [12V .5A] in another output, as an input of the router?

    -Thanks
    Sujay

    Reply
    • Swag says

      Hi Sujay,

      1N4007 will burn at 1 amp unless it is on some form of heatsink…you will have to use a higher rated diode such as 1N5408 etc. for allowing 1 amp current through it.

      for restricting current you can use a simple LM317 IC and wire it as per the following concept

      https://homemade-circuits.com/2013/06/universal-high-watt-led-current-limiter.html

      Reply
      • Sujay says

        Thanks Swag.
        I need some more clarifications about the same. As router needs “.5A” current, I can use LM317 to restrict the current for that device input. For switch, hope I can directly connect through 1N5408 diode. Or in both scenario I should use LM317?

        In precision current limiter, to calculate R1, Vref used as 1.25V. But here my Battery is of 12V & device input voltage also 12V, so Vref is practically 0. So how should I define Vref to calculate R1?
        -Thanks
        Sujay

        Reply
        • Swag says

          Hi Sujay,

          actually current control is not required for any of the devices because if the voltage specs for the devices match with the battery voltage, current would be immaterial. You can safely connect the devices directly with the battery.

          as for the 1.25V ref, I don’t think it is dependent on the input supply, this reference will be available as long as the input supply is well over the 1.25V value

          Reply
  26. NooMan2032 says

    HI Sir, my router requiere 12v 0.6A I want to plug it straight to car cigarette socket, do I need any protection or just an adequat fuse. thank you.

    Reply
    • Swag says

      Hi Nooman, just do it through a 7812 IC, that will take care of everything

      Reply
  27. Drake says

    Having 3 cells would actually give me less than 12v (3.7V * 3 = 11.1v) that’s why I was thinking for 4. Will that be an issue? Also, how will the charging be limited else batteries will be ruined in no time on continuous charging

    Reply
    • Swagatam says

      11.1V won’t be an issue for your modem…3 cells is the right number that you must use
      as I mentioned in the my previous comment if the 4.2V per cell is prevented then an auto cut off won’t be required, because the cells will never be able to reach their full charge levels and therefore be safe.

      Reply
      • Drake says

        Sorry, couldn’t follow this up earlier.

        I will be using your second circuit with LM317, to be adjusted to 12V output. My input is 19.75V 3.5A using an old laptop charger. I am planning to use 3 cells 18650 in series for 1-3 mins backup

        Can you please tell:

        1. If 3 cells would be sufficient.
        2. Can I use battery protection module in your circuit – just before the battery charge
        3. Need help with R1 value with the values mentioned above.

        Reply
        • Swag says

          3 cells would provide around 10V which won’t be sufficient for a 12V load.

          yes you can use any battery protection module in between the LM317 and the battery

          R1 = 1.25 / 0.5C, where C is the Ah value of the battery

          Reply
          • Drake says

            Hi Swagat,

            In an earlier post before last one, you asked for using 3 cells only

            “11.1V won’t be an issue for your modem…3 cells is the right number that you must use
            as I mentioned in the my previous comment if the 4.2V per cell is prevented then an auto cut off won’t be required, because the cells will never be able to reach their full charge levels and therefore be safe.”

            I am fine to use 4 if that’s the case. Please clarify

            Reply
            • Swag says

              Hi Drake, I said this with reference to the modem supply requirement, but as far charging is concerned 4 cells would required 16V and furthermore this level may be higher for the modem too, so it is better to use 3 cells, just check whether at 10V the modem still works satisfactorily or not, if yes then you an go ahead with 3 cells.

              you can fix the charging level to 12V which will never allow the cells to get overcharged.

  28. Drake says

    I am still confused. If you recall, I will be using chargeable batteries (I am planning to use 3.7 V 18650*4) in series as I need just 2-3 mins of backup . If I use LM7815 (7814 not available) in place of LM317, I will get 15V charging voltage and 1A fixed. How can I reduce the current here for batteries charge?

    Reply
    • Swagatam says

      I think you must use 3 cells in series and not 4…so the full charge level becomes 4.2 x 3 = 12.6V.
      even if you need 3,4 min backup the battery would be continuously charged by the system and therefore it would need some kind of limiter, the current actually won’t matter if the voltage is kept slightly below 12.6V… to implement this you can configure the LM317 as a voltage regulator instead of current limiter, and fine tune the output to may be around 12.3V, 7815 can be totally avoided

      Reply
  29. Drake says

    HI, Not an electrical student but can understand circuits to an extent. My Dlink router is 12V 1.5A listed. I have a power backup for my apartment but it takes 2-3 minutes to resume the power and in calls, this is very annoying to connect again. Can you recommend a circuit that can be used with AA rechargeable batteries? Like I mentioned, I would need backup only for max 5 mins. I would like to assemble myself so appreciate your detailed response.

    Reply
    • Swagatam says

      yes I understood your requirement, you can still use the above concepts, for the battery you can use 8 rechargeable AAA cells in series….rest can be as is.

      the first design looks more appropriate as it will not allow the batt to overcharge once the emitter side limit is correctly set.

      the circuit (diodes) will automatically disconnect the battery as soon as the power resumes from your apartment backup.

      Reply
    • Drake says

      Thanks for your prompt response. Are you recommending the one with TIP 122 circuit? Will the ratings for diode and resistor remains what you have recommended elsewhere?

      Reply
    • Swagatam says

      yes the first design using TIP122, the base resistor can be increased to 1K that's not very crucial, but the zener value should be selected such that the voltage at emitter is slightly higher than the battery voltage that is around 13.5V, rest can be as given in the design

      Reply
    • Swagatam says

      R1 can be removed and replaced with a short link since the 13.5V setting will never allow to battery to overcharge

      Reply
      • Drake says

        I have found an old laptop charger which I would like to use. Its O/p is 19.75V 3.5A. Can I use your second circuit using LM317?

        1. I see the direct o/p in your diagram from 12v to 12 v but that will not be case for me. How do I step it down? Can I use LM7812 there for reducing the o/p from 19.5v to 12v? What will be my current in that case?

        2. While going through LM317 circuit, what should be value of R1? Can I use LM 7814 for charging the battery?

        My router is rated at 12v, 1.5A.

        Reply
        • Swagatam says

          1) yes you can use a 7812, the current will be limited to 1 amp.
          2) you can use 7814 in conjunction with the LM317 for charging the battery.
          3) R1 will be = 1.25 / charging current limit

          Reply
          • Drake says

            Thanks for 1.5A, I was thinking of LM7912. Will that be ok as it outputs 1.5A?

            If using 7814 instead of LM317, the charging current will be 1A. Will that mean that I need R1 as 1.25 Ohm?

            Reply
            • Swagatam says

              you can use 7912.

              the charging current is supposed to be extremely low, may be around 1/20 of the battery AH if it is an SMF type of batt.

              therefore R will need to be calculated as per this charging current rate

  30. john kg says

    good day sir

    i am using normal inverter at home. the modem also connected to the normal power supply at home.when a power failure ( mains ) happens the inverter take some micro secs to switch over to battery and viceversa . so in that period the modem restarts and will take time to function . i need a backup for modem to avoid this operation, modem using 9v dc supply.( i installed a 9v dc batery to overcome this in parallel with power supply but it didnt work out still modem restart during this small changeover time )

    can u help me to sort it out . (i dont want to install a separate full ups only for modem ).

    regards

    john

    Reply
    • Swagatam says

      good day john, a modem will not reset if the changeover is within microseconds…it will happen only if the delay lasts over 500ms approximately.

      you can probably try solving the issue by connecting a high value filter capacitor across the supply terminals of the modem. it should be at least a 6800uF/25V rated capacitor or above.

      Reply
  31. Nikhil says

    Can 12V 2A (DC) Circuit be connected to 12V 9AH (DC) ?

    Reply
    • Swagatam says

      yes it's possible

      Reply
  32. Unknown says

    Hi there I was wondering if I'm charging the battery with an outside source charger I just need to add a diode to the positive line of the battery, so I don't get a feedback to the battery is that correct?

    Reply
    • Swagatam says

      Hi, only D1 and D2 are required no other diode needs to b included no matter from where you are charging the battery

      Reply
  33. NAREN says

    hi
    i have a maintenance free 12v bike battery,and 12v input modem, could i use your above circuit .

    Reply
    • Swagatam says

      yes you can use them without any issues…

      Reply
  34. Rahul says

    Hello sir,
    I need you help. This is what i m looking for. My router adapter rating is 9V 600mA. And i want to use 12V 7AH battery. which circuit will be batter in my case? How much backup i will get from this battery.

    Sorry for my english

    Reply
    • Swagatam says

      Hello Rahul,

      sorry, none of the circuits will work because a 9V source can never charge a 12V battery….so you will have to procure a 14V adapter, or build a 14V adapter using a 0-12/1amp transformer along with a bridge rectifier/capacitor output network, for the application

      Reply
  35. Ezequiel says

    I have a 16,5 VAC – 1,5 AMPS transformer. Can I use it with a full rectifier bridge (or 4x1n4007)? (I think I obtain 23.3V on the output)

    Reply
    • Swagatam says

      23V will be high and dangerous for a 18V router, unless you step it down through a regulator IC

      Reply
  36. Aj says

    Not a electrical student. Have a wifi router. Adaptor says power output 18v/1a. Couldn't get a UPS for this router in market. Only 12v is available. Can you help me with this. Need to make my own ups.

    Reply
    • Swagatam says

      you can buy a 0-12V transformer and connect a diode bridge rectifier to its output along with a filter capacitor, this will provide you an output of around 19V which can be used for driving your router.

      Reply
  37. alis says

    Thanks sir for your kind reply.
    Sir I got the idea of emitter follower cct for transistor but I forgot to mention in previous question that my battery is 12 volt.
    One thing more I want to ask that, does the formula R= 1.25/charging current apply on the second circuit only and Ohm's law apply on the first curcuit for the the value of R1. If yes then for the 1st cct, is the value of R1=12/2 = 6 Ohms or 14/2= 7 Ohms for 2 Amps of charging current. And what will be the wattage rating of other componants like zener diod for this charging current.

    Reply
    • Swagatam says

      You got everything right Alis!

      the wattage can be calculated with the following formula

      P = R x I^2 = 6 x 2×2 = 6 x 4 = 24 watts

      By the way the current is supposed to be 1/10th of the battery AH…I am not sure what's 2 amp in your case.

      Reply
  38. Kailash Upadhyaya says

    Dear Swagatam.
    I tried to make the circuit according to the diagram, but i got an issue.
    The line going to the laptop has very low and fluctuating amperage although the voltage is fine. I am actually trying to power two routers and it works flawlessly on one router, but it only works with the mains connected in the second router. Once the mains is disconnected and battery is connected, the amps is too low and fluctuating. What could be the reason for this? Please give feedback

    Reply
    • Swagatam says

      Dear Kailash,

      check your adapter specifications or change with a higher current adapter, I think it may be low in current and therefore not able to charge the external battery and the laptop together.

      Reply
    • Kailash Upadhyaya says

      Dear Swagatam,
      Thank you for your prompt response.
      I bought the adapter just for this project according to the specs you had given on one of the comments.
      It is a 14 volts adapter with 2.37 amps current. I could not find the 3 amps one in the market so I got the 2.37 amps one.
      I cannot afford to buy another adapter at this moment, so is there anything that could be done for instance by adding transistors or any other parts in the same configuration.
      I would be very grateful if you could provide the solution.
      Thank you once again.

      Reply
    • Swagatam says

      Dear Kailash, please try the new adapter and see how it performs.

      for a better response you can try connecting a 2200uF/25V cap across the D1/D2 junction and ground.

      Reply
      • Kailash Upadhyaya says

        Dear Swagatam,
        I think that there has been some misunderstanding regarding my situation.
        The circiut works fine when the adapter is connected to the main line of 220 volts. Once I switch the main line off and the circuit is running on battery, It can power one of the routers, but the other fluctuates. I do not think that this is the issue with the adapter. I might have done some mistake with circuit itself. I am a bit confused with the final part of the circuit. From the d2 and d1 junction it goes to the +ve of the modem. What about the -ve of the modem?I have connected the negative of the adapter to the negative of the battery using a wire from which I have cut two areas which connect to the -ve of the modem and to the ground. Is this correct? I think that this could be the issue. Please shed some light on this.

        Reply
        • Swagatam says

          Dear Kailash. yes I misunderstood and thought that the issue was when the mains was ON.

          The negative line shown with the earthing sign should be connected in common to all the negatives of the respective devices….

          If the voltage is not dropping then the current fluctuations can be ignored…please measure the voltages across the specific routers and confirm whether it's constant or not.

          Reply
    • Kailash Upadhyaya says

      Dear Swagatam,
      Thank you for your prompt response.
      Could you please post picture of the capacitor connection. I am new to all this stuffs. I do not think that I could do it without a picture.

      Reply
    • Swagatam says

      Dear Kailash,

      It's easy, solder the long lead of the capacitor with the D1/D2 junction, and the smaller lead with the bottom negative line or the earth line

      Reply
  39. Kailash Upadhyaya says

    Dear Swagatam.
    I tried to make the above circuit, but I have come accross a certain issue.
    The amperage on one of the connection is very low and fluctuating.
    I am new to electronics, so could you please shed some light on this matter.
    The line connected to the laptop has the problem. The one going to the router is just fine.
    Thank you for your time

    Reply
  40. alis says

    Thanks a lot for nice and great information.
    Sir, I just want to know that what phenomena in the first circuit is to protect overcharging the battery, that is less current, voltage or anything else.
    Secondly if I want to charge my 9Ah AGM battery with 2 Amps for quicker charging what changes should I made in first cct, what will be the value of R1 and across it what will be the value of resister in series of Led to indicate charging.
    Thanks again.

    Reply
    • Swagatam says

      Thanks Alis,
      in the first circuit, the transistor is wired in the emitter follower mode in which the transistor is simply not allowed to conduct or is "choked" as soon as the emitter voltage reaches the base voltage level or at a difference of 0.6V (close to it.)

      therefore assuming if the base zener voltage is 14.6V, then as soon the battery voltage reaches 14V, the transistor is unable to conduct any further, unless the battery drops to below 13.8V

      for 9V battery, you can use a 11V zener diode

      Reply
    • Swagatam says

      R1 can be calculated by using ohm's law
      R = V/I

      9/0.5 = 18 ohms
      watt = 18 x I^2 = 4.5 watts or 5 watts

      if an LEd is connected in parallel to R1, then a 100 ohm resistor will be enough to safeguard it

      Reply
  41. Achuet Kumar says

    Can u please tell me…. Is this circuit protects battery from over charging

    Reply
    • Swagatam says

      the first one will do it..

      Reply
  42. Rusan says

    Also, please kindly list the components that i should use to complete the circuit.

    Reply
    • Swagatam says

      click the diagram to enlarge, and write down the components as it's shown, your retailer will understand and give you the components accordingly…

      Reply
  43. Rusan says

    Thank you for your quick reply. But, you didn't mention which circuit should i use? And, would the 12 V adapter safe?

    Reply
    • Swagatam says

      Rusan, you did not ask me about the circuit selection therefore I did not suggest about it.

      both the circuits are correct and will work.

      you can use any of those as per your convenience..

      12V adapter will not charge 12V battery…so it must be set to 14.4V adapter

      Reply
  44. Rusan says

    Hello, Swagatam.

    I want to power my router which requires 9 volt 1 amp but i have two 6 volt 4.5 Ah Lead Acid Battery. So, i want to use two 6 V batteries to power my router. Is it possible? I would be very thankful if you could help me.

    Reply
    • Swagatam says

      Hi Rusan,

      yes you can do that, just be sure to add a 7809 regulator across the output, that is across the cathode junction of D1/D2 and ground

      Reply
  45. Adnan Ali says

    Sir can I use a Transformer with bridge connected instead of 12v adapter and can I also just skip voltage regulator and directly connect through R1/D1 & which R1 resistor should I choose if I need 2.5~3.0ampere current for 12v battery. Thanks for your help & It is humble request to you please reply this message.

    Reply
    • Swagatam says

      Adnan, yes you can do it in that way, but please note the battery charging section is crude therefore it's better to use a reduced charging rate.

      you can use 1/20th of the battery AH as the charging rate.

      Use Ohms law for R1, that is R = V/I, where I is the charging rate as described above, V is the supply voltage

      Reply
  46. Swagatam says

    Adnan, LM317 will work, because the modem will not consume the entire 1 amp while the battery will require only 500mA for the charging….however L78012 can be used, but you will need to add diodes in series with its GND pin, along with a 1K resistor as shown in this article…this is required for raising the voltage from 12V to 14V for charging the battery

    https://homemade-circuits.com/2013/04/12v-5-amp-fixed-voltage-regulator-ic.html

    Reply
  47. Adnan Ali says

    Sir Great Work but I some confusion there,I have 12v Battery 7.5aH & 1Ampere consuming Modem. As LM317 Regulator only gives 1.5ampere, so will this 1.5ampere regulator run modem & also charge battery efficiently. Another thing is that I got L78012CV Regulator, so can I use this regulator instead of LM317/TIP122 without changing something in circuit. Thanks in advance Sir

    Reply
  48. Emotion Piano says

    Thanks for uploading your schematic circuit ,! I have some questions here.Could you please reply me soon ?.
    1.As far as i know ,the voltage for battery charging is about 13.6v -> ~ 15v (depending on your battery type).Your first circuit apply 12v adaptor ,does it work ?
    2.When the battery is full ,it is about 13.5~13.7 .The battery voltage is dominant ,leads it works continuously (at that time the circuit won't use adapter supply ,it will use the battery ).

    Reply
    • Swagatam says

      For a 12V batt the input is supposed to b e 14.4V, the diagram shows a 12V adapter because we don't get 14.4V adapter, so readers are advised to handle such situation with discretion and logically.
      The batt voltage can never surpass the adapter voltage, therefore the adapter voltage will be always the dominant one as long as the mains is available.

      Reply
  49. al santiago says

    Will this work if connected to an LED strip with 12v input, 2.8amp and consumes 7.2 watts per meter?

    Reply
    • Swagatam says

      yes it will work but make sure the transistor or the IC is mounted over a large heatsink

      Reply
  50. Eudald Bover says

    Dear Swagatam,

    I want to design a ups circuit with the following requirements:

    – Power supply AC/DC: 35W, 15VDC (www.meanwell.com/search/LRS-35/LRS-35-spec.pdf)
    – Battery: 12VDC
    – Operation: While the AC is OK, the battery will be charged (WITHOUT OVERCHARGING) and the output will be the power supply 15VDC. When the AC is NOT OK, the output will be the battery 12VDC.

    I think that a simple way to detect if the AC is OK or not could be to read the output voltage. If it's 15VDC i can consider that the AC is OK and if it's 12VDC it's not OK.

    To sum up: I need a circuit to charge the battery without overcharging and to provide me an output with 15VDC when AC is OK and 12VDC when AC is not OK.

    I have seen your experience with UPS, could you help me with that?

    Lots of thanks,

    Reply
    • Swagatam says

      Dear Eudald,

      You can effectively use the first circuit shown in the above article, just eliminate D1 so that the full 15V is able to reach the output while mains is present. rest everything can be as is.

      Reply
  51. Ritesh Shakya says

    What is the replacement of 100 ohms 2watt resistor?

    Reply
  52. Joao Dias says

    Thank you for answering. Its an Lead Battery. By the way, is it possible to set a led to indicate full charge? If yes, where should i put it? Thank you again!

    Reply
    • Swagatam says

      you can try adding an LED across R1 with a series 50 ohm resistor, and check the response, as long as it stays illuminated you can assume the battery to be getting charged.

      Reply
  53. Joao Dias says

    Hi there! Thank you for the schematic! For the second circuit i have a 2Ah (12v) battery. Im using a 12v 1amp charger. Witch is the value of R1? R1 = 1.25/1A = 1 Ohm?
    Thanks!

    Reply
    • Swagatam says

      Hi, if it's a lead acid battery then the charging current should be restricted to 2/10 = 200mA

      so R1 should be 1.25/.2 = 6.25 ohms

      if it's a Li-ion batt then your calculation results will work.

      the first circuit is more efficient in terms of voltage control so I recommend the first circuit

      Reply
  54. Mustafa Samim says

    Thanks for the nice tutorial of yours Mr. Majumdar!

    Here what I want to do is a bit different. I Have a UPS with 12v, 9AH (cycle use: 14.4 – 15.0v) battery inside and NO LOAD CUT OFF feature added which means it will charge the battery even if it is off but connected to the main outlet.

    And at the same time I have a DSLR router with 9v, 0.85A adapter. Now I want to connect the router to the battery directly without the need of adapter of course.

    What sort of circuit do you recommend for this purpose. Initially I want the router to be feed from UPS coming connections to the battery and when the main power fails the battery should feed the router?

    Thanks in advance

    Reply
    • Swagatam says

      Hi Mustafa,

      according to my assumption, you can use the last circuit presented in the following article:

      https://homemade-circuits.com/2015/11/redundant-ups-circuit.html

      The "alternative power" can be replaced with the 12V DC power from the UPS mains, and the "12V adapter" can be replaced with battery terminals.

      Reply
    • Mustafa Samim says

      Thanks for the reply.

      One thing to make sure as the alternative power or 12V DC from UPS main is connected to battery terminals, so I should have the UPS mains (alternative power) and battery terminals (12V adapter) connected together, right? At this stage it will charge the battery and feed the router at the same time.

      And the 2nd thing that I need a 9v, 0.85A output, but the mentioned circuit is for 12v 3A I think. How should I adjust that?

      Reply
    • Swagatam says

      I was a little confused here….so if that is the situation, then you won't need anything, rather you can simply connect your router directly across the battery terminal via a 7809 IC. just make sure the IC is fitted with sufficiently large heatsink.

      Reply
    • MSTF SMM says

      Thanks again
      That does the job and brings the voltage to 9v, but it still outputs 1A I think, right? So no problem for router?

      Reply
    • Swagatam says

      no problem even if it's 100 amps, because as long as the voltage is as per the load specs, the load will draw only the minimum required amount of current.

      Reply
  55. Shayan Firoozi says

    Hi again sir ,

    i need to do the same with two 24 volt AC 5 Ampere adapter , i mean how can i make redundant power supply for AC adapters ?? and which diode or which technique should i use ?

    many thanks Swagatam

    Reply
    • Swagatam says

      Hi Shayan, if your primary supply is connected to D1, then make sure D2 has one more diode (D3) in series with it….that's all.

      Reply
  56. Muhammad Waqar says

    sir give me a circut diagrame.i have a bike battry 12v and dsl modem with chager.give me diagrame in which i connet these things.some qulity must b in.like no need to disconncet battry when light in on and overcharge protection and off during light off

    Reply
    • Swagatam says

      you can try the first circuit from the above article

      Reply
  57. Asif Suhaib says

    Sir can you please make me circuit for 9v and 0.6 amps…and there is a POE also i want that also to backup …its is rated as 12V and 1amp also can do the job or 0.7 or 0.8 amp also…plz post ASAP sir i want to build it

    Reply
    • Swagatam says

      Asif, you can use the same circuit as presented in the above article.

      just add 4 more diodes in series with the D1, D2 outputs and use it for the 9V load while the D1/D2 terminals can be used for the POE

      Reply
    • Asif Suhaib says

      Thnks You for the intimidate Reply Sir…but i am a beginner sir so i dont know can u redesign schamatic for me plz sir

      Reply
    • Swagatam says

      D1, D2 junction can be used for your 12V load…and connect three mote diodes in series at the junction of D1/D2, and the end of this four diodes series can be used for powering the 9V load.

      D1
      —>I—|12V
      D2 |————–>I—–>I——>I——->I——– = 9V
      —>I—|

      Reply
    • Swagatam says

      …sorry the above diagram did not publish correctly….but you can get the idea…D1, D2 ends are joined and connected with the 4 diode chain….the left end of this chain gives 12V, and the right end gives the 9V

      Reply
  58. Shayan Firoozi says

    Thank for your reply,
    The point is clear,there are many products which has 2 input for different power supply,for example one for noraml mains,one for generator or other mains,like servers,routers,and some critical equipment,we call it redundant power supplies

    I have an equipment wh consumes 3 amper in 12 volt dc,if I use 2 transfer with 12 volt,3 amp output which one take responsibility and which one is waiting for first loss?? Both are same on voltage and amperage,I don,t want them to work together,I want second power supply to be standby

    Thank you
    And if it's possible tell us about model of diode and other components for 12 volt 3 amper

    Reply
    • Swagatam says

      OK understood, the above circuit can be used with two power supplies, but one of the supplies will need to be slightly higher than the other for ensuring that the diodes do not conduct together or randomly…the main power supply could be made slightly higher than the standby supply, may be by a volt, amperage won't be an issue.

      or in case the both the supplies are equal, the standby supply can have two diodes in series while the main supply may be provided with a single diode…. this will take care of the alternate switching of the diodes.

      for 3amp use 6A4 diodes

      Reply
  59. Shayan Firoozi says

    Hi sir
    Just a simple question:
    What would happens if I replace battery with another 12 volt power supply ??
    Will it work as a redundant or standby power supply ??
    Thanks for your answer in advanced

    Reply
    • Swagatam says

      Hi Shayan,

      sorry I could not understand the logic behind this…of course it would work like a battery would do…but what's the point in using two mains operated power supplies??

      Reply
  60. Chris says

    Thanks for the reply, with the same idea that it 12 V battery I connected, does polarity make any difference in DC connections probably I did not take care of polarity.
    In that case, can i connect as following-> 12V SMPS charger to Battery terminals and From battery terminals to Modem Just like an on line UPS? do I have to incorporate any safety components from Terminals to Modem?
    ( they may calling it 12 V SMPS, but probably it is more than 12V it is actually used in UPS/Inverters for charging it is perfectly charging the exide battery)

    Reply
    • Swagatam says

      yes, maintaining a correct polarity is definitely critical, a wrong polarity can instantly damage a particular device unless it may be protected with a diode.

      It's possible to connect the units the way you have suggested and no safety measures are essential except for a battery over charge cut off circuit…or if you want to avoid this you can use a13.5V input instead of a 14.3V, which will never allow the battery to get 100% charged and therefore can be used without the over charger protection feature.

      it would be advisable to measure the SMPS output volatge and make sure it's delivering above 13.5V

      Reply
    • Chris says

      SMPS when not connected 13.70 When SMPS charging it is showing 13.35 , battery voltage is 12.80 when SMPS not connected ,Should we have any protection before the modem to limit it to 12 Volts/ I mean, is it necessary? if so what should we put there .

      Reply
    • Swagatam says

      You can use two more diodes in series, meaning put two more diodes in series with D1, this will rectify the issue and drop around 1.2V from the adapter output for the modem

      Reply
  61. Chris says

    HI Swagatam nice explanaations and ideas, i need help on similar need, here are what i have at hand
    1.12 V 35 Amps exide battery
    2.7V/7AH Batery
    312 SMPS charger i am using to charge the exide battery
    4.12V/1 Amp Adapter for modem
    5.Modem
    I wanted to have two circuits
    1.To use with Exide battery -UPS circuit ,Charging with existing SMPS charger, and powering the Modem on power fail switch to battery power

    2.To use with12V/7AH batter-UPS circuit charging the 12v 7Ah and powering the Modem on power fail switch to battery power
    i did a stupid thing connecting 12 V 35 amps Exide battery directly to modem thinking that it just 12V and my modem is in't working now, i just bought new modem and seek your help. Yes i can assemble circuits on experimental boards
    Kindly need your help, regards

    Reply
    • Swagatam says

      Hi Chris, Thanks for posting your question!

      The circuits explained in the above article are perfectly suited for fulfilling your requirements.

      You can try the second circuit which is more sophisticated than the first one for both the needs..

      A 12V adapter might not charge a 12V battery…the adapter output needs to be at least 14V to implement this.

      If your modem is rated to operate at 12V, then I think you have done nothing stupid by connecting it to the 12V/35AH battery. Here the current is not important as long as the voltages are compatible…so it's quite OK to operate your 12V modem with any DC 12V source, even if it may be rated 1000 amp or 100000 amps

      Reply
  62. Athar Baig says

    hello Swagatam, I have Lead Acid battery with 6v 6Ah, laptop charger with 20V, 3.25mA. i want to use these thing to operate modem which operates on 12V, 800mA. Please help me to find the solution of this problem.

    Reply
    • Swagatam says

      hello Athar, for operating a 12V modem with a 6v you'll require a boost converter circuit which could be quite difficult if you are a newcomer in the field of electronics.

      Reply
  63. Shiva says

    What components shuld I use for a 5v 500mamp current…???

    Reply
    • Swagatam says

      components can be the same, just use a 7V adapter and set R1 according to the formula.

      Reply
  64. Syed Khalid says

    realy appreciate bro thanks buddy…… nice

    Reply
    • Swagatam says

      you are welcome buddy!

      Reply
  65. Black Bird says

    Hello Brother, I have a 12v 7ah battery. And I want to use it for backing up a 12v 0.5Amp modem. I want to run this setup continuously. Thus iam worried about overcharging of the battery. which circuit is preferable in this situation. 1st pic or 2nd pic ? and I also have a 24v wall adaptor could I use it on this setup ?

    Reply
    • Swagatam says

      Hello black bird, you can use the first circuit for charging your battery continuously without worrying, just make sure the zener diode is not rated above 14V. R1 can be selected arbitrarily, may be a 1 ohm resistor will be just enough…24V adapter can be used with the first circuit

      Reply
    • Black Bird says

      Thanks For the Reply 🙂 . Any way Could you please list the exact values of items that are included in the circuit. And is these items are easily available ? especially the Transistor TIP122 and 14v Zener ? Thanks again 🙂

      Reply
    • Swagatam says

      D1, and D2 cab be 1N5408 diodes, rest everything is given in the diagram itself, yes all these are standard components and should be easily available in the market.

      Reply
    • Black Bird says

      Sorry Brother One More Doubt 🙂 , The adapter that is with me now is rated 24v 0.5A . So could it provide sufficient current to charge a 12v 7Ah battery ? Iam a newbie in electronics . So please help me ?

      Reply
    • Swagatam says

      yes bro, it will be able to charge your battery, you can remove R1 for ensuring quicker charging, withing 8 to 10 hours.

      Reply
    • Black Bird says

      Sorry to disturb You again , Iam getting 24v in between Modem out terminals , when using a 24 v power supply. and about 16v in between battery out terminals ? My modem is rated about 12v .? what to do ?

      Reply
    • Swagatam says

      I am sorry blackbird, I just overlooked the fact that the 24V would get directly connected with your modem….please do the following change in the design…just disconnect the anode of D1 and connect it directly with the emitter of the TIP122….and entirely sure that the zener diode is rated at 14V or slightly lower, you can try connecting a 1K preset parallel with the zener diode for correcting the output voltage to the required precise levels

      Reply
  66. Syed Khalid says

    ok bro can i use 8v i have a 8v charger at the rate of 700mA can i use plz help me..

    Reply
    • Swagatam says

      ye, 8V/700mA will do, you can use it, if possible put a 1N4007 diode in series with the positive of the charger… this will drop the voltage to 7.4V…

      Reply
  67. Syed Khalid says

    sir i have a battery 6v 4.5ah/20hr and i want to charge plz help me what voltage i use to charge the 6v battery
    and i have a 12v charger can i use 12v charger to charge the 6v battery plzz help me plzz

    Reply
    • Swagatam says

      Syed, you must use 7V as the input for the battery at the rate of 500mA current for your battery.

      No, you should not use 12V for charging a 6V battery, it might damage the battery permanently or start internal gasing of the cells

      Reply
  68. Syed Khalid says

    But i check my router with multimeter router is droping the ampere about 0.40 at full load

    Reply
    • Swagatam says

      sorry I could not get your point…please elaborate what exactly are you referring to?

      Reply
  69. Syed Khalid says

    hello can we use the diode name 1N4007 as on 1N5402

    Reply
    • Swagatam says

      no, 1N4007 will burn at 1amp..you can use either 1N5402, 1N5408 or 6A4 diodes

      Reply
  70. Syed Khalid says

    can you plz tell me the names of the item which you used in this circuit
    thanks again i hope you help me again

    Reply
    • Swagatam says

      D1, D2 are the diodes, TIP122 is the transistor, LM317 is an IC, the 14V/1watt part is the zener diode

      Reply
  71. Syed Khalid says

    hello sir i want to make wifi ups for 5v 1a and mean to say that when the ac power is on the router is on the ac power and that time the battery will also on charging and when the ac power is off or cut router is on on the battery power when the ac is on the router will run on the ac power sorry for bad english and i hope you will help me plzz

    Reply
    • Swagatam says

      Hello Syed, the above indicated circuits are exactly as per your application needs, you can try any one of these for implementing the same.

      Reply
  72. Engr. Abdul Hannan says

    Can a relay be used for auto backup function in this circuit if so then plz tell and give the circuit diagram for that

    Reply
    • Swagatam says

      relay is not required here, the diodes do the changeover automatically….for relay operation the diode set up won't be required, it may be done simply by using a single relay with the mains adapter supply and wire its N/O, N/C contacts with the load and the battery

      Reply
  73. Zainey says

    sir i have made this circuit but i am not sure whether the battery is charging or not because i have also used an ammeter in series with battery junction and its shows no current flowing into the battery while mains is available

    Reply
    • Swagatam says

      Zainey, what is your battery Ah rating? and what is your input current range and what resistor have you used in series with the battery?…what is the FSD range of the ammeter that you have used?…specify all these I'll try to troubleshoot it.

      Reply
  74. mudassir awan says

    dear sir , i followed all your instructions for the above mentioned circuit but unfortunately i could not found the Lm338 and 1N5402 instead there is 1N4007 available here.so i want to know if there is any way of connecting my modem directly to the battery and is it possible to use a 1A fuse in line …..2ndly can i charge my 12v 30Ah battery with 12v 1A charger which is at the same time powering the modem also???? any help will be appreciated pls help…. i'll be waiting for your ans from now

    Reply
    • Swagatam says

      I am sorry mudassir, the diodes are the heart of the circuit, with no diodes the circuit would become meaningless, so you must find 1N5402 or iN5408 diodes for you particular application. 1N4007 will not do

      12v/1amp will not charge a 12V/30ah battery properly…the adapter should be rated at 14V/3amp minimum.

      Reply
    • mudassir awan says

      many thanks sir …..i'll try once more

      Reply
    • mudassir awan says

      hello Swagatam majumdar ….i found an adopter and there is 5-13v 700mA stated on it will it charge 12v 30Ah battery ….if yes then it will take too long to charge fully what you say?

      Reply
    • Swagatam says

      hello mudassir…13v will just not work…it should be at least 14.5V…and at 700mA it may take ages to get your 30ah battery fully charged.

      Reply
    • mudassir awan says

      yahooo…. i did it easily with a simple way… i connect a 1A fuse inline and connet it with 12v 30Ah battery directly and it worked fine for me now i can use it for 25-28 hours continously powering my dsl without any problem i used a 2way switch between battery and 12v dc adaptor …..

      Reply
  75. mudassir awan says

    hi sir…..appreciate your work
    actually i have a 12v and 30amps(not sure) and i wanna use it to power my 12v 1amp modem ….what changes should i made for that in this schematic that exactly fulfil my requirements and do not damage my modem ,…..i am waiting for your kind suggestions

    Reply
    • Swagatam says

      thanks mudassir,

      you can use the same circuit for a 12V 30amp battery also, no changes would be required except the following

      in the second circuit, use LM338 instead of LM317 and use 0.25 ohms/1watt for R1

      in the first circuit remove R1 and replace it with a wire link.

      Reply
    • mudassir awan says

      thanks….and what if i plan to use it permanently with modem .i mean if the battery is over charged will this circuit stop charging ?

      Reply
    • Swagatam says

      the first circuit will stop overcharging of the battery, the second circuit will not do this.

      Reply
    • Chris says

      Can you please modify and incorporate the second circuit to prevent overcharging plz?

      Reply
  76. Roney Renaissance says

    Hi Swagatam,
    Can I use 3ah battery instead of the 7.5ah one? The suggested 14v adapter is not widely available on our market? If 12v one is used, will it not work? And if 15v adapter is used, will the router run a risk of burning out?

    Reply
    • Swagatam says

      Hi Roney, yes 12V 3ah can be used but it will give a proportionately lower backup time compared to a 7ah battery

      you can easily make a 14V power supply by using a 0-12V/1amp transformer and then rectify its output with a bridge network and capacitor

      Reply
    • Roney Renaissance says

      Thanks a lot. I'm just a new comer to electronics. May I ask for any link of that bridge network design to get 14v from 12v transformer? And what would be the R1 value in case 3ah 12v battery?

      Reply
    • Swagatam says

      Please refer to the third circuit from this article, a basic transformer bridge capacitor circuit is shown, please connect them exactly as shown for implementing the required cirucit:

      https://homemade-circuits.com/2012/03/how-to-design-power-supply-simplest-to.html

      Reply
  77. Dipto says

    Hi Swagatam,
    I want to use an external 3.6VDC 700mAh Lithium Battery as backup instead of charging it from main supply & want to drive a 5W light rather than modem/router will this work?

    Reply
    • Swagatam says

      Hi Dipto, do you mean you don't want the LM317 or the TIP122 stage and want to use only the diodes for the changeover?

      Yes the above circuit can be used for your application too….but a 5 watt light will be too big for the mentioned battery, will drain it quickly

      Reply
  78. Ahmed Sabra says

    hi Swagatam,
    i have a laptop charger "19v, 4.2amp" i build a voltage regulator lm338 to use it as a 12v battery charger..with variant resistor.. and i adjust it to get 14.5v to charge the battery.. but the output current had never crossed 1.7 amp.. even if the battery is fully discharged.. why?? you told me that lm338 output could reach 5amp.. so what is the problem?? why cant i get at least 4 amp??
    another question.. when the battery is fully charged.. the output current from charger is near 0.2amp.. does that mean the charging is stopped?? or this current will harm my lead acid battery??
    and thank you very much

    Reply
    • Swagatam says

      Hi Ahmed,

      Either the input charger is not supplying 4 amps to the IC LM338 or the IC LM338 is faulty or duplicate….a good IC and a good charger will definitely allow full 5amp to the load….of course only if the load would be consuming this much current.

      By the way what is the AH rating of the battery??

      When the battery is fully charged it will naturally stop accepting current from the charger but that doesn't mean it's not being charged, the input will need to be switched off in order to avoid damage to the battery in this situation.

      Reply
    • Ahmed Sabra says

      what do you mean by AH rating??
      and about the charger .. i tried to apply the charger directly on battery "with 19v" it gives 4.2amp.. but when i use the regulator it's never cross 1.7
      thanx again

      Reply
    • Swagatam says

      AH means ampere/hour it can be seen printed on your battery body

      if you apply 19V to a 12V the battery it will get damaged quickly, so it's never recommended even for a short duration.

      Your ICLM338 is faulty for sure, a good IC will allow the full amp to be delivered to the battery depending on how the battery is pulling….

      test the battery charging amp with a different 14V source that will give a clearer idea regarding the consumption.

      Reply
    • Ahmed Sabra says

      it's 70AH .. and when i charge using another charger it get 10amp.. but thats mean like you said that the ic is very bad..
      anyway thank you very much

      Reply
    • Swagatam says

      for a 70AH battery LM338 will not work anyway, because the batt will need around 8 to 10amp charging current and LM338 can provide max 5amp, better to use a 14V 10amp smps and charge the battery with it directly for 8 hours.

      Reply
  79. shahab ali says

    ok sir, that is good. thanks

    Reply
  80. shahab ali says

    sir i want to construct a 14v and 10A transformer but i do not know about wire diameter, number of turns and aria of bobbin. so kindly guide me or send me any link that is helpful to beginners.

    Reply
    • Swagatam says

      Shahab, I too do not have much knowledge regarding designing of transformers, so I won't be able to provide any help

      Reply
  81. Syed Arham says

    sir, i want to eliminate the charging system.
    I just want to connect the wifi router with battery when the AC(Main) fails.
    I have use a relay for desired operation but when the AC(main) fails the device restarts and wifi connections are disconnected.

    Reply
    • Swagatam says

      use only D1, D2 for it.

      D1 comes from the adapter positive, D2 from the battery positive, their common cathodes ends join with the router positive.

      Reply
    • Syed Arham says

      at this configuration when the ac main is present the battery is not consuming or it is consuming??

      Reply
    • Swagatam says

      In this configuration the battery would have no connection with the adapter voltage and would not get charged.

      Reply
  82. Pat Selim says

    Most laptop adapter nowadays output 18.5 to 19V. I guess they're OK for laptop use, of course, and would give the required 13.8V to the battery?

    Reply
    • Swagatam says

      OK, that's fine Pat!

      Reply
  83. Mannan shah says

    my router is 12v(0.8A)
    battery=12v 3.5AH

    give some suggestion about using this circuit?
    thanks

    Reply
    • Swagatam says

      you can use the above circuit with a 14V adapter, but 3.5ah won't last too long during back up.

      Reply
  84. Pat Selim says

    Hello Swagatam,

    just made this circuit with a 1ohm resistor to provide a lower (thus safer) current to my 4.5Ah battery. I used it with a 12V adapter, but forgot that a 12V battery needs about 13V to charge properly, whereas there's only 10.5V on battery terminals. Is the circuit built with 9V batteries in mind by any chance?

    Reply
    • Swagatam says

      Hello Pat, the adapter voltage should be 14V, the diagram shows a standard value adapter (12V) which could be ignored and a 14V must be used.

      Reply
  85. Ahmed Sabra says

    thank you very much for your advice
    i did what you told me… but i got a problem
    since i use a 12v adapter..when i connect it with diode it decrease to 11.5v and since i use a car battery.. most of time it gives 13.5-12.5v so its always above the adapter.. so its always take the lead.. and the adapter only work when i disconnect the battery.. (the circuits do the opposite of its purpose" 🙁
    so should i put some 7812 for the battery?? or use a higher volt adapter like 14v?? but am afraid for the router because its 12v only

    thank u again

    Reply
    • Swagatam says

      yes, a 7812 with the battery output would solve the problem instantly.
      If possible use an adapter which has a feature of fine-tuning the output through a preset.

      This would allow you to increase the adapter voltage slightly, may be to 13V for getting a perfect response.

      Reply
  86. Ahmed Sabra says

    hello Swagatam
    first of all i have to thank you very much for your nice work.
    i have a 12v.5A router, wireless phone "panasonic" 6v/0.5A , an acid battery with 100 amp and a 20A charger for the battery…
    1.i want this ups but without charging myu battery "because i have a chagrger"
    2. could i put 7806 regulator on output to run my wireless phone ?
    3. i have a 12v/1.25A and laptop charger 19v/3.5A.. which one should i use ??

    and thank you again

    Reply
    • Swagatam says

      Thank you Ahmad.
      I did not quite understand how you are planning to use the above circuit.
      Do you mean you want the 20A charger in place of the adapter shown in the above circuit??
      2. yes 7806 can be used at the output
      3. If you intend to use it as the input source, you can use a 14V adapter, if the battery is rated 12V, but none of this would be able to charge a 100AH battery.

      Reply
    • Ahmed Sabra says

      i like to build this circuit but without charging feature because i want to charge the battery manually
      i mean.. i will use an adapter 12v as main current but i dont want it to charge the battery… i want it only to be the main current…
      when the adapter power fail… the battery will give the current instead of the adapter…
      when i notice that the battery need to be charged.. i will connect my 20amp charger manually..
      hope u get my idea
      thank you again

      Reply
    • Swagatam says

      Ok, the following design will be sufficient in that caes:

      1.bp.blogspot.com/-I2zlapFq6RM/UML_NxUJy2I/AAAAAAAAB3w/27ZLDjK9C9g/s1600/simple+modem+UPS+circuit.png

      The entire R1 link may be included excluded, it won't make much of a difference.

      use 1N5402 for the diodes.

      Reply
  87. Elijah says

    …with load connected, with smaller load no issues….smaller load of about .5A. At full load, Ammeter shows an average draw of 3.5A, sometimes it oscillates between 3.4 to 3.8A. what surprises me is that the 338 never even warm up talk less of very hot, I thought it will heat up initially, so I mounted it on a heat sink. Surprises, it never warms up even, its cold there…

    Reply
    • Swagatam says

      that's strange…at 3.5Amps the IC should get very warm….I am not sure if everything's correct in the circuit,
      try different values for R1 and check the amp consumption, if it varies accordingly then you can assume it to be OK.

      Reply
  88. Elijah says

    Swagatam,
    everything works well, but am having problem with the diodes, I used 4 1N5401, but they are still getting warm…..what should I do with this diodes…..

    Reply
    • Swagatam says

      …with load connected or always??. check the current consumption by an ammeter to confirm if everything's correct.

      Reply
    • Elijah says

      ..with load connected only, in fact if i put a small load less than an 1amp, no problem, until i put the entire load on it, or should i go for a higher diode , like 6 or 10amps?

      Reply
    • Swagatam says

      yes, in that case you can put more diodes in parallel or use a single 6/10amp diodes

      Reply
  89. Elijah says

    Am doing an additional follow up despite sending you an earlier one. The reverse current still flows, despite putting a diode, may be am putting it wrongly. Kindly help. This is the way I did it. Am using 1N5401 for this, this is the arrangement, the input positive power rail is connected to the anode of the diode and the cathode of the diode connects to the input of the LM 338…. Is that right?

    Secondly, I have also added 2 additional diodes in parallel to D1.

    Thanks for your support.

    Reply
    • Swagatam says

      Elijah, that cannot be possible…a diode at the input of the LM338 will never allow an opposite flow of current,

      the suggested diode connection is correct.

      The band side of the diode is the cathode.

      Reply
  90. Elijah says

    Hello Swagatam,
    Thank you so very much on this, without Load, I have not experience the heat, but I will check again and observe. Do you have any recommended make of the 338.

    I will try to work on the leakage and feed you back.

    Reply
  91. Elijah says

    Hi Swagatam,
    This is a nice solution I have been looking for and very simple to implement, but I want to use it to power a monorail motherboard, that is rated for 12V, but a about 5A, what do I need to do to this circuit to help me deliver 12V, 6A, and what battery capacity do you recommend.

    Reply
    • Swagatam says

      Thanks Elijah,

      for a 12V 6A load the recommended battery would be a 12V 40 ah, this would provide a back up of around a couple of hours max.
      For this you can simply eliminate the resistor R1 (in the second design) and use a LM338 IC in place of the IC 317.
      LM338 is specified for operating at maximum 5amps, so the battery would be always charged at the optimal rate of 5amps safely.

      Reply
    • Elijah says

      HI Swagatam,
      I appreciate your magnanimity at your replying me. I actually have implemented the circuit replacing Lm 317 with LM 338. It work quite well, but figured out that Diode D1, is getting very hot, I have to shut down. My guess was that the load (a monorail motherboard with other accessories are drawing a lot of current, while the battery is also charging. I changed the diode to 1N5408…thinking it should work, yet it is still very hot, though it worked well, I also eventually have to shut it down what do you advise, what am I doing wrong?
      And or what am I suppose to do?

      2- My adapter has a light by the side that lights up when its doing it job. I also discovered that despite taking the mains off, but battery is still connected to my board, the green light on the adapter still lights up/ Hope current is not flowing back from battery…..

      Reply
    • Swagatam says

      Hi Elijah,

      Is the diode getting hot even without the load connected? If so then there could be some problem with the LM338 circuit. Otherwise its fine, you may put a couple of more1N5408 diodes in parallel to the existing one.

      To stop a reverse flow of current from the battery, put a diode at the input of the LM338, this will prevent the battery voltage from leaking back to the modem.

      Reply
  92. ajay varma says

    Hello,

    I have a router of rating 9V, 0.6A. Can I use the same circuit with output voltage set to 9V. Plz suggest a battery rating for this configuration.

    Reply
    • Swagatam says

      for a 9v router the output voltage must be set to 10V and a 9V/4ah battery could be used

      Reply
  93. Pat Selim says

    Oh, and what wattage should R1 be? Charging current squared times number of ohms calculated?

    I am a bit afraid that this DC UPS, having no charging regulation, reduces the battery life.

    Reply
    • Swagatam says

      In the second circuit which uses the IC 317, wattage of R1 will be 1.25 x battery AH/10, yes without an auto cut-off it wouldn't be the best of the chargers, however the inclusion of the 317 current controller stage would help to keep the battery safeguarded to a considerable extent.

      Reply
  94. Pat Selim says

    I have no 1N5402. Would it be possible to use a 4004 instead in this application? Forward voltage drop is only 1.1V (1V for the 5402), and allows for less amperes. If used with a low-draw modem, would such a replacement be correct?

    And if I want to power both a modem and a router from the same battery, different voltages, would I be able to use my DC booster to get the required 18V for the modem while keeping 12V for the router?

    Reply
    • Swagatam says

      1N5402 will handle upto 3 amps while 1N4004 not above 1 amps.

      yes you can use a booster circuit for getting the required 18V for the same source.

      Reply
    • Pat Selim says

      Thanks for your quick answer Swagatam. My goal is to re-use small 12V batteries I have to power the essentials: Modem and internet gear!

      I will be using the inverter in a car. Considering the hassle associated with building a homemade inverter (namely, hard-to-find transformer and costly radiators), I'd rather buy a ready-made one.

      Reply
  95. Swagatam says

    Tanks!, you can try the LAST circuit shown in the foowing article:

    https://homemade-circuits.com/2012/07/making-simple-smart-automatic-battery.html

    Ignore the LM338 stage and connect the 14V supply directly across the N/C of the relay and ground….the two diodes connected at the positive of the batt make sure that the batt is held at 13.5V everytime the relay trips at 14.5V.

    Reply



Primary Sidebar

Electronic Projects Categories

  • 3-Phase Power (15)
  • 324 IC Circuits (19)
  • 4017 IC Circuits (51)
  • 4060 IC Circuits (25)
  • 555 IC Circuits (94)
  • 741 IC Circuits (18)
  • Amplifiers (49)
  • Arduino Engineering Projects (82)
  • Audio Projects (85)
  • Battery Chargers (76)
  • Car and Motorcycle (88)
  • Datasheets (45)
  • Decorative Lighting (Diwali, Christmas) (32)
  • DIY LED Projects (82)
  • Electronic Components (97)
  • Electronic Devices and Circuit Theory (35)
  • Electronics Tutorial (99)
  • Fish Aquarium (5)
  • Free Energy (34)
  • Games (2)
  • GSM Projects (9)
  • Health Related (17)
  • Heater Controllers (24)
  • Home Electrical Circuits (98)
  • Incubator Related (6)
  • Industrial Electronics (27)
  • Infrared (IR) (39)
  • Inverter Circuits (94)
  • Laser Projects (10)
  • LM317/LM338 (21)
  • LM3915 IC (24)
  • Meters and Testers (55)
  • Mini Projects (153)
  • Motor Controller (65)
  • MPPT (7)
  • Oscillator Circuits (15)
  • PIR (Passive Infrared) (8)
  • Power Electronics (33)
  • Power Supply Circuits (65)
  • Radio Circuits (9)
  • Remote Control (46)
  • Security and Alarm (56)
  • Sensors and Detectors (116)
  • SG3525 IC (5)
  • Simple Circuits (72)
  • SMPS (29)
  • Solar Controllers (60)
  • Timer and Delay Relay (51)
  • TL494 IC (5)
  • Transformerless Power Supply (8)
  • Transmitter Circuits (39)
  • Ultrasonic Projects (12)
  • Water Level Controller (46)

Follow Homemade Circuits

Facebook
Twitter
YouTube
Instagram
My Facebook-Page
Quora

Feeds

Post RSS
Comment RSS

Circuit Calculators

  • AWG to Millimeter Converter
  • Battery Back up Time Calculator
  • Capacitance Reactance Calculator
  • IC 555 Astable Calculator
  • IC 555 Monostable Calculator
  • Inductance Calculator
  • LC Resonance Calculator
  • LM317, LM338, LM396 Calculator
  • Ohm’s Law Calculator
  • Phase Angle Phase Shift Calculator
  • Power Factor (PF) Calculator
  • Reactance Calculator
  • Small Signal Transistor(BJT) and Diode Quick Datasheet
  • Transistor Astable Calculator
  • Transistor base Resistor Calculator
  • Voltage Divider Calculator
  • Wire Current Calculator
  • Zener Diode Calculator
  • Privacy Policy
  • About Us
  • Contact
  • Disclaimer
  • Videos – Circuit Test Results

© 2021 · Swagatam Innovations

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok