Author Topic: Oscilloscope and mains, again  (Read 1537 times)

0 Members and 1 Guest are viewing this topic.

Offline Quaxo76Topic starter

  • Newbie
  • Posts: 4
  • Country: it
Oscilloscope and mains, again
« on: February 26, 2023, 10:58:06 pm »
Hello, Please bear with me with this newbie question... I've searched around and I'm still unsure.
I've recently bought my first oscilloscope (a mains-powered Rigol DS1202Z-E). I'm not totally inexperienced with electricity and electronics, but an oscilloscope is a whole new beast for me.
So, I wanted to see - like so many before me - the shape of my mains line's waveform. I don't need a precise reading, I just want to see the shape of the wave, to learn about noise, peaks, and to see what happens when my solar panels and/or batteries kick in.
From reading around here, I know that it's unwise to test the live wire directly (risk of electric shock, damage to the equipment in case there's a peak, and risk of ground-loop if I also connect the clip to neutral).
I also realize that testing with two channels between live and neutral with A-B doesn't solve the problems about shock and damage risks.
So I tried testing the otuput of a 220V->12V transformer. But I got a weird waveform, with flattned tops and bottoms, and weird angles. I've found out that it's probably the transformer core saturating.

So I'm wondering, what if I connect two resistors in series (say 10MOhm and 500KOhm) across live and neutral, and then measure across the neutral and the node between the resistors (without using the clip of course, to avoid the ground loop)?
I would think that the high total resistance would prevent dangerous currents flowing in the resistors, and the voltage reading across the smaller resistor should be quite safe for the instrument. Of course I would have to be careful to keep the 220V part well insulated. Would the waveform reading be influenced by the resistors?
The only risk would be if I inadvertently insert the plug the other way around (plugs aren't polarized here in Italy): in this case the oscilloscope would still see a low voltage across the small resistor, but there would be a shock risk, right?
Another thing I could do, is to connect the two resistors not across live and neutral, but across live and ground. This way, if I plug it incorrectly, one end would still be connected to ground, and the other would be connected to neutral instead of live. So I would see nothing on the scope, but it wouldn't be dangerous. Can I read a good wave between live and ground? I'm not sure where, in the building, the neutral is shorted to ground...

Thank you and I apologize in advance for any gross misunderstanding I may have here, but as I said this is a new field for me...

Cristian
 

Offline nightfire

  • Frequent Contributor
  • **
  • Posts: 587
  • Country: de
Re: Oscilloscope and mains, again
« Reply #1 on: February 26, 2023, 11:10:56 pm »
If youi want to poke around circuits that are connected to mains, the canonical thing would be to use a differential probe- a good entry point to this is probably the micsig DP10007 that sells for around 200 €.
 

Offline Quaxo76Topic starter

  • Newbie
  • Posts: 4
  • Country: it
Re: Oscilloscope and mains, again
« Reply #2 on: February 26, 2023, 11:16:23 pm »
Yes, sorry, forgot to mention that I have read about high-voltage differential probes. Sadly at the moment they're out of my budget, as I've spent all my "hobby money" on the scope itself.
And I can't justify a rather major investment on such a tool, just to have a look at a wave and then forget about it...
Thanks for your reply BTW

Cristian
 

Offline TimFox

  • Super Contributor
  • ***
  • Posts: 8423
  • Country: us
  • Retired, now restoring antique test equipment
Re: Oscilloscope and mains, again
« Reply #3 on: February 26, 2023, 11:33:52 pm »
Without a differential probe, a safe method (assuming you wire it safely) would be to start with a voltage divider using high-power resistors, say 60,000 ohms (1 W for 120 V, 5W for 240 V, substantially derated) and 600 ohms to form a resistive divider with 600 ohms output impedance, then couple that through an audio transformer that can handle a few volts across the 600 ohm windings (and with enough voltage rating for primary-secondary insulation--most important).
For good safety, make sure that the low end of that divider (bottom of the 600 ohm resistor) is close to PE/ground of your power line (verify with an AC voltmeter before connecting the transformer).
Normal low-current power transformers (including those in wall warts) do not have sufficient iron to avoid saturation with full line voltage across the primary, since it's not needed for their normal application.
You might be able to use directly a line-to-low voltage ("filament") transformer where the rated primary voltage is at least twice your line voltage.
« Last Edit: February 26, 2023, 11:35:36 pm by TimFox »
 

Offline shapirus

  • Super Contributor
  • ***
  • Posts: 1625
  • Country: ua
Re: Oscilloscope and mains, again
« Reply #4 on: February 27, 2023, 12:10:33 am »
There are 100:1 probes, appropriately rated in terms of insulation strength, which can be used directly.

Assuming that the scope is connected to the wall outlet with a 3-wire power cable and the earth connection in the outlet exists and is wired as it is supposed to be, you need to remove the ground lead, the one with the clip, from the probe and then probe the mains wires with the probe's tip. One wire is line, another is neutral, so you will see the waveform on one of them. The scope will show you the signal that it samples across mains earth (connected with scope ground) and the mains wire you touch with the probe, coming into the scope input via a 100M resistance.

Use one hand, keep the other in the pocket. Use rubber gloves if you have any doubt concerning the quality of your probe. Do not remove the removable hook attachment from the probe, since it will expose the ground connection close to the central pin which you want to avoid having close to the mains line.

I cannot see how this approach is less safe than using a differential probe. Both are as safe as the insulation strength on both probes provides. The differential probe only prevents damaging the scope, but it still needs to be properly insulated and of good quality without any exposed metal parts.

Correct me if I am wrong.
« Last Edit: February 27, 2023, 12:12:27 am by shapirus »
 

Offline TimFox

  • Super Contributor
  • ***
  • Posts: 8423
  • Country: us
  • Retired, now restoring antique test equipment
Re: Oscilloscope and mains, again
« Reply #5 on: February 27, 2023, 12:36:17 am »
@ shapirus:
Done exactly as you say would be safe, but the resulting display may not be accurate.
The actual power waveform you want is between Line and Neutral, and there may well be an unclean waveform of a few volts between Neutral and PE/Ground.
Your setup would show the waveform between Line and PE/Ground.
 

Offline srb1954

  • Super Contributor
  • ***
  • Posts: 1111
  • Country: nz
  • Retired Electronics Design Engineer
Re: Oscilloscope and mains, again
« Reply #6 on: February 27, 2023, 01:15:45 am »
So I tried testing the otuput of a 220V->12V transformer. But I got a weird waveform, with flattned tops and bottoms, and weird angles. I've found out that it's probably the transformer core saturating.
That "weird" waveform with flattened tops may actually be the true representation of your mains supply waveform. Rarely does a mains waveform look like a nice clean sine wave.

Many electronic devices have capacitive input filters and only draw current from the mains at, or near, the peak voltage of the waveform. The peak current drawn at these times can be quite high and this, together with the inherent impedance of the mains system, causes a droop from the true sine shape and hence the apparent flattened tops on the waveform.

If your 220V->12V transformer transformer is properly designed it shouldn't be saturating significantly on a normal mains supply. Just make sure it isn't a 60Hz rated transformer; these don't work so well on a 50Hz supply
 

Online tautech

  • Super Contributor
  • ***
  • Posts: 29417
  • Country: nz
  • Taupaki Technologies Ltd. Siglent Distributor NZ.
    • Taupaki Technologies Ltd.
Re: Oscilloscope and mains, again
« Reply #7 on: February 27, 2023, 11:00:16 am »
So I tried testing the otuput of a 220V->12V transformer. But I got a weird waveform, with flattned tops and bottoms, and weird angles. I've found out that it's probably the transformer core saturating.
That "weird" waveform with flattened tops may actually be the true representation of your mains supply waveform. Rarely does a mains waveform look like a nice clean sine wave.

Many electronic devices have capacitive input filters and only draw current from the mains at, or near, the peak voltage of the waveform. The peak current drawn at these times can be quite high and this, together with the inherent impedance of the mains system, causes a droop from the true sine shape and hence the apparent flattened tops on the waveform.

If your 220V->12V transformer transformer is properly designed it shouldn't be saturating significantly on a normal mains supply. Just make sure it isn't a 60Hz rated transformer; these don't work so well on a 50Hz supply
Yup, all this ^^^  :-+

As the OP has a modern DSO one of the first things they should do before fucking with mains voltages is learn how to capture a screenshot and upload it as an attachment so we can see the waveform and the settings used to capture it.
Avid Rabid Hobbyist.
Some stuff seen @ Siglent HQ cannot be shared.
 

Offline shapirus

  • Super Contributor
  • ***
  • Posts: 1625
  • Country: ua
Re: Oscilloscope and mains, again
« Reply #8 on: February 27, 2023, 11:23:55 am »
Your setup would show the waveform between Line and PE/Ground.
Right, and there can be quite a bit of garbage between them. This can be worked around by capturing the PE-Neutral signal on the second channel and setting scope to show Ch1-Ch2 (aka poor man's differential probe).
 

Offline TomKatt

  • Frequent Contributor
  • **
  • Posts: 529
  • Country: us
Re: Oscilloscope and mains, again
« Reply #9 on: February 27, 2023, 11:52:54 am »
Isn't Italy 220v?  That would explain why there's no polarization - both legs are "hot" compared to earth.  There is no 'neutral' side on 220, unlike the 120v in the US, where the neutral is bonded to earth at the breaker box, creating a 'hot' side and a neutral side.

Although differential probes are basically just fancy voltage dividers, I'm not sure I would trust a few DIY resistors in probing 220v mains...

I think the biggest danger in probing mains power is people connecting their ground lead to the wrong spot, which can result in a direct short through the scope.

That "weird" waveform with flattened tops may actually be the true representation of your mains supply waveform. Rarely does a mains waveform look like a nice clean sine wave.
Indeed - there are many mains monitoring circuits that are nothing more than a basic isolated step-down transformer.  I believe the utility companies monitor the mains in a similar fashion.

« Last Edit: February 27, 2023, 11:55:13 am by TomKatt »
Several Species of Small Furry Animals Gathered Together in a Cave and Grooving with a PICt
 

Online Ice-Tea

  • Super Contributor
  • ***
  • Posts: 3173
  • Country: be
    • Freelance Hardware Engineer
Re: Oscilloscope and mains, again
« Reply #10 on: February 27, 2023, 11:58:49 am »
**snip**
(without using the clip of course, to avoid the ground loop)?
**snip**

Ask yourself this question: if you're not attaching the gnd clip, what are you measuring exactly?

In case you're interested in some advise:
- for as long as you're asking questions like these (by your own admission "newbie" questions): stay away from mains. And stay away from mains some more after you consider yourself to be out the newbie zone to in order to avoid an entry in the Darwin Arwards (Dunning Kruger section)
- if you plan to go ahead anyways: at least get a differential probe. If that's out of your budget: reconsider. From cheap, newbie and safe you can have two. Not three.
 

Online Ice-Tea

  • Super Contributor
  • ***
  • Posts: 3173
  • Country: be
    • Freelance Hardware Engineer
Re: Oscilloscope and mains, again
« Reply #11 on: February 27, 2023, 12:03:23 pm »
@ shapirus:
Done exactly as you say would be safe...

You have checked that 100M resistor datasheet, then? Or how it is set up? You have checked the cables? The probe cables?
 

Offline shapirus

  • Super Contributor
  • ***
  • Posts: 1625
  • Country: ua
Re: Oscilloscope and mains, again
« Reply #12 on: February 27, 2023, 12:12:09 pm »
Isn't Italy 220v?  That would explain why there's no polarization - both legs are "hot" compared to earth.  There is no 'neutral' side on 220, unlike the 120v in the US, where the neutral is bonded to earth at the breaker box, creating a 'hot' side and a neutral side.
Unless Italy standards are very special, one of the wires is Neutral, another is Line, of which only the latter is "hot", that is, oscillating +/- 230*sqrt(2) V relative to Neutral and Earth, which are too connected together at a certan point.
 

Offline vk6zgo

  • Super Contributor
  • ***
  • Posts: 7700
  • Country: au
Re: Oscilloscope and mains, again
« Reply #13 on: February 27, 2023, 12:25:23 pm »
Isn't Italy 220v?  That would explain why there's no polarization - both legs are "hot" compared to earth.  There is no 'neutral' side on 220, unlike the 120v in the US, where the neutral is bonded to earth at the breaker box, creating a 'hot' side and a neutral side.

Although differential probes are basically just fancy voltage dividers, I'm not sure I would trust a few DIY resistors in probing 220v mains...

I think the biggest danger in probing mains power is people connecting their ground lead to the wrong spot, which can result in a direct short through the scope.

Nope! Italy still has a Neutral line which is connected to ground, although, I believe not always at the customer's house.(not sure of the latter point).

The 240v supply in North America is the "odd one out", where the two sides are fed from the two ends of a centre tapped transformer on the power pole, so you have two "hots", whilst the centre tap is "Neutral"------sorta! ;D

If 120v power points are fed from the same type of transformer, you could find that if you measure between the "hots" of two 120v power points you may see 240v.
 

Offline vk6zgo

  • Super Contributor
  • ***
  • Posts: 7700
  • Country: au
Re: Oscilloscope and mains, again
« Reply #14 on: February 27, 2023, 12:37:35 pm »
@ shapirus:
Done exactly as you say would be safe, but the resulting display may not be accurate.
The actual power waveform you want is between Line and Neutral, and there may well be an unclean waveform of a few volts between Neutral and PE/Ground.
Your setup would show the waveform between Line and PE/Ground.

In a lot of cases, such a test is "near enough".
I have definitely done this, & there is very little hazard involved.
The "proper" way to use this method, is to attach the probe to the point you mean to test, with the power plug pulled out of the outlet.
(In those systems that let you do this, also turn the outlet off.)

Step away from the connections, plug the power in, & switch on as necessary, observe the waveform, then switch off (if this is provided) & unplug the power lead.
 

Offline shapirus

  • Super Contributor
  • ***
  • Posts: 1625
  • Country: ua
Re: Oscilloscope and mains, again
« Reply #15 on: February 27, 2023, 01:44:42 pm »
In a lot of cases, such a test is "near enough".
Indeed.

Here's what I have just captured (using a battery-powered handheld scope).

1. Earth - Line (100:1 probe)




2. Neutral - Line (100:1 probe)




3. Earth - Neutral (notice the changed scale, 10:1 probe)

« Last Edit: February 27, 2023, 01:46:20 pm by shapirus »
 

Offline newbrain

  • Super Contributor
  • ***
  • Posts: 1768
  • Country: se
Re: Oscilloscope and mains, again
« Reply #16 on: February 27, 2023, 02:24:55 pm »
Isn't Italy 220v?  That would explain why there's no polarization - both legs are "hot" compared to earth.  There is no 'neutral' side on 220, unlike the 120v in the US, where the neutral is bonded to earth at the breaker box, creating a 'hot' side and a neutral side.
Unless Italy standards are very special, one of the wires is Neutral, another is Line, of which only the latter is "hot", that is, oscillating +/- 230*sqrt(2) V relative to Neutral and Earth, which are too connected together at a certan point.
Well, yes, while while what TomKatt says is false as a generalization, it is sometimes true - yes, Italy is "special" in that respect.

It depends on your area and the age of the infrastructure.

In Rome there are still many houses - including the four I've lived in, going back 50 years - where the distribution comes from an upgrade of the original 125 V single phase from a triphase to a 220 V one - so we went overnight (with ample forewarnings!) from 120 V neutral to phase to 220 V phase to phase, including a slight overvoltage to the distribution transformers (citation needed on this, TBH).
Before, the nominal 220 V was called "Industriale", and, as in the USA used for more demanding appliances.

OTOH, newer areas have always been 220 V, using the normal neutral-phase arrangement.

The sparky renovating my apartment about 10 years ago had just moved to Rome from the north, where this situation is far less common, and was quite puzzled he could not find the neutral (the fact that he found all wires coming to panel from the meter downstairs were yellow-green was also a nice touch  ::) - I don't know who the original criminal was).

So, in Italy NEVER assume there's a neutral. That is in any case a good rule to live by: a mains wire is always hot.

Dove Quaxo abiti ;)?
Regardless, cobbling together a nice oscillator or some other circuit to learn how to use a scope should come first - leave more dangerous endeavour for later.
At least watch our kind host's video on the topic.
« Last Edit: February 27, 2023, 02:36:17 pm by newbrain »
Nandemo wa shiranai wa yo, shitteru koto dake.
 
The following users thanked this post: MK14


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf