• 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 | Contact | Calculators-online
You are here: Home / Battery Charger Circuits / Single Transformer Inverter/Charger Circuit

DIY Circuits | Learn Basics | Arduino Coding




Single Transformer Inverter/Charger Circuit

Last Updated on August 3, 2020 by Swagatam 243 Comments

In this post I have explained how to build an innovative inverter circuit with a single transformer that works both as an inverter and a battery charger transformer, I have explained the details from the following discussion.

The Circuit Objective

Though you may find many inverters having an integral battery charger, the section will mostly employ a separate transformer for implementing it.

In the following post I have explained a unique design which utilizes the inverter transformer for power inverting as well as for charging the battery.

The circuit diagram below shows a design where a single power transformer is used for inverting purpose as well as for charging the battery when mains is present.

The good thing about the circuit is that the transformer doesn't employ separate winding for this, rather works with the same input winding and reverts DC to the battery with the help of a few DPDT relays.

The circuit can be understood with the following points:

How the Circuit Functions

The inverter section can be easiy recognized in the diagram, R1 to R6, including the T1 and T2 forms a general astable multivibrator circuit for producing the required 50 or 60 Hz pulses.

These pulses drive the mosfets alternately which in turn saturate the transformer by switching the battery voltage in it.

The secondary of the transformer generates the corresponding magnitude of AC which is finally used for operating the connected appliances.

The above configuration suggests an normal or ordinary inverter operation.

By adding a couple of DPDT relays in the above discussed operation, we can force the circuit to charge the battery in the prsence of an AC mains source.

The coils of the two relays are powered through a capacitive low current compact power supply, involving C6, C5, D1----D5.

The above circuit is connected to a mains AC source, this source is also connected to RL1 poles.

The second relay RL2 is wired up with input winding of the transformer.

In the absence of mains AC, the position of the relay contacts are in the N/C as shown in the figure.

In this position the mosfets get linked with the transformer input winding, and the battery with the circuit so that the inverter starts oscillating and the output appliances gets the AC power from the battery.

In the presence of mains AC the relay coils instantly get the required DC power and the contacts activate.

RL1 activates and connects the mains input to the transformer, the appliances also get connected with the mains AC in the process.

Also due to the action of RL2 the mosfets get disconnected from the transformer, while the the lower tap connects with D6.

Since the center is already connected to battery positive, the inclusion of D6 provides a half wave rectified voltage to the battery, which is effectively filtered by C3 so that the battery is able to get the required sufficient charging voltage.

The above charging process continues until mains is present, so it should be monitored manually. When mains fails, the action reverts into inverting mode without interrupting the appliance operations and by using a single transformer for both the operations.

C4 makes sure that RL1 always activates a shade later than RL2 for safety reasons.

CAUTION: THIS CIRCUIT IS DEFINITELY NOT RECOMMENDED FOR THE NEW HOBBYISTS, IT'S SUITABLE ONLY FOR THE EXPERTS. IF YOU ARE A NOVICE AND INTERESTED TO TRY THIS.... BUILD IT AT YOUR OWN RISK.

Parts List

  • R1, R2 = 27K,
  • R3, R4, R5, R6 = 470 Ohms,
  • C1,C2 = 0.47uF/100V metallized
  • T1, T2 = BC547,
  • T3, T4 = any 30V, 10amp mosfet, N-channel.
  • C3 = 47000uF/25V
  • C4 = 220uF/25v
  • C5 = 47uF/100v
  • C6 = 105/400V
  • R7 = 1M
  • D1---D5 = 1N4007
  • D6 = 1N5402
  • RL1, RL2 = DPDT, 400 OHMS, 12V, 7 AMPS/220V
  • Transformer = 12-0-12V, current as per requirement.

For only inverter design please refer to this ARTICLE

Using a 2-Wire Transformer

If you do not want to use a center tap transformer for the inverter, then you can use the following P-channel and N-channel MOSFET H-bridge inverter module for getting an identical single transformer inverter/charger results:

You'll also like:

  • 5 Best 6V 4Ah Automatic Battery Charger Circuits Using Relay and MOSFET
  • battery1battery2changeovercircuitDual Battery Charger Circuit with Isolator
  • car battery charger for garage mechanicsRegulated Car Battery Charger Circuit for Garage Mechanics
  • 48vsolarbatterychargercircuit48V Solar Battery Charger Circuit with High/Low Cut-off

Filed Under: Battery Charger Circuits Tagged With: Charger, Inverter, Single, Transformer

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: « Single Phase Preventor Circuit
Next Post: How to Generate PWM Using IC 555 (2 Methods Explored) »

Reader Interactions

Comments

Hillary says:
January 28, 2025 at 1:27 am

Can the two relays and bridge rectifier at the primary terminals of the transformer be removed so that the mosfet diodes be used for the charging?

Reply
Swagatam says:
January 28, 2025 at 8:38 am

I don’t think replacing the relays with MOSFETTs is possible in the above concepts…

Reply
Jedidiah says:
January 25, 2025 at 11:55 am

Hello Sir. I need a circuit diagram on inverter with automatic changeover system

Reply
Swagatam says:
January 25, 2025 at 12:16 pm

Hi Jedidiah, you can try implementing the following concept with any inverter for getting the intended results.
https://www.homemade-circuits.com/how-to-convert-inverter-to-ups/

Reply
Jedidiah says:
January 25, 2025 at 7:42 pm

Thank you

Reply
Jedidiah says:
January 27, 2025 at 5:53 am

My inverter transformer using 2 IRF840 MOSFETs is just producing some sounds when an incandescent bulb is connected across the output. The bulb doesn’t light. Also, when there is no load at the output the transformer sparks at the output windings. how should I go about it please?

Reply
Swagatam says:
January 27, 2025 at 8:15 am

It looks like your transformer winding has internal short circuit, so please replace it with a new one and check again.

Reply
Victor says:
April 8, 2024 at 12:02 am

How do I charge a 120v DC battery bank with this circuit, what do I change?

Reply
Swagatam says:
April 8, 2024 at 8:51 am

If your inverter mosfets and transformer are rated to work with 120V, then the above basic setup will be the same, however the relay coils will also need to be rated at 120V

Reply
Ubochi Chinomso says:
August 28, 2023 at 2:16 pm

Sorry for asking much sir, but the final one now. Since a relay of about 200amps capacity would be big and probably expensive and might also not fit into the space provided, can a MOSFET of about 200ampsof current capacity be applied in place of the relay since it is going to be switching between the battery and the center-tap part of the transformer?. Thanks in anticipation

Reply
Swagatam says:
August 28, 2023 at 5:25 pm

Sorry, no that might not be feasible, because an inverter/charger changeover circuit can be built only using relays and not using mosfets.

Reply
Ubochi Chinomso says:
August 28, 2023 at 2:06 am

I really appreciate your kind response sir, thank you so much. But I’ve studied most high power inverters, however they’re without this high relay capacity you just recommended for me, their transformer primaries are screwed directly on the collector rails of the mosfets. Just with a single relay, I did not understand the magic they used in controlling the both the charging as well as inverting systems.

Reply
Swagatam says:
August 28, 2023 at 9:25 am

Ubochi, If you are using 2kva load at the output, then the transformer primary has to switch a 2kva current through the mosfets and the relay contacts, isn’t it? So isn’t the mosfet and the relay must be rated to handle that much current and load?? Moreover if your relay contacts are burning that clearly shows that the relay contacts are experiencing heavy load which is beyond their handling capacity.

Reply
Ubochi Chinomso says:
August 27, 2023 at 1:07 am

Mr Swagatam, I have a difficult situation with your design here, please i really need your help.
I just designed a 2.5kva inverter using your recommended single centre-tap transformer method. I really appreciated the design on light loads, however, when I asked my client to turn on his fridge, the system shut down, then I found out that the 20am relays at the mosfet input to the transformer got burnt due to high current passage. Now, this is a very difficult situation for me now as removing the relays has cost me a lot of mosfets as the mosfets now have direct contact with the transformer primaries, especially whenever I try to input mains to charge the batteries. I don’t know what to do, please help me. Is there no other design that can work with a single relay?. Thanks

Reply
Swagatam says:
August 27, 2023 at 10:01 am

Hello Ubochi,
I am glad you could build the circuit successfully, however, you should have selected the relays appropriately according to the load.
For a 12V 2.5 kva load the relay contacts must be rated at 2500 / 12 = 208 amperes….that looks huge right, but that is how the relays must be rated, at 210 amps each for the mosfet side relays. If you replace the relays correctly with 210 amp relays then I think the inverter should start responding correctly. However for 210 amp relays the C6 capacitor will need to be increased to 5uF/400V

Reply
Adeoye Joshua says:
June 2, 2023 at 4:26 pm

In a H-bridge design, transformers input volt are usually half of the battery volt. For example, a 12vDC to 220vAC inverter transformer is usually 6v-220v, while a 24vDC to 220vAC inverter transformer is usually 14v-220v. Now my question is this, with the above circuit, when AC mains is present, the transformer will return it’s winding voltage back to the battery I.e if it’s a 12v system, then 6v Wil be sent to the battery, or if it’s a 24v system, then 14v will be sent to the battery which will not be sufficient to charge the battery. So, how to solve this problem?

Reply
Swagatam says:
June 2, 2023 at 6:32 pm

In an H-bridge circuit the mosfets will supply the full battery voltage to the load, if a 12V DC is connected to the H bridge mosfet drain, then this 12V will be alternately switched to the connected transformer primary.

Reply
Adeoye Joshua says:
June 2, 2023 at 10:50 pm

If this is the case, then why use transformer with primary winding is half of the voltage of the battery in any H-bridge configuration? All inverters i have seen and repaired which are H-bridge configuration, uses transformer half the battery voltage. I opened a 48v -220v inverter yesterday, and the transformer is 26v primary and 220v secondary.

And if a mosfet of H-bridge gives full battery voltage i.e. 12v into 6v winding, then the output of the inverter should also double, like 440v thereabout.

Reply
Swagatam says:
June 3, 2023 at 8:54 am

Transformer winding will be half only when the H-bridge is a PWM based inverter, in which the load gets only the average 50% of the total Dc supply due to the PWM. If it is not a PWM then the load will get the full DC supply.

Reply
Adeoye Joshua says:
June 3, 2023 at 1:59 pm

Thank you for the response. Now, in a PWM h-bridge, will this charging circuit be applicable?

Reply
Swagatam says:
June 3, 2023 at 2:36 pm

The H bridge charger circuit shown above has nothing to do with H-bridge mosfets or PWM. In the presence of grid AC mains voltage, the transformer is directly connected with the battery through a bridge a rectifier and relays for the required charging of the battery.

Reply
Adeoye Joshua says:
June 3, 2023 at 3:15 pm

I understand the circuit perfectly. My concern is the transformer. If AC mains is present at the 220v side of the transformer, then the other side of the transformer will have 6v because that is the default winding. Which is why I’m wondering if the 6v will work for charging a 12v battery.
Normally if the transformer is 12v-220v winding, then definitely there won’t be a problem. But since the transformer is not winded like that, what’s going to happen?

Reply
Swagatam says:
June 3, 2023 at 4:40 pm

Yes, in that case a PWM based H-bridge cannot be used in this charger concept.

Reply
Adeoye Joshua says:
June 3, 2023 at 9:55 pm

Thank you so much for the clarification sir. God bless you

Reply
Swagatam says:
June 4, 2023 at 9:07 am

You are most welcome!

simeon says:
August 5, 2022 at 11:56 am

Pls 24v ups my ups did not bring 230v output, it bring 170v why any help

Reply
Swagatam says:
August 5, 2022 at 12:09 pm

Is your battery fully charged? And is the 170V with load or without load?

Reply
simeon says:
August 6, 2022 at 4:42 am

180v with load and battery is fully charge

Reply
Swagatam says:
August 6, 2022 at 9:36 am

Try reducing the load, and check the voltage. If the voltage rises with lower loads then the problem could be due to low power transformer and battery which are unable to handle the load that you are applying.

Reply
simeon says:
August 5, 2022 at 11:48 am

Helpful

Reply
Muiz says:
February 25, 2021 at 7:06 am

does anyone has the PCB diagram to print a PCB form.

Reply
EMMANUEL says:
February 7, 2021 at 3:11 pm

Thank you for your swift response.
I need your advice.
1) I want to use a 12-0-12v transformer with a 24v battery, what is your advice sir.
2) A 10amp 28VDC relay for this circuit been a battery charger inverter.

Reply
Swagatam says:
February 7, 2021 at 7:56 pm

You are welcome Emmanuel!
1) It will work if your inverter frequency is PWM based and with 50% duty cycle
2) for 24v battery, the relay must be 24v also

Reply
EMMANUEL says:
February 7, 2021 at 9:46 pm

Thanks sir.
In one of your article there is a diagram for 500w inverter. That is the diagram I am following. But in my case, my target watt is maximum of 150 to 200w. In other to achieve that, I didn’t use a transistor with the two MOSFET but I want to use every other components you have on the diagram.
So according to the diagram of 500w inverter.
1) Is it a PWM inverter or not.
I want to be clear on that sir.
2) And if it is not, how do I make it a PWM inverter with 50% duty circle as you have said sir.

Reply
Swagatam says:
February 8, 2021 at 9:07 am

Emmanuel, you can try the first or the second circuit from the following article, which are compatible with your transformer specifications.
The IC must be supplied 12V from a 7812 or any step down converter

https://www.homemade-circuits.com/modified-sine-wave-inverter-circuit-2/

Reply
EMMANUEL says:
January 27, 2021 at 5:03 pm

Thank you for your apt response always.
Kindly help me with these analysis on the battery charger diagram if I am correct.

Relay 1 and 2 coils are connected before and after D5
The common pins are connected to the transformer
NO is connected to the appliance
NC is connected to mains input.

Please I want to know if I am correct with this analysis.
Thanks

Reply
Swagatam says:
January 28, 2021 at 10:45 am

That’s right, N/O of RL1 are also connected to the transformer 220V wires.

Reply
Emmanuel says:
January 26, 2021 at 7:31 pm

Thank you for your response. Please, how many pin does RL1 and RL2 has. Or probably not all the pins are used in RL2. Kindly help with this.

Reply
Swagatam says:
January 27, 2021 at 2:42 pm

8 pin each, please Google DPDT relay you will easily get all the details.

Reply
JOSE JAVIER GONZALEZ says:
November 15, 2020 at 1:55 am

EngineerSwagatam.
Good evening.
I am pleased to have found this page interesting and useful, as it teaches about power electronics. I am a hobbyist who recently dabbled in this investor issue. I have assembled this circuit in Proteus to be able to simulate it. But of course, the simulation is not given in the first instance since you have to understand the design. My big question: can this circuit work with the load and at the same time it can feed back the battery, in order to be able to work continuously 24 hours x 7 days? My thanks in advance for the attention given to this.
Atte.José Javier González.

Reply
Swagatam says:
November 15, 2020 at 7:13 pm

Thank you Jose, I am glad you found this site useful!
Yes simulation might not sometimes give us the desired results, and we have to ultimately build and test a given project practically.
No, sorry, it is not possible to discharge a battery via an inverter and simultaneously charge the battery from its output, because the inverter will work with 10 to 20% losses which will never allow this process to succeed.

Reply
JOSE JAVIER GONZALEZ says:
November 19, 2020 at 1:06 am

Swagatam Engineer.
Good evening. Thank you very much for your precious reply. I am studying all this topic regarding CA – CD Invertor based on your valued page www. His answer reveals the principle of energy: it is neither created nor destroyed. So based on this principle, do you mean I should design the circuit adding a second battery of equal voltage and amperage that feeds back the first battery? Or will the initial battery increase its capacity for the same inverter in question? My thanks in advance for the attention given to this.
Atte. José Javier González.

Reply
Swagatam says:
November 19, 2020 at 7:38 pm

You are welcome Jose, no, even using two batteries will not help to produce power 24/7, eventually both the batteries will get exhausted.

Reply
Adeyemi says:
July 11, 2020 at 7:35 pm

Good day sir, an inverter I use well at home and charges well, when I give it to someone , it never charge a single volt with generator in that house because they don’t have power in the house. They use the generator to pump their 1.5hp pump. The inverter is serving during automatic changeover but not charging the battery at all. Please what could be wrong sir.

Reply
Adeyemi says:
July 21, 2020 at 5:17 pm

Thanks for always being there, Swagatam. How can I appropriately rate the breaker in auto changeover inverter charging system against sulfation tripping off.

Reply
Swagatam says:
July 21, 2020 at 8:58 pm

Sorry Adeyemi, I do not have any idea about it.

Reply
Swagatam says:
July 12, 2020 at 10:28 am

Adeyemi, please check the DC voltage from the generator which is used for charging the battery, that will clarify the situation.

Reply
Swagatam says:
June 13, 2020 at 8:17 pm

For auto cut off you can refer to the following concept:
Op amp Battery Charger Circuit with Auto Cut Off

you can use the transformer for pwm inverter with a 24 V battery

Reply
Swagatam says:
June 13, 2020 at 8:12 pm

Evans, 16.5 V after rectification will give 16.5 x 1.41 = 23 V which is not sufficient to charge a 24 V battery. It must be at least 28 v

PWM is better since it allows waveform control.

Reply
Evans says:
June 13, 2020 at 7:27 pm

Also sir swagatam,if u have an auto cutoff circuit for 24v, please help me with one. Sir in my last question,I was seeking to know if a transformer with an output of 16.5v can be used for an inverter with pwm. Thanks in advance.

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

circuit simulator image



Subscribe to get New Circuits in your Email



Categories

  • Arduino Projects (93)
  • Audio and Amplifier Projects (133)
  • Automation Projects (17)
  • Automobile Electronics (101)
  • Battery Charger Circuits (85)
  • Datasheets and Components (109)
  • Electronics Theory (149)
  • Energy from Magnets (27)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (20)
  • Health related Projects (27)
  • Home Electrical Circuits (13)
  • Indicator Circuits (16)
  • Inverter Circuits (95)
  • Lamps and Lights (159)
  • Meters and Testers (71)
  • Mini Projects (28)
  • Motor Controller (68)
  • Oscillator Circuits (28)
  • Pets and Pests (15)
  • Power Supply Circuits (91)
  • Remote Control Circuits (50)
  • Renewable Energy (12)
  • Security and Alarm (64)
  • Sensors and Detectors (106)
  • SMPS and Converters (34)
  • Solar Controller Circuits (60)
  • Temperature Controllers (43)
  • Timer and Delay Relay (49)
  • Voltage Control and Protection (42)
  • Water Controller (36)
  • Wireless Circuits (30)





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 |

Social Profiles

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



Recent Comments

  • Swagatam on 9 Simple Solar Battery Charger Circuits
  • Gagana on 9 Simple Solar Battery Charger Circuits
  • Swagatam on Arduino 2-Step Programmable Timer Circuit
  • Swagatam on Simple Buck-Boost Converter Circuits Explained
  • Swagatam on IC IR2111 H-Bridge MOSFET, IGBT Driver IC: Full Datasheet, Circuit Diagram

© 2026 · Swagatam Innovations