Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
01/29/11 12:57
Read: times


 
#180907 - How to measure a clipped and non-clipped sinewave accurately
Hi all,

I have posted this thread on some other forum but thought I may get more help here too, so posing it here.

In my inverter project, I am generating a sine wave 230V with PWM using a full bridge of MOSFETs. The feedback is to be measured with an ADC built in the MCU. I need to regulate this 230V upto a load of 800VA.

I would like to know expert opinions on what should be the method to measure the sinewave accurately. I am briefing below things I have tried and problems I observed in those:

1. DC Feedback: Stepped down output 230V to about 15V using a transformer and then rectified, filtered with a diode bridge and a capacitor. Fed this DC voltage to ADC input via a resistive divider. Problems observed in this is that when sinewave starts clipping at higher loads, the DC voltage variation reduces a lot. For e.g. a non clipped 230V sinewave generates a DC voltage of 19V and a clipped 230V sinewave generates DC voltage of 18V. This introduces an error in feedback at higher loads, which I want to avoid. Is it correct what is happening? With clipped sinewave, the average DC will not be linear? I am just confused here about the theory. Is there any hardware trick that can help?

2. AC Feedback: I stepped down the 230V sinewave via resistive divider and fed it to an OP-AMP whose one input is biased at 2.5V. This way the OP-AMP generates a sinewave centered at 2.5V. This centerline 2.5V is used to detect zero crossings. Now I measured peak value between two zero crossings and took that peak value as reference. Again, when sinewave is clipped, this peak values does not give correct indication because peak remains same (the clipped level) even though actual RMS varies. Another problem with this method is that sometimes peak gets skipped due to other overhead running in MCU, so in some cycles, I get errorneous readings of a lower peak.

3. I am trying to average the instantaneous values between a positive ZC and negative ZC. But here I just found that if the samples are taken at exactly same intervals then only average value can be used for a good comparison. Now I have no timer left so it is not possible to time the sample measurement. So I don't think this is some useful method.

I am using a PIC16F72 running at 20MHz (It has an instruction cycle of 200nsec). All programming is in assembly. There is no hardware multiply, divide etc. So that way, it is quite low-end design.

Can someone please suggest me which approach I should take in this regard? Any other idea will also be helpful.


Best regards,
Gopal

List of 15 messages in thread
TopicAuthorDate
How to measure a clipped and non-clipped sinewave accurately            01/01/70 00:00      
   peak voltages does not represent RMS if distorted curve            01/01/70 00:00      
      RE: How to measure a clipped and non-clipped sinewave            01/01/70 00:00      
         Still can't look at a single point in time            01/01/70 00:00      
            RE: Still can't look at a single point in time            01/01/70 00:00      
      peak-to-RMS relation In general            01/01/70 00:00      
   I have posted this thread on some other forum            01/01/70 00:00      
      Sine feedback for inverter            01/01/70 00:00      
         Absolutely            01/01/70 00:00      
         Re: Sine feedback for inverter            01/01/70 00:00      
            hints            01/01/70 00:00      
               Waveform comparison            01/01/70 00:00      
                  What if?            01/01/70 00:00      
                     Drive and table            01/01/70 00:00      
                  Re: Waveform comparison            01/01/70 00:00      

Back to Subject List