A 100 W inverter turns the 12 V DC of a car or solar battery into 230 V AC at 50 Hz, enough for lamps, phone and laptop chargers and small fans during a power cut. This guide explains a simple push-pull design built around a CD4047 oscillator, two power MOSFETs and a 12-0-12 V mains transformer used backwards, with realistic limits, a safe first power-up procedure and the numbers you need to size every part.
This is a square-wave inverter. It is cheap and easy to build, but it is not suitable for every load, as explained below.
Safety first
Warning: the output of this circuit is 230 V and can kill. Build it only if you are experienced with mains voltage. Use an insulated enclosure, never touch the output side while the circuit is powered, and keep it away from water.
- A car battery can deliver hundreds of amps in a short circuit. Always fit the fuse close to the battery positive terminal.
- Do the first tests with a current limiter (a 12 V car bulb) in series with the battery, described below.
- Do not connect medical devices, motors, compressors or sensitive electronics.
- For personal use only. A product sold to others must meet your country’s electrical safety and EMC rules.
How it works
- Oscillator: the CD4047 runs as a free-running (astable) oscillator and gives two complementary 50 Hz square waves on its Q and Q-bar outputs.
- Push-pull stage: each output drives one MOSFET through a 220 Ω resistor. The MOSFETs connect each end of the 12-0-12 V winding to ground in turn, while the centre tap stays on battery positive.
- Transformer: the alternating current in the two half-windings creates an alternating magnetic field, and the 230 V winding delivers the stepped-up square wave.
A single NE555 is not enough for this design because it has only one output. A 555 would also need a flip-flop (such as a CD4013) to produce two complementary phases. The CD4047 does this on its own.
Parts list
| Part | Value | Notes |
|---|---|---|
| Oscillator | CD4047 (CMOS) | Wire it in the astable configuration from the datasheet. Q and Q-bar are the pins you use. |
| Timing resistor | 33 kΩ + 20 kΩ trimmer | Frequency f = 1 / (4.4 × R × C). With C = 100 nF, R ≈ 45.5 kΩ gives 50 Hz. |
| Timing capacitor | 100 nF film or C0G | Stable type for a steady frequency. |
| Power MOSFETs | 2 × IRFZ44N (or IRF3205) | Low on-resistance, handle well over the 10 to 12 A peak current. |
| Gate resistors | 2 × 220 Ω | In series with each gate. |
| Gate pull-down resistors | 2 × 10 kΩ | Gate to ground, keeps the MOSFETs off at power-up. |
| Transformer | 12-0-12 V / 230 V, 150 to 200 VA | See the sizing note below. |
| Input capacitor | 2200 µF / 25 V, low ESR + 100 nF | Close to the MOSFETs and the centre tap. |
| Fuse | 15 A automotive fuse and holder | On the battery positive wire, as close to the battery as possible. |
| Heatsink and insulating pads | For two TO-220 devices | The MOSFET tabs are the drains and sit at different potentials, so insulate them from the heatsink and each other. |
| Battery cable | 4 mm² (2.5 mm² minimum, short runs) | The battery current is above 10 A. |
| Enclosure and output socket | Insulated | With strain relief on all cables. |
Sizing the key parts
These numbers explain why the parts above are larger than in many old circuits:
- Battery current: at 100 W output and about 80% efficiency, the battery supplies 100 ÷ (0.8 × 12) ≈ 10.4 A. At 10.5 V it rises to about 12 A. A 10 A fuse would blow, so use 15 A.
- Transformer rating: each half of the 12-0-12 V winding carries about 10.4 A for half of each cycle, roughly 7.4 A RMS. That needs a transformer of about 180 VA, so choose 150 to 200 VA. A 100 VA transformer would overheat at 100 W.
- Input capacitor: a 2200 µF low-ESR capacitor smooths the pulsed current at the centre tap better than 1000 µF.
Finding the centre tap of a transformer with two separate 12 V windings
Many readers ask how to connect a transformer that has two independent 12 V windings. The two windings must be connected in series, aiding each other. The junction between them becomes the centre tap, and the two outer ends become the drain connections.
- Identify the windings with a multimeter: the 230 V winding has the highest resistance, and the two 12 V windings have very low resistance.
- Do not energise the transformer from the mains for this test. Instead apply a low AC voltage, for example 12 V AC from a small plug-in AC adapter, to the 230 V winding.
- Connect the two 12 V windings in series (end of one to start of the other).
- Measure the AC voltage across the two free ends. If it reads about twice the voltage of one winding, the windings are aiding and the junction is your centre tap. If it reads close to zero, they are opposing: swap the leads of one winding and measure again.
With the correct connection the two outer ends become A and B (to the MOSFET drains) and the junction goes to the battery positive through the fuse. A wrong connection makes the fluxes cancel and the circuit draws a very high current.
Step-by-step build
- Oscillator first: build the CD4047 stage on its own, powered from 12 V through a 47 to 100 Ω resistor with a 100 µF decoupling capacitor. Check Q and Q-bar with an oscilloscope or a multimeter with a frequency function.
- Tune to 50 Hz: adjust the trimmer until the output is as close to 50 Hz as you can measure. Use 60 Hz instead if your mains is 60 Hz (R ≈ 38 kΩ for 100 nF).
- Power stage: mount the MOSFETs on the heatsink with insulating pads. Connect each gate through its 220 Ω resistor and add the 10 kΩ pull-downs.
- Transformer: connect drain A and drain B to the two ends of the 12 V winding, and the centre tap to the battery positive through the fuse. Connect both MOSFET sources and the oscillator ground to the battery negative.
- Input capacitor: solder the 2200 µF capacitor across the supply close to the transformer and MOSFETs.
- Enclosure: keep the 230 V output wiring physically separated from the 12 V side and the low-voltage control circuit.
First power-up and testing
- Current-limited start: put a 12 V car bulb (around 21 W) in series with the battery positive, before the fuse. With no load connected the bulb should stay off or glow faintly. A bright bulb means a fault, such as wrong winding phase, a shorted MOSFET or swapped wiring.
- Measure the output with nothing connected, using a true-RMS multimeter if you have one.
- Remove the bulb limiter and connect a 15 to 20 W incandescent lamp rated for 230 V. Check the battery current.
- Raise the load gradually up to 100 W. After 10 minutes check that the heatsinks and transformer are only warm, not hot.
Output voltage depends on the battery
This inverter has no voltage regulation. The output follows the battery voltage. For a typical 12-0-12 V / 230 V transformer the no-load output is roughly:
| Battery voltage | Approx. no-load output (square wave, RMS) |
|---|---|
| 10.5 V (nearly empty) | about 200 V |
| 12.0 V | about 230 V |
| 13.8 V (charging) | about 260 V |
| 14.4 V (high charging) | about 275 V |
These are estimates for an ideal transformer, so measure your own. A cheap multimeter calibrated for sine waves reads a square wave about 11% too high. Use a true-RMS meter or compare with a lamp of known power.
Run time on a battery
Use this formula:
Run time (h) = battery voltage × Ah × usable fraction × 0.8 ÷ load power (W)
| 12 V 100 Ah battery | Usable energy (80% inverter efficiency) | At 100 W | At 50 W |
|---|---|---|---|
| Lead-acid (use about 50%) | about 480 Wh | about 4.8 h | about 9.6 h |
| LiFePO4 (use about 90%) | about 860 Wh | about 8.6 h | about 17 h |
Discharging a lead-acid battery below about 50% shortens its life. The inverter itself also draws current with no load, so switch it off when it is not in use.
What you can and cannot connect
- Good: incandescent lamps, many LED lamps, phone and laptop chargers, small fans without motors that dislike square waves.
- Not recommended: induction motors, refrigerators, pumps and compressors (high start-up current and sensitivity to waveform), dimmers, audio equipment, medical devices.
- Never exceed 100 W of total load, including start-up peaks.
Troubleshooting
| Symptom | Likely cause and fix |
|---|---|
| Bulb limiter glows brightly with no load | Windings in the wrong phase, a shorted MOSFET, or both MOSFETs conducting. Re-check the centre tap test and the gate wiring. |
| Fuse blows at power-up | Reversed battery polarity, wrong winding connection, or a damaged MOSFET. |
| MOSFETs get very hot | No heatsink, overload, or weak gate drive. Check the gate waveform and the load. |
| Output voltage too low | Low battery, voltage drop in thin cables, or an undersized transformer. |
| Transformer hums or buzzes loudly | Frequency far from 50 Hz, or the transformer is undersized for the load. |
| Frequency drifts | Use a stable timing capacitor and decouple the oscillator supply. |
Possible improvements
- Add a low-battery cut-off (around 10.5 V for lead-acid) to protect the battery.
- Add reverse-polarity protection and a power switch on the battery side.
- Use a transformer with a 115 V winding for 120 V systems, and set the oscillator to 60 Hz where needed.
- For motors and sensitive loads, buy a certified pure sine wave inverter.
Frequently asked questions
Can I power a refrigerator with this inverter?
No. The start-up surge of a compressor is far above 100 W, and a square wave can damage it.
Can I power a laptop or phone charger?
Usually yes, because most switch-mode chargers accept a square wave. Test with the charger on its own first and stay below 100 W.
Square wave, modified sine or pure sine: what is the difference?
A square wave is the simplest and cheapest. A modified sine wave has a stepped shape that suits more devices. A pure sine wave copies mains and is required for motors and sensitive electronics.
Can I use a LiFePO4 battery?
Yes. Note that a fully charged LiFePO4 battery is around 13.3 to 14.6 V, so the unregulated output voltage will be higher.
Can I use a bigger transformer to get more power?
Only if the MOSFETs, fuse, wiring and heatsink are upgraded in proportion. The 100 W figure is a design limit, not just a transformer limit.
Related projects
- 12 V lead-acid battery charger with LM350
- 12 V battery level indicator circuit
- DIY LiFePO4 BMS with active balancing
- DIY MPPT solar charge controller
More in our Power & Energy projects hub.
Conclusion
A CD4047, two MOSFETs and a correctly sized transformer make a simple 100 W inverter that is great for learning how DC to AC conversion works. Respect its limits: square-wave output, unregulated voltage and a hard 100 W ceiling. If you have a question about the transformer connection or the parts, leave a comment below.



No comments
Post a Comment