• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Hire Me | Contact | Calculators-online
You are here: Home / Inverter Circuits / How to Convert an Inverter to an UPS

How to Convert an Inverter to an UPS

Last Updated on December 10, 2024 by Swagatam 150 Comments

An inverter is an equipment which will convert a battery voltage or any DC (normally a high current) into a higher mains equivalent voltage (120V, or 220V), however unlike an UPS inverters may lack one feature, that is these may not be able to switch from mains battery charging mode to inverter mode and vice versa during grid power failure and restoration situations.

Table of Contents
  • Converting an Inverter to UPS
    • Selecting the Relays
  • Main Components and Their Functions:
    • Filter Capacitor (100uF/100V)
    • Relay Coils
  • Formulas and Calculations:
  • Capacitor Selection (Ripple Voltage)
    • Relay Coil Voltage
    • Relay Switching Time
  • Current Limiting by a Capacitor in AC Circuits
  • Step-by-Step Calculation
    • Calculate Xc (Capacitive Reactance):
    • Design Considerations:

Converting an Inverter to UPS

An inverter can be easily converted to an UPS with a few simple modifications or rather additions with their existing circuitry.

The lacking or missing changeover feature in an inverter can be upgraded by including a few number of relay stages within its circuit, as explained in the following sections:

Referring to the figure below, we see that the above requirement is implemented by using 4 SPDT relays whose coils are wired up in parallel and joined with a mains operated DC source, which could very well be the battery charger DC output.

It means during the presence of mains input the relays would be energized such that their N/O contacts get connected with the individual relay poles and the respective electrical gadgets which could be seen connected with the poles..

The left two relays can be seen with their N/O contacts connected with the mains AC input, while the N/Cs are terminated with the inverter mains output.

The relays at the right side have their N/O contacts rigged with battery charger (+)/(-) inputs, and the N/Cs are integrated to the inverter DC input.

The above data ensures the following actions during mains presence and failure situations:

When mains AC is present, the appliances get connected to the available mains power via the left pair of relay poles, while the battery is able to get the required charging voltage through the right hand relay poles. This also ensures that the inverter is cut-off via the N/C points from the battery and is no longer able to operate.

In a situation when mains AC fails, the relay contacts revert to their N/C contacts, giving rise to the following actions:

The battery instantly gets connected with the inverter DC input via the right hand side relay N/C contacts, such that the inverter becomes operative and its output starts producing the required mains back up voltage.

At the same instant the above inverter mains voltage now gets switched to the appliances via the left hand side relay N/C contacts ensuring that the appliances do not experience an interruption while the positions revert in the course of the above actions.

Selecting the Relays

The relays must selected with low coil resistance type so that they operate under higher switching currents, and therefore are able to "hammer" the contacts much harder and quicker compared to the lower resistance coil relays.

This will ensure the changeover time to be rapid within milliseconds which happens to be the most crucial factor with UPSs and inverters needing to be converted into UPS systems.

 

In the above diagram if an automatic battery charger is used, the supply would be cut off once the battery is fully charged, which would also cut off the supply to the relays forcing the inverter to switch ON even while the mains is present.

To avoid this issue, the relays must be powered through a separate power supply as shown in the following diagram. A capacitive type of power supply circuit could be seen here, which makes the design much compact.

Note: Please connect a 1K resistor across the filter capacitor associated with the bridge rectifier, this is to ensure its quick discharging during a mains failure, and an instant switching of the relevant relays.

Main Components and Their Functions:

Bridge Rectifier (1N4007 x 4)

So we have this bridge rectifier that consists of four 1N4007 diodes and its main job is to take the alternating current (AC) from the mains and convert it into direct current (DC). This conversion is really important because we need that DC power to make the relays work properly.

Filter Capacitor (100uF/100V)

Next up we are looking at the filter capacitor 100uF rated for 100 volts. These capacitors are essential because they help smooth out the rectified DC voltage making it much more stable and reliable for our circuit.

Relay Coils

Now let us talk about the relay coils. These coils function like switches that allow us to toggle between using mains power and inverter power. They play a crucial role in controlling how our entire system operates.

Formulas and Calculations:

DC Voltage Across the Relay Coil

We can figure out the DC voltage across the relay coil using this formula:

Vdc = (Vrms * √2) - Vf

In this equation the Vrms represents the input mains AC voltage (for example we might say it is 220 volts) and Vf is the total forward voltage drop across the bridge diodes. For our 1N4007 diodes we can calculate that as

Vf = 2 * 0.7V = 1.4V.

If we do a quick calculation for a 220V mains input, it would look like this:

Vdc = (220 * √2) - 1.4

Vdc = 310.6 - 1.4

Vdc = 309.2V

Capacitor Selection (Ripple Voltage)

When it comes to selecting capacitors we need to think about ripple voltage which we can calculate using this formula:

ΔV = Iload / (f * C)

In this formula Iload is the load current drawn by the relay, f is the rectified AC frequency (which would be around 100 Hz if we are using a full-wave rectifier with a 50 Hz mains supply) and C represents the capacitance measured in Farads.

For example if we are working with a 100uF capacitor and our relay coil is drawing about 50mA of current then we can plug those values into our formula like this:

ΔV = 0.05 / (100 * 0.0001)

ΔV = 5V

Relay Coil Voltage

It is really important for us to ensure that the voltage rating of the relay coil matches up with the rectified DC voltage we calculated earlier. So if our rectified voltage is sitting at 309.2V then we need to make sure to use a relay that can handle that specific voltage.

Relay Switching Time

When we want to find out how quickly our relay can switch then we can use this formula:

ts = L / R

Here L stands for the inductance of the relay coil and R represents the coil resistance.

For instance if we have L = 50mH and R = 500 ohms then we can calculate it like this:

ts = 0.05 / 500

ts = 0.1ms

Current Limiting by a Capacitor in AC Circuits

The current limited by the 2uF/400V capacitor is given by the formula:

I = Vrms / Xc

Where:

  • I = Current through the capacitor (in amperes)
  • Vrms = Mains AC RMS voltage (e.g., 220V)
  • Xc = Capacitive reactance of the capacitor (in ohms)

The capacitive reactance is calculated as:

Xc = 1 / (2 * π * f * C)

Where:

f = Frequency of the mains AC (e.g., 50 Hz)

C = Capacitance (in farads)

Step-by-Step Calculation

Calculate Xc (Capacitive Reactance):

Given:

C = 2uF = 2 × 10-6 F

f = 50 Hz

Formula: Xc = 1 / (2 * π * f * C)

Substitution: Xc = 1 / (2 * 3.1416 * 50 * 2 × 10-6)

Xc = 1 / (0.00062832)

Xc ≈ 1591 ohms

Calculate Current (I):

Given:

Vrms = 220V

Xc ≈ 1591 ohms

Formula: I = Vrms / Xc

Substitution: I = 220 / 1591 I ≈ 0.138 amperes (or 138mA)

Design Considerations:

As we design our circuit we need to make sure that the diodes are capable of handling both peak inverse voltage (which will be equal to Vpiv = Vdc) and also the current (which will be Ipeak = Iload).

We should also select a relay that has a sufficient contact rating so it can safely manage whatever load we connect to it.

Lastly do not forget about that 1M resistor, its job is to discharge the filter capacitors when we disconnect power to prevent any accidental shocks.

 

You'll also like:

  • the right way to interface SPWM with inverter MOSFETsDesign your own Sine Wave Inverter Circuit from the Scratch [Tutorial]
  • IR2111 H-Bridge Inverter Circuit with Soft Start
  • 500 watt500 Watt Inverter Circuit with Battery Charger
  • inverterHow an Inverter Functions, How to Repair Inverters – General Tips

Filed Under: Inverter Circuits Tagged With: Convert, Inverter, UPS

About Swagatam

I am an electronics engineer and doing practical hands-on work from more than 15 years now. Building real circuits, testing them and also making PCB layouts by myself. I really love doing all these things like inventing something new, designing electronics and also helping other people like hobby guys who want to make their own cool circuits at home.

And that is the main reason why I started this website homemade-circuits.com, to share different types of circuit ideas..

If you are having any kind of doubt or question related to circuits then just write down your question in the comment box below, I am like always checking, so I guarantee I will reply you for sure!



Previous Post: « Simple High voltage Generator Circuit – Arc Generator
Next Post: Flashing LED Battery Low Indicator Circuit »

Reader Interactions

Questions & Answers

Total Posts: 150
Newest Oldest
Jignesh
June 25, 2014 • 12 years ago #23836

hi swagatam
your idea is very but i have little confusion that all relays are powered by charger. so there may be time lag for relay to denergise during power failure because charger contains large filtering capacitors.

Reply
SwagatamAdmin
June 26, 2014 • 12 years ago #23855

Hi Jignesh, an smps normally carries a low value filter at the output, therefore with 4 relay coils in parallel, may be a 100uF or 220uF capacitor could take hardly any time to get discharged, so I don't think that would create any significant lag for the relays.

we can use low resistance relays (100 ohms) for further ensuring a quick response from them.

Reply
Grant Bresler
July 26, 2015 • 11 years ago #32600

Hi, how does this circuit handle the fact that the AC mains and the mains from the inverter might be out of phase? What would appliances such as TV's do in a case where these phases are not alligned on the switch over?

Reply
SwagatamAdmin
July 26, 2015 • 11 years ago #32609

Hi, this issue is not critical, even if there's a slight delay in the switching it won't harm the appliances in any manner….by the way TV sets work on DC, so anyway the phase angle doesn't make a difference

Reply
samar tauheed
September 3, 2015 • 11 years ago #33710

Hi Swangtam! your design is very great. i requst to please design a circuit of complete ups which operate only three energy saver light of 25watts. when ac present inverter should shutt off and battery get charge and during ac failure 3saver connected with this inverted luminate. i shall be very thankful to you.

Reply
SwagatamAdmin
September 3, 2015 • 11 years ago #33720

Thanks Samar, I already have one design in this blog, you can check it out here:

https://www.homemade-circuits.com/2012/02/how-to-make-mini-homemade.html

Reply
nalayak
October 18, 2015 • 11 years ago #34958

Hi Swagatam I have 2 PC working on one inverter, distance between inverter and PC is around 4 meter, I have 2 UPS good condition but without batteries, can I connect these UPS to battery of inverter directly, will there be conflict amid charger of inverter and chargers of UPS, if yes how can stop charging from UPS to inverter battery.

Reply
SwagatamAdmin
October 19, 2015 • 11 years ago #34972

Technically there shouldn't be any conflict between the two since their polarity would be at the same level. You can prefer to remove the inverter charger as that may be easier to locate than to locate the charger section of the UPS.

Or you can simply leave them as is, and use the battery as common with the two units.

Reply
nalayak
October 19, 2015 • 11 years ago #34976

Thanks Swagatam for clearing my doubt, another method I was thinking to put a diode before connecting UPS with battery, so there is no current to battery from UPS. If it is possible can I use IN007 (small diodes plenty available from old CFL ) may be 10 diode in parallel

Reply
SwagatamAdmin
October 20, 2015 • 11 years ago #35001

Yes you can block one of the inputs through a diode, but 1N4007 will not work, even in parallel, because diodes cannot be connected in parallel.,,,you may have to opt for a special 10amp diode…

Reply
Aminu Yahaya Ibrahim
April 15, 2016 • 10 years ago #40253

Godd Evening Sir.
Sir, I want use this circuit as changeover and inverter switch.
I have built the circuit, but I used only three relay as above and the design is as follows:
*the first two relay are remain as it's on the circuit above.
*the third relay is used as a swicth between the inverter and the battery.
The positive ( ) were of the battery is placed in NC and the center were of the transfo is connected to the POLE of the relay.

Sir, I hope there is no problem with this desing. And I hope the relay can hold the current between the center were of the transfo and the positive terminal of the battery.

Thank you Sir.

Reply
SwagatamAdmin
April 16, 2016 • 10 years ago #40260

Hi Aminu, if you do everything correctly then definitely it will work as explained in the article.

the relay contact current rating should be much above the current consumption of the transformer, to work handle it safely

Reply
Aminu Yahaya Ibrahim
April 16, 2016 • 10 years ago #40264

Sir,
Both the relay and the transfo are removed from the same UPS.

Reply
SwagatamAdmin
April 16, 2016 • 10 years ago #40267

then it's fine, you can use them together

Reply
Aminu Yahaya Ibrahim
April 19, 2016 • 10 years ago #40348

Sir, I did it, and it works very fine.

Still I want to know what current of relay can handle 200 AH battery?

Thanks for the help sir.

Reply
SwagatamAdmin
April 20, 2016 • 10 years ago #40360

Aminu, you can use a 30amp relay for that

Reply
Aminu Yahaya Ibrahim
April 20, 2016 • 10 years ago #40376

Sir you are great!
and Iam greatful for the help.

Sir, can we charge 200Ah battery with transformarless charger circuit?

thank you once again.

Reply
SwagatamAdmin
April 21, 2016 • 10 years ago #40385

It's my pleasure Aminu…

if the transformerless adapter is rated at 20 amps then yes it is possible.

Reply
Aminu Yahaya Ibrahim
April 21, 2016 • 10 years ago #40386

Ok Sir.
Thank you very much.

Sir, do you have a circuit on transformaless as above that can charge 200Ah 12v battery?

thanks a lot Sir.

Reply
SwagatamAdmin
April 21, 2016 • 10 years ago #40390

I am sorry Aminu, I do not have a 20 amp smps at the moment, but if I find one will surely post it here for you.

Reply
Aminu Yahaya Ibrahim
April 22, 2016 • 10 years ago #40417

Ok, Sir.
Thank you.

Sir, can I get one that can safely charge 50Ah to below. like 40Ah, and or 20Ah.

thank you sir.

Reply
SwagatamAdmin
April 23, 2016 • 10 years ago #40436

Thanks Aminu, I have a 12V, 5amp smps circuit posted in this blog you can try that for your requirement.

Reply
eshkariel tapiador
April 23, 2016 • 10 years ago #40432

can I use DPDT 220v relay??

Reply
SwagatamAdmin
April 24, 2016 • 10 years ago #40455

yes you can…

Reply
swapan byapari
June 24, 2016 • 10 years ago #42070

Hello… Sir, if I connect only one relay (12 volt,200 ohm) on the above change over circuit.then,what is the changes on circuit.

Reply
SwagatamAdmin
June 24, 2016 • 10 years ago #42074

hello swapan, for a single relay the specifications should be 4 pole 4 throw type…that is it must have a 4 sets of N/C an N/O contacts and 4 central poles.

Reply
swapan
July 11, 2016 • 10 years ago #42494

sir, if i use dpdt 8 pin relay to change the mode, then one relay can change load from mains to inverter and another one relay(8 pin) can separate battery from charging mode to inverter battery terminal input, when main is out.so, please tell about correction to me.

Reply
SwagatamAdmin
July 11, 2016 • 10 years ago #42511

Hi Swapan, yes you can use two DPDT relays for achieving the same results.

Reply
Ultimate Srilankan Nurse
July 29, 2016 • 10 years ago #43059

Hello sir. I would like to make a 12volt DC battery backup system to run 6 Led light each 12v 12wats and one 12v dc fan during power failure.i have 2 sealed lead acid batery each 12v 7Ah. Please guid me how to make this and i need to maintain battery by charging and without over discharge. Sorry for bad english.

Reply
SwagatamAdmin
July 29, 2016 • 10 years ago #43065

hello, you can try the following circuit, this is full fledged emergency lamp circuit with max features:

https://www.homemade-circuits.com/2015/10/smart-emergency-lamp-circuit-with.html

Reply
Yogendra Bhattacharya
September 15, 2016 • 10 years ago #44622

Hi Swagatam,
Your blog makes interesting reading, and your knowledge seems to be phenomenal. I would like an 'idiots guide' to convert my inverter into an 'online' ups. I am not very technically savvy, but can manage my way around circuits – somewhat. I have an inverter for my house. It has two batteries of 500W each, I think. There is this delay in the inverter coming on once the mains fail. I was thinking of buying a new online one, but came across your blog. Would it be possible for me to make an add-on unit that I can use with the existing inverter? Or do I have to tinker with the existing circuitry – which I do not want to do. Some advice would be very welcome.

Thanks,

Yogi Bhattacharya

Reply
SwagatamAdmin
September 16, 2016 • 10 years ago #44633

Thank you Yogendra, you will have to modify the existing inverter system by opening it and by checking the specific stages.

You will have to check the relay changeover section and remove the capacitor which may be causing the delay in its operation….once you do this you will be able to find the inverter switching much quicker and making an instant changeover from mains to battery and vice versa.

Reply
Yogendra Bhattacharya
September 23, 2016 • 10 years ago #44936

Thanks a lot, will attempt to do this. Will revert in case I need your assistance.

Reply
Aminu Yahaya Ibrahim
September 25, 2016 • 10 years ago #45013

Sir I need your assistence.
I have a Fan removed from dead Air Conditioner I what use it as a room fan but, it fails to work with cieling fan regulator.
Is there any circuit to achieve this?
Thank you Sir.

Reply
SwagatamAdmin
September 26, 2016 • 10 years ago #45032

Aminu, both the motors are "capacitor-start" type however Air Cond motors are more powerful and include a relay,
first keep the dimmer at max speed let the motor start and then you can try reducing the speed once the relay has clicked.

Reply
Aminu Yahaya Ibrahim
September 26, 2016 • 10 years ago #45046

Sir, the normal regulator operate Air Cond fan only at number one, which is the highest among the change. if an attampt is made to reduce the speed, the fan goes off.

Reply
SwagatamAdmin
September 27, 2016 • 10 years ago #45082

sorry, can't say without checking the motor practically.

Reply
Sameer Khan
January 3, 2017 • 10 years ago #47764

Hello Swagatam ,
I have an 5.5kva microtek Inverter which i use to power my cyber cafe.The issue i am facing is as soon as the electricity trips or even fluctuates , a few of my computers goes off automatically although all the pc's have there own UPS (most of them are new or with new replaced batteries). Kindly help

Reply
SwagatamAdmin
January 3, 2017 • 10 years ago #47771

Hello Sameer, PCs are generally very sensitive to power fluctuations and even the slightest of power lapses can rattle them…in your case it could be happening due to may be slight inefficiency with the relay changeover actions within the UPSs, which could be difficult to correct or avoid. You can try replacing the systems with SSR based UPSs or alternatively you can try replacing the relays with SSRs after doing some research in the field….

Reply
chucks
September 27, 2017 • 9 years ago #54303

hi sir. please I need a circuit of automatic fan that will cool my heatsink when it get hot.. the fan will automatically blowing when it cool it will stop blow. ..

Reply
SwagatamAdmin
September 28, 2017 • 9 years ago #54309

chucks, you can try this

https://www.homemade-circuits.com/2015/03/fan-speed-controller-for-heatsink.html

Reply
Martins
December 8, 2017 • 9 years ago #56478

Passing inverter battery power via a relay could be a very bad thing considering the fact that the inverter could be drawings up to 90amps from the battery and if the really is rated 20-30a it could mess things up

Reply
SwagatamAdmin
December 8, 2017 • 9 years ago #56485

In electronics Everything can be bad and dangerous if done non-technically, a 30 amp relay would burn and fuse at 90amp any sensible person will understand this.

Reply
olupot
June 25, 2018 • 8 years ago #61172

thanks a lot let me take time to build one and incorporate it to my inverter
have a blessed day sir

Reply
SwagatamAdmin
June 26, 2018 • 8 years ago #61182

you are welcome Olupot

Reply
Engr Bashir
July 27, 2018 • 8 years ago #61935

Sir what is the relays specifications??

Reply
SwagatamAdmin
July 27, 2018 • 8 years ago #61939

It will depnd on the UPS wattage, for 200 watt and below, you can use ordinary 12V/400 ohm/5 amp relays

Reply
Engr Bashir
July 27, 2018 • 8 years ago #61940

ok sir, that mean i can use 12v 10amp relay for 400 watt inverter ???

Reply
SwagatamAdmin
July 27, 2018 • 8 years ago #61941

actually if you divide 400 by 220 it gives 1.8, that means even a 5 amp relay would work…

Reply
Engr Bashir
July 27, 2018 • 8 years ago #61942

ok sir, another confused in the place were u wrote TO MAIN 220V SOCKET, and second place you wrote TO MAIN. my question is that which one will go to the MAIN AC GRID??

Reply
View Older Comments

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

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

Primary Sidebar



Categories

  • Arduino Projects (95)
  • Audio and Amplifier Projects (134)
  • Automation Projects (18)
  • Automobile Electronics (103)
  • Battery Charger Circuits (89)
  • Datasheets and Components (109)
  • Electronics Theory (150)
  • Energy from Magnets and Earth (40)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (20)
  • Health related Projects (27)
  • Home Electrical Circuits (13)
  • Indicator Circuits (16)
  • Inverter Circuits (100)
  • Lamps and Lights (163)
  • Meters and Testers (72)
  • Mini Projects (28)
  • Motor Controller (68)
  • Oscillator Circuits (30)
  • Pets and Pests (15)
  • Power Supply Circuits (91)
  • Remote Control Circuits (50)
  • Security and Alarm (65)
  • Sensors and Detectors (107)
  • SMPS and Converters (46)
  • Solar Controller Circuits (62)
  • Temperature Controllers (44)
  • Timer and Delay Relay (50)
  • Voltage Control and Protection (44)
  • Water Controller (37)
  • Wireless Circuits (31)



Circuit Simulator

circuit simulator image



Subscribe to get New Circuits in your Email



Other Links

  • Privacy Policy
  • Cookie Policy
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap

People also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |



Recent Comments

  • Swagatam on 12V Battery Charger Circuits [using LM317, LM338, L200, Transistors]
  • Swagatam on Programmable 35238-MP Timer Module? How to Use it
  • Swagatam on How to Build a Simple Egg Incubator Thermostat Circuit
  • Swagatam on 4 Simple Transformerless Power Supply Circuits Explained
  • Joe Hopkins on Programmable 35238-MP Timer Module? How to Use it

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Stack Exchange
  • Linkedin

© 2026 · Swagatam Innovations