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

176K282153

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

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.

89 Comments

Hello sir,
There's no time I connect the LCD that it display information on the screen. I connect accordingly. What could be the problem
thank you sir and other for assisting us.
sir I have made this circuit but I am facing an issue the circuit I have made it indicates over voltage issue. but actually I am getting 134 volt AC, and I am from Pakistan here the standers frequency is 50HZ so I let JP5 pin to remain short. is it 134 volt AC a overvoltage. kindly help me how to solve this issue. how i can increase this voltage from 134 to 220 volt AC.
Gate resistor should be 4.7 ohms when using EGS002 with IR2113s output and a 1K ohm resistor from gate to source. A .1 ohm shunt resistor required for IFB.
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 ?
2.5mm female header 17 pin
Hello, I worked on this circuit and I think I saw some glitches on the PCB and I wanted to share this situation with you, I am sharing the upper and lower PCB images as a picture, the lines I show with red will be cut, the lines I show with green will be connected by cable. By the way, I used 12V to 220V UPS transformer, but the output voltage did not exceed 130V unfortunately! I am open to your suggestions on how we can output 220V, thanks in advance,
Note: an additional 7812 needs to be added to the circuit, I added it randomly for display on the card, you can add it wherever you see fit.
Hello Abdulhak33m,
I don't know how it worked but I made the circuit, it didn't work so I made the modifications I mentioned and ran it please try it if you want and see the result, additionally the transformer has to be 6V to 220V, good luck.,
You are absolutely right, the pcb has that error and make sure that R17 and R18 are grounded with the source pins of lower H. I purchased this board from suggested site. PS "Blew all 12 mosfets instantly " Thank You Empire62
Hello mentor48, I'm sorry the Mosfets were burnt out.
I'm happy if I could help, I hope other friends who want to make the circuit will take care of what I wrote on the site, greetings,
Author made his own board somewhere between that and the production one the error was introduced.
Hello! I am an engineering student and together with some classmates we able to create your circuit but we had to do some modifications to it. First I noticed that you connected in parallel the drain of the mosfets of the h bridge to the #12 pin of the egs002. In theory this would work however by the schematic in the datasheet and by the feedback of others in this forum it is evident that there is a voltage drop which is a result of the FETs not working in the saturation mode but rather in the ohmic region. Basically the FETs act as a voltage divider rather than a short circuit hence a voltage drop.

I have read that the common solution that others have here is to have a 7-220V transformer which is impractical if your are looking for a 1kVA inverter. Here is what we did to solve this problem.

1. Use a different voltage source for the Pin#12 of the module and the DC voltage source which is to be inverted back to AC. This can be achieved by disconnecting a trace in the bottom layer of the PCB. You must supply a 12VDC to the trace going to the Pin#12 and a higher voltage (In our case between 19-24 VDC) going to the Drain of the FETs.

2. We also used a 4700uF 50V tank capacitor rather than the 3300uF 25V one used here. Your output AC voltage is now only dependent on the voltage rating of your Capacitor as if it goes higher than the rating of your capacitor in will most certainly explode. You can also try using higher value capacitors if there is any improvements but always check the voltage rating for your own safety. Also check the voltage and current rating of your MOSFETs as they also have maximum values that should not be exceeded.

Additional Notes: the Negative terminals of the two voltage sources are common ground. Also another solution is adding a 7812 voltage regulator before the input voltage reaches the Pin#12, that way even if you increase the DC voltage in the input side of the PCB your PIN#12 will always have 12V. Check the datasheet of the 7812 to know the maximum voltage in can regulate.

Also take note that Power In is equal to Power Out so if your have 1kW in the 220V side of your Transformer, you also have 1kW in the 12V side which means your are dealing with DANGEROUS values of current so PLEASE PLEASE PLEASE be EXTRA CAREFUL with this project.

By doing these steps you can achieve a 12 VAC output from your circuit which will step up to 220 in a 12-220 Transformer.

As much as I want to share the picture of our work, I would like to keep it private as we did this in our school lab. Thank you for understanding.
Hello.
There are a few things wrong with your inverter design.
First, the transformer used. It is impossible to obtain 220/230V output voltage using a 12V/230V transformer!!!
For a system with a battery around 12V, use a 6-6.5V/230V transformer.
I don't know how you got the 220V from the 12/230V transformer??? Or maybe you didn't manage to run this converter correctly at all?
The second thing is the current measuring resistor. With such a resistor, there will be no current measurement.
And two things I wrote under the video on Youtube. Why everywhere You write about 16pcs of transistors when You use 12pcs?
And the lubrication of the pads with thermal paste, seriously ...
Hello Pier,
I love this site, it's a place where we come to share ideas. I will not completely condenm your suggestions because I came across an inverter from AliExpress where the seller said for 12 volts transformer you should use 6v or 6.5 I was wondering why.

I have a Sukam inverter 800 watts (made in India) at home that I'm currently using, though they didn't use the EGS002 module, they built their own drive stage but the power stage is the same.

The transformer used there is a 12/230 volts (no center tapped) and the same MOSFETs were used. But this time only 8 MOSFETs and the 12volts transformer gave the 800watts.

The irf3205 can take up to 55 bolts, 200 watts, you will see more from the datasheet.

I'm trying to build my own from his schematics I hope it works, but I'm still researching on other inverter.

I noticed from the author's schematics, he only used 1 diode, 2 resistors to 3 MOSFETs while on the main schematic is 1 diode 2 resistors to 1 MOSFET..
Though I've seen another inverter with same design.

So I've designed my own circuit board that I separated one of the heat sinks and will drill the heat sinks, the 12v input will go to one and the transformer will go to the other two halves. The irf3205 drain is connected directly to the heat sink





























Hi, have you manage to get it running? Thanks!
I think the author could have said a "12V-230V transformer from a 12V battery UPS", (it looks like one of those in the photo). The turn ratio would be right for 12V battery.
I have 1 from a cheap 24V battery UPS 230V 1400w, it has 0.04 ohm primary & 0.4 ohm secondary (minimal copper pwr loss) so it would have reasonable core Ae.(better VoltTurn)
It would be best if the author spoke, but it's hard for him to answer here as well as on youtube.
Do you sell these? Im VERY interested. In a completed, or a total box of parts.
thanks
More Comments