Here is a very simple pure sinewave inverter based on the microntoller "PIC 16F628A", "don't freak out !", NO it is not difficult to use microntollers, actually it could not be any easier than this.

For those wondering, Yes I myself designed the circuit concept, schematic and components but had to hire a programmer to write the code since I have no idea how to write software programming, I even paid him money to do this job since no one works for free these days, probably if he see this instructable he would be laughing at me on how I gave everything for free here :-/

The principal used for creating the sinewave:
Most hard work in this circuit is done by the 16F628A chip itself, where it divides the half wave into small segments generating PWM train of pulses to create each half wave as shown in the pic, generated oscillation then go to get amplified by the 4 transistors Q1,Q2,Q3 and Q4 where they feed the power stage to drive the power transistors. Can't be much simpler than that !

There are 2 options to program the 16F628A:
1- Most of the electronic parts selling shops do this service for you for an additional 3$ cost, where you take the program which is a "Inverter.HEX" file in our case, written on a disk to the shop and they will hand you an already programed 16F628A.

2- If you're an electronic hobbiest I suggest you buy your own programing device (I bought mine for 22$) and experiment with it because the microcontroller applications that can be built are endless. I bought the cheapest / smallest USB one which is a DIY K128 it came along with a CD containing the MicroBurn software "older versions known as MicroPro" and a driver for your computer, after setting up the driver and operating the thing, it programed the 16F628A IC in 10 seconds !
Here is a link to see how the programmer looks like.

Note: Both 16F628 and 16F628A will work, the difference is that the 'A' has more memory capacity, but both work the same.

The filter:
The 2.2 uF capacitor which is the filter is a very very important part of this design, without it you'll never get a pure sine wave.
I have included 2 screen shots of the oscilloscope (with-filter and without-filter) so you can see the difference and importance of this capacitor.

Other notes:
- Included is the movie file "IMG_0690.MOV" in case you encounter any problem and need to see the wave form on pins 11 and 12 of the 16F628A how it looks like.

- The PIC16F628A is so sesitive to static, if you're sitting on a plastic chair never touch the IC's pins with your hand.

- You can build bigger versions of this inverter up to 5000w, to see what needs to be done on the power stage please see details on my other instructable here

- Heat sinks are required to cool the power transistors they should be big enough to cool the transistors, they are separate and should NOT touch each other.

- Wiring connections marked in dark black on the power stage section should be thick enough to handle the big amps drain from the batteries.

- A cooling fan will be needed to reduce heat off the heat sinks and transformer.

- Be cautious when building this circuit it involves high voltage which is lethal, any part you touch when the circuit is ON could give you a nasty painful jolt, specially the heat-sinks, never touch them when the circuit is on to see if the transistors are hot.

Do not forget to rate this instructbale with 5 stars "of course if you like it and appreciate the effort done" and also click the "follow me" button to keep updated of future instructables and updates that I do.

We need to get this inverter to perfection by adding some more options to it like:
- Low DC Battery voltage detection to trigger a buzzer and a to auto-stop oscillation at some point.
- Heat detection to trigger a fan ON
- Battery level indicator 3 LEDs (High-Medium-Low) and to trigger charger ON
We'll need some help to code the above..
so any suggestions, help in coding or design on this project to make it better are very welcomed so send your thoughts.
<p>what is the program of pcb drawing?</p><p>Please send it to me </p><p>hadary2013@hotmail.com</p>
<p>wow! this is great! pure sine wave AC power source from an inverter!</p><p>i am interested on building it. would you like to give me an estimated cost to get all the electronic component (not including the battery)</p><p>i need to compare which of these option is more valuable, buying an 300W inverter or building it my own. I need it for my studio light equipment for outdoor purpose.</p><p>thank you</p><p>best reggards,</p><p>daris</p>
<p>please . can you sent code with me ? address mail : phamhongphong1508@gmail.com , thanks</p>
Hello sir, thank you for the tutorial. Is can I still use this capacitor 2.2 uf for an output voltage of 120 volts ???<br>
<p>Hello Nick,</p><p>This is a genius schematic, thank you for sharing such a clear and elegant design!</p>
<p>Hi,Extraordinary circuit and thanks for uploading hex file it's working,would be more helpful if MOSFET version is included. </p>
<p>I need help.</p><p>do everything, but I need the code if anyone can help me leave my mail here diego.tibaduza8@gmail.com</p><p>I appreciate your help</p>
<p>Hi Nick, thank you very much for sharing this project all, the pure sine wave inverter works very well, the only change I made was 2.2 uf capacitor by 6.3 uf in out 230v attached some photos , sorry my English I am Spanish.</p><p>greetings to all.</p>
<p>Hi manolission,</p><p>How much current does your inverter (from your 12V DC supply) draw when you have no load connected to the output (AC load)? I also built this project but noticed that my inverter was drawing alot of current even with no load connected to it. I then re-wrote the code and tried again, same story.</p>
<p>Hi <a href="http://www.instructables.com/member/manolission" rel="nofollow">manolission</a>,</p><p>Glad to hear that the project worked for you. Thanks for the nice photos.</p>
<p>Thank you nick for sharing with all your proyects, you have won a 10 from me.</p><p>Sorry my english.</p>
<p>hi welcome to every one ,please i need you to help me on journals on pure sine wave solar inverters</p>
<p>hi welcome to every one ,please i need you to help me on journals on pure sine wave solar inverters</p>
<p>hi welcome to every one ,please i need you to help me on journals on pure sine wave solar inverters</p>
<p>hi welcome to every one ,please i need you to help me on journals on pure sine wave solar inverters</p>
<p>hi welcome to every one ,please i need you to help me on journals on pure sine wave solar inverters</p>
<p>hi welcome to every one ,please i need you to help me on journals on pure sine wave solar inverters</p>
<p>hi welcome to every one ,please i need you to help me on journals on pure sine wave solar inverters</p>
<p>Hi there,</p><p>The ic is not available in my country nor the programming platform :( </p><p>Any alternatives?? Equivalent maybe? </p>
I have seen this also.<br><br>http://www.instructables.com/id/250-to-5000-watts-PWM-DCAC-220V-Power-Inverter/<br><br>Can I use the 5.25KW Inverter Power stage and Transformer of 84-0-84V - 220V with the above PIC circuit ?<br><br>What should be the Ampere rating of the 5.25KW Inverter Transformer ?<br><br>
We cant see the name of those component bro and the drawing is not conspicuous. Do some help to make it clearer
X ??? 20hZ or 20mhz ??
<p>Hi Nick,</p><p>I really want to build your inverter. I do not have the PIC16F628A chip. I do however have a PIC16LF872-I, can I use this? I do not know much about microprocessors? Thanks</p>
Visit www.alldatasheet.com download the internal specification of both ICs compare and see if the have similar configuration
<p>got it work but i am having some issues the worst is the amp draw its like 6 amp<br>is there any fuirrite core try or help ?</p>
<p>have source code?</p>
<p>what's outuput frequency? i need 60Hz</p>
<p>Hi Nick.</p><p>I've built an inverter based on your designs and the output is a 51Hz 230V sine wave. The problem I'm sitting with is that the power stage draws too much current and drains my DC power source very quickly. When the inverter is switching (no 220VAC load connected to transformer) my 12V supply is sourcing 8Adc to the transformer. Is this normal for your design? Any sugestions?</p>
Hello sorawist please contact me via facebook boonserm chaiwong and facebook.com/radiorepair. the language I'm stronger
Thanks,and ican use mosfet for that;which are a good
Hello Dear,I want to have a circuit diagram of power inverter mosfet supported 2TV,4bulbs,1refregerator,1woofer<br>If you have ,please send us a link or a diagram<br>Thanks sir.
If possible CT is 12-0-12<br>
This is my email :herrylalarakoto8@gmail.com
This is my email :herrylalarakoto8@gmail.com
<p>I few years that do not program pics ago, but after asking for the source code, I remembered that there is a small software we can see the source code, the software is called winpicpro, I attached the link plus a file you need to run it.<br> <a href="https://www.mediafire.com/#hhn2olmmlgdsd" rel="nofollow">https://www.mediafire.com/#hhn2olmmlgdsd</a></p><p><a href="http://www.mediafire.com/download/pcjk9655c6688kq/WinPicProg.exe" rel="nofollow">http://www.mediafire.com/download/pcjk9655c6688kq/...</a></p><p>http://www.mediafire.com/download/5ztftcylausanlu/Inverter.asm</p>
<p>So is this the source code?</p>
<p>so is called an assembler programming language for the pics, avr, etc. There are several types of programming languages</p>
<p>will compile with MPASM and results in an asm file. Also you can create programs from the languages in C</p>
<p>please i need the source code.thank's pacocable@hotmail.com i need for 50hz, thnak very much</p>
<p>Guys I really do not have the source code.</p>
<p>will compile with MPASM and results in an asm file. Also you can create programs from the languages in C</p>
<p>will compile with MPASM and results in an asm file. Also you can create programs from the languages in C</p>
<p>at these points should measure 50 hz ?? or how many hz ?? thank you very much. I've ridden only part of the circuit relating to the pic as you can see in the scheme to test and then add the transistors</p>
<p>on pin 12 and 13 pic measuring frequency is 50 Hz, is that correct?</p>
<p>yes 50Hz is correct, you can see it in one of the pics: 52Hz</p>
<p>Hello Nick, thank you for a great work in this circuit. Can you please send me the code to make some modifications and get it back for the community. My email joelricci76@yahoo.com.</p><p>Thanks again :0)</p>
<p>Hi Nick!</p><p>Thanks for sharing such a wonderful circuit but I am seriously confused about the size of transformer. Are you using a normal Soft Iron core transformer or a Ferrite core transformer? If you are using soft iron core transformer then I think a terrible effect by the name of 'core saturation' can occur which might cause a huge damage. Please do clarify. </p><p>Thanks!</p>
Hi tambi007,<br>This is a normal iron core trans.<br>Transformer saturation should not happen as long as you're using the correct size for the setup, if you use a small trans probably yes this may occur.

About This Instructable




More by Nick_Zouein:Aux Input for BMW 325i Business CD Adaptable 12vDC/220vAC Pure Sinewave Inverter Transforming a 300W Sinewave DC/AC mini inverter to a 5000W monster 
Add instructable to: