Sine wave power inverter


Closed Thread
Results 1 to 40 of 245

Hybrid View

  1. #1
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default I am a little off the track at this moment

    Hi Mincing,

    I am sorry I need to put some time and scratch my head to explain the C code. Currently I am a bit involved in some projects (pulling my hair almost always ) But here is a crude explanation.

    For a simple proportional control system the PWM for the sinewave for the current pointer is looked up and the previous PWM is used with the feedback to determine the error. Thus before the current PWM is made through it is corrected for errors by proportionally modifying it.

    Since for your system the max PWM is 255 (8bits) you cannot scale it up any more so your maximum gain is 1.0. Means your hardware should be able to step up the voltage and provide the current at maximum load, minimum permitted input supply. Now what we found in using the 16F is that the multiplication routines were not fast enough (18F has got a hardware multiply) to be calculated on the fly and still leave room for other tasks such as AC Restore Sense (F/V permit), Batt-low sense (+ Indication), PC communication, Overload (Thermal/Power) and Fault sense. So what we did was implement a pseudo hardware PWM. We used the compare in 16 bits and used the High Byte from the sinetable and lowbyte from the error computation. Now we find that PWM results are unsatisfactory. So we decided for lookups table that contains some precomputed results for current and voltage. This speeded up the whole thing but we lost resolution. However for a domestic inverter it was acceptable as the regulation were within specs. I am sorry I cannot reveal any more details.

    So far you have not posted any codes and thus I cannot help you on your code.
    We (Me and Pramod) are planning for a dsPIC based inverter for the next season and if that happens as a reality then we may release the old code to public. No promises however at this moment.

    Best of Luck
    Regards

    Sougata

  2. #2
    Join Date
    May 2007
    Location
    Hyderabad,India
    Posts
    29


    Did you find this post helpful? Yes | No

    Smile Hi Sougata!

    Hope you are fine.

    Thios time I have come up with a weird question.What is the meaning of Sine PWM being 25KHz.

    Say we consder 32 samples it gives ,20ms/32=625uS.
    ===>frequency of each sample is only 1.6KHz .

    Then ecverybody talks of 25 KHz .Could you please explain that a little.

    Thanks,

  3. #3
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Default It is the carrier PWM Frequency

    Hi,

    You are using a lookup table to modulate a carrier frequency (The PWM). In analogue world this is AM. But the pronciple here is of a class D amplifier. That is your switches are either off/on and not working in the linear region. You can use any frequency thats twice (nyquist) the output frequency mulitplied by the resolution (steps) of the lookup table. Your output transformer and parallel resonant capacitor forms a filter to integrate the modulated PWM into a sinewave. Normally the PWM is kept higher than 20KHz to reduce audible noise in the transformer. While keeping it lower has a certain advantage of lower switching loss.
    Regards

    Sougata

Similar Threads

  1. Replies: 6
    Last Post: - 31st March 2014, 13:25
  2. sine wave inverter
    By BADAL123 in forum Off Topic
    Replies: 0
    Last Post: - 7th January 2014, 13:20
  3. Low pass filter help - pure sine wave inverter
    By George in forum Off Topic
    Replies: 1
    Last Post: - 9th April 2011, 05:24
  4. sine inverter
    By anybisi in forum General
    Replies: 0
    Last Post: - 21st March 2008, 11:08
  5. squre wave inverter
    By pramodsinha in forum Forum Requests
    Replies: 1
    Last Post: - 11th December 2005, 17:38

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts