Building a power inverter that converts 12V DC battery power to 230V AC sine wave output is one of the most challenging and rewarding power electronics projects. In India, where power cuts remain common in Tier-2/3 cities and rural areas, a DIY inverter can power essential loads like lights, fans, and chargers from a 12V battery or solar system. This guide covers sine wave inverter fundamentals, H-bridge design, and critical safety considerations for the Indian 230V/50Hz grid standard.
Power Inverter Fundamentals
An inverter converts DC (from a battery) to AC (for powering appliances). Three types exist:
- Square wave: Simplest, cheapest. Output is a crude square wave at 50Hz. Causes buzzing in motors, damages some electronics. Not recommended for modern loads.
- Modified sine wave (MSW): A stepped approximation of a sine wave. Works for most resistive loads (lights, heaters) and basic motors (fans). Can cause issues with sensitive electronics, audio equipment, and some chargers. Most cheap Indian inverters use MSW.
- Pure sine wave (PSW): Output closely matches the grid sine wave. Safe for all loads including computers, TVs, refrigerator compressors, and medical equipment. More complex and expensive to build.
For Indian 230V/50Hz output, the inverter must produce a 50Hz sine wave with peak voltage of 325V (230V RMS x 1.414). The battery input is typically 12V, 24V, or 48V DC.
Inverter Topology: H-Bridge Sine Wave
The standard DIY pure sine wave inverter uses:
- DC-DC boost stage: Steps up 12V battery to 340-360V DC bus using a push-pull transformer or boost converter
- H-bridge inverter stage: Four MOSFETs in H-bridge configuration, driven with SPWM (Sinusoidal Pulse Width Modulation) at 20-50kHz carrier frequency
- LC output filter: Low-pass filter converts the high-frequency PWM into a smooth 50Hz sine wave
Block Diagram:
12V Battery → Push-Pull Transformer → Rectifier → 340V DC bus
340V DC bus → H-Bridge (4x MOSFET) → LC Filter → 230V AC output
SPWM Generation:
A microcontroller (Arduino/STM32) generates SPWM signals:
- 50Hz sine reference wave
- 20kHz+ triangle carrier wave
- Comparator output = SPWM for H-bridge gates
- Complementary outputs for high-side and low-side MOSFETs
- Dead-time insertion (1-2us) to prevent shoot-through
Design Considerations for 230V India
- Frequency: India uses 50Hz. Your sine wave reference must be precisely 50Hz for clock-dependent devices and synchronous motors.
- Voltage regulation: Output should be 230V +/-5% under varying loads. Use feedback control (measure output voltage, adjust SPWM duty cycle).
- Waveform quality: Total Harmonic Distortion (THD) below 5% for sensitive loads. Good LC filter design is critical.
- Overload protection: Indian homes often have inductive loads (fans, pumps) with high inrush current. Design for 2-3x rated power for 5-second inrush handling.
- Efficiency: Target 85-90% at rated load. Major losses: transformer core and copper, MOSFET conduction and switching, filter inductor.
Key Components and Selection
For a 500W 12V pure sine wave inverter:
- Boost transformer: EE55 or EE65 ferrite core, 12V primary (4+4 turns, heavy gauge), 340V secondary (multiple layers). Wind yourself or source from IndiaMart.
- Primary MOSFETs: IRFP4110 or IRF3205 x2 for push-pull stage. Low Rds(on) is critical at 12V/50A+ primary current.
- H-bridge MOSFETs: IRF840 or IRFP460 x4 for 340V stage. High voltage rating (500V+) essential.
- Gate drivers: IR2110 or IR2113 for bootstrap high-side drive. Critical for reliable H-bridge operation.
- LC filter: 2-3mH inductor + 2-4uF/400V film capacitor. Cutoff frequency ~2-3kHz to pass 50Hz and block 20kHz+ switching.
- Controller: Arduino Nano for simple SPWM, STM32 for advanced features (voltage regulation, frequency lock, protection).
Safety: Working with Mains Voltage
WARNING: This project involves lethal voltages (340V DC bus, 230V AC output). Electrocution risk is real. Only attempt this if you have experience with high-voltage circuits. Always use an isolation transformer during testing. Keep one hand in your pocket when probing live circuits. Have a fire extinguisher nearby.
- Use a GFCI/ELCB-protected outlet when testing with mains reference equipment
- Install a 30A fuse on the battery input and a 3A fuse on the AC output (for 500W)
- Add thermal shutdown: NTC sensor on MOSFET heatsinks, shutdown above 80degC
- Over-current protection: ACS712 on output, shutdown above 150% rated current
- Enclose all high-voltage components in an insulated enclosure with proper ventilation
- Label the enclosure with voltage warnings in Hindi and English
Shop All Batteries & Power Modules →
Frequently Asked Questions
Is building a DIY inverter cheaper than buying one in India?
For modified sine wave: no, factory MSW inverters cost ₹1,500-3,000 for 500W. For pure sine wave: roughly equal at ₹3,000-5,000 in components for 500W, but the DIY version can be customised and repaired. The real value is in learning power electronics.
Can I connect a DIY inverter to the grid for net metering?
No. Grid-tie inverters require anti-islanding protection, grid synchronisation, and BIS certification per Indian standards (IS 16169). DIY inverters are for off-grid/backup use only. Using an uncertified inverter on the grid is illegal and dangerous.
What size inverter do I need for Indian home backup?
For lights (100W) + fan (75W) + router (15W) + phone charging (40W) = 230W. A 500W inverter handles this with headroom for fan inrush. For adding a refrigerator (150W running, 800W startup), size up to 1500-2000W.
Why do some appliances buzz on modified sine wave?
MSW contains significant harmonic content (square-ish waveform). Transformers in appliances vibrate at harmonic frequencies (magnetostriction). Inductive loads (fans, pumps) run hotter and less efficiently. Audio equipment produces audible buzz. Pure sine wave eliminates these issues.
Add comment