Author Topic: When is a sine wave not a sine wave?  (Read 13412 times)

0 Members and 1 Guest are viewing this topic.

Online IanBTopic starter

  • Super Contributor
  • ***
  • Posts: 11849
  • Country: us
When is a sine wave not a sine wave?
« on: December 18, 2011, 07:01:25 am »
OK, so I'm playing with my new Rigol oscilloscope and I need a nice example waveform to look at with known properties. What better place to start than the mains, eh? Known frequency, known shape, all should be good. So I attach the probes to the secondary of a small 12 V transformer and see what I can discover. Surprise, the wave form looks like this:



It's all wonky! I could draw a better sine wave free hand.

What can I learn from this? I set the scope up at x10 on the probes with AC coupling. Am I seeing distortion introduced by the transformer, or am I losing something in the measurement? I presume with such a low frequency that the voltage from the transformer really is that shape, and I am seeing some kind of magnetic effect in the transformer core?
 

Offline Lightages

  • Supporter
  • ****
  • Posts: 4313
  • Country: ca
  • Canadian po
Re: When is a sine wave not a sine wave?
« Reply #1 on: December 18, 2011, 07:25:31 am »
You are seeing distortion from the transformer. Could be hysteresis from the core, the waveform might look a little better when the transformer has a bit of a load....
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Re: When is a sine wave not a sine wave?
« Reply #2 on: December 18, 2011, 07:35:30 am »
It is hard to say for sure without seeing the mains waveform. Some nearby ugly load could be distorting it.

In general though, small mains transformers are not great. They are usually pretty lossy which is why they can get warm with no load.

In this case it looks like there a combination of the primary winding resistance, a high leakage inductance, and a barely adequate amount of primary inductance. An ideal transformer has a primary inductance so high that the inductive current is negligible compared to the transformer current.

For this small transformer, the primary current due to the inductance alone is high to the extent the core is actually starting to saturate. If you could look at the primary current, it would probably tell the story. If you have another mains transformer, use it as a current transformer. Put the secondary in series with the primary of this transformer, and put a 10K resistor across the primary of the second current transformer. Look at the waveform on the primary of the current transformer and compare it to the secondary voltage of the transformer you are testing. The current transformer primary should look like a sinewave, but I suspect it will look nothing like that in this case.

So I would say it is a badly designed transformer, but the designers may have been happy to trade inefficiency for lower costs.

Richard.
 

Online IanBTopic starter

  • Super Contributor
  • ***
  • Posts: 11849
  • Country: us
Re: When is a sine wave not a sine wave?
« Reply #3 on: December 18, 2011, 07:47:36 am »
You are seeing distortion from the transformer. Could be hysteresis from the core, the waveform might look a little better when the transformer has a bit of a load....

Here's the result of putting a bit of load on the transformer (about 50% of its rating):



For reference, it is a tiny 6-0-6 V 450 mA transformer from Radio Shack. The quality might not be up to much.
 

Online IanBTopic starter

  • Super Contributor
  • ***
  • Posts: 11849
  • Country: us
Re: When is a sine wave not a sine wave?
« Reply #4 on: December 18, 2011, 07:50:08 am »
@Richard:

I don't have a second transformer to use as a current transformer in the way you describe, unfortunately.

Your comments are illuminating. It's amazing what you can discover about seemingly ordinary objects when you examine them closely.
« Last Edit: December 18, 2011, 08:18:28 am by IanB »
 

Offline Zero999

  • Super Contributor
  • ***
  • Posts: 19477
  • Country: gb
  • 0999
Re: When is a sine wave not a sine wave?
« Reply #5 on: December 18, 2011, 11:09:32 am »
It's no surprise it gets worse when it's loaded. I would expect the waveform would look at its best when the transformer is unloaded.

I don't see how using another equally bad current transformer would give an accurate current measurement. You could use a hall effect sensor but that wouldn't prove whether the mains voltage is distorted or the transformer's hysteresis is distorting the current.
« Last Edit: December 18, 2011, 11:11:10 am by Hero999 »
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Re: When is a sine wave not a sine wave?
« Reply #6 on: December 18, 2011, 11:32:02 am »
It's no surprise it gets worse when it's loaded. I would expect the waveform would look at its best when the transformer is unloaded.

I don't see how using another equally bad current transformer would give an accurate current measurement. You could use a hall effect sensor but that wouldn't prove whether the mains voltage is distorted or the transformer's hysteresis is distorting the current.

It would work fine. The use of a transformer as a current transformer as I described means operating at around 1% of any possible core saturation point. The waveform should be pretty good. Not perfect, but if the current waveform is as distorted in the original transformer as I suspect, it is easily good enough to see the problem.

Richard.
 

Offline FreeThinker

  • Frequent Contributor
  • **
  • Posts: 791
  • Country: england
  • Truth through Thought
Re: When is a sine wave not a sine wave?
« Reply #7 on: December 18, 2011, 03:13:00 pm »
Well your mains is unlikely to be as clean as you think. Your 50 or 60 hz is generated as a nice sine wave but you will be very lucky to see it. The main culprit in recent years are smps and other hv sources injecting odd harmonics into the mains and is a problem that will only get worse. There is a thread on the forum about it. In this case however I agree with the previous posters and it is due in the main to the transformer.
Machines were mice and Men were lions once upon a time, but now that it's the opposite it's twice upon a time.
MOONDOG
 

Alex

  • Guest
Re: When is a sine wave not a sine wave?
« Reply #8 on: December 18, 2011, 03:52:19 pm »
Haha, that looks like a gear tooth mate, not like a sine wave. Clearly the core saturates and some other non-linearities.
You can measure the crest factor of a sinewave to see how pure it is, or a frequency content analysis.

How about the probe test waveform on your scope? Thats a square wave 1kHz-1MHz.
 

Online ejeffrey

  • Super Contributor
  • ***
  • Posts: 3709
  • Country: us
Re: When is a sine wave not a sine wave?
« Reply #9 on: December 18, 2011, 11:28:11 pm »
Well your mains is unlikely to be as clean as you think. Your 50 or 60 hz is generated as a nice sine wave but you will be very lucky to see it. The main culprit in recent years are smps and other hv sources injecting odd harmonics into the mains and is a problem that will only get worse.

Actually it is a problem that is only getting better.  More and more power supplies are becoming power factor corrected either due  mandates or billing that accounts for power factor.  As electronic loads are converted to use PFC, probably the old school "bad" loads like motors and TRIACs will take the crown back for causing the most distortion of your power waveform.
 

Offline RCMR

  • Frequent Contributor
  • **
  • Posts: 405
Re: When is a sine wave not a sine wave?
« Reply #10 on: December 19, 2011, 12:26:38 am »
Haha, that looks like a gear tooth mate, not like a sine wave. Clearly the core saturates and some other non-linearities.
You can measure the crest factor of a sinewave to see how pure it is, or a frequency content analysis.
Yes, run an FFT and see what harmonics and other frequency components there are in that waveform.

There is definitely some saturation in the second example -- the sine-wave is starting to flatten at the peaks as the core goes into saturation.
 

Online IanBTopic starter

  • Super Contributor
  • ***
  • Posts: 11849
  • Country: us
Re: When is a sine wave not a sine wave?
« Reply #11 on: December 19, 2011, 01:14:19 am »
Oh well, today's experiment has failed. I tried to construct a current transformer by wrapping ten turns of wire round a toroid and slipping the toroid over one of the mains wires, but I could not get any signal at all out the other end. I tried both a 10 ohm and a 10k resistor across the winding but no voltage appeared. I had 0.8 amps in the main conductor (100 W bulb as load) so my current transformer should have produced about 80 mA if it was working correctly. I guess I have more to learn about building one. Either my toroid core was not good (no soft iron toroids to hand), or there were insufficient windings on either side of the transformer to produce good coupling. My toroid is strongly magnetic, so I think it may be an iron powder compound. Maybe I should try a few more turns of the current carrying conductor instead of just slipping it through the middle?

I was able to use the original Radio Shack transformer as a current transformer, but passing 0.8 A through a secondary rated for 0.45 A probably doesn't help with core saturation issues. I got a better looking sine wave out of it (shorted the primary with a 100 ohm resistor), but still with some distortion.
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Re: When is a sine wave not a sine wave?
« Reply #12 on: December 19, 2011, 01:23:55 am »
Ian,

If the toroid is the type designed for switching power supplies, it probably has a low permeability which means you will need a huge number of turns to work at 50Hz. It wouldn't surprise me if the toroidal transformer performance started rolling off at about 100KHz.

There are high permeability toroids available, but they are not all that common.

You do not have any other mains transformers lying around at all? It doesn't have to be the same as the one you are testing.

Richard
 

Online IanBTopic starter

  • Super Contributor
  • ***
  • Posts: 11849
  • Country: us
Re: When is a sine wave not a sine wave?
« Reply #13 on: December 19, 2011, 01:35:10 am »
Ian,

If the toroid is the type designed for switching power supplies, it probably has a low permeability which means you will need a huge number of turns to work at 50Hz. It wouldn't surprise me if the toroidal transformer performance started rolling off at about 100KHz.

The toroid came with about 5 turns of heavy gauge trifilar winding on it, which I removed. It is blue in colour. I am not sure what its original purpose was, but it does seem to work well with a few turns to construct a joule thief.

Quote
There are high permeability toroids available, but they are not all that common.

You do not have any other mains transformers lying around at all? It doesn't have to be the same as the one you are testing.

Richard

In the ordinary way finding another transformer would not have been a problem, but when I relocated from the UK to America I cleared out most of my life's collection of electrical stuff, including a box full of carefully hoarded transformers, and now my junk box is bare  :(
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Re: When is a sine wave not a sine wave?
« Reply #14 on: December 19, 2011, 02:26:41 am »


The toroid came with about 5 turns of heavy gauge trifilar winding on it, which I removed. It is blue in colour. I am not sure what its original purpose was, but it does seem to work well with a few turns to construct a joule thief.
The 5 turns make it sound like it came from a switching power converter. It will not be suitable for 50/60Hz. I would suspect that the power thief is running at a high frequency - certainly no where near mains frequency.

Quote
There are high permeability toroids available, but they are not all that common.

You do not have any other mains transformers lying around at all? It doesn't have to be the same as the one you are testing.


In the ordinary way finding another transformer would not have been a problem, but when I relocated from the UK to America I cleared out most of my life's collection of electrical stuff, including a box full of carefully hoarded transformers, and now my junk box is bare  :(
[/quote]
I have had to do that in the past. When you don't have the boxes of junk, things that used to be easy to do become hard.

What you may be able to do is add a series resistor to halve the voltage into the transformer. If the transformer is saturating, reducing the voltage should make the secondary waveform look a lot better. So if the transformer is dissipating 3W (a guess) with no load, then the current will be about 25mA for a 120V transformer. So adding something like a 2K2 or 2K7 resistor in series with the primary should make a big drop to the primary voltage. If you only have 1/4W resistors, you can still try it, as long as you only switch the power on for a very short time. You only need a second or two to capture the waveform.

Richard
 

Online IanBTopic starter

  • Super Contributor
  • ***
  • Posts: 11849
  • Country: us
Re: When is a sine wave not a sine wave?
« Reply #15 on: December 19, 2011, 03:05:31 am »
I would suspect that the power thief is running at a high frequency - certainly no where near mains frequency.

I would suppose that it is. One of the things on my to-do list is to put the oscilloscope on that circuit and see what frequency it is actually running at. And then possibly try to optimize the configuration to achieve the best efficiency.

I like your idea of the series resistor. I have a 120 V 4 W lamp that should have a filament resistance of about 3k6 in normal operation (and apparently 360 ohms when cold), with an operating current of 33 mA. I could feed that 33 mA through the 450 mA rated secondary using the current transformer idea and see what happens. I could also put it in series with the primary and just measure the voltage on the secondary.
 

Offline vk6zgo

  • Super Contributor
  • ***
  • Posts: 7584
  • Country: au
Re: When is a sine wave not a sine wave?
« Reply #16 on: December 19, 2011, 03:47:46 am »
I was going to be a smart-a---e,& say :-"when it is a cosine wave!",but then I realised it was a serious question.
You should be able to get a fairly good idea of whether the distortion is due to the transformer,the Rigol,or incoming on the mains,just by looking at the waveform on random hum pickup.
You can usually source enough hum to look at,just by holding the tip of the probe in your hand.
 VK6ZGO

 

Online IanBTopic starter

  • Super Contributor
  • ***
  • Posts: 11849
  • Country: us
Re: When is a sine wave not a sine wave?
« Reply #17 on: December 19, 2011, 04:26:24 am »
Well I tried the current transformer idea with the 4 W bulb to put a low current through the winding. It's starting to look like a reasonable shape now:



Just for grins I tried touching the probe tip, but it wasn't pretty:



I think there may be a fair bit going on in the airwaves besides 60 Hz hum...  ???

 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Re: When is a sine wave not a sine wave?
« Reply #18 on: December 19, 2011, 05:58:18 am »
Ian,

Something is very odd about that first trace. With the globe in the circuit, are you only getting 1V AC p-p out of the transformer secondary?

That seems amazingly low.

Is that still the voltage on the 15V secondary?
 

Online IanBTopic starter

  • Super Contributor
  • ***
  • Posts: 11849
  • Country: us
Re: When is a sine wave not a sine wave?
« Reply #19 on: December 19, 2011, 06:17:44 am »
Ian,

Something is very odd about that first trace. With the globe in the circuit, are you only getting 1V AC p-p out of the transformer secondary?

That seems amazingly low.

Is that still the voltage on the 15V secondary?

I should have explained more thoroughly perhaps. I put the transformer's secondary in series with the 4 W bulb, and I put a 100 ohm resistor across the primary. I traced the voltage across that resistor. I didn't check the voltage though, so let me try now.

The 4 W bulb at 120 V should pass about 33 mA through the secondary. That should produce a current in the primary of 14/120 * 33 = 3.9 mA. Passing this through the 100 ohm resistor should produce an RMS voltage of 390 mV, and therefore a peak voltage of about 550 mV. At 20 mV (200 mV?) per division, that is about what the scope shows. Phew! The world works as it should  :)

(Note that I previously measured the open circuit voltage of the secondary at 14 V, which is where the 14/120 factor comes from. I am trusting my mains voltage to be 120 V, which it usually is--a spot check just now gives 121 V)

Edit: I just noticed that 20 mV/200 mV mix up. I thought the scope was on the 10X scale, but maybe not. I'll have to check.

Edit2: Oh, it looks like the scope had reverted to 1X on the scale factor instead of 10X. I feel sure I had previously set it to 10X. Perhaps it got reset later.
« Last Edit: December 19, 2011, 06:27:48 am by IanB »
 

Offline westfw

  • Super Contributor
  • ***
  • Posts: 4199
  • Country: us
Re: When is a sine wave not a sine wave?
« Reply #20 on: December 19, 2011, 08:51:47 am »
Is 50/60Hz a high enough frequency to use most scopes' AC coupling features?
 

Offline amspire

  • Super Contributor
  • ***
  • Posts: 3802
  • Country: au
Re: When is a sine wave not a sine wave?
« Reply #21 on: December 19, 2011, 11:37:03 am »
Is 50/60Hz a high enough frequency to use most scopes' AC coupling features?
Yes. The -3db point is often at 5 or 10 Hz.
 

Offline ivan747

  • Super Contributor
  • ***
  • Posts: 2045
  • Country: us
Re: When is a sine wave not a sine wave?
« Reply #22 on: December 20, 2011, 01:02:28 am »
Is 50/60Hz a high enough frequency to use most scopes' AC coupling features?
Yes. The -3db point is often at 5 or 10 Hz.

Is it usually listed in the oscilloscope's spec sheet or is it an "obscure" thing like burden voltage on a multimeter and only seen in some advanced models?
 

Online IanBTopic starter

  • Super Contributor
  • ***
  • Posts: 11849
  • Country: us
Re: When is a sine wave not a sine wave?
« Reply #23 on: December 20, 2011, 01:09:59 am »
Is it usually listed in the oscilloscope's spec sheet or is it an "obscure" thing like burden voltage on a multimeter and only seen in some advanced models?

The Rigol spec sheet says this:

Lower Frequency Response (AC –3dB)
<=5Hz (at input BNC)


 

Offline saturation

  • Super Contributor
  • ***
  • Posts: 4787
  • Country: us
  • Doveryai, no proveryai
    • NIST
Re: When is a sine wave not a sine wave?
« Reply #24 on: December 21, 2011, 11:55:13 pm »
Those waveforms are interharmonic and harmonic distortions, and can be caused by the load or the transformer.

http://www.ipsi.net/Power-Quality/PowerQuality.htm

For curiosity's sake you can FFT the waveform and try to identify what the harmonics are.

Best Wishes,

 Saturation
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf