Anda di halaman 1dari 9

How to calculate THD for the following waveform

Welcome, neat

Forum
New Posts

Forum

Activity Stream
Unanswered Posts

Analog Design

Search
Private Messages

Help
FAQ

Power Electronics

Rules

Groups

Forum Actions

Community

Albums

Notifications

Blogs

Quick Links

My Profile

Settings

Log Out

What's New?
Advanced Search

Important Links

How to calculate THD for the following


waveform

Part & Inventory Search

+ Post New Thread

+ Reply to Thread

Results 1 to 19 of
19

How to calculate THD for the following waveform


Welcome to EDABoard.com

Welcome EDABoard Member.


Threads Without Replies
[ Unanswered Posts ]
Storing an HTTP request in an array using C
am trying to catch an HTTP request and store it in an array
using C . How can I possibly do this ? The request I get
from is of the following form : POST /box/update HTTP/1.1

Accept :...
Posted By diwesh87. Today 12:33 in PC Programming and
Interfacing

View First Unread

LinkBack

Thread Tools

Search Thread

#1

28th May 2015,10:21

biswaIITH

How to calculate THD for the following waveform

Full Member level 1

Join Date:
Location:
Posts:
Helped:
Points:
Level:

Aug 2014
Hyderabad
96
2/2
539
4

Hello friends...i got the below attached


line voltage(upper one) and line current(lower one
waveform from oscilloscope...This is the input
waveforms of a lab designed PFC converter...But i am
at a loss to calculate the THD(total harmonic distortion
) of the line current(Lower one)

How to read ram in test bench?


Hi all, I have a ram of 32 bit width and 4 bit depth. i am
using simple dual port ram. i have written data into the
ram. now i want to read this data from test bench. can i
use for loop for...
Posted By ultimate_kc. Today 12:13 in PLD, SPLD, GAL,
CPLD, FPGA Design

Is it possible to make Capacitive touch


operated tone generator with
microcontroller?
Hello Im a mechanical engineer & product designer from
india.....Im trying to make a project....for that I need TO
produce continuous tone at 6 different frequencies
(between 17000hz to20000hz) or...
Posted By nishy555. Today 12:07 in Microcontrollers

View
Profile

Give
Points

Private
Message

Add as
Contact

Switching power supplies disconnecting


needs a load?
When disconnecting a switching power supply from the
main circuit board to isolate and troubleshoot the switching
power supply circuit board. All switching power supplies
needs a load even when...
Posted By RickyRockenson. Today 10:31 in Elementary
Electronic Questions

Reply With
Quote
Report Post

#2

28th May 2015,12:21

SunnySkyguy

Re: How to calculate THD for the following


waveform

Super Moderator

Any signal has 3 components;

Signal Power

Noise Power

Distortion Power

One needs to filter out or measure the spectrum of the


fundamental.

Achievements:

[STA] Clock Uncertancy -> what values


should be used?
Hi All, Is there a thumb rule what values should be used for
the clock uncertainty? Let's say, will 20% of clock period for
the setup checks and 5% for the hold checks be good
enough? ...
Posted By ivlsi. Today 11:43 in ASIC Design Methodologies
and Tools (Digital)

Reply
Multi-Quote Msg

Looking at your waveform, there is a lot high


frequency repeating glitches (i.e. synchronous noise
thus harmonic and some which appear random .
Join Date:
Location:
Canada
Posts:
Helped:
Points:
Level:
Blog Entries:

Sep 2007
Richmond Hill, ON,
4,454
1088 / 1088
22,684
36
7

A spectrum analyzer is the best tool to measure.

Another method is a recursive notch filter to remove


fundamental and harmonics and leave random noise.

Lookup SINAD measurements which compare total


signal ratio to that with fundamental removed, so
becomes (s+n+d)/(n+d) in power levels.

New Replies
How do I use Float in xc8 compilor ? (2)
How to transfer a value of an output from
DUT to test bench? (6)
LVPECL to LVDS termination. (3)
linear variable resistor but output voltage is
not linear (6)
How to select the clock buffers in clock tree
specification file? (2)
seperately excited dc motor control (5)
Signals and variables in VHDL (24)
Assembly Code for data saving from keypad
in Registers(8051) (5)
ambient light sensor technology (4)
what is the best practice to leave unused
pins in a micro-controller (15)

http://www.edaboard.com/thread338354.html[6/4/2015 11:09:43 AM]

The best question deserves a better answer.


helpedme & [solved]
To show appreciation use
If you don't, what does that say about you?

... Tony Stewart EE since 1975

1 members found this post helpful.


Did you find this post helpful? Click:

View
Profile

Give
Points

Private
Message

Add as
Contact

Reply
Multi-Quote Msg

Reply With
Quote
Report Post

#3

28th May 2015,12:33

biswaIITH

Full Member level 1

Re: How to calculate THD for the following


waveform

How to calculate THD for the following waveform

How to download Allegro skill files (2)


[moved] Bipolar Character Generator dual
inline chip (2)
diodes mcq question (3)
RC-extractions/coners -> how many should
be done for SignOff (2)
help me with a virtual ground circuit design
for large current (13)
Array Antenna Simulation and measured
differnce (7)
IBM 130 chipedge and chip guard ring (1)
Will an AC electromagnet respond to
harmonics? (4)
boolean keyword in vhdl (2)
[PIC] Is this SPI Multi-Master
Communication working properly ? [Doubt]
(10)
lcd interfacing in spartan 3E using vhdl (18)
[Moved] Pipelined ADC (4-bit) (1)
Full Bridge SMPS's with same NP/NS give
different V(out) (5)
FM direct conversion radio (5)
[moved] Do I need to model a big time in .lib
? (1)

Join Date:
Location:
Posts:
Helped:
Points:
Level:

Aug 2014
Hyderabad
96
2/2
539
4

Originally Posted by SunnySkyguy

Any signal has 3 components;

Signal Power

Noise Power

Distortion Power

One needs to filter out or measure the spectrum


of the fundamental.

Looking at your waveform, there is a lot high


frequency repeating glitches (i.e. synchronous
noise thus harmonic and some which appear
random .

A spectrum analyzer is the best tool to measure.

Another method is a recursive notch filter to


remove fundamental and harmonics and leave
random noise.

Lookup SINAD measurements which compare


total signal ratio to that with fundamental
removed, so becomes (s+n+d)/(n+d) in power
levels.
i dont have access to spectrum analyser...where can i
design that recursive notch filter???/is there any
software tool to design the same??is there any
software tool where we can measure THD of a
particular waveform directly???

EE News, Tips and Resources

Printed circuit board card guides


6/3/2015

60V Synchronous Buck Controller Simplifies Power


Supply Design
5/29/2015

Synchronous step-down PWM controller


5/28/2015

Last edited by biswaIITH; 28th May 2015 at 12:42.


Did you find this post helpful? Click:

Recently Updated Groups


VLSI Jobs - World Wide, India VLSI Group, VLSI,
Semiconductor Jobs,India, Free EDA Tools, VLSI
programming group, Project help, Microwave
engineering, Metamaterials, RF circuits and
systems design

View
Profile

Give
Points

Private
Message

Add as
Contact

FvM

FvM (31095), alexan_e (11475), keith1200rs


(10885), bigdogguru (8846), IanP (7943)

#4

Re: How to calculate THD for the following


waveform

Top Helped / Month

Top Posters

Reply With
Quote
Report Post

28th May 2015,12:52

Super Moderator

FvM (12), Warpspeed (10), BradtheRad (7),


KlausST (6), milan.rajik (5)

Reply
Multi-Quote Msg

Awards:
Join Date:
Location:
Posts:
Helped:
Points:
Level:

Jan 2008
Bochum, Germany
31,095
9685 / 9685
186,799
100

Top Experience Points


FvM (186799), IanP (160151), bigdogguru (59569),
tpetar (54409), tsb_nph (53644)

I presume you already reviewed the definition of THD.


At first sight, the shown current waveform has much
more non-harmonic noise, e.g. PWM carrier residuals
than harmonic distortion. THD is probably below a few
percent. In other words, it looks like a good working
PFC with insufficient filter for PWM frequency.

You are asking how to calculate THD but you actually


need to measure something before calculating THD.
That's primarly a question of available instruments
rather than software tools. Did you check the math
features of your oscilloscope? Does it provide FFT?
Waveform export?

Notch filter is a classical method to measure THD, but


in the present case it would measure THD+noise
instead of THD.
Did you find this post helpful? Click:

View
Profile

Give
Points

Private
Message

Add as
Contact

Reply
Multi-Quote Msg

Reply With
Quote
Report Post

#5

28th May 2015,13:15

biswaIITH

Full Member level 1

Join Date:

http://www.edaboard.com/thread338354.html[6/4/2015 11:09:43 AM]

Aug 2014

Re: How to calculate THD for the following


waveform
Originally Posted by FvM

How to calculate THD for the following waveform


Location:
Posts:
Helped:
Points:
Level:

Hyderabad
96
2/2
539
4

I presume you already reviewed the definition of


THD. At first sight, the shown current waveform
has much more non-harmonic noise, e.g. PWM
carrier residuals than harmonic distortion. THD is
probably below a few percent. In other words, it
looks like a good working PFC with insufficient
filter for PWM frequency.

You are asking how to calculate THD but you


actually need to measure something before
calculating THD. That's primarly a question of
available instruments rather than software tools.
Did you check the math features of your
oscilloscope? Does it provide FFT? Waveform
export?

Notch filter is a classical method to measure


THD, but in the present case it would measure
THD+noise instead of THD.
yes it does provide FFT...The above current waveform
is a cleaned waveform..i am attaching the original
waveform that i got from oscilloscope..
....measuring THD of this waveform is not going to give
true measure...i have exported the data of the actual
waveform from cro(attached in this post) into an excel
sheet ..But that data also contains the unnecessary
noise and spikes....

i am thinking if i can export data of the cleaned


waveform(in the first post) to an excel sheet somehow,
will i be able to measure THD in matlab???
Did you find this post helpful? Click:

View
Profile

Give
Points

Private
Message

Add as
Contact

Reply
Multi-Quote Msg

Reply With
Quote
Report Post

#6

28th May 2015,14:26

FvM

Re: How to calculate THD for the following


waveform

Super Moderator

Awards:
Join Date:
Location:
Posts:
Helped:
Points:
Level:

Jan 2008
Bochum, Germany
31,095
9685 / 9685
186,799
100

View
Profile

Give
Points

Private
Message

Add as
Contact

The best way to determine THD (without carrier


frequency residuals and other noise) is to perform a FT
and sum the power of e.g. 2nd to 40th harmonic. This
can be done in Matlab, or even in MS Excel. You
preferably perform the FT over full periods of the
fundamental, e.g. 4 to 30 (see IEC 1000-3-2).

1 members found this post helpful.


Did you find this post helpful? Click:

Reply
Multi-Quote Msg

Reply With
Quote
Report Post

#7

28th May 2015,16:15

The Electrician

Re: How to calculate THD for the following


waveform

Full Member level 4

Is this a university project?


Join Date:
Location:
Posts:
Helped:
Points:
Level:

Jul 2010
Pacific NW
200
115 / 115
2,510
11

What model oscilloscope are you using? Is it a


Tektronix TPS series scope, such as a TPS2024, or
similar, with isolated inputs?

If it is a TPS oscilloscope, there exists a plug-in


application that does power analysis, including
calculating THD.
Did you find this post helpful? Click:

View
Profile

Give

http://www.edaboard.com/thread338354.html[6/4/2015 11:09:43 AM]

Private
Message

Add as

Reply
Multi-Quote Msg

Reply With
Quote
Report Post

How to calculate THD for the following waveform


Points

Contact

#8

29th May 2015,07:48

biswaIITH

Re: How to calculate THD for the following


waveform

Full Member level 1

Join Date:
Location:
Posts:
Helped:
Points:
Level:

Aug 2014
Hyderabad
96
2/2
539
4

View
Profile

Give
Points

Private
Message

Add as
Contact

No i am using Tektronix TDS2012 oscilloscope..can we


do power analysis ??
Did you find this post helpful? Click:

Reply
Multi-Quote Msg

Reply With
Quote
Report Post

#9

29th May 2015,08:02

SunnySkyguy

Re: How to calculate THD for the following


waveform

Super Moderator

Even Audacity using the AUX in audio port can measure


the spectrum of 1V signal and THD.. ( Free Windows
program. )

Achievements:

Then you can export to Excel or Matlab

Join Date:
Location:
Canada
Posts:
Helped:
Points:
Level:
Blog Entries:

Sep 2007
Richmond Hill, ON,
4,454
1088 / 1088
22,684
36
7

The best question deserves a better answer.


helpedme & [solved]
To show appreciation use
If you don't, what does that say about you?

... Tony Stewart EE since 1975


Did you find this post helpful? Click:

View
Profile

Give
Points

Private
Message

Add as
Contact

Reply
Multi-Quote Msg

Reply With
Quote
Report Post

#10

29th May 2015,08:14

The Electrician

Full Member level 4

Join Date:
Location:
Posts:
Helped:
Points:
Level:

Jul 2010
Pacific NW
200
115 / 115
2,510
11

Re: How to calculate THD for the following


waveform
Originally Posted by biswaIITH

No i am using Tektronix TDS2012


oscilloscope..can we do power analysis ??
I don't see the same sort of power analysis that the TPS
series has. Click on "Software packages" and you'll see
the TPS2PWR1 software:
http://www.tek.com/oscilloscope/tps2000

Here's more detail on the package:


http://www.tek.com/datasheet/tps2pwr1

Your scope image suggests that you are measuring the


grid voltage. How do you do this safely with a

http://www.edaboard.com/thread338354.html[6/4/2015 11:09:43 AM]

How to calculate THD for the following waveform

TDS2012 scope? The TPS series scopes have isolated


inputs which makes this easy to do safely, but what do
you do?

If you use the FFT display on your very noisy (uncleaned) waveform, what does it look like? Adjust the
horizontal time to get a good result. Post an image for
us to look at.
Did you find this post helpful? Click:

View
Profile

Give
Points

Private
Message

Add as
Contact

Reply
Multi-Quote Msg

Reply With
Quote
Report Post

#11

29th May 2015,08:50

biswaIITH

Re: How to calculate THD for the following


waveform

Full Member level 1

Join Date:
Location:
Posts:
Helped:
Points:
Level:

Aug 2014
Hyderabad
96
2/2
539
4

View
Profile

Give
Points

Private
Message

Add as
Contact

i am using an isolation transformer between the grid


and the converter n doin all the measurements after
the isolation transformer...
Did you find this post helpful? Click:

Reply
Multi-Quote Msg

Reply With
Quote
Report Post

#12

29th May 2015,09:55

The Electrician

Full Member level 4

Join Date:
Location:
Posts:
Helped:
Points:
Level:

Jul 2010
Pacific NW
200
115 / 115
2,510
11

Re: How to calculate THD for the following


waveform
I think you might be able to use the FFT function of the
scope. Here's a captured waveform of the magnetizing
current of a large inverter transformer energized by
the grid:

Here's what the TPS2PWR1 power analysis software


shows for this waveform:

http://www.edaboard.com/thread338354.html[6/4/2015 11:09:43 AM]

How to calculate THD for the following waveform

Notice the measured THD-R of 38.7%.

Here's the FFT of the same waveform. The horizontal


speed was set to 100 milliseconds/div:

The only significant harmonics are the 3rd, 5th, 7th


and 9th. Calculating the THD-R from the magnitudes of
the fundamental and harmonics, which are -19.0dB,
-26.6dB, -35.4dB, -44.2dB and -56.6dB, I get a value
of 40.8%

You should capture a FFT display of your waveform.


Adjust the horizontal time to get the best resolution,
and post it here.

1 members found this post helpful.


Did you find this post helpful? Click:

View
Profile

Give
Points

Private
Message

Add as
Contact

Reply
Multi-Quote Msg

Reply With
Quote
Report Post

#13

29th May 2015,10:43

FvM

Re: How to calculate THD for the following


waveform

Super Moderator

I think you might be able to use the FFT function


of the scope.

Awards:
Join Date:
Location:
Posts:
Helped:
Points:
Level:

Jan 2008
Bochum, Germany
31,095
9685 / 9685
186,799
100

Yes, but the post #1 /post #5 current waveforms have


(guessed) not more than 1 or 2 % THD. Exact
measurement with built-in FFT may be difficult (and a
purely academic job, because PFC operation is
obviously perfect).
Did you find this post helpful? Click:

View
Profile

Give
Points

http://www.edaboard.com/thread338354.html[6/4/2015 11:09:43 AM]

Private
Message

Add as
Contact

Reply
Multi-Quote Msg

Reply With
Quote
Report Post

How to calculate THD for the following waveform

#14

29th May 2015,12:23

The Electrician

Re: How to calculate THD for the following


waveform

Full Member level 4

Join Date:
Location:
Posts:
Helped:
Points:
Level:

Jul 2010
Pacific NW
200
115 / 115
2,510
11

Originally Posted by FvM

Yes, but the post #1 /post #5 current waveforms


have (guessed) not more than 1 or 2 % THD.
Exact measurement with built-in FFT may be
difficult (and a purely academic job, because PFC
operation is obviously perfect).
That's why I said that he "might" be able to use the FFT
function. I have no illusion that "exact" measurement
is possible this way; even my measurement with a
relatively clean waveform didn't give perfect
agreement between the result from the power analysis
software and the FFT method. Furthermore, I also said
that he should post an image so we can help him
determine if the result is useable.
Did you find this post helpful? Click:

View
Profile

Give
Points

Private
Message

Add as
Contact

Reply
Multi-Quote Msg

Reply With
Quote
Report Post

#15

30th May 2015,15:26

biswaIITH

Re: How to calculate THD for the following


waveform

Full Member level 1

Join Date:
Location:
Posts:
Helped:
Points:
Level:

Aug 2014
Hyderabad
96
2/2
539
4

Following is the FFT waveform


conclusions can we draw frm here??

..What

Attached Thumbnails

Last edited by biswaIITH; 30th May 2015 at 15:56.


Did you find this post helpful? Click:

View
Profile

Give
Points

Private
Message

Add as
Contact

Reply
Multi-Quote Msg

Reply With
Quote
Report Post

#16

30th May 2015,17:22

The Electrician

Re: How to calculate THD for the following


waveform

Full Member level 4

Join Date:
Location:
Posts:
Helped:
Points:
Level:

Jul 2010
Pacific NW
200
115 / 115
2,510
11

View
Profile

Give
Points

Private
Message

Add as
Contact

Turn on the cursor function of the scope, select


"frequency" as the type. Move the cursor over each
significant spike in the FFT and note the frequency and
level in dB. Post your measurements.
Did you find this post helpful? Click:

Reply
Multi-Quote Msg

Reply With
Quote
Report Post

#17

30th May 2015,19:25

biswaIITH

Full Member level 1

http://www.edaboard.com/thread338354.html[6/4/2015 11:09:43 AM]

Re: How to calculate THD for the following


waveform

How to calculate THD for the following waveform

Join Date:
Location:
Posts:
Helped:
Points:
Level:

Aug 2014
Hyderabad
96
2/2
539
4

actually,while saving the waveform ,i saved all the data


in an excelsheet...following are the values i got

fundamental(50)= -12.2dB

3rd harmonic(150)=-32.6dB

5th harmonic(250)=-45.4dB

7th harmonic(350)=-38.9dB

9th harmonic(450)=-39.4dB
Did you find this post helpful? Click:

View
Profile

Give
Points

Private
Message

Add as
Contact

Reply
Multi-Quote Msg

Reply With
Quote
Report Post

#18

30th May 2015,20:27

The Electrician

Re: How to calculate THD for the following


waveform

Full Member level 4

Join Date:
Location:
Posts:
Helped:
Points:
Level:

Jul 2010
Pacific NW
200
115 / 115
2,510
11

Originally Posted by biswaIITH

actually,while saving the waveform ,i saved all


the data in an excelsheet...following are the
values i got

fundamental(50)= -12.2dB

3rd harmonic(150)=-32.6dB

5th harmonic(250)=-45.4dB

7th harmonic(350)=-38.9dB

9th harmonic(450)=-39.4dB
Now convert these values to voltages. Divide the dB
values by 20 and take the base 10 antilog (raise 10 to
the power of the values). I get:

fundamental(50)= .2455

3rd harmonic(150)= .02344

5th harmonic(250)= .00537

7th harmonic(350)= .01135

9th harmonic(450)= .01072

Use the formula for THD(R) on this page:


http://en.wikipedia.org/wiki/Total_harmonic_distortion

I get a value of 11.6% distortion.

Keep in mind that this is the value you would get if all
those glitches and noise were removed without
changing the magnitude of any of the 3rd, 5th, 7th and
9th harmonics (such as a filter might do).

If you know the attenuation versus frequency of a filter


you would use, you could apply that to the harmonics
and get an approximation of the distortion after
filtering. Or, you could actually apply the filter and
again measure the FFT of the filtered waveform.

The TDS2012 only has 2500 sample points and its FFT
is probably not without limitations, but at least you get
a rough idea of your distortion.

Something else you might try is to turn on averaging


on the scope. This lowered the noise floor of the FFT
when I did it on my scope.

Last edited by The Electrician; 30th May 2015 at 20:37.

1 members found this post helpful.


Did you find this post helpful? Click:

View
Profile

Give
Points

Yesterday,10:50

http://www.edaboard.com/thread338354.html[6/4/2015 11:09:43 AM]

Private
Message

Add as
Contact

Reply
Multi-Quote Msg

Reply With
Quote
Report Post

#19

How to calculate THD for the following waveform

biswaIITH

Re: How to calculate THD for the following


waveform

Full Member level 1

I have taken the input waveform from the same


Join Date:
Location:
Posts:
Helped:
Points:
Level:

Aug 2014
Hyderabad
96
2/2
539
4

converter...
...Though all the operating
conditions are same(i.e. load,line,switching
frequency)...Why is there a difference between the
earlier waveforms(post 1 and post 5) and the current
one???i am confused

..

What i mean to say is the earlier current


waveforms(lower ones in post 1 n 5) appear more
sinusoidal than the present one(lower one the pic
attached in this post)..what is the reason for that???
Did you find this post helpful? Click:

View
Profile

Give
Points

Private
Message

Add as
Contact

+ Post New Thread

Reply With
Quote
Report Post

Reply
Multi-Quote Msg

+ Reply to Thread

Quick Navigation

Power Electronics

Top

Quick Reply

Font

Post Quick Reply

Size

Go Advanced

Add an Image

Manage Attachments

Cancel

DC-DC converter isolation, questions from a newbie.


|
Flyback SMPS with primary clamp that is far
too small?
Similar Threads
how to Calculate THD in Tanner (0)
I want to calculate the THD in cadence?? (7)
what is THD and how to calculate THD in three phase power (2)
How to calculate the THD, THD+N,SNR of Switched Cap Filter (7)
how to calculate the THD+N=THD(%)+noise(nv^2/hz) in hspice?? (2)

Classic Classic
---- Edaboard
Edaboard

Contact Us Forum for Electronics Privacy Statement Terms of Service Top


All times are GMT +5.5. The time now is 10:53.
Powered by vBulletin
Copyright 2010 vBulletin Solutions, Inc. All rights reserved.
SEO by vBSEO 2011, Crawlability, Inc.

http://www.edaboard.com/thread338354.html[6/4/2015 11:09:43 AM]

Anda mungkin juga menyukai