Electronics project notes/Device voltage and impedance, audio and otherwise
Contents
- 1 Digital logic voltage levels
- 2 Audio
- 3 Theory: Impedance when connecting two things
- 4 Semi-sorted
Digital logic voltage levels
Note:
- VCC and Gnd tend to be correlated with BJT transistors and TLL logic
- (Vcc seems to have originally meant "the voltage common to all BJT collector pins", which is often just the positive voltage supply)
- VDD and VSS tend to refer to FET style ICs and boards ('source', 'drain')
- V+ and V- are more generic, seen e.g. on board power connectors
- ...but people use them fuzzily, and they may mean little more than "the higher and lower voltage that the power supply puts out"
- Also, while V-, Vss, and Gnd in many cases are
- what you'd call 0V and/or
- used as a voltage reference and/or
- the lowest voltage around in the circuit
- ...but there are even more footnotes to that one.
- I'm assuming 2-level logic here
- there are more-level logic out there, but most are specialized/niche [1]
- and that three-state logic that you get from tristating is understood as something distinct
Some voltage level systems
For visual overview, An image search like this may be the best answer or at least good indicator of the variation out there.
I prefer diagrams like this one: http://www.jsykora.info/2014/05/logic-voltage-levels/
...because these summarize and compare many more, and some related conventions, like the voltages in LVDS communication[2].
The ones you'll probably run into most (in home DIY context):
- 5V TTL: (Vcc is ideally between 4.75V and 5.25V)
- VOL: 0.4V
- VIL: 0.8V
- VIH: 2V
- VOH: 2.4V (can be slightly higher in some logic families(verify))
- VCC: 5V
A more intuitive view on that is:
- on inputs
- low is 0V to 0.8V
- high is 2V to 5V
- on outputs
- low is 0V to 0.4V
- high is 2.4V to 5V
The difference between input and output is mainly there so that you can tie such components together, and noise voltages lower than ~0.4V introduced between them won't bother anything.
- CMOS defines levels as a percentage of VCC, which can itself be 5, 3.3, 2.5, 1.8, 1.5, 1.2V. (there have also been higher-voltage CMOS systems but this is fairly rare now(verify))
- VOL: 10%
- VIL: 30%
- VIH: 50%
- VOH: 70%
Where you may want to controlling a 5V Led string from a 3.3V device,
you can control 5V TTL but not 5V CMOS, because 5V TLL is high above ~2.4V and 5V CMOS is high above 70%*Vcc = ~3.5V (all the highness happens above 3.3V so it'l never go high). For completeness:
- 3.3V CMOS means (OL=0.33V, IL=1V, IH=1.65V, OH=2.3V) and matches 5V TTL well enough
- 5V CMOS means (OL=0.5V, IL=1.5V, IH=2.5V, OH=3.5V)
- 5V TTL means (OL=0.4V, IL=0.8V, IH=2V, OH=2.4V)
- LVTTL: 0 to 3.3V. All threshold levels are identical to the above, and only the VOH to VCC region is smaller.
Note that the above means that 3.3 and 5V doesn't always imply the same thresholds unless you know the logic family.
Simple serial
- RS232
- space between +3..+15V, mark between -3V..-15V
- yes, you still see these, mostly on non-PC devices
- "TTL serial" is RS-232-style in communication,
- 0 and whatever the IC's Vcc is, usually 5V or 3.3V
- common on modern boards and ICs that do serial
Seeing a DE-9 connector, you probably want to use a multimeter to check that it is oldschool RS232, and not connect it directly to the latter. Doing so may work, but will also everntually burn out the 5V side.
- RS485
- RS422
See also:
Tristating
Audio
Analog audio voltage levels
...and impedances.
Many analog audio levels are not so well standardized, some have changed over time, some quietly. So assume each can be a factor of two off and can require a little knob twiddling at least.
phono
phono input (typically on RCA plugs - which are also used for the higher line level)
- order of a milliVolt, and seems to often be the not-yet-amplified output of phono cartridges
- There are two common types:
- Moving Magnet (MM) pickups give ~2.5mV,
- Moving Coil (MC) give ~0.2mV
- MC versus MM is one of those debates. Higher-end is usually MC, but quality also significantly depends on other factors.
- phono pre-amps will amplify this to (typically) consumer line level (and impedance)
- phono directly on line-level (or mic level) input as-is will be very too quiet (or if you manage to amplify it, very noisy)
- avoid connecting non-phono and in particular line-level outputs to phono inputs, it may be possible to blow the preamp
- impedance
- cartridge output: varies, order of 500 Ohm or lower (verify)
- phono amp imput: 47k Ohm
consumer microphone level
consumer microphone level (often on 3.5mm TS plugs)
- on the order of ~10mV signal output (verify)
- because that's the order of what ~1cm electret (with FET) will output, which is what most cheaper mics are based on
- note that the recording side will often put a DC voltage on that TS plug, required by electret mics's internal preamp
- computer sound cards mic inputs have
- a voltage bias for electret mics - as electrets are the typical mic you plug in
- internal amplication to get it to the same level as line level. (Relevant mainly in that plugging line level into mic in will distort. You could turn that off, but separate mic and line in is easier to explain to people)
- impedance
- mic output - high-impedance microphones are typically cheaper, e.g. the common electret mic is often 1-2kOhm but some 10kOhm+ (verify)
- PC mic in impedance: 1..10kohm (varied over time and with cards)
consumer line level
consumer line level (often stereo, often on RCA or 3.5mm TRS plugs)
- on the order of ~300mV (~310mV RMS, ~440mV peak, 0.9V peak-to-peak)
- also sometimes known as -10dBV (mostly in situations that also do +4dBu pro levels)
- but has varied somewhat over time.
- I've seen amplifiers with a sensitivity of 250mV, older ones with 150mV
- Some recent devices are moving to higher voltages - amps may choose to deal with up to 1V, or 2V in the case of DVD, Bluray(verify) (perhaps in imitation of pro line level?)
- when the the other end is not aware, you may need to attenuate the output, and/or keep the amplification low, to avoid distortion.
- impedance(verify)
Keep in mind this is not the same as headphone out.
Professional microphone level
professional microphone level (mono, often on XLR3 plugs)
- order of 10mV, but can vary because of varying microphones
- Can be ~1mV, can be ~200mV (in theory more but this is atypical)
- more varied designs, and possible amplification at the mic, means more variation with design and per use
- e.g. dynamic mics are lower, due to simpler design but this also makes them better for louder things
- ...so you will need that gain knob
- impedance:
- mic output: most are in the 50..200 Ohm range (and usually higher in that range), with some deviations (see more notes around here)
- mic preamp/mixer input: order of 1..2kOhm (impedance bridging setup to them)
Professional line level
professional line level (mono, often balanced and on 6.35mm TRS)
- is +4dBV, so ~1.2V typical. See notes anove.
- various input stage are designed with headroom, meaning they can deal with a bunch more
Instrument level
instrument level (mono)
- has no standard, though is generally in a predictable range, often being somewhere between pro mic and pro line level
- ...in part because it includes things like guitars (not amplified) and e.g. synths (amplified)
- instruments will typically be unbalanced, TS
- the 6.35mm inputs on mixers will often be balanced (TRS) because this makes sense to use for device interconnects when using these plugs.
- They may also accept unbalanced (TS) (will be marked with something like 'bal or unbal'), to allow for a few other things (see also #Plugs.27s_relation_to_balanced.2Funbalanced.2C_voltage_levels.2C_etc.)
- and such interfaces may have a switch between instrument and line - which seems to come down to that instrument may be padded (and for interfaces with combo inputs, this would probably apply only to the TRS and not to the XLR part)
- output impedance: (verify)
guitars are sort of their own story, a more specific variant of instrument level
- guitar pickup impedance is often quite high (see notes below on pickup impedance), and their levels may be fairly low
- so a direct box (a.k.a. DI) to make it XLR is a better and easy way to put it on a longer cable to a mixer
- guitar amps expect high impedance from a directly connected pickup (typically closeby)
- DI boxes tend to have a thru on the input side (which are two plugs wired together and typically entirely equivalent) so that you can both
- the DI (towards the mixer) accept that high-impedance guitar
- a stage-side amp (used as a monitor) accept that same high-impedance guitar
- ...and don't have to choose between the two
- a few guitar amps may have a built-in DI
- in general there can be good reasons to mic the cab instead of using an output (primarily the speaker's sound)
- DI boxes tend to have a thru on the input side (which are two plugs wired together and typically entirely equivalent) so that you can both
Other levels
Less standard / more varied:
- headphone level (on 3.5mm TRS)
- roughly commercial line level, but less of a standard, and can easily be a little higher.
- headphone amps tend to aim to drive at least a few milliAmps into a ~30-60Ohm headphone (verify)
- there are ~4Ohm headphones, but you really woudn't plug those into everything (likely to distort)
- there are 250Ohm-600Ohm headphones, but these need their own preamp (the idea is that you can design for slightly better THD with less load on the amp)
Car audio tends to be on the order of 2V, sometimes 4V (verify)
- (a headphone amp is sometimes a good cheat to connect consumer-level things to this)
consumer speaker wires
- not really about voltage - they will be proportional to the amplifier's/speaker/s ability and related to the imedance, but for a rough idea, for ~100W speakers you'll see up to a few dozen volts
- impedance
- speaker load is often around 8 or 4 Ohm (sometimes 2, sometimes 16)
- amplifier output impedance is typically very low, say 0.1 Ohm (this is also why the whole 'match your speaker impedance exactly to your amp impedance' thing is nonsense in a literal sense -- but with lower-impedance speakers you should limit how much you turn up the volume, because the maximum sensible power output happens earlier - and above that you get both distortion (THD increases with load) and risk of damage)
pro speaker wires
- not really a thing. Most speakers are connected by one of:
- XLR: carrying typical XLR line signals to active speakers
- Speakon-connected: already-amplified signal to a passive speaker
- 6.35mm TS: already-amplified signal to a passive speaker (Sometimes avoided, to avoid smoky mistakes on mixers)
- Note these cables are different from TS instrument cables, basically in that instrument cables use a thinner core-and-shield, while TS for speakers should be two beefier cores (and shielding is pretty irrelevant)
- Speakon carrying already-amplified signal to a passive speaker - somewhat preffered to the previous because it's a one-purpose plug
See also:
Plugs and practicality, on mixers and instruments
XLR3 is pro mic level, which is always balanced/differential, always mono.
- mono, because one signal requires a differential pair (and the third pin is shield, not ground)
- if you want to carry stereo over XLR, use two cables (depending on the devices you're interconnecting, this may be easier with two balanced 6.35mm TRS instead).
6.35 mm is two different things:
6.35mm TRS is pro line level
- (typically) balanced/differential ~1.2V mono, and mixes may mark this as "balanced".
- Tip and Ring is the pair, Sleeve is shield (not shared ground)
- (rarely, and recognizably) an insert Y lead to two TS plugs, to put an effect on a mixer insert socket
- (rarely) unbalanced stereo. This is an exception and will be noted.
- (typically) balanced/differential ~1.2V mono, and mixes may mark this as "balanced".
6.35mm TS is unbalanced, mono, often instruments and often called instrument level
- Effect pedals are typically unbalanced, instrument level
- Tip is signal, Sleeve is shield/ground
- unpowered instruments may have rather lower voltage levels - but still close enough to gain without much trouble
- powered instruments may be somewhere inbetween(verify)
Mixers tend to accept both TRS balanced and TS unbalanced, because it's not very hard to design them that way - and avoids some weird cases.
If they do both on the same socket they usually mark that (e.g. "bal/unbal")
Note that unbalanced inputs are not always isolated, so connecting unbalanced things (other than floating instuments) could create common mode issues.
What happens when you...
This article/section is a stub — probably a pile of half-sorted notes, is not well-checked so may have incorrect bits. (Feel free to ignore, or tell me) |
Edge cases
- TS mic to XLR:
- impedance difference - this is what a DI box is for
- TS instrument to XLR:
- a DI bix helps isolate
- Plugging line level output into instrument level input usually so much stronger that it distorts
- there is a very small (but non-zero) chance of some damage
- plugging TRS outputs into battery powered pedals is potentially harmful - to the output
- specifically when they are switched on by plugging it in
- they do this by actually using a TRS socket, and completing the power circuit by having the TS's sleeve short Ring to sleeve
- but when you use an actual TRS plug, it puts 9V between ring and sleeve.
- TRS consumer stereo into TS-only input will lose the right channel
- because it shorts ring (right) to ground (sleeve)
- TRS consumer stereo into TRS balanced - depends a little on the case
- usually sounds quiet and weird, because it presents left minus right as the signal
- TRS balanced into a unbalanced-only TS input
- shorts one of the pair to ground
- might work, might not?(verify)
- TS output (often instrument) into balanced-only TRS input
- the plug will short between sleeve and ring, i.e. tie one of the signal lines to shield.
- which on the 'cheaty' single-ended balanced driver design might be fine{{verify{{,
- on a halfway proper one can cause damage
- while particularly fancy ones may be protected against this case (but don't assume it)
- might introduce common mode from the mixer itself. (verify)
Plugging audio where it's not quite intended
Further edge cases, when considering more plugs
Things that won't work / things to avoid
dBV and dBu
Notes on balanced audio
Balanced in electrical terms
XLR and 6.25 TRS pinout
Some other terms you see
Guitar impedance
On pickup impedance
Things that aren't pure bridging
Other notes
On microphone impedance
This article/section is a stub — probably a pile of half-sorted notes, is not well-checked so may have incorrect bits. (Feel free to ignore, or tell me) |
On 600 Ohms, and impedance matching
DI
This article/section is a stub — probably a pile of half-sorted notes, is not well-checked so may have incorrect bits. (Feel free to ignore, or tell me) |
Direct box, DI box, DI unit, DI. (people argue over whether it stands for direct input, direct injection, direct induction, or direct interface).
Functionally
Takes a high-impedance, unbalanced signal (often pro line level TS), outputs a low-impedance pro-mic-level balanced signal (often pro mic level XLR).
The input is often specifically a high-impedance, passive instrument, e.g. electric guitars and electric bass(verify).
Bonus implications / other reasons DIs are used:
- XLR's lower impedance makes it easier to do a run a longer cable (or same distance with less noise) than you could with the cable type you typically connect on the DI's input side
- only partially true for passive DIs because all of the power comes from the instrument
- DIs make it easy to avoid connecting the TS-side ground
- which can help avoid ground loops you might have when you e.g. plug unbalanced TS directly into a mixer.
DI details
Passive versus active DI
Impedance-matching adapter / impedance-matching transformer / line matching transformer
Theory: Impedance when connecting two things
Output impedance is larger than the load's input impedance
Impedance matching
Impedance bridging
Impedance mismatches
Semi-sorted
On a circuit board schematics, and possibly its silkscreen, you see labels like:
- VCC - positive supply, BJT
- VEE - negative supply, BJT (may be Gnd)
- VDD - positive supply, FET
- VSS - negative supply, FET (may be Gnd)
See also https://en.wikipedia.org/wiki/IC_power-supply_pin
In more general use you might use
- V+ and V-
- VS for supply voltage
- Schematics often mention a rail's voltage, e.g. +12V
...though people have their habits