• 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 / Using MOSFET Body Diodes to Charge Battery in Inverters

Using MOSFET Body Diodes to Charge Battery in Inverters

Last Updated on May 17, 2026 by Swagatam 116 Comments

In this post I have explained how the internal body diodes of MOSFETs could be exploited for enabling the charging of battery through the same transformer which is being used as the inverter transformer.

Table of Contents
  • What is a Full Bridge or H-Bridge Inverter
  • Purpose of MOSFET Internal Body Diodes
    • Using MOSFET Body Diodes for Charging Inverter Battery
    • Basic Working Concept
    • Current Flow Direction through MOSFET Body Diodes
    • Practical Design
  • Relay Changeover Operations

In this article we will investigate a full bridge inverter concept and learn how the in-built diodes of its 4 MOSFETs could be applied for charging an attached battery.

What is a Full Bridge or H-Bridge Inverter

In few of my earlier posts we have discussed full bridge inverter circuits and regarding their working principle.

As shown in the above image, basically, in a full-bridge inverter we have a set of 4 MOSFETs connected to the output load. The diagonally connected MOSFET pairs are alternately switched through an external oscillator, causing the input DC from the battery to transform into an alternating current or AC for the load.

The load is normally in the form of a transformer, whose low voltage primary is connected with the MOSFET bridge for the intended DC to AC inversion.

Typically, the 4 N-channel MOSFET based H-bridge topology is applied in full bridge inverters, since this topology provides the most efficient working in terms of compactness to power output ratio.

Although using 4 N channel inverters depend on specialized driver ICs with bootstrapping, yet the efficiency overweighs the complexity, hence these types are popularly employed in all modern full bridge inverters.

Purpose of MOSFET Internal Body Diodes

The internal body diodes present in almost all modern day MOSFETs are primarily introduced to safeguard the device from reverse EMF spikes generated from a connected inductive load, such as a transformer, motor, solenoid etc.

When an inductive load is switched ON through the MOSFET drain, electrical energy gets stored instantaneously inside the load, and during the next moment as the MOSFET turns OFF, this stored EMF is kicked back in the reverse polarity from MOSFET source to drain, causing a permanent damage to the MOSFET.

The presence of an internal body diode across the drain/source of the device thwarts the danger by allowing this back emf spike a direct path through the diode, thus safeguarding the MOSFET from a possible breakdown.

Using MOSFET Body Diodes for Charging Inverter Battery

We know that an inverter is incomplete without a battery, and an inverter battery inevitably requires charging frequently to keep the inverter output topped-up and in the standby condition.

However, charging a battery requires a transformer, which needs to be a high wattage type to ensure optimal current for the battery.

Using a additional transformer in conjunction with the inverter transformer can be quite bulky and costly too. Therefore finding a technique in which the same inverter transformer is applied for charging the battery sounds extremely beneficial.

The presence of the internal body diodes in MOSFETs fortunately makes it possible for the transformer to be switched in the inverter mode and also in the battery charger mode, through some easy relay changeovers sequences.

Basic Working Concept

In the diagram below we can see that, each MOSFET is accompanied with an internal body diode, connected across their drain/source pins.

The anode of the diode is connected with the source pin, while the cathode pin is associated with the drain pin of the device. We can also see that since the MOSFETs are configured in a bridged network, the diodes also become configured in a basic full-bridge rectifier network format.

A couple of relays are employed which implement a few quick changeovers for enabling the grid AC to charge the battery via the MOSFET body diodes.

This bridge rectifier network formation of the MOSFET internal diodes actually makes the process of using a single transformer as an inverter transformer and charger transformer very straightforward.

Current Flow Direction through MOSFET Body Diodes

The following image shows the direction of current flow through the body diodes for rectifying the transformer AC to a DC charging voltage

With an AC supply, the transformer wires change their polarity alternately. As shown in the left image, assuming the START as the positive wire, the orange arrows indicate the flow pattern of current via D1, battery, D3 and back to the FINISH or the negative wire of the transformer.

For the next AC cycle, the polarity reverses, and the current moves as indicated by the blue arrows via body diode D4, battery, D2, and back to the FINISH or the negative end of the transformer winding. This keeps repeating alternately, transforming both the AC cycles to DC and charging the battery.

However, since MOSFETs are also involved in the system, extreme care has to be exercised to ensure that these device do not get damaged in the process, and this calls for a perfect inverter/charger changeover operations.

Practical Design

The following diagram shows a practical design set up for implementing MOSFET body diodes as a rectifier for charging an inverter battery, with relay changeover switches.

To ensure 100% safety for the MOSFETs in the charging mode and while using the body diodes with the transformer AC, the MOSFET gates must be held at the ground potential, and completely cut-off from the supply DC.

For this we implement two things, connect 1 k resistors across the gate/source pins of all the MOSFETs, and a put a cut-off relay in series with the Vcc supply line of the driver IC.

The cut-off relay is an SPDT relay contact with its N/C contacts connected in series with the driver IC supply input. In the absence of AC mains, the N/C contacts remain active allowing the battery supply to reach the driver IC for powering the MOSFETs.

When mains AC is available, this relay changes over to the N/O contacts cutting off the IC Vcc from the power source, thus ensuring a total cut off for the MOSFETs from the positive drive.

We can see another set of relay contacts connected with the transformer 220 V mains side. This winding constitutes the output 220V side of the inverter. The winding ends are connected with the poles of a DPDT relay, whose N/O an N/C contacts are configured with the mains grid input AC and the load respectively.

In the absence of mains grid AC, the system works in the inverter mode, and the power output is delivered to the load via the N/C contacts of the DPDT.

In the presence of an AC grid input, the relay activates to N/O contacts allowing the grid AC to power the 220V side of the transformer. This in turn energizes the inverter side of the transformer and the current is allowed to pass through the body diodes of the MOSFETs for charging the attached battery.

Before the DPDT relay is able to activate, the SPDT relay is supposed to cut off the Vcc of the driver IC from the supply. This slight delay in activation between the SPDT relay and the DPDT relay must be ensured in order to guarantee 100% safety for the MOSFETs and for the sound operations of the inverter/charging mode via the body diodes.

Relay Changeover Operations

As suggested above, when mains supply is available the Vcc side SPDT relay contact should activate a few milliseconds before the the DPDT relay, at the transformer side. However, when the mains input fails, both the relays must switch OFF almost simultaneously. These conditions could be implemented using the following circuit.

Here, the operational DC supply for the relay coil is acquired from a standard AC to DC adapter, plugged with the grid mains.

This means, when grid AC is available, the AC/DC adapter powers ON the relays. The SPDT relay being connected directly to the DC supply activates quickly before the DPDT relay can. The DPDT relay activates a few milliseconds later due to the presence of the 10 ohm and the 470 uF capacitor. This ensures that the MOSFET driver IC is disabled before the transformer is able to respond to the grid AC input at its 220 V side.

When mains AC fails, both the relay switch OFF almost simultaneously, since the 470uF capacitor now has no effect on the DPDT due to the series reverse biased diode.

This concludes our explanation regarding using MOSFET body diodes for charging an inverter battery through a single common transformer. Hopefully, the idea will allow the many hobbyists to build cheap, compact automatic inverters with built-in battery chargers, using a single common transformer.

You'll also like:

  • NiCd battery compressedTypes of Batteries Explained [NiCd, NiMH, Lead Acid, Li-Ion]
  • offshore 2Camper, Motorhome Battery Charger Circuit
  • timer2BchargerTimer Based Cell Phone Charger Circuit
  • HighbatteryindicatorcircuitBattery Full Charge Indicator Circuit using Two Transistors

Filed Under: Battery Charger Circuits Tagged With: Battery, Body, Charge, Diodes, Inverters, MOSFET

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: « Basic Electronic Circuits Explained
Next Post: Stud Finder Circuit – Find Hidden Metals Inside Walls »

Have a question or feedback? Feel free to ask below—just make sure it relates to the post above!

Subscribe
Notify of
guest
guest
116 Comments

Primary Sidebar

My YouTube Channel

Circuit Simulator: Draw and Simulate Schematics

circuit simulator image

Categories

  • Arduino Projects (95)
  • Audio and Amplifier Projects (134)
  • Automation Projects (18)
  • Automobile Electronics (104)
  • Battery Charger Circuits (90)
  • Datasheets and Components (109)
  • Electronics Theory (151)
  • Energy from Magnets and Earth (43)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (20)
  • Health related Projects (27)
  • Home Electrical Circuits (13)
  • Indicator Circuits (16)
  • Inverter Circuits (98)
  • Lamps and Lights (161)
  • 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 (51)
  • Voltage Control and Protection (44)
  • Water Controller (37)
  • Wireless Circuits (31)

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 High Voltage Meter Circuit [for Measuring 10kV]
  • Swagatam on About Me
  • chukwuamaka on About Me
  • Brian Harding on High Voltage Meter Circuit [for Measuring 10kV]
  • Swagatam on Police/Ambulance Siren Circuit with Rotating Beacon Light

Social Profiles

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

Calculators

  • ZVS Induction Heater + Tank Calculator Tool
  • Zener Diode Calculator
  • Wire Current and Thickness Calculator (Ampacity Calculator)
  • Voltage Divider Calculator
  • Transistor Base Resistor Calculator
  • Transistor Astable Multivibrator Calculator
  • TL431 Calculator
  • Solar Panel, Inverter, Battery Calculator
  • Ferrite Core Air Gap Calculator Tool
  • Parallel MOSFET Calculator Tool: How to Connect MOSFETs in Parallel Safely
  • LC Resonance Calculator for EV Battery Charger Circuits
  • LED String Series Resistor Calculator
  • PFC (Power Factor Correction) Calculator Tool: 3kW
  • Passive Power Factor Correction (PFC) Calculator
  • LM567 IC Calculator Tool
  • SMPS Flyback Boost Converter Calculator
  • Shunt Resistor Calculator for Ammeters
  • SCR and Triac Gate Resistor Calculator
  • Battery Back up Time Calculator
  • Boost Converter Calculator (Non-Isolated)
  • Bootstrap Capacitor Calculator
  • Buck Converter Calculator
  • Buck-Boost Converter Calculator
  • Capacitance Reactance Calculator
  • DCM Flyback Transformer & Wire Gauge Wire Size Calculator Tool
  • Filter Capacitor Calculator
  • IC 4047 Calculator (Frequency and PWM)
  • IC 4060 Calculator
  • IC 555 Astable Calculator
  • IC 555 Monostable Calculator
  • IC SG3525, SG3524 Calculator
  • Inductance Calculator
  • Induction Heater Inductor and Resonant Frequency Calculator
  • Induction Heater Work Coil Calculator
  • Inverter LC Filter Calculator
  • LC Resonance Calculator
  • LED Current Calculator
  • LM317, LM338, LM396 Calculator
  • NAND/NOT Gate RC Values Calculator
  • NOT, NAND Gate Frequency Calculator
  • Notch Filter Calculator Tool
  • Ohm’s Law Calculator
  • Phase Angle Phase Shift Calculator
  • Power Factor (PF) Calculator
  • RC Filter Calculator
  • Reactance Calculator
  • Sine Table Calculator for SPWM Arduino Code
  • Small Signal Transistor(BJT) and Diode Quick Datasheet
  • SMPS Calculator for Toroidal Ferrite Transformers
  • SMPS Flyback Transformer Calculator – Design by Target Duty Cycle
  • TL431 Calculator
  • Op-Amp Hysteresis Resistor Calculator

© 2026 · Swagatam Innovations