DIY Cheap 1000W Pure Sine Wave Inverter (12V to 110V/220V)

46,477

156

47

Introduction: DIY Cheap 1000W Pure Sine Wave Inverter (12V to 110V/220V)

About: Hi! I am Angelo, others know me as TechBuilder. I am an Electronics & Communications Engineering major. Instructables has been my home ever since I was 10. Hope yall enjoy my projects!

Car batteries for powering you home? Build a low cost 12V to 220V (DC-AC) Pure Sine Wave Inverter from scratch! The project is based on the low cost EGS002 SPWM driver board module. The DIY inverter board can handle up to 1kW (depending the transformer size). Around $30 was spent to build this project from locally sourced parts.

Watch My Full YouTube Tutorial:

Features Of This Project:

  • Transformer can be replaced to work with 110V/220V/230V outputs
  • Has output voltage feedback (constant AC voltage output)
  • Undistorted pure sine wave output (with load)
  • Selectable Output Frequency (60Hz/ 50Hz)
  • Current Protection
  • Voltage Protection
  • Temperature Protection
  • Cooling Fan Output
  • LCD Screen (V,I,Freq,Temp)
  • Modular Swappable Design

Key Points:

  • Powerplants use generators that generate a pure sinewave output. It's what you would find from the grid. All our AC appliances were originally designed to run on this waveform.
  • A few years back sine wave inverters were extremely expensive ($200-$1000).
  • As a result square wave and modified square wave were the common and affordable options.
  • Square wave inverters are less efficient and can damage sensitive appliances.
  • Aside from being cheap and common, square wave inverters creates that obnoxious humming noises in motors, transformers, mostly on everything you plug to it.
  • Theoretically, sine wave inverters are more efficient than square wave inverters depending on the implementation quality.

Things To Improve:

  • Part 2 of the video will show how to implement a single coil inductor for fast switching, replacing the EI core design used in this project. I'll see if it yields a higher efficiency than the EI core design from this tutorial.
  • Will update this tutorial for a more detailed bench test. I'm currently building a DC & AC Wattmeter SD datalogger for monitoring the data for this project and my future power electronics project.
  • Will implement SMT components to make the board smaller
  • The next single coil inductor design is expected to yield a smaller form factor, conversion higher efficiency and lower standby power consumption. The one on this project consumes 12W of power without load (a bit mehhh)
  • The current board in this board is limited to a 20VDC input due to the MOSFET driver gate drive source being tied to the Vcc and the 7805 regulator's input voltage limitation. I will reconfigure the board and replace the 7805 regulator with an XL7005A switching regulator and some linear regulators for different rails for the inverter board to work with 80V power sources (12V/24V/48V/72V).

Disclaimer:

Be extra careful with this project as it produces a High Voltage - High Current output. The board was designed to cater a 1kW transformer. Due to unavailability, I was only able to acquire a surplus 500W 12V-220V UPS Transformer. As far as it goes I was only able to reach 400W with minimal sine wave distortion. Part 2 of the video tutorial will show the troubleshooting process and connecting it to a bigger transformer. Part 3 will show the process behind designing user specific inverter using the EGS002 module and Part 4 on building a better inverter with a 48V input for my off-grid solar panel setup.

Step 1: PARTS REQUIRED:

PARTS REQUIRED:

- EGS002 SPWM Inverter Driver Module

- IRF3205 or IRLB4132 MOSFETS (16x)

- 12V to 220V (500W/1000W) Transformer

- TO-220 Isolation Set (16x)

- TIP31C NPN Transistor

- 7805 Regulator

- 1N4007 Diode (8x)

- 10k Ohm NTC Thermistor

- 10k Ohm Multi-turn Trimmer

- 10 Ohm Resistor (4x)

- 2.2k Ohm Resistor

- 10k Ohm Resistor (4x)

- 100k Ohm Resistor (2x)

- 470nF 25v Capacitor

- 2.2uF +350v Capacitor

- 2.2uF 25v Capacitor

- 10uF 25v Capacitor

- 100uF 25v Capacitor

FOR HOMEBREW PCB:
- Photopositive Presensitized PCB

- Developing Solution (Sodium Hydroxide)

- Etchant (Ferric Chloride)

- Hacksaw

Step 2: Intro to the EGS002 Board

The EGS002 is a versatile $3 all-in-one solution for building Pure Sine Wave inverters. You can build low power to high power inverter units out of it! Right out of the box, It is not an inverter just yet. You would have to build a few components around it to make it into a functional inverter unit.

Why It Is So Good?

Decent high power commercial pure sine wave inverters are very expensive! They range from $120-$400. With the EGS002 you can design all sorts of inverters with input voltage, output voltage and power ratings of your choice! For as low as $20, depending on your specs and where you source your components.

What's On The EGS002 Board?

  • EG8010 SOIC Microcontroller - The EGS002 uses an EG8010 an ASIC (Application Specific Integrated Circuit) microcontroller chip designed to output SPWM logic signals for driving H-Bridge inverters. The chip is also equipped with I/Os specifically designed for closed loop voltage monitoring, cut-off current monitoring, temperature monitoring and fan drive output. Unlike Arduino based inverter project, the chip is preprogrammed and is ready to use.
  • High Side & Low Side MOSFET/IGBT Driver - The board also contains two IR2110S MOSFET drivers for driving an All N-Channel H-bridge MOSFET arrangement for SPWM and polarity switching to the transformer or inductor. This chip ensures that the low side and the high side MOSFETs (specifically) are fully saturated. This prevent power losses from on-resistance by supplying the gates with their proper gate voltages to ensure the have the least on-resistance with respect to its specs.
  • OP-AMP For Current Sensing - The board has a LM393 OP-AMP to amplify the voltage from the shunt resistor. The amplified voltage goes back to the EG8010's analog input as the chip uses it for overcurrent protection
  • LCD Ready Display Output - The EG8010 microcontroller has already been pre-programmed to work with a proprietary LCD display. You can add a dollar to the $3 EGS002 unit to get the extra LCD screen. This displays the output voltage, current, temperature and frequency mode.
  • Single LED Error Display - There's one red LED on the board that would blink for a specific number of times to display errors for troubleshooting.

Stay tuned for the next video and Instructable tutorial as I won't delve much into the reverse engineering and design process of building user specific inverter board with the EGS002 on this tutorial.

Step 3: EGS002 & EG8010 Datasheet Details

Will upload a separate tutorial for the EGS002 details. Stay tuned!

Step 4: EGS002 Setup (60Hz & 50Hz Selection)

At the rear upper left side of the EGS002, there is a number of solder pad jumpers for configuring specific board parameters. You can refer to the photo above for the table of possible settings. For beginner hobbyists who find the datasheet instructions confusing, here's a simplified instruction below

Jumper Setting Detailed Instructions:

  • Set AC Frequency - Depending on which country or continent you live in, appliance AC frequency would vary. For example: In the Philippines and America it is 60Hz in India, China and Europe it is 50Hz. Try to research on your country's appliance frequency before setting this. By default it is set to 50Hz.
    1. Set To 60Hz - Solder JP1 and desolder JP5.
    2. Set To 50 Hz - Solder JP5 and desolder JP1.
  • LCD Backlight - If you have the EGS002 + LCD combo package, you can disable the LED backlight of the LCD screen if you want to save extra power. You can also solder a switch across JP9 if you want to have the freedom to turn it on and off anytime. This is set to on by default.
    1. Enable LCD Backlight - Solder JP9.
    2. Disable LCD Backlight - Desolder JP9.
  • Soft Start Mode - Soft start mode is a nice feature to prevent a surge of power draw once you connect the DC power source to the inverter while a load is attached. With soft start mode, the voltage will slowly increase to your set output voltage for 3 seconds (ex: 0V-220V in 3 seconds). This also prevents huge sparks when connecting your inverter to your battery. If you are planning to build a UPS circuit, you will have to disable it.
    1. Enable 3s Soft Start - Solder JP2 together and desolder JP6.
    2. Disable Soft Start - Solder JP6 together and desolder JP2.
  • Deadtime - Deadtime is the time in seconds for the MOSFETs to turn off before switching phases. This is done to prevent cross-conduction (quick short) across the half-bridge MOSFET (vertical MOSFET pair) during high speed switching of he H-Bridge setup. 300ns seems fine for most setups, a slower deadtime of 1.5us must be used for high gate capacitance MOSFETs. I suggest to leave these jumpers by default.
    1. 300ns Deadtime - Desolder JP3 and JP4 then solder JP7 and JP8.
    2. 500ns Deadtime - Desolder JP4 and JP7 then solder JP3 and JP8.
    3. 1.0us Deadtime - Desolder JP3 and JP8 then solder JP4 and JP7.
    4. 1.5us Deadtime - Desolder JP7 and JP8 then solder JP3 and JP4

Step 5: Schematics

As discussed on the video, the left block of schematic refers to what's on the EGS002 board, and the one on the right is the circuit that we would have to build in order to build a fully functional inverter. I barely made adjustments for this one since the datasheet sample schematic would serve well for a 16 MOSFET configuration too.

My Tweaks From The Datasheet Sample Schematic:

I binded the MOSFET Drain pins, 12v cooling fan and 12v pin of the EGS002 as my Vcc (input power source). Take note that the 12v pin of the EGS002 is what supplies the IR2110S driver controlled outputs for your MOSFETs gates. This means the maximum input voltage for the inverter is limited to the max gate voltage of your MOSFET (typically 20v) and your 5V regulator's max input voltage (35v for 7805). I'll post a another tutorial soon for higher input voltage inverter systems (24v/48v/72v). I also connected 4 MOSFETs in parallel for each of the 4 MOSFETs used in the H-Bridge setup, giving a total of 16 MOSFETS. This was done to decrease the on-resistance of the system to accommodate more powerful transformers (+1kw at 12v). You can choose to leave some MOSFET slots blank for 4/8/12 MOSFET arrangements. A 7805 regulator on the other hand was connected to the 12V Vcc line to supply a constant 5V to 5V pin of the EGS002 (used for the logic components).

Step 6: PCB Design (Build or Buy)

You may choose to fabricate your own homebrew PCB or choose to get it professionally done by a PCB fabrication service like PCBway.

Homebrew PCB:

For this project, I decided to do a homebrew double sided PCB so that the old school hobbyists can enjoy the tedious process (LOL). Instead of toner transfer, I used the Photosensitized PCB fabrication method, similar to what factories use. It is inkjet friendly unlike toner transfer fabrication. If you are new to photosensitized PCBs, you can watch my other detailed video tutorial above. You can download the printable PDF files for the rendered PCB artwork down below. You can use it for all homebrew PCB, methods.

Order My Uploaded PCB Design From PCBway:

You can opt to have your PCBs professionally done by a PCB fabrication service. This will save you time from the long homebrew PCB fabrication process. The gerber files have also been included on my zip file. You can easily order the PCBs from PCBway without going through the gerber upload process, just click the links below. Let me know if the design has problems. I have only tested it on my homebrew PCB.

  1. Main Inverter Board (https://bit.ly/3mBFWTv)
  2. Filter Breakout Board (https://bit.ly/31QBJU2)

File Package: Schematic, PCB & Documentation Files Zip Download

Step 7: PCB Cutting

Use your PCB printouts as a stencil and use a hacksaw to cut your PCB according to the printout's boarder.

Step 8: Photo Exposure

Peel your photosensitized PCB's light protective film. If you aren't using transparency film for your PCB layout, you can use some baby oil to to make your paper printout translucent, this would allow the light through the paper to pass through. I then exposed it to my DIY UV Exposure box for 7 minutes for photo-developing. I made a tutorial for white LED Strip version of it. Feel free to watch the video below. If you're using LED strips or fluorescent tubes, it will take around 10-15 minutes of exposure time.


After the photo exposure process, I submerged my photo exposed PCB on my developing solution (provided with photosensitized PCB packs). The chemical used is lye or sodium hydroxide mixed with water. The line mask traces would eventually appear.

Step 9: Etching

I grabbed my bottle of ferric chloride etchant and submerged the photo developed PCB on my DIY etching machine filled with ferric chloride.

Here's A Tutorial For Building An Etching Machine:

This would save you time from shaking your vat of etchant. It makes the etching process less tedious and a lot faster.

Step 10: Paint Removal

Removing the remaining paint is important. If left on the board, it would give you a really hard time in soldering later on.

Step 11: Drilling

I used my mini drill and a 0.8mm bit for the components. On the other hand, I used my cordless drill and a 3mm drill bit for the high-power vias, through holes and screw mounts.

Step 12: Soldering Makeshift Through Holes

One of the limitations of homebrew PCBs are the lack of conductive through holes and vias. I designed the PCB to work with improvised through holes. Just strip a Guage 12 solid wire and solder it to link the high current lines from each side.

Step 13: Tinning Lines for Extra Power

You can tin the traces with solder to cater more current and to prevent copper oxidation in the future.

Step 14: Solder Both Sides

As stated from the previous step, homebrew PCBs do not have through holes. Be sure to solder the component's legs from both the top and bottom copper pads.

Step 15: Mark & Drill Heatsink Holes

Align your heatsink to the MOSFETs and use your marker. Use your drill and 3mm bit to drill holes on it.

Step 16: Add MOSFET Isolation

The MOSFETs I'm using comes in a TO-220 package. The metal tab of the MOSFET is technically tied to its drain pin. Electrical isolation must be applied to avoid conduction between the other sets of MOSFETs. I usually leave the upper MOSFETs from the H-Bridge unisolated as they share a common drain pin (Vcc).

  1. Add a some thermal paste
  2. Apply the isolation pad (mica/ fiberglass)
  3. Add thermal paste
  4. Add plastic bushing (screw isolation)
  5. Force screw your bolts to the heatsink

Step 17: Heatsink Ductape Insulation

Homebrew PCBs also lack solder mask. Grab some ductape and insulate the bottom part of your heatsink to prevent it from shorting the copper traces from the top layer of your PCB.

Step 18: Makeshift Shunt Resistor

A shunt resistor is used in the circuit for current sensing and overcurrent protection. Instead of using those bulky high power resistors, you can use a solid wire of copper as a makeshift low-profile shunt resistor. I stripped a Guage 12 solid wire, cut it to 60mm, bent it then soldered it to the board.

Step 19: Add a Tank Capacitor to VCC

I added a 3,300uF 25V tank capacitor across the Ground and +12VDC power input to increase stability.

Step 20: Add the Temperature Sensor & Fan

A 10k Ohm NTC sensor must be connected to the pads on the board for temperature monitoring. I haven't tried omitting the NTC, but if you plan to omit the temperature sensor due to unavailability, just hook a 10k Ohm resistor across it. On the other hand, the inverter would still work with or without the 12V cooling fan.

Step 21: Connect the LCD Display

When you buy the EGS002 + LCD combo, you get a 7 pin wafer connector. Just connect the LCD's pins to the EGS002 LCD pin output accordingly. There are labels on both the LCD and EGS002 board on where to connect it.

Step 22: Solder Input & Transformer Wires

Solder the transformer wires to the board and some Guage 8-12 wires to the power input as well. You can add some XT60 or XT90 connectors for detachability.

Step 23: Connect the Filter Circuit

A filter capacitor must be added to smoothen the rough and spikey SPWM output from the transformer. Based on the datasheet, a simple 2.2uF +350v (non polarized) capacitor should work. I made a simple breakout board for it, having three screw terminals connected in parallels to it. A pair of wires goes to the transformer's HV output, another pair to the outlet and another pair back to the feedback input of the main inverter board.

Step 24: With Vs. Without Filter

Here's what the waveforms look like with and without the capacitor.

Step 25: Voltage Output Calibration

Before using the inverter with appliances, be sure to calibrate the output voltage. The assembled inverter project, comes with output voltage feedback regulation. This means, the user can set a specific voltage output and the inverter will try it's best to maintain that set output voltage, even when the voltage drops as the battery (power source) starts to drain. There's a limit to this, if your inverter can no longer maintain the set output voltage, the error LED will blink and the inverter would automatically shut down.

  1. Connect a voltmeter to the filtered AC output
  2. Set your voltmeter to the AC range
  3. Power your inverter
  4. Turn the multiturn trimmer resistor until you reach your target voltage (220V/230V)

Step 26: Load Testing

A 3S6P 18650 Lithium-ion battery pack was connected as the power source during the load testing. I chose li-ion for the test since each cell can dump 20A or current (120A in total). As far as it goes, I was only able to reach around 400W from the output with a clean output waveform. The inverter shuts down by itself as I go above.

Part 2 of the video will show the troubleshooting process.

1000th Contest

Participated in the
1000th Contest

Be the First to Share

    Recommendations

    • Edible Art Challenge

      Edible Art Challenge
    • 3D Printed Student Design Challenge

      3D Printed Student Design Challenge
    • Unusual Uses Contest

      Unusual Uses Contest

    47 Comments

    0
    gerberh
    gerberh

    6 months ago

    Thanks for the Project , although your PCB layout is wrong with regards to the 10 K resistors and also you cant use a 12V Transformer as the output voltage does not go above 140V AC.You must use a 7V Transformer , because the EGS002 Module complains about under Voltage and shuts down.

    0
    Petfer70
    Petfer70

    Reply 2 months ago

    Thanx for that. i also experienced the same problem. 2 of the 10k's were all wrong and i made my own transformer do get the desired result of 220v.

    0
    flamerider58
    flamerider58

    Reply 3 days ago

    can u send me the schematic after correction ??..i face a problem at the output without tranfsformer.i got 0.11v as output it should be 8v right ??? can u help me out ? i dont know how to fix it .

    0
    Petferr
    Petferr

    Reply 12 hours ago

    Hi
    If you did use the schematic that i think you did use, then look at your parts replacement diagram picture . Look at where your 7805 voltage regulator is at.
    Now look at the 10Ohms, 4007 diode , and 10k resistors is. there are 4 sets of 3.
    Start at the top and number the sets 1 to 4.
    Set number 2 , the 10Ohms resistor and the 10k resistor must swap around
    Also at set number 4 the 10Ohms resistor and the 10k resistor must swap aound.

    That will sort out your problem
    Look at the image that i have added and compare it to yours.

    Regards

    .

    Parts Placement Diagram.jpg
    0
    gerberh
    gerberh

    Reply 2 days ago

    Yes the output should be around 8v AC.There is nothing wrong with the circuit diagram.The problem is with the PCB outlay where the 10K resistors are at the wrong place.Send me your photo of your build PCB.Also the diagram that you used.?

    0
    nychapid
    nychapid

    Reply 11 days ago

    I have same problem. I follow all the instructions exactly. It output 8v ac without transformer. There's no output on both side of transformer when I connect the transformer. I use 12 to 220v transformer. How can I fix the problem.

    0
    kmpres
    kmpres

    6 days ago

    Hello. Very interesting instructable! It's been a year since this instructable was published. Has the promised follow-up video been uploaded yet? Can you give us the link? Thanks!

    0
    frikloubser55555
    frikloubser55555

    Question 13 days ago on Step 26

    Can a crystal osselator be used in place of a square wave generator (normaly a 555 configuration), and thereby achieving true sign wave status may be easier and/ earlier?

    0
    mato6317
    mato6317

    14 days ago

    Hi,
    I would like to use this device as part of my graduation project, but the link to the scheme does not seem to work, I could ask you for a scheme of this device, it would help me a lot.

    0
    Scott Yang
    Scott Yang

    Question 9 months ago

    I tried making one of those myself.
    I used 24v dc input and had a large 1000w transformer with 14.6v input and 120v output.
    It would collapse and stop switching whenever I attach a load larger than 400w.
    The transistors I used were 3 in parallel in a 4-switch bridge. Each one had 0.2 ohms resistance, total resistance is 0.133 ohms across each bridge side.

    What is the reason for the collapse?
    is my circuit design incorrect? I followed the circuit schematic from a user manual from China for the EGS module.
    or is my transformer incorrect?
    Do I need to tune the transformer so that the output is 120v with a low duty cycle?

    If anyone knows more than me, please tell me possible reasons. Thank you

    0
    privatier
    privatier

    Answer 17 days ago

    The controller chip EG8010 has an input for current limit, shutting down when the voltage peak across the current sensing resistor is 0.5V (see spec sheet). 400W at 14.6V produces 38Amp current peak; check all the voltage drops in the current sensing path.

    0
    ukhayyam99
    ukhayyam99

    Answer 9 months ago

    Try changing the pot for over current protection. you might have to calibrate.
    Did you get 220 volts o/p with that transformer ratio?
    please do inform if you got it fixed or not.

    0
    jwlodawer
    jwlodawer

    6 weeks ago

    Suggestion for through hole contacts with components in it, in a PCB:

    BY USE OF FERRULES AS USED TO FINISH STRANDED-WIRE IN INSTALLATIONS
    They are fine tinned copper tubes with a beading on one side.

    Choose ferule size (internal diameter) to fit the diameter of the soldering pins of the components.
    Choose drill size to ferule (external diameter)
    You may cut lenght of ferule to fit pcb thickness, just a tiny bit more
    Push the ferule from soldering side through the hole in the PCB
    Turn PCB, placing it on a flat metal surface. Use of a centre punch and a soft hammer blow on the end of the ferrule will creeat a beading on the other side too.

    We used to do so in self made experimental PCB prototyps. Soldering and desoldering of components would damage otherwise the PCB quite fast. By the way, it looks absolute professional.

    On the other way, it is a good method to repair a lost contact through in a 2-layer-PCB.

    If you have a damaged contact in a three layer PCB, you might give a try as well:
    Create a hole fitting the ferrule exact, enlargen it slightly conical, carfully on one side, just down to the inner layer, by using a kind of thicker needle etc., apply a minimum of solder paste in the hole and on the ferrule, pushing it through, bead it on the other side and solder. This might sometimes work, creating an impossible repair.




    0
    privatier
    privatier

    Reply 17 days ago

    Interesting suggestions.
    Ferrules are 8mm long and PCBs are 2mm thick: how do you deal with the extra 6mm? If you use a wire cutter, the hole closes.

    0
    balahonow1982
    balahonow1982

    2 months ago

    Бро !!!!
    одень кожух на болгарку !!!!
    не делай так больше НИКОГДА !!!!!!!!

    Bro !!!!
    put the cover on the grinder !!!!
    do not do this EVER again !!!!!!!!

    0
    gta18
    gta18

    Reply 5 weeks ago

    Yes I agree! Please be safe, we need you to keep posting good stuff like these!

    0
    miaudin58
    miaudin58

    Question 2 months ago

    what is the name of connector of egs002 to the board ? where do i can find it ...can i directly connect the egs002 using soldering iron ?

    0
    Phillip12
    Phillip12

    Question 3 months ago

    I baugjt the egs002 with display. The egs works fine but display does not work. Any suggestions. Or commands for the display ? Or the rs232 ports

    0
    miaudin58
    miaudin58

    4 months ago

    may i know what is the size of heatsink ? lenght x width x height ...and what if instead of 2.2uF +350v (non polarized) can i use 2.2uf +400v capacitor ??