## The mess converting decibels to voltages in test instruments (dBm, dBW, W, dbV, V)

Complex conversions between decibels and physical quantity has always been a rich source of confusion. The reason is that dB(something) is actually a loaded word with hidden assumptions:

• dB always works on base-10
• dB is always a relative (dimensionless) POWER quantity, the convenience scaling factor is always 10. It does NOT make sense directly on non-power quantities.
• dB(something) is always with respect to a quantity (the something), and the reference quantity is often not written in full. Since there is an implicit reference, db(something) can be mapped to absolute quantities.

If you are a diverse multi-disciplinary techie like me (math, electronics, programming, computers), it’d frustrate the hell out of you when you talk to people who has been working exclusively on a narrow field for at least a decade and they have a table of commonly used numbers in their memorized: they act like you are supposed to know how to get the numbers in the dB-variant that they use, than explaining to you what the field-specific assumptions are (likely because they forgot about it).

I hope this post will clear up the confusion by working out an example in test instrumentation, most commonly in RF as well, converting dBm to Volts.

Before I start, I’ll clarify the most common form of beginner confusion in EE and physics: converting between dB and voltages:

This looks like a definition of decibel, except the scaling factor is 20 magically for Volts. It is correct (under very commonly used assumptions) as well. Most people take it as an equivalent definition of decibels, and throw away these important assumptions behind it:

• the reference is 1V,
• and the resistance* (common to the voltage of interest and the reference voltage) gets cancelled

and run into troubles when they venture into those dB-variants like dBm. Technically the above should be written as dBV, but I have seen very few people use the clearer term.

The decibel formula for voltage came from

where and , you get

The get cancelled out and you get

People moved the squaring out and lumped (multiplied) it with the scaling factor 10:

So the whole reason why it is instead of is simply because , and .

Now back to the business converting dBm to dBV or Volts.

First of all dBm is dB(mW), NOT dB(mV). The RF/telecom people are just too lazy to write out the most important part: the physical quantity expressly, because nearly all the time, it’s the power that matters to them.

However, I often need to connect a RF generator to a high bandwidth oscilloscope, so the very self-centered RF/telecom nomenclature start to become problematic when people of different fields need to talk to each other. Oscilloscope see everything in volts. RF sees everything in power, often in dB.

Then we get to the (mW) part, which means the reference quantity in the definition is 1mW, which is a physical quantity with dimensions. Then how are we going to convert it to Volts? You cannot jump to the shortcut formula I illustrated above with the 20 factor this time because the reference is in mW and your quantity is in Volts.

You’ll need to convert power to voltages. To do so, you’ll need to know voltages induced by power ‘dissipated’ through a ‘resistance’ across a component (load). The missing gap is that you will need to know the load ‘resistance’ before the conversion. With that, you can use , or rewritten as when it’s more convenient.

All RF-related test-instruments and bench function generators typically have a 50Ω output impedance, which means it also assumes a matching 50Ω as mathematically, it provides the maximum power transfer (sadly split evenly between the load and wasted at the instrument’s output impedance). For convenience, the amplitude you see in the instrument control panel refers to the amplitude you see at a 50Ω load, not what the instrument pumps out internally (that’s why you see 2Vpp when your function generator says 1Vpp if you hook it up to a low-end oscilloscope that serves 1MΩ by default).

Since we are dealing with continuous wave (not transient power), all amplitude quantities on RF test instruments are in RMS (power or voltage) unless otherwise specified. So the quantities we have for dBm is

when written in terms of voltages,

Instead of splitting it into 3 terms and immediately grouping the constants, I’d like to first convert dBm to dBW:

The linear quantity in dBm is artificially scaled 1000 times bigger than in dbW, to put it in a comfortable scale for us to work with smaller signals. Therefore dBm is always 30dB higher than dbW (the smaller the reference, the bigger the relative numbers look).

So back to the above in dBW, we subtract 30dB to get to dBW:

where

We can separate the load and put it on the left hand side

The right hand side is dBV, and you can think of the load as scaling the power up (inducing) the voltage-squared quantity (, or ).

is 16.9897dB, for most purposes I’ll just say the load lift the dBW by 17dB when turning it into dbV.

Having both together,

(This is how you should remember it, so you can replace the +17dB for 50Ω with
when you work on other applications, like 600Ω, 4Ω, 8Ω for audio.)

Basically:

-30dB to undo the mili- prefix (small reference value bloated the numbers)
+17dB to account for the load inducing the voltage by burning Watts

The end result (for the 50Ω case):

Then you can convert dBV to :

Phew! That’s a lot of steps to get to something this simple. So the moral of the story is that these assumptions cannot be ignored:

• The quantity is always power in dB, not voltages
• dB(mW) has a reference of 1mW. The smaller the reference, the bigger the numbers
• RMS voltages and power are used in RF
• 50Ω is the load required to convert from power to voltages

Keysight already has a derivation, but it’s just a bunch of equations. The missing gap I want to fill in this blog post is that people find this so confusing they’d rather believe a formula or a table pulled on the internet:  it doesn’t have to be this way after realizing that there’s a bunch of overlooked assumptions.

* Technically I should call it (load) impedance , as in RF, capacitive and inductive elements are nearly always involved, but I want to make it appealing to those with high school physics background.

1,071 total views

## Newark Electronics’ order fulfillment/invoicing/logistics is deeply broken

It has always been a weird experience dealing with Newark as their order has always come in ridiculously wastefully packed shipments, like ONE standard size jiffy bag FOR EACH pack of 5 resistors (I got like a dozen of jiffy bags after unpacking). It resulted in oversized boxes that could have been expensive to ship as it’s charged dimensional weights. Then they split shipments whenever and whatever way they feel like it without consulting me at all.

I had multiple deliveries of jiffy bags by UPS/Fedex that packs a feather each when Newark could have waited a little and consolidated them in one box/bag. I never complained because the shipping they charged me was as if everything were packed sanely in one shipment. I always wondered if they had deals with Fedex/UPS that will allow them to be this wasteful.

However, after my most recent order (early 2019), I had enough with Newark. Apparently over the years the operations management avoided addressing their messy web order, logistics, fulfilling and invoicing infrastructure and used the savings to cover the overhead losses. This time, they screwed up the invoicing so I got overcharged, and on an unrelated issue, randomly made pay one of their stupidity overheads for the first time.

When I called customer service, they initially said I shouldn’t be charged more for extra shipments caused by Newark breaking the order into a few installments. It’s not special order or back-order or even direct-ship order. It was a pack of zener diodes is from UK warehouse, which Newark stated it’s going to take longer but they won’t charge extra to ship. In fact, I was not charged extra shipping for the other two packs (also from their UK warehouse) that was EACH shipped separately through UPS. Stuff from UK warehouse was never charged extra shipping for my past orders either.

Nonetheless, once I pull up the credit card records showing I was charged $10.22 for shipping a$0.19 pack of zener diodes, the customer service representative changed stance and said that Newark charged me exactly what UPS scanned and charged them AFTER the item was shipped. Basically they are saying that you gave them a blank check for shipping if you ordered from Newark. This is where I decided to stop doing business with Newark. The distributor has all the weight and size data that customers have no access to. They are responsible for quoting how much shipping will cost (at least within ballpark) before we agree to order from them, so we know the actual costs for comparing it with a different distributor.

They also screwed up the web pricing for the Molex tool that I ordered. Everything I was told until I completed checkout said $50.15 (web-only pricing), but the invoice I received says$59 (normal pricing, which is higher than everybody else). They credited me the difference back, but I observed they cannot do it easily and not until the order has shipped, so I had to call back later. This means if you order from Newark, they can stealthily charge you full price when your web-order should have been charged web-only pricing, unless you catch them in the act.

My second last order with them was actually in a hurry, but 3 days is fine so I picked USPS Priority (which is guaranteed to be at most 3 days). The ordered ended up arriving more than a week later because they stealthily shipped with UPS Ground and charged me USPS Priority price because their system has a glitch that prevents them from using USPS. They didn’t put the information anywhere on their webpages (now they do after I called and complained) and nobody told me about that. Apparently they didn’t realize that despite Newark pays more to ship with UPS ground, I got my order slower than the cheaper USPS priority I asked and paid for.

Newark electronics’ system is deeply broken. After leaving them the worst feedback possible with their survey engine, the customer service followed-up with this:

Thank you for your feedback.  I apologize for the frustration which you have experienced with our company regarding your orders.  Please allow me to address the situations as they are listed.

1. The listed shipping at checkout is an estimation, and the final invoicing is lists the shipping charges based on the scanning of package by UPS with current rates.
2. Orders may be in separate packaging, as our warehouse is the size of several football fields and putting parts from different sides of the facility into the same box is not a workable solution.
3. Unless otherwise chosen as “ship complete” on the website by the customer, orders may be shipped in installments as product is available.  Backordered portions will be shipped separately.
4. In response to UPS shipping as opposed to USPS, the Postal Service’s software has a glitch that does not allow it to communicate with our system.  Updates are being installed and upgrades implemented to resolve this situation.

None of that admits their faults. They ‘addressed’ it by pointing fingers and citing illegitimate excuses, which I am the most upset about:

1. HOW are we supposed to know how much will it cost to ship something if your ‘estimation’ can be way-off and you are not responsible for even staying in the ballpark?
2. WHY are we supposed to pay for your logistic problems? The orders I received from Digikey/Mouser/Allied were packed nowhere nearly as wasteful. Yours can’t be the norm. Fix it!
3. WHEN did you tell me that I’ll be charged for the separate shipments for the installments you decided on your own? Until the order is shipped and I’m stuck with the charges!
4. WHO did you assign to tell me when you switched to a slower and more expensive shipper because of your software problem (that Mouser/Digikey was able to get around if it was USPS’s fault), and threw my plans off because my order arrived very late?

WTF Newark!

Newark’s operations are completely dysfunctional. I don’t think Newark even intended to bill me for shipping the tiny bag of zener diode separately. I was pissed because the customer service gave me the ‘policy’ bullshit because they don’t want to do the hard work getting to the bottom of it because Newark’s billing jungle is so daunting. I know it’s bullshit because if they could legitimately charge me extra for one separate shipment, they would have done it for the other two separate shipments, which could be much more.

At the end of the day, if I had not caught Newark shortchanging me, I would have paid more than Digikey/Mouser just to get the same parts shipped late. It’s not worth the hassle to get just \$10.22 back by spending hours on the phone digging through their accounting nightmare (their billing is kludgy: I got 5 invoices for 1 order, yet I received 4 shipments), but I chose to spend the time to blog about it so others won’t have to deal with this kind of structural incompetence across the board until Newark gets their act together.

I was worse off in every way ordering from Newark.

They make you pay more for less by not telling you the deviations from your original order that Newark introduced for their own convenience until the order has shipped and everything set in stone.

Newark didn’t get more money by making their customers worse off. The company paid a fair share of the unnecessary overheads too. To put it more bluntly: the entire infrastructure is falling apart and nobody gives a shit. I’ve seen more motivated people working at the post office.

613 total views