March 28, 2012

Power inverter PWM control with AVR (Proteus simulations)

           HI friends here is the post of how to control Power inverter With PWM technique and PWM is generated from Microcontroller.


            Hope that you have read my earlier post about power inverter design that design was traditional design and every thing was done on analog basis like generating triangular waves, comparing with DC offset via a comparator and finally generating PWM.
         
            It is advisable to read first about triggering a single mosfet with microcontroller than going for a full bridge.

           But suddenly you realize that you are living in modern era where microcontrollers can do a lot of things. I also found in built PWM generator mode of AVR microcontroller and reduced a lot of hardware.

           So what I did is configured AVR microcontroller in fast PWM mode and generated all the gate pulses from microcontroller itself.

mosfet inverter with microcontroller pwm control
Triggering mosfets with avre for inverter design
               Here is the Proteus circuit for inverter design.



     One thing to remember here is AS I HAVE SHOWN SEPARATE POWER  SUPPLIES FOR ALL OPTO-COUPLERS YOU HAVE TO USE THEM IN ACTUAL CIRCUIT ALSO OTHERWISE THE INVERTER WILL NOT WORK PROPERLY.

     And one more thing to remember when actually designing inverter from this circuit is that in Proteus you have a common ground but in actual life Ground Concept is  a bit difficult.. so you have to connect ground of respective power supply to source of respected MOSFET.(because we always have to supply Gate pulse with respect to source)


         you can download proteus isis simulation file from HERE.


Correction:
those who have seen circuit before please note the value of resistors r4,r5,r10,r9  there was a typo the value is 220 ohms instead of 560 ohms written before.
           

28 comments:

  1. sir i hv doubts ..
    1) is it a potentiometer which is connected to pin 40 of microcontroller..
    2) which transformer can we used ?
    3) Is there any value of the crystal connected betwn X1 and X2..?
    4) we have to give 25 volts supply to mosfet ???

    ReplyDelete
    Replies
    1. 1)That is a potentiometer used to change pwm output of microcontroller,switches can also be used to change pwm.
      3)the crystal is 16MHz (you can use internal crystals also they are up to 8 MHz)
      4)+25V is a high voltage DC which you would be using for switching(we have used up to 70 Volts DC)you can use any high voltage suitable for your application but you have to select the Mosfet accordingly.
      2)I couldn't get your question ;)

      Delete
    2. look this as only inverter design don't try to implement a microcontroller board from above circuit, as that is not a very good design....

      Delete
  2. Actually sir our project is to design a power inverter ( 12v dc to 120v ac ) ..can you help in this regard .

    And that transformer is for step up the voltage to a desired output value.

    ReplyDelete
    Replies
    1. If you are going to make some portable device for power cut,you should not use configuration shown me,

      Reason 1)in the configuration i showed you need three 12V for optocoupler power supply.

      Reason 2)you need to worry about the power of microcontroller itself!!!

      if you,still use this configuration you have to use step up transformer(step down transformer in reverse way)with turn ratio of 10

      check this configuration i found it promising

      http://www.aaroncake.net/circuits/inverter.asp?showcomments=all

      Delete
    2. thank you sir

      Delete
  3. Sir,
    can u give us the 'C'coding in proteus of generating pulses for a 3-phase inverter which gives 50Hz AC.. ??

    ReplyDelete
  4. I am trying to design a 12VDC to 220VAC,50Hz PWM inverter.
    I want to
    (1) Boost up 12VDC to 330VDC using a full bridge converter
    (2) Convert this 330VDC to 220VAC,50Hz using PWM inverter.

    I need to know if it is a feasible approach?
    I would be thankful for any help on the project

    Furthur, i need to know what version of proteus were u using? I have v7.1 and it does not support your file

    ReplyDelete
    Replies
    1. first convert 12V DC to AC using the inverter.
      then use a 12v-230v transformer for stepping up the voltage that may be more feasible approach as i think....

      i am using proteus 7.7 sp2

      Delete
  5. HOW CAN I GET A SINUSOIDAL OUTPUT??

    ReplyDelete
    Replies
    1. with an inductive load it will be nearer to sinusoidal.

      Delete
    2. or you can have a sine modulated PWM followed by a filter capacitor. that can also give sine output.

      Delete
  6. What makes the output to be of 50Hz?

    ReplyDelete
    Replies
    1. the switching frequency of mosfets,
      i am using it as 4kHz, you can configure timer to produce 50Hz.

      Delete
    2. can you send me the codevisionavrproject file?

      Delete
  7. hi sir how are you??? i need your help in simulating of single phase pwm inverter in proteous........ kindly help me out

    ReplyDelete
  8. hello sir i have doubt here is this circuit can produce SINUSOIDAL PWM?? if can't what is different between spwm circuit and pwm circuit?? sorry for this silly question -jagodzzinski

    ReplyDelete
  9. my title for my pre- final year project is about single phase sinusoidal pulse width modulation inverter to control the speed of the single phase induction motor..so i just need gather information first.. kindly share ur knowledge sir =) -jagodzzinski

    ReplyDelete
    Replies
    1. you can do sinusoidal pwm if you wish to do or with simple square wave inverter with inductive load the current will be nearer to sinusoidal,,,,
      have a look at this...
      i got sinusoidal current waveforms with square wave inverter....
      http://keyuracharya.blogspot.in/2012/09/induction-heating-project-simulation.html

      Delete
  10. plz i want to control the frequency of output pwm by external switch how can i do this ??
    plz i need reply quickly

    ReplyDelete
    Replies
    1. have a look at
      http://keyuracharya.blogspot.in/2012/04/frequency-control-inverter-avr.html

      Delete
  11. hello sir,i am doing project for three phase induction motor speed control.so plz help me for solving that mention below.
    ~i am doing project using Microcontroller ATMEGA32(AVR)
    ~driver ic for three phase inverter is IR2130
    and my problem is,
    1) i have found that in many circuit for three phase induction motor speed control they control speed by SPWM and that generate by PIC Microcontroller, But i want to use atmega32 microcontroller that generate only simple PWM.so i want to know that can i control three phase induction motor or drive three phase inverter using simple PWM by atmega32.
    2) if frist thing is possible then i want to know frequency of PWM for generate 30hz to 50hz AC output for three phase motor.

    ReplyDelete
  12. Hi,
    Can you elaborate on using transformers in the Proteus ? or is it not possible ?

    ReplyDelete
  13. could you help me to email me all references and documents i need to make

    ReplyDelete
  14. if i need some help . can u help me?

    ReplyDelete

Related Posts Plugin for WordPress, Blogger...