• 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 / Battery Charger Circuits / Single Transformer Inverter/Charger Circuit

Single Transformer Inverter/Charger Circuit

Last Updated on May 17, 2026 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.

Table of Contents
  • The Circuit Objective
    • How the Circuit Functions
      • Parts List
  • Using a 2-Wire Transformer

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:

  • supercapacitorchargercircuitSuper Capacitor Charger Theory and Working
  • DIY Power Bank using T856-C Module? How to Connect
  • accumulator with electrolyte and electrodesAccumulators Explained [Rechargeable Batteries]
  • water2BheaterSolar Water Heater Circuit with Battery Charger

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

Questions & Answers

Total Posts: 243
Newest Oldest
Hillary
January 28, 2025 • 1 year ago #168181

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
SwagatamAdmin
January 28, 2025 • 1 year ago #168187

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

Reply
Jedidiah
January 25, 2025 • 1 year ago #168123

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

Reply
SwagatamAdmin
January 25, 2025 • 1 year ago #168125

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
January 25, 2025 • 1 year ago #168130

Thank you

Reply
Jedidiah
January 27, 2025 • 1 year ago #168167

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
SwagatamAdmin
January 27, 2025 • 1 year ago #168171

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

Reply
Victor
April 8, 2024 • 2 years ago #151415

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

Reply
SwagatamAdmin
April 8, 2024 • 2 years ago #151428

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
August 28, 2023 • 3 years ago #144921

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
SwagatamAdmin
August 28, 2023 • 3 years ago #144925

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
August 28, 2023 • 3 years ago #144916

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
SwagatamAdmin
August 28, 2023 • 3 years ago #144920

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
August 27, 2023 • 3 years ago #144904

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
SwagatamAdmin
August 27, 2023 • 3 years ago #144907

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
June 2, 2023 • 3 years ago #143093

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
SwagatamAdmin
June 2, 2023 • 3 years ago #143096

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
June 2, 2023 • 3 years ago #143099

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
SwagatamAdmin
June 3, 2023 • 3 years ago #143105

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
June 3, 2023 • 3 years ago #143119

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

Reply
SwagatamAdmin
June 3, 2023 • 3 years ago #143121

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
June 3, 2023 • 3 years ago #143123

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
SwagatamAdmin
June 3, 2023 • 3 years ago #143129

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

Reply
Adeoye Joshua
June 3, 2023 • 3 years ago #143151

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

Reply
SwagatamAdmin
June 4, 2023 • 3 years ago #143161

You are most welcome!

Reply
simeon
August 5, 2022 • 4 years ago #132051

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

Reply
SwagatamAdmin
August 5, 2022 • 4 years ago #132053

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

Reply
simeon
August 6, 2022 • 4 years ago #132064

180v with load and battery is fully charge

Reply
SwagatamAdmin
August 6, 2022 • 4 years ago #132071

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
August 5, 2022 • 4 years ago #132050

Helpful

Reply
Muiz
February 25, 2021 • 5 years ago #87340

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

Reply
EMMANUEL
February 7, 2021 • 5 years ago #86782

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
SwagatamAdmin
February 7, 2021 • 5 years ago #86790

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
February 7, 2021 • 5 years ago #86793

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
SwagatamAdmin
February 8, 2021 • 5 years ago #86814

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
January 27, 2021 • 5 years ago #86438

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
SwagatamAdmin
January 28, 2021 • 5 years ago #86455

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

Reply
Emmanuel
January 26, 2021 • 5 years ago #86416

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
SwagatamAdmin
January 27, 2021 • 5 years ago #86430

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

Reply
JOSE JAVIER GONZALEZ
November 15, 2020 • 6 years ago #84419

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
SwagatamAdmin
November 15, 2020 • 6 years ago #84441

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
November 19, 2020 • 6 years ago #84594

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
SwagatamAdmin
November 19, 2020 • 6 years ago #84641

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
July 11, 2020 • 6 years ago #80276

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
July 21, 2020 • 6 years ago #80597

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

Reply
SwagatamAdmin
July 21, 2020 • 6 years ago #80610

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

Reply
SwagatamAdmin
July 12, 2020 • 6 years ago #80290

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

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



My Youtube Channel

Circuit Simulator

circuit simulator image



Subscribe to get New Circuits in your Email



Categories

  • Arduino Projects (95)
  • Audio and Amplifier Projects (134)
  • Automation Projects (18)
  • Automobile Electronics (103)
  • Battery Charger Circuits (88)
  • Datasheets and Components (109)
  • Electronics Theory (149)
  • 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 (162)
  • Meters and Testers (72)
  • Mini Projects (28)
  • Motor Controller (68)
  • Oscillator Circuits (28)
  • Pets and Pests (15)
  • Power Supply Circuits (91)
  • Remote Control Circuits (50)
  • Security and Alarm (65)
  • Sensors and Detectors (107)
  • SMPS and Converters (45)
  • Solar Controller Circuits (61)
  • Temperature Controllers (43)
  • Timer and Delay Relay (50)
  • Voltage Control and Protection (44)
  • Water Controller (37)
  • Wireless Circuits (31)



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 DPDT Relay Working, Pinouts, Testing Explained
  • Swagatam on How to Modify SMPS for Adjustable Current and Voltage Output
  • Swagatam on Pure Sine Wave Inverter Circuit Using IC 4047
  • Nare Mashiachidi on DPDT Relay Working, Pinouts, Testing Explained
  • Nare Mashiachidi on DPDT Relay Working, Pinouts, Testing Explained

Social Profiles

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

© 2026 · Swagatam Innovations