• 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 / Inverter Circuits / How to Design an Uninterruptible Power Supply (UPS) Circuit

How to Design an Uninterruptible Power Supply (UPS) Circuit

Last Updated on August 4, 2020 by Swagatam 39 Comments

In this brief tutorial we learn how to design a customized UPS circuit at home using ordinary components such as a few NAND ICs and a some relays.

What is an UPS

UPS which stands for uninterruptible power supply are inverters designed to provide a seamless AC mains power to a connected load without a slightest bit of interruption, regardless of sudden power failures or fluctuation or even a brown-out.

An UPS becomes useful for PCs and other such equipment which involve critical data handling and cannot afford mains power interruption during a vital data processing operation.

For these equipment UPS becomes very handy due to its instantaneous power back-up to the load, and for providing the user with ample time to save computer's crucial data, until actual mains power is restored.

This means that an UPS must be extremely quick with its changeover from mains to inverter (back up mode) and vice versa during a possible mains power malfunction.

In this article we learn how to make a simple UPS with all the bare minimum features, ensuring that it conforms with the above fundamentals and provides the user with a good quality uninterrupted power throughout the course of its operations.

UPS Stages

A basic UPS circuit will have the following fundamental stages:

1) An inverter circuit

2) A Battery

3) A battery charger circuit

4) A changeover circuit stage using relays or other devices such as triacs or SSRs.

Now let's learn how the above circuit stages may be built and integrated together for implementing a reasonably decent UPS system.

Block Diagram

The mentioned functional stages of an uninterruptible power supply unit could be understood in detail through the following block diagram:

Here we can see that the main UPS changeover function is carried out by a couple of DPDT relay stages.

Both the DPDT relays are powered from a 12 V AC to DC power supply or adapter.

The left side DPDT relay can be seen controlling the battery charger. The battery charger gets powered when AC mains is available through the upper relay contacts, and supplies the charging input to the battery via the lower relay contacts. When AC mains fails, the relay contacts changeover to the N/C contacts. The upper relay contacts switches OFF power to the battery charger, while the lower contacts now connects the battery with the inverter to initiate the inverter mode operation.

The right side relay contacts are used for changing over from grid AC mains to the inverter AC mains, and vice versa.

A Practical UPS Design

In the following discussion we will try to understand and design a practical UPS circuit.

1) The Inverter.

Since an UPS has to deal with crucial and sensitive electronic appliances, the involved inverter stage must be reasonably advanced with its waveform, in other words an ordinary square wave inverter may not be recommended for an UPS, and therefore for our design we make sure that this condition is aptly taken care of.

Although I have posted many inverter circuits in this website, including sophisticated PWM sinewave types, here we select a completely new design just to make the article more interesting, and add a new inverter circuit in the list

The UPS design utilizes just a single IC 4093 and yet is able to execute a good PWM modified sine wave functions at the output.

inverter circuit for the UPS construction

Parts List

  • N1---N3 NAND gates from IC 4093
  • Mosfets = IRF540
  • Transformer = 9-0-9V / 10 amps / 220V or 120V
  • R3/R4 = 220k pot
  • C1/C2 = 0.1uF/50V
  • All resistors are 1K 1/4 watt

Inverter Circuit Operation

The IC 4093 consists of 4 Schmidt type NAND gates, these gates are appropriately configured and arranged in the above shown inverter circuit, for implementing the required specifications.

One of the gates N1 is rigged as an oscillator to produce 200 Hz, while another gate N2 is wired as the second oscillator for generating 50Hz pulses.

The output from N1 is used for driving the attached mosfets at the rate of 200Hz while the the gate N2 along with the additional gates N3/N4, switches the mosfets alternately at the rate of 50Hz.

This is to ensure that the mosfets are never allowed to conduct simultaneously from the output of N1.

The outputs from N3, N4 break the 200Hz from N1 into alternate blocks of pulses which are processed by the transformer to produce a PWM AC at the intended 220V.

This concludes the inverter stage for our UPS making tutorial.

The next stage explains the changeover relay circuit, and how the above inverter needs to be wired with the changeover relays for facilitating the automatic inverter back up and battery charging operations during mains failure, and vice versa.

Relay Changeover Stage and Battery Charger Circuit

The image below shows how the transformer section of the inverter circuit may be configured with a few relays for implementing the automatic changeover for the proposed UPS design.

The figure also shows a simple automatic battery charger circuit using the IC 741 on the left side of the diagram.

First let's learn how the changeover relays are wired and then we can proceed with the battery charger explanation.

UPS automatic relay changeover

In all there are 3 sets of relays which are used in this stage:

1) 2 nos of SPDT relays in the form of RL1 and RL2

2) One DPDT relay as RL3a and RL3b.

RL1 is attached with the battery charger circuit and it controls the high/low cut charge level cut-off for the battery and determines when the battery needs is ready to be used for the inverter and when it needs to be removed.

The SPDT RL2 and the DPDT (RL3a and RL3b) are used for the instant changeover actions during a power failure and restoration. RL2 contacts are used for connecting or disconnecting the center tap of the transformer with the battery depending on the mains availability or absence.

RL3a and RLb which are the two sets of contacts of the DPDT relay become responsible for switching the load across the inverter mains or the grid mains during power outages or restoration periods.

The coils of RL2 and DPDT RL3a/RL3b are joined with a 14V power supply such that these relays quickly activate and deactivate depending on the input mains status and do the necessary changeover actions. This 14V supply is also used as the source for charging the inverter battery while the mains power is available.

The coil of the RL1 can be seen connected with the opamp circuit which controls the battery charging of the battery and ensures the supply to the battery from the 14V source is cut-off as soon as it reaches the same value.

It also makes sure that while the battery is in the inverter mode and is consumed by the load, its lower discharge level never goes below 11V, and it cuts off the battery from the inverter when it reaches around this level. Both these operations are executed by the relay RL1 in response to the opamp commands.

The setting-up procedure for the above UPS battery charger circuit can be learned from this article which discuses how to make a low high cut off battery charger using IC 741

Now it simply needs to integrate all the above stages together for executing a decent looking small UPS, which could be used for providing an uninterruptible power to your PC or any other similar gadget.

That's it, this concludes our tutorial for designing a personal UPS circuit which can be easily done by any new hobbyist by following the above detailed guide.

SHARING IS CARING!



Previous: Arduino Temperature Controlled DC Fan Circuits
Next: 3 Phase Induction Motor Speed Controller 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.  1500 watt PWM Sinewave Inverter Circuit
  • 2.  Convert a Square Wave Inverter into a Sine Wave Inverter
  • 3.  Multilevel 5 Step Cascaded Sine Wave Inverter Circuit
  • 4.  Homemade 100VA to 1000VA Grid-tie Inverter Circuit
  • 5.  How to Interface Arduino PWM with any Inverter
  • 6.  Inverter Voltage Drop Issue – How to Solve

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. Uday says

    Hi Sir,
    Could you pls post circuit for 2 to 5KW UPS.

    Thank and Regards
    Uday Joshi

    Reply
    • Swagatam says

      Uday, please build a smaller version first, may be a 100 watt design, if you succeed then you can easily upgrade it to any desired higher level….

      Reply
      • uday joshi says

        Yes , I thing you are right. Any link for 100 watt??

        Regards
        Uday

        Reply
        • Swagatam says

          You can try the concept explained in the above post, if everything goes well, you can upgrade it to higher levels.

          Reply
  3. Prashant says

    Hi Swagatam,

    I am looking to make a simple DC-DC UPS for my modem. I found this solution on instructables – however the flaw in the design is that if mains goes off when battery is discharged, it will fail to supply power. This design does not have a relay in it.

    Can you help me with similar component selection – however by adding a relay that allows fallback on battery ONLY when mains go off. I would like to use below set of parts for this design –

    1. DC DC Boost – MT3608
    2. LiIon Charger – TP4056

    Let me know if I need to go for different components. Appreciate your help and response.

    ~Prashant

    Reply
    • Swagatam says

      Hi Prashant, Please see the following image, I hope this may fulfill your requirement:

      router UPS using TP4056 Li-Ion charger

      Reply
    • Swagatam says

      You can build the same without a relay as shown below:

      DC UPS with diodes and li-ion charger

      Reply
      • Prashant says

        Really appreciate the inputs!!! And prompt response. Will build both of them and get back with final product feedback. Thanks!

        ~Prashant

        Reply
        • Swagatam says

          No Problem!

          Reply
  4. Rashaka Lufuno says

    Thanks again for such a useful UPS post in a need full time. I just have few question though,
    1. Since I will be using a 9v-0-9v / 220 Trafo , is it advisable to wind another auxiliary 14V for charging purpose avoiding using external adapter .
    2.Considering the availability and cost of high freaquency Ferrite Trafo, can the charger and change over switch be integrated to high freaquency smps inverter
    I will appreciate your assistance

    Reply
    • Swagatam says

      Glad you liked the post, I’ll try to help you:
      1) you can have an auxiliary winding, no problem, although using an external adapter appears to be an easier and hassle free option.
      2) If the SMPS also employs the same center tap MOSFET topology then the above system can e applied in it for getting the same results.

      Reply
      • Evans says

        Hello sir swagatam, please if you don’t mind help me a circuitry for 24v system. Most circuits you use are 12v based, please help. Also sir we can as well make use of the internal mosfet diodes instead of the tedious work of looking for a separate power supply for charging battery coz getting a high current rl3 say for a 6000w ups is much expensive. Do you have any I deal about this?

        Reply
  5. Ariel says

    I like the circuit, but what are the values ​​of the Resistances?

    Reply
    • Swag says

      resistors are all 1K

      Reply
  6. mara says

    Hi sir.can i know the simulation of offline uninterruptible power supply(UPS) on the MATLAB Simulink and how can i know the system can works as backup power supply when the main supply is powered off from the simulation? Then, what can i do for the improvement harmonic distortion on UPS as the the system is already designed to mitigate distortion? I hope ur can help me. Thanks in advanced !

    Reply
    • Swag says

      Hi Mara, you can verify the design by testing it practically and you will find it working with 100% results (if done correctly). I do not have any simulation results for my circuits.

      Reply
  7. K Premila says

    Dear sir,

    The above circuit works with 12 V DC battery, i assume. What should be the current rating of the battery. It is mentioned that refrigerator will work. What is the maximum load(s) that can be connected with the above circuit. If i want to increase the loads, say double the load what modifcation is to be done? Thanks and regards.

    Reply
    • Swag says

      Dear Premila,

      You can upgrade the inverter wattage as per your requirement. You just have to use a transformer that matches the specs of the load, similarly use a battery as per the transformer and the load…and the mosfets which can handle the trafo and battery current confortably, only these 3 parameters should be matched for ensuring the required output wattage.

      Reply
  8. Tun says

    Thanks for the tip, and keep on the good work Sir.

    Reply
    • Swagatam says

      you are welcome Tun

      Reply
  9. Tun says

    Hi, Mr Swagatam, I do really like to ask you these question that seem to be bothering for a long time. It all about modifying a 650va UPS (introducing two way power source e.g both battery and solar panels), besides, I need to know the suitable nos(watt ratting) for panels. Thank you

    Reply
    • Swagatam says

      Hi Tun, please refer to the following article for solving your doubts

      https://homemade-circuits.com/2013/05/how-to-calculate-and-match-solar-panel.html

      Reply
  10. christian manoppo says

    Hi, mr.swagatam, I need your help, I have transformer from old ups, I want to built inverter 12vcd to 220vac used this transformer, but the transformer not have center tap, how can I used,, thanks for help..

    Reply
    • Swagatam says

      Hi Christian, without a center tap you may have to employ a full bridge inverter topology, as shown below

      https://homemade-circuits.com/2014/01/simplest-full-bridge-inverter-circuit.html

      Reply
  11. Swagatam says

    son muy bienvenidos a Jesús, agradezco su interés

    Reply
  12. Jesus Te Ama says

    Genial amigo swagatam. Siga así con su trabajo que es exelente. Cuando lo tenga terminado le enviaré fotos o un video del funcionamiento del inversor. Otro gran abrazo

    Reply
  13. Jesus Te Ama says

    as this friend Swagatam. I am eager to build this investor to prove it in a refrigerator. I would appreciate greatly place the list of components. a big hug from Argentina

    Reply
    • Swagatam says

      Thanks Jesus, I have updated the parts list for you….a big hug to you too from India 🙂

      Reply
  14. Jesus Te Ama says

    Muchísimas gracias has sido muy amable. Exelente tu trabajo te felicito. Saludos

    Reply
    • Swagatam says

      De nada jesus!!

      Reply
  15. Jesus Te Ama says

    Hello, again

    Where do I find the list of materials investor.

    Officer with a refrigerator? and also with induction motors? thank you very much and sorry to bother you.

    Thank you

    Reply
    • Swagatam says

      Hello Jesus, yes the above inverter circuit can be used with refrigerator and induction motors…I'll try to update the parts list soon in the aboev article

      Reply
  16. Jesus Te Ama says

    Y otra pregunta. Sirve este circuito para motores de inducción?

    Reply
  17. Jesus Te Ama says

    Hola nuevamente exelente trabajo. Donde encuentro la lista de materiales del inversor. Y otra pregunta. Funcionaria para un refrigerador? Gracias

    Reply
    • Swagatam says

      Hola, please tranlate in English….

      Reply
  18. Swagatam says

    Thanks, I already have both of these ideas posted in this website, please use the search box at top right and search for.."humidity", and "incubator" you will be taken to the articles of your choice….

    Reply
  19. NvD says

    sir
    tell me whether this circuit of automatic candle works.The concept is that bulb lights when a lighted match stick is brought near the ldr and off using condensor mic puff off..If not can you tell me the changes in circuit so that it works
    https://drive.google.com/folderview?id=0B-dWJVKXq45-QmxydFA1SXVFYms

    Reply
    • Swagatam says

      sorry, the linked circuit will not work.

      and I just missed the MIC function, it means the circuit is supposed to work like a bistable or a flip flop, now it's looking doubtful….can't say just by looking at the diagram will need to be built and checked practically.

      most probably it will not work.

      Reply
    • Swagatam says

      you can try the following design:

      https://homemade-circuits.com/2011/12/make-electronic-candle-at-home.html

      replace C3 with the LDR

      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