Sine wave power inverter


Closed Thread
Results 1 to 40 of 245

Hybrid View

  1. #1
    Join Date
    Apr 2007
    Location
    Delhi
    Posts
    4


    Did you find this post helpful? Yes | No

    Default

    your design is very good, can you give me some idea about making a inverter by using pic basic?
    Quote Originally Posted by sougata View Post
    Hi PICers,

    I want to design a 24V DC to 50Hz/240AC power inverter. My choice of PIC is the 18F452 (HWPWM). But I am not sure whether the ADC conversion time would be short enough for dynamic correction.

    Any thoughts

    Regards

    Sougata
    The Andig Technologies
    Manish

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


    Did you find this post helpful? Yes | No

    Default I have converted my design

    Hi,

    Manish originally the inverter was built ono the PIC18F452 and had loads of features like true synchronized changeover using MOSFET based static switches to perform like a pseudo online UPS. Actually it was an adaptation of my motor control system using 18F4331. However the BOM cost was high so it was scaled dowm to mimic other designs already based on 16F72. Uses a pseudo software PWM. (Utilizes the inbuilt unit in compare mode to generate int and fire mosfets). Half-Bridge driving and a half cycle boost PFC for charging control. Vertical-Horizontal current based lookup table to get precalculated points (16F series do not support harware multiply). Most of the credit goes to Mr. Pramod Sinha of Jetmark Systems Delhi cause my 16F skill sucks. We could not share the code as it is a commercial project and we are legally binded. For clarifications and solving issues this forum is a great place and people (far far better than myself, Perhaps) would surely help you out. Best of luck. Where are you located in Delhi, I drop in there almost every month and stay in A6 Paschim Vihar.
    Regards

    Sougata

  3. #3
    Join Date
    Sep 2005
    Location
    delhi
    Posts
    14


    Did you find this post helpful? Yes | No

    Default sine wave inverter

    I have written a sine wave generating routine in pbp. It is tested.but i am too busy because summer is my business season give me few days to edit and post it to forum.
    thanks everybody.

  4. #4


    Did you find this post helpful? Yes | No

    Default Devloping programm for square wave inverter

    [QUOTE=sougata;35864]Hi,

    I am devloping a proogramm for inverter,but i need some helps, More over i have devloped the programm on theory.but in practical i have some problem

    i have genrate 50 Hz frequency by a loop and delay.Out Put is Ok but when put load about 100 wats on it
    the output voltage go down more tahn 40 volts.

    Please help me to do it in write way, I am the lerner and new in the are of pic programming.

    Please helps me
    Last edited by Pranav Verma; - 16th March 2008 at 11:51.

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


    Did you find this post helpful? Yes | No

    Default You need to have a closed loop control

    Hi,

    You need to modulate your sinewave according to a modulation index (that increases decreases the output voltage) derived from the error. Inititally a proportional error scheme is okay to experiment with later can add up to PID. In addition you can do a point by point correction to lower distortion. In 16Fs multiply is not supported in Hardware thus a different approach may be taken. Use a sliding lookup table. Here you have more number of points in the lookup table than regular 32/64 points. However it should be a single quadrant lookup table. Now if the resolution of the lookup table is increased you can have a sliding index (according to error) to have voltage correction without much software overhead.
    Regards

    Sougata

  6. #6
    Join Date
    Mar 2008
    Posts
    25


    Did you find this post helpful? Yes | No

    Default firmware code for pic18f252

    since no one would review my c-code on this subject, ih have decided to modified suogata bacis code on sine wave inverter thread. i am using PIC16F72 for the evaluation because that is the processor that is readily available with me now.

    The picbasic iam using is the pro demo version and so i appriciate that i can't run a code more than 31 command line.however upon trying to compile the code ,the following erros are reported:

    1: Error line 116 :redefinition of label T0CON

    2: Error line 119: bad expression

    3: Demo limit of 31 command line exceeded (this is understood)

    pls, can any one fix these problem for me?.

    (a): With the way the modified code stands,can it generate two complimentary sine pwm signals DRIVE1& DRIVE2?.if yes how do i include a delay routine of about 470ns for dead-time control between the two signals?

    (b): If the code cannot generate the two complimentary sinepwm signals what do i do to fix the stuff?.

    regards,
    babalola.
    Attached Images Attached Images
    Attached Files Attached Files

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


    Did you find this post helpful? Yes | No

    Default That code was meant for the 18 series

    Hi Babalola,

    The routine I posted uses the FSR0 indirect addressing method which is not available in the 16F72. 16F72 has a single FSR register so it would be a different implementation. With Anded outputs steering the PWM should not be difficult. You can use the same phase drive signal to drive the upper MOS so only the lower MOS would be switching with your PWM.
    With 20MHz clock each of your instruction takes 200nS. So servicing the interrupt, (All MOS turned off within it) and then fetching the lookup table from PBP and switching as per system flag is quite some DEAD TIME . Another way of steering the PWM is using Four Buffers each connected to individual PIC ports and 4 nos of 4.7K resistors from the PWM pin to the four ports. So you get the following output;

    1. PORT pin floating (Z, as input) = PWM
    2. PORT pin LOW = LOW
    3. PORT pin high = High

    Since you are using a demo version of PBP, I would try to find some time to get some portions compiled for you. However I am a bit stuck and behind schedule in one of my projects. So please hang on...

    Anybody else out there to help... Please do.
    Regards

    Sougata

  8. #8
    Join Date
    Mar 2008
    Posts
    25


    Did you find this post helpful? Yes | No

    Default firmware code for pic18f252

    I have found that 16f72 has only FSR(at addr. 04,84,104&184h).from the datasheet,could that be the reason for the errors?.implementing this seems a tedious task for me as a beginner in basic and i need further help. can't the anded schematics attached to my last post do the steering?. from what i understand by using four ports with buffers to steer the PWM would mean configuring the four ports as input permanently, is it? i will appriciate the compile portion so that i can use scope to verify the PWM outputs.

    babalola.

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