EEVblog Electronics Community Forum

Electronics => Beginners => Topic started by: wobbly on September 30, 2022, 07:41:07 pm

Title: Need some guidance about simply measuring signal levels in decibels
Post by: wobbly on September 30, 2022, 07:41:07 pm
I've been watching a few videos about how to use the decibel system for evaluating signal levels.
Notably EEVBlog #49 and several from Alan Wolke's great channel (https://www.youtube.com/user/w2aew/videos (https://www.youtube.com/user/w2aew/videos)).

These tutorials made me want to try this for real with some actual signals.

I have access to some test gear:

Here's what I'd like to do (in fact I've already tried but I didn't understand my results)...


My thinking was thus:  If I set the spectrum analyser to use dBmV (1 mV reference) units, and give it a signal from the sig-gen of 1 mV, then I should see a spike on the display which matches the attenuation on the Marconi.

But that's not what I see.  I have the Marconi attenuator set to 30 dB, but the spectrum analyser tells me that the peak is at -40 dBmV.
So to my mind there is a discrepancy of 10 dB between the sig-gen and the spectrum analyser.  I must be missing something of course.

When I change the attenuation on the Marconi, the spectrum analyser's measurement changes linearly.
In other words the measured signal is always 10 less than the attenuation...


So where is this 10 dB difference coming from?  I'm using relatively short coax cables and proper coax connectors (N-Type, BNC, SMA with 50 Ohm adapters throughout).  None of this is hacked together.

What am I doing wrong or misunderstanding?

Thank you for reading, and your time.   :-+
Title: Re: Need some guidance about simply measuring signal levels in decibels
Post by: Benta on September 30, 2022, 08:03:09 pm
A 0 dBmV level is a voltage of 1 mVRMS. But you're operating with 1 mVPP, which is something else. Get that right first.

Title: Re: Need some guidance about simply measuring signal levels in decibels
Post by: fourfathom on September 30, 2022, 08:07:40 pm
Set your sig gen to 1mV RMS. This will be 2.828 mV p-p. This is almost a 10dB difference (3.16 is roughly 10dB.)

 
Title: Re: Need some guidance about simply measuring signal levels in decibels
Post by: wobbly on September 30, 2022, 08:48:33 pm
Okay, that's better.  I'm getting a difference of 1.3 dB now.  I reckon that's reasonable since the sig-gen is slammed against its lower limit.

Am I right in thinking that I have to multiply the 1 Vpp by 2*root(2) because it's a voltage measurement, rather than a power measurement?

Thank you both for your help.
Title: Re: Need some guidance about simply measuring signal levels in decibels
Post by: RoGeorge on September 30, 2022, 10:00:18 pm
multiply the 1 Vpp by 2*root(2) because it's a voltage measurement, rather than a power measurement?

That is because of Vpp to VRMS conversion.  Here is how pp and RMS values are related in a sinusoidal waveform no matter what that sinusoidal waveform represents.  Can be for example the force in a spring oscilator, and the RMS and peak-peak values will have the same conversion ratio if it a sinusoid.

Other waveforms have other conversion ratios, and that's the catch with the so called True RMS multimeters.  The cheap ones always asume a perfect sinus waveform and just multiply its Vpp to get the equivalent VRMS, while the TrueRMS instruments properly measure the true RMS.

Random search result from  https://testguy.net/content/%20270-Peak-vs-Average-vs-RMS-Voltage (https://testguy.net/content/%20270-Peak-vs-Average-vs-RMS-Voltage):
(https://www.eevblog.com/forum/beginners/need-some-guidance-about-simply-measuring-signal-levels-in-decibels/?action=dlattach;attach=1603339;image)

VPK is often called the amplitude of an oscillation, in formulas wrote usually as A (and that A is not about Amps), e.g. v=A*sin(2*pi*f*t)
Title: Re: Need some guidance about simply measuring signal levels in decibels
Post by: TimFox on September 30, 2022, 11:07:55 pm
For a sinusoidal waveform, VRMS = (Vpk-pk)/(2x21/2) = (Vpk-pk)/(81/2) = (Vpk-pk)/(2.828).
You divide by 2.828 to decrease the pk-pk value to RMS, not multiply.
As discussed above, a "True RMS" meter measures the actual RMS value of the waveform, which is different for sine waves, square waves, DC, random noise, etc.
Other meters measure the "average value", which is actually the mean absolute value, and apply a conversion factor to RMS that is only valid for sine waves.
Title: Re: Need some guidance about simply measuring signal levels in decibels
Post by: wobbly on October 01, 2022, 12:08:01 am
So I should have been using 1 mV RMS instead of 1 mV pk-pk.

1 mV RMS
= 2.828 mV pk-pk
= +1.414 mV to -1.414 mV amplitude

Is "peak-to-peak" actually a useful term in this context?  Is it better to use amplitude instead (as shown in the picture RoGeorge posted as "a" and "-a")?
I think I'm getting confused by the numerous ways one can measure a sine wave.  My sig-gen gives "Amplitude" in units of "mVpp", so I have to remember to halve that.

Ok, I think I get it now.