Desperately want to understand impedance.

Started by bassmannate, November 22, 2010, 09:53:22 PM

Previous topic - Next topic

bassmannate

So, I've read just about everything I can find on the internet about impedance and impedance matching. I've always had a very basic understanding of high impedance being a very weak, quiet signal (like coming from a guitar pickup) and low impedance being a very strong, loud signal (like coming out of an amp and into a speaker)

Then, I discovered you could make a preamp that lowered the impedance of the signal but was unity gain. I may be getting concepts terribly mixed up at this point as I generally associate high gain to increasing the volume of a signal and thus lowering the impedance.

Everyone here seems to understand (or at least pretend to understand) impedance but I've been trying to understand it since high school. Help!

R.G.

Quote from: bassmannate on November 22, 2010, 09:53:22 PM
So, I've read just about everything I can find on the internet about impedance and impedance matching. I've always had a very basic understanding of high impedance being a very weak, quiet signal (like coming from a guitar pickup) and low impedance being a very strong, loud signal (like coming out of an amp and into a speaker)
You're fighting some misconceptions. Impedance has nothing to do with strong or weak signals.

Impedance is the generalized AC version of resistance. Resistors have nothing to do with how big the signals through them are. All they do is *resist* current flow. Impedances *impede* current flow, and it's a more general, AC kind of thing than resistance.

One of the really fundamental, awe-striking things you pick up in EE classes is the so-called Thevenin model for voltage sources, named after the man.

Every possible voltage/signal source can be modeled as a perfect voltage source, able to provide its rated voltage into any load, no matter how much current the load needs. If you had a perfect voltage source of, say, 9V, you could put a solid copper bar a foot thick across it, and the voltage would still be 9V. It would not drop at all.

The impedance of a theoretical perfect voltage source is zero. But if we put a resistor in series with that perfect voltage source, we make it into a closer version of a real one. Thevenin's theorm is that all voltage sources can be modeled as a perfect voltage source in series with some impedance (think resistance).  Eight AA cells in series makes a 12V battery. So does a car battery. But the internal impedance (think "resistance") of the AA batteries is much larger than the car battery, so it can't put out as much current. If we imagine that eight AA batteries had an internal impedance of 10 ohms (I'm making up the numbers) then no matter how we tried, we could not get more than 12V/10 ohms = 1.2A out of them. The car battery probably has an internal impedance of maybe 10 MILLI-ohms. So it would happily put out 1200 Amperes into a dead short.

The Thevenin model for a car battery and for the eight AA cells is the same - a 12V voltage source with a resistor in series. The resistor just has a different value for the AA cells than for the car battery. The car battery has a much lower impedance.

How we doing so far? Questions? There is more.

R.G.

In response to the questions in the forum - PCB Layout for Musical Effects is available from The Book Patch. Search "PCB Layout" and it ought to appear.

G. Hoffman

So, to relate R.G.'s (really good) response back to those guitar pickups - a piezo pickup has a very high impedance, so it can only supply a limited amount of current before the voltage starts to drop.  (Ohm's law here; voltage = current X impedance;  if you can't draw the current you need from the pickup, your voltage drops, and all an audio signal really is, is an AC voltage.) 

What your buffer preamp does, then, is keep the voltage the same at the output as the input without drawing more current than your pickup can provide, but it gives you more available current at the output.  More current can drive a lower input impedance without a voltage drop.  And since your guitar cable has an impedance itself, more current can drive longer cable runs, etc.

The big difference between impedance and resistance is that impedance is frequency dependent, where resistance (be a DC phenomena) doesn't have a frequency component at all.  Or, I guess, you might better think of it as; resistance is impedance at 0Hz.

By the way, R.G., that was a better explanation of that than I've seen before.  You should write a basic electronics theory book.  I'd buy it.


Gabriel

PRR

> Everyone here seems to understand (or at least pretend to understand) impedance

Few really do.

That is because few have mastered basic DC circuits.

Even as simple as a battery and a lamp.

Take my truck tail-light: 12v 1.2 Amp.

Do you see that this is 10 ohms?

Take R.G.'s handful of cheap AA-cells with 12V unloaded voltage and 10 ohms internal resistance.

What is the voltage across the lamp?

Take his car battery, 12V 0.001 ohms internal resistance.

What is the voltage across the lamp?

Some folks can solve this very simple problem, but can't get beyond it. If a guitar is 1 volts unloaded and 50K resistance, what is the signal level when loaded with 500K? With 50K? With 5K?

Sometimes we want Power and sometimes we may simplify and only look at voltage. Figure the load Power, Voltage, and Current for 100V 10 ohm source with 100 ohm, 10 ohm, and 1 ohm loads. Which has the most Power, Voltage, Current?


> a preamp that lowered the impedance of the signal

NO. That may be a stage-useful understanding but is NOT what happens.

This preamp is an ACTIVE device. It has a "sense" input" which takes very little current (high impedance). It has a Power input, R.G.'s pile of AA cells with 10 ohms. It has a do-hicky which passes a variable amount of boring power from the 10 ohm power source according to what it feels on its "sense" input, and makes that available to its output. Assume the dohicky can show 1 Meg impedance at its sense input and pass the 10 ohm battery to an output. It may be unity voltage gain but the output current and power can be much higher than what it absorbs at it input.


> of high impedance being a very weak, quiet signal.... and low impedance being a very strong, loud signal

Ah, I had not formulated the reason this APPEARS true in common experience.

For reasons I won't type tonight, our everyday electric toys have a W_I_D_E range of Power, a relatively narrow range of voltage, but a huge range of current.

Power levels range from 0.000,000,02 Watts to over 100 Watts, a 1:20,000,000,000 range.

We like to keep voltage-things above 0.1V but under 100V, a 1:1,000 range.

If everything would be the same resistance/impedance, then 1:1,000 of voltage only allows 1:1,000,000 range of power.

Rather than let voltage get out of hand, we lever current over a 0.000,000,1 to 10A range. So when faced with smaller power at smaller voltages, we favor much smaller currents; when working with power which suggests high voltage we instead look at higher currents.

Which is not the whole story. The lowest-voltage common audio source today is the dynamic mike, typically 150 ohm impedance, which is the same as a 100 Watt 120V lamp. And in fact for the same reason: the economics of long copper wire favor impedances around a hundred.
  • SUPPORTER

bassmannate

Thanks! This all makes a bit more sense now! Everything I read doesn't really mention current and I guess I just didn't think of it even though I know it's there! I'm pretty good when it comes to calculating voltage/current/resistance in dc circuits because we covered them a decent amount in high school physics. When it comes to ac circuits, it's a whole different ball game.

But it makes sense when you put impedance/current as the focus of understanding impedance vs impedance/voltage.

One more question. Why is it that some circuits you can set the input impedance by putting a resistor across the signal input and ground? How does that work?

petemoore

  Water pump with hose on it analogy, what the hose dumps into or if it's almost sealed at the far end:
  Big pump and a firm hose with no leaks, at the far end it's nearly sealed off, only a tiny bit of current is let through = the pressure rising and falling a clear waveshape of +/- pressures '~' identical to the pump end of the hose.
  Teeny pump, a floppy hose with leaks which drain off to ground, by the time the wave-pulse gets to the far end of the hose [after all the leaks], there's not much wave left, and the finer bits of shape [high frequencies] are really misshapen when compared to the pump end of the hose.
Convention creates following, following creates convention.

ashcat_lt

#6
Quote from: bassmannate on November 23, 2010, 08:16:26 AM
One more question. Why is it that some circuits you can set the input impedance by putting a resistor across the signal input and ground? How does that work?
The "sense input" on something like an opamp has an extremely high impedance - maybe hundreds of millions of ohms - which you can think of like a very large resistor to ground.  When you put some smaller resistor to ground before this, it's in parallel with the opamp input.  The math works out to where the opamp input, being so much larger than the resistor you've added, has very little impact on the total resistance, and can generally be ignored.  The real impedance will be some tiny bit less than the value of your resistor  - close enough for government work.

ashcat_lt

It occurs to me that in order to understand what I said above, it might help to realize that this is a circuit, like a circle or loop.  It's not just from the pickup to the input of the device, but from the pickup through the input of the device and back to the pickup.  To that end, it might help if we don't call it "ground" but rather "signal return".  As far as the pickup is concerned, it's circuit is closed at the sense input of the first active component, whether that's a transistor or opamp or whatever.

bassmannate

Quote from: ashcat_lt on November 23, 2010, 12:58:08 PM
It occurs to me that in order to understand what I said above, it might help to realize that this is a circuit, like a circle or loop.  It's not just from the pickup to the input of the device, but from the pickup through the input of the device and back to the pickup.  To that end, it might help if we don't call it "ground" but rather "signal return".  As far as the pickup is concerned, it's circuit is closed at the sense input of the first active component, whether that's a transistor or opamp or whatever.

But instead of putting a resistor to ground (back to the pickup) wouldn't we want all of the signal to go to the input of the opamp or do we place the resistor to keep too much signal from getting to the input? This is the part I have a hard time with is why do we let some signal (although, very small if it's something like 1meg-ohm) bleed to ground instead of putting it through the active device?

R.G.

Quote from: bassmannate on November 23, 2010, 01:17:10 PM
But instead of putting a resistor to ground (back to the pickup) wouldn't we want all of the signal to go to the input of the opamp or do we place the resistor to keep too much signal from getting to the input? This is the part I have a hard time with is why do we let some signal (although, very small if it's something like 1meg-ohm) bleed to ground instead of putting it through the active device?
This is where we get into the difference between resistance and impedance. 

First, ashcat is correct, the resistor can only REDUCE the impedance lower than the device that is being driven. You can always reduce the overall impedance which a driver/source "sees" as a load by adding more loading - more resistors in parallel with the thing being driven.

And that does lead directly to your question: if we want all the signal to go to the input, why load it down more?

It's because we want to force the DC level on the signal wire coming from the guitar to be at 0.000000000V, and we want to do that even in the face of disconnecting and reconnecting the effect by bypass switching. There is nearly always a capacitor at the input of an effect. This serves to block the DC from inside the effect from leaking out and causing pops and clicks when we switch the effect. (as an aside, capacitors have an infinitely high DC resistance, but their IMPEDANCE drops with frequency; difference between DC and AC impedances again)

But capacitors are not perfect, and they leak a little DC through them. Not much, but enough to cause clicks. We can drain this leakage to ground with a resistor, and that's what that 1M (typically) resistor is for - to drain the DC and keep clicks and pops from happening when we switch the signal into/out of the effect.

And your intuition is right - it is a step in the wrong direction, loading down the guitar. We have to make a compromise here, though, because we really don't want clicks. So we pick a resistor that's as big a value as possible to not load the guitar too much, but still drain away the capacitor leakage. This is, like so many things, a compromise.
R.G.

In response to the questions in the forum - PCB Layout for Musical Effects is available from The Book Patch. Search "PCB Layout" and it ought to appear.

bassmannate

Now it's all coming together! Thank you so much, everyone, for your patience!

ashcat_lt

I certainly don't understand this stuff as well as some of the other folks around here, but I do what I can, and at least know that "it's out there".  I know the limits of my knowledge and try not to overstep them.

One thing I think is worth mentioning now that the basic questions have been answered is that the Thevenin model mentioned above is actually not really a very good model of a passive guitar pickup.  To properly model a pickup you need the voltage source in series with a fairly large resistance and a hefty inductance, both of which are parallel to a relatively small capacitance.  Moving outward from there you generally have a couple of parallel resistances in the form of the V and T controls.  Then you've got to plug it into something, which introduces the generally negligible series resistance of the cable conductors and the considerable amount of parallel capacitance between the two.  Then you get to whatever components are at the front end of the first active device.  

All of this adds up to a system which impedes the higher frequencies quite a lot more than it does the lower.  Specifically, it creates low-pass filter which generally cuts off somewhere between 4K-8KHz.  (Personally, I don't call that treble, but rather high-mids)  There is generally a resonant peak right before the cutoff frequency.  The height of this peak is mostly determined by the overall resistance between hot and ground of the circuit to which the pickup is connected.  That is, the total resistance derived from the V and T in parallel with the input/pulldown resistor and whatever else.  

Many folks don't like the way it sounds when the amplitude of that peak gets too high.  I'd suggest that this might be at least part of the reason why we try to set that "input impedance" around 500K-1M.  It's all well and good to think that in theory we'd like to get everything we can out of a given circuit, but to a very large extent the things we tend to like about some of the more popular designs ("vintage" tube amps for example) are the ways in which they fail to perform their specific task in a theoretical ideal way.

PRR

#12
> Everything I read doesn't really mention current

It is awkward to measure current, especially at audio, and audio techs are lazy.

> and I guess I just didn't think of it

Then you have not fully ABSORBED resistances. R=V/I. V=I*R. I=V/R. All three are always true and often useful. Get in the habit of computing all three aspects.


Perfect resistance is the same at any frequency or voltage.

Impedance is resistance that isn't the same all the time.

Constantly changing impedance is a royal pain in the head.

IN AUDIO, we hope to either have "mild" impedance changes, OR/AND a situation where wild impedance swing does NOT matter.

We almost NEVER "match" audio impedances.

The convention is: "Low Z output, High Z input".

There WAS a convention (and a reason-why) pro-gear was 600 Ohms in and out. However as soon as tubes got cheap output impedances dropped toward 100 ohms and inputs became 2K to 20K. Today any "600" port is >100 out into >10K in.

Given 1 Volt from 100 ohms, what is the received voltage for 10K load? 0.990V. What if it were 100K? 0.9990V. How about five 10K loads? 0.952V. Note that the maximum variation from 100K to 2K is less than 5%, less than 0.5dB, and thus inaudible.

We do the SAME thing in house wiring. Small load, large load, lots of loads, same (near-enuff) wall voltage. The guide is 2% sag per section, 5% sag for the whole house. You have 120.0V with everything off, you should have 114V with EVERYthing on.

Same in household water supply. You have 50psi every tap closed, maybe 40psi with a few major taps open. Pipes cost more than wires and (unless you are taking a shower) pressure is not THAT critical, we accept some loss.

> wouldn't we want all of the signal to go to the input

Signal Voltage? Current? Power?

And why do we care how much signal we get? Gain is CHEAP. As long as what we get/take is a FAITHFUL sample, we can easily bump it up (within some limits).

If we are designing an Input, we may have no control of the signal we get, except by general convention. The best way to deal with that situation is to "sip" the source, then gain-up as needed.

Vacuum tube grids, at audio, need nearly "no" current and nearly "no" power. We may approximate a donkey triode grid as >200Meg||30pFd. Modern opamps are in this general range. (BJTs have more design concerns.)

We must put two "signals" into it. The audio, of course. But also the DC bias.

We may think of this as a "loudspeaker crossover". For frequencies 20Hz and up, the circuit should be through the audio source. For frequencies 20Hz and down (to DC) the circuit should be through the bias source.

Loudspeakers require BIG current, costly Power, so we do not waste. We use a coil to the woofer and a cap to the tweeter.

But grids need "no" power. And it turns out that high-impedance audio coils are not real possible, or at least not cheap. However since we need "no" power, we may use a simple large resistor to complete the DC circuit, and a capacitor to overwhelm the DC bias for inputs 20Hz and up.

There is a small leakage. Exact computation is dubious and leakage varies a lot. The tube-book simplifies this by telling us "1 Meg max grid circuit resistance". So put 1 Meg grid to bias.

Sidebar: it also happens that tube grid DC bias is often signal and power common, "ground". You can just connect a guitar to a grid, no other parts. Until you unplug: then the open grid and leakage forces the infinite impedance to large unknown voltages. In preamps, that's usually safe, until you plug-in again and force grid back to ground instantly: POP. So even if you have a grounded source with <1Meg DC resistance, you throw a Meg on there anyway.

What is the new impedance at the grid? Ignoring the 30pFd for now, we have 200Megs || 1Meg. 0.995Meg and we will call this "1Meg" cuz most audio is 10% at best. Say our source has some DC on it, not what we want for bias. We block it with a cap. How big a cap do we need to overwhelm 1Meg at 20Hz? About 0.01uFd.

Back to that 30pFd. What is its impedance? 265Meg at 20Hz, ignore that. 2.6Meg at 2KHz, which slightly matters next to the 1Meg we have. 265K at 20KHz, which does impose additional loading on the source.

So the working input impedance of a R-C coupled tube amplifier is infinite at DC, approaches 1Meg for 20Hz to 5KHz (MOST of the audio band), sagging to 200K by 20KHz and 2K at 2MHz.

In an Audio application, we need constant response 20Hz-20KHz, so we must absorb 1Meg-200K variation without any big sag. For 10% or 1dB sag, a 20K source will do. For -3dB sag we can get away with a 80K source. If the source is an opamp, so what? But often the source is a bunch of resistors doing audio things, or maybe a tube with large output impedance.

This way we have "mild" impedance changes AND a situation where this impedance swing does NOT matter.

Most audio "impedances", we pretend they are "constant resistance, sorta", and jiggle things so we DON'T have to know the messy details.

This usually leads to lo-Z out, hi-Z in.

Gitar amp inputs are significantly higher than pickup impedance. Speaker amp outputs are lower than speaker impedances. There are important exceptions: some fuzz have 68K input, tube guitar amps show 2X to 10X impedance to the speaker. The reason this works are beyond the reach of my typing fingers tonight; just don't be shocked by deliberate exceptions.

If we had a classic lossless Passive L-C filter which needed EXactly 75 ohm termination, we could use a 75 ohm resistor instead of the 1Meg resistor. But such situations are rare. There is usually another way to do it.

LONG signal lines echo like a sewer pipe. Short lines, the echo dies out too quick to matter. If you don't like echo in your long pipe, you stuff wool batting or foam in the ends, same as you do in your concrete cellar so the drums don't ring-on the next day. In wires we put a resistor on the end, and there is a "matching" value. The definition of "long" depends on frequency. For TV signals it may be a few feet. Audio signals hardly show trouble at thousands of feet. We never "match" cables 1 foot to 300 feet, and few of us work further.
  • SUPPORTER

WGTP

Agreed I understand it is there from studying speaker crossover networks, but I don't understand most of it.  I work at it in reverse sometimes.  For example the input impedance of a distortion circuit.  Messing with the CMOS stuff confused me a lot.  But to estimate the input impedance, I tried different value input caps until I got in the range that started rolling off the bass.  Then, focused on the smallest input cap that seemed to stop rolling off the bass, figuring that the frequency was around 160hz.  Then I calculated backwards to find the input impedance.  Not very accurate, probably making some of you cringe, but gets in the ball park.  You can do the same with treble roll off.  I guess it is the quasi-SWAG method.  Scientific Wild A** Guess.  ;)
Stomping Out Sparks & Flames

Kearns892

Quote from: G. Hoffman on November 22, 2010, 11:52:14 PM
By the way, R.G., that was a better explanation of that than I've seen before.  You should write a basic electronics theory book.  I'd buy it.
Gabriel

I second that. Starting to study Engineering, haven't taken an EE course yet. A book by R.G. would help make the connection between distant theory and something real that I understand qualitatively. 

yeeshkul


ayayay!

Yearghggggghghghghgh!  Blast you, 30 minute time out...!   :icon_evil:

Okay big long explanation gone and not typing it out again.  Google "reactance" and see if that helps.  That's the word that helped me understand impedance 12 years ago.  ashcat_lt was eluding to it above.  Re-read his post. 
The people who work for a living are now outnumbered by those who vote for a living.

bassmannate

Just making sure I have a good basic understanding of how impedance works and that I'm applying Ohm's Law correctly.

We want input impedance higher than the output of the previous circuit so that our current remains low and the voltage (signal amplitude) stays high. That way, we still have something to work with in terms of a wave form.

earthtonesaudio

Quote from: bassmannate on November 24, 2010, 03:55:28 PM
Just making sure I have a good basic understanding of how impedance works and that I'm applying Ohm's Law correctly.

We want input impedance higher than the output of the previous circuit so that our current remains low and the voltage (signal amplitude) stays high. That way, we still have something to work with in terms of a wave form.


If you want maximum VOLTAGE transfer then yes, source Z << load Z. 

However sometimes you want maximum POWER transfer (like power amp into speaker).  In that case you want source Z = load Z.

Rarely (but still good to know) you may want maximum CURRENT transfer: source Z >> load Z.

PRR

#19
> Okay big long explanation gone and not typing it out again.

NotePad(*). Type there, THEN click the forum Reply button, paste, post.

That avoids the forum's short attention span problem.

It lets you type in a full window, not a little box.

You can jump between editor and browser and pick-up fragments of forum posts easier (IMHO) than in the forum's Reply view.

You can SAVE your words to your own machine for safe-keeping, handy if the forum or the whole internet goes down. Or if you are drafting a book.



(*) NotePad is just the Windows freebie. Mac has TextEdit, similar but better, unix usually has a proper plain-text editor, you can get excellent plain-text editors (I like UltraEdit).

Be SURE your editor will copy/paste PLAIN ASCII. Pasting from MS Word usually leaves odd codes which mess with the forum's tiny brain, and using a PLAIN text tool is easier than arguing with Word.
  • SUPPORTER