pure sine wave inverter circuit diagram

sine wave inverter circuit diagram with complete step by step program and coding, In this article I will discuss how to use push pull converter, sinusoidal pulse width modulation, h bridge and low pass LC filter to make pure sine wave inverter circuit diagram. I have already discuss all these topics in following articles.I suggest you to go through following articles before reading this article.

Pure sine wave inverter circuit diagram working

In last article on SPWM generation I have discussed how to implement sinusoidal pulse width moudulation using microcontroller and how to select number of pulses and duty cycle of each pulse. I have used PIC16F877A microontroller to write code for SPWM. you can use any microcontroller you want.But procedure will remain same as I discussed in last article on SPWM generation.

I have used 100 pulses and frequency of each pulse is 20 KHz.Hence timer period of each pulse is equal to 2 * 50 us = 100 us. Therefore I have used 100 pulses and I have already mentioned in last articles. Greater the number of pulses, more pure sine wave will produce.I have calculated duty cycle for 100 pulses using same method which I discussed earlier.Array of duty cycle is :

duty cycle for hundred pulses = {0, 8, 16, 24, 31, 39, 47, 55, 62, 70, 77, 85, 92, 99, 106, 113, 120, 127, 134, 141, 147, 153, 159, 165, 171, 177, 182, 188, 193, 198, 202, 207, 211, 215, 219, 223, 226, 229, 232, 235, 238, 240, 242, 244, 246, 247, 248, 249, 250, 250};

Pure sine wave inverter circuit SPWM 

The code given below is written in Mikro C. Although everything is clear in code, but if you still have any issue feel free to ask me by comment on this post.

const unsigned char SinLkUpTab[50]= {0, 8, 16, 24, 31, 39, 47, 55, 62, 70, 77, 85, 92, 99,
106, 113, 120, 127, 134, 141, 147, 153, 159, 165, 171, 177, 182, 188, 193, 198, 202, 207,
211, 215, 219, 223, 226, 229, 232, 235, 238, 240, 242, 244, 246, 247, 248, 249, 250, 250};
unsigned short cnt,inc,dec,sqinc,cnt1;
void interrupt()
{

if (dec==0)
{cnt++;
PWM1_Set_Duty(SinLkUpTab[cnt]);
}
else if (dec==1)
{cnt–;
PWM1_Set_Duty(SinLkUpTab[cnt]);
}

TMR1IF_bit = 0; // clear TMR0IF
TMR1H = 0xFF; // Initialize Timer1 register
TMR1L = 0x76;
}
void main()
{

TRISB = 0; // designate PORTB pins as output
PORTC = 0; // set PORTC to 0
PORTB = 0; // set PORTC to 0
TRISC = 0; // designate PORTC pins as output
TRISA = 0; // designate PORTB pins as output
PORTA = 0; // set PORTC to 0
T1CON= 0b00000001; // Timer1 settings
TMR1IF_bit = 0; // clear TMR1IF
TMR1H = 0xFF; // Initialize Timer1 register
TMR1L = 0x76;
TMR1IE_bit = 1; // enable Timer1 interrupT
cnt = 0; // initialize cnt
*** Note: This is not a complete code

you can purchase complete code from me just in 49$. if you want to purchase complete code of pure sine wave inverter contact me at bilalmalikuet@gmail.com. If you need three phase sine wave inverter code you can also contact me.

 pure sine wave inverter circuit simulation results

In above array I have used 50 values instead of 100. Because I have implemented the code in such a way that it will take rest of 50 values  by itself in reverse order after peak value 250. I do this just to save memory of microcontroller. Greater the number of entries in array, greater place it will take in memory and common microcontrollers have less memory.

Pure sine wave inverter circuit of SPWM

the Diagram below shows the circuit diagram of sinusoidal pulse width modulation with two output both are on alternatively after every 10 ms.

spwm circuit diagram

spwm circuit diagram

Output of SPWM circuit diagram

SPWM output

SPWM circuit output

Gating signals  for H bridge

Now I will discuss how to use above circuit for generating 4 gating signals for H bridge which I have already discussed in above articles. I have taken two more outputs from same circuit  to generate four gating signals for H bridge. Circuit diagram is shown below:

Gating signals for H bridge

Gating signals for H bridge

Output of SPWM circuit gating signals for H bridge:

Output of SPWM circuit gating signals for H bridge:

Output of SPWM circuit gating signals for H bridge

Use above circuit to drive Mosfet of H-bridge through Mosfet drivers IR2110. I have explained each and every thing about pure sine wave inverter using switch mode technique. Starting from basic overview of pure sine inverter and its types.After that I have discussed voltage mode PWM controller SG3525 use and its applications, then I explained MOSFET driver IR2210 and its use, Dc to DC converter using push pull topology and how to make H bridge using 1R2110. have written a detailed article on sinusoidal pulse width modulation. Now you can use all the knowledge you gained to make pure sine wave inverter. Just connect a low-pass filter at the output of h bridge. You will get neat and clean pure sine wave at the output.

I have got pure sine wave in my final year project ” hybrid pure sine wave inverter ” after connecting a LC filter at the output of H Bridge.I have LC values L= 2mH and C= 3.3uf .Diagram of pure sine I have got in my final year project is shown in figure below:

sine wave inverter circuit

pure sine wave inverter implementation and circuit diagram

NOTE: Its difficult to simulate this circuit in Proteus . you can easily get a pulsating waves output result in Proteus. But when you connect LC filter at the output of H Bridge, Proteus will not simulate your circuit. I suggest you to make this circuit on hardware and verify results.

It take me almost 3 days to write 10 articles on pure sine wave inverter circuit using microcontroller. I hope that It will be helpful for all of you. Its all effort from my side. Now its your turn. let me know with your issues. I will be happy to reply to your comments. kindly share it on social media that’s what you can do for me in return. Remember me in your prayers. Best wishes for your project 🙂

146 Comments

  1. Emaniac August 4, 2014
    • BILAL Malik August 4, 2014
      • Azhar Zahid February 27, 2016
        • BILAL Malik February 27, 2016
  2. Emaniac August 4, 2014
    • BILAL Malik August 4, 2014
      • Emaniac August 5, 2014
        • BILAL Malik August 5, 2014
  3. Emaniac August 5, 2014
  4. Emaniac August 5, 2014
    • BILAL Malik August 7, 2014
  5. Emaniac August 7, 2014
    • BILAL Malik August 7, 2014
      • Hima August 27, 2014
        • BILAL Malik August 27, 2014
  6. Hima August 27, 2014
  7. Hima August 27, 2014
    • BILAL Malik August 27, 2014
  8. Hima August 28, 2014
    • BILAL Malik August 28, 2014
  9. Lillian September 9, 2014
    • BILAL Malik September 9, 2014
      • Phuc July 10, 2015
  10. Lillian September 10, 2014
  11. Lillian September 10, 2014
    • BILAL Malik September 10, 2014
      • Lillian September 10, 2014
  12. Lillian September 17, 2014
    • BILAL Malik September 18, 2014
  13. Lillian September 23, 2014
    • BILAL Malik September 23, 2014
      • Lillian September 25, 2014
        • BILAL Malik September 25, 2014
          • Lillian September 25, 2014
  14. Lillian September 27, 2014
    • BILAL Malik September 27, 2014
      • Lillian October 2, 2014
        • BILAL Malik October 3, 2014
          • Lillian October 3, 2014
        • BILAL Malik October 3, 2014
          • Lillian October 8, 2014
  15. James October 2, 2014
    • BILAL Malik October 3, 2014
  16. Dennis October 5, 2014
  17. Lillian October 19, 2014
  18. sudip mondal November 3, 2014
  19. ZEESHAN November 4, 2014
    • MFsoft November 5, 2014
    • AJITHA TOMY June 13, 2016
      • BILAL Malik June 13, 2016
  20. MFsoft November 5, 2014
  21. lillain November 8, 2014
  22. mohd November 8, 2014
  23. denis pamintuan November 11, 2014
  24. Zehra November 28, 2014
  25. flexo December 11, 2014
  26. Motasim Masood January 29, 2015
  27. mytheen muhammed February 3, 2015
  28. arunrx February 24, 2015
    • BILAL Malik February 24, 2015
  29. arunrx February 24, 2015
    • BILAL Malik February 24, 2015
      • arunrx February 24, 2015
        • BILAL Malik February 24, 2015
          • arunrx February 24, 2015
          • BILAL Malik February 24, 2015
  30. Mukund March 3, 2015
    • BILAL Malik March 3, 2015
      • Mukund March 4, 2015
  31. Mukund March 5, 2015
    • BILAL Malik March 5, 2015
      • sudip March 10, 2015
    • BILAL Malik March 5, 2015
  32. Mukund March 10, 2015
  33. arunrx March 11, 2015
    • BILAL Malik March 19, 2015
  34. Prasad March 19, 2015
    • BILAL Malik March 19, 2015
  35. TAYO March 20, 2015
  36. Arun kumar March 27, 2015
  37. arunkumar March 28, 2015
  38. Arturo April 2, 2015
  39. arunrx April 6, 2015
  40. arun kumar April 7, 2015
  41. arif April 7, 2015
  42. luis alberto April 7, 2015
    • BILAL Malik April 7, 2015
  43. Muhammad Faisal Khan April 21, 2015
    • BILAL Malik April 21, 2015
  44. Bane April 24, 2015
  45. Sohaib Elahi May 1, 2015
  46. ashraf mostafa kamal May 15, 2015
    • Zahid Husain Ansari June 10, 2015
    • Jowah Lewis July 12, 2015
  47. umar June 17, 2015
    • BILAL Malik June 18, 2015
  48. bun June 18, 2015
  49. midhun June 23, 2015
    • BILAL Malik June 23, 2015
  50. Mytheen Muhammed June 25, 2015
  51. jonah June 28, 2015
    • BILAL Malik June 28, 2015
  52. Chris July 4, 2015
    • BILAL Malik July 4, 2015
  53. Chris July 4, 2015
  54. ayaz July 5, 2015
  55. AMAL PJ July 10, 2015
    • BILAL Malik June 13, 2016
  56. ahsan elahi July 10, 2015
    • BILAL Malik July 10, 2015
  57. nelson chimwala July 10, 2015
  58. Ehico16 July 11, 2015
    • Jowah July 12, 2015
    • BILAL Malik June 13, 2016
  59. Jowah July 12, 2015
  60. Vijay July 12, 2015
  61. Muhammad Ali August 1, 2015
  62. siktec August 25, 2015
  63. Faisal Ali September 5, 2015
  64. thanos 703 September 20, 2015
  65. PHẠM VĂN PHONG October 17, 2015
  66. PHẠM VĂN PHONG October 17, 2015
    • BILAL Malik June 13, 2016
  67. Chandrakant April 2, 2016
  68. Peter May 2, 2016
    • BILAL Malik May 2, 2016
  69. kikiloaw July 2, 2016
    • BILAL Malik July 3, 2016
  70. cyprain July 10, 2016
  71. Djalltrs July 10, 2016
  72. Perekeme August 9, 2016
  73. faizan September 11, 2016
  74. amir September 13, 2016
  75. Dheeraj C September 14, 2016
  76. mohamed fouad September 19, 2016
    • BILAL Malik September 19, 2016
  77. mohamed fouad September 19, 2016
  78. Rajat Ajakia September 26, 2016
  79. Able December 22, 2016
  80. abdul January 11, 2017
  81. vinod January 24, 2017
  82. akshay February 18, 2017
  83. Ambrogio March 6, 2017
  84. rafiu March 12, 2017

Add Comment

Subscribe to our blog to get updates in your email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 899 other subscribers