e02b042.pdf

(350 KB) Pobierz
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
MINI -PROJECT
Audio Level Check
for Line Input
for the PC sound card
Design by T. Giesberts
This simple control circuit allows the level of an external stereo audio
source to be adapted to the sensitivity of, for example, a sound card. In
addition, an LED indicates if any signal levels are present that can cause
the input to be overdriven.
uations. A PC sound card, for exam-
ple, is generally not provided with a
level control. In addition, the maxi-
mum allowable input voltage of such
a card is limited by the 5-V power
supply of the chipset. This limits the
input to signals of less than 1 to 1.5
V, before clipping occurs.
The drawbacks that are caused in
practice by such fixed input sensi-
tivities and limited output signal lev-
els can be mitigated by preceding
the relevant line input with the con-
trol circuit that is described here.
The signal levels of 2 V that modern
CD- or DVD-players often provide
can be reduced to an acceptable
maximum. On the other hand, the
output level of 200 mV that older
equipment typically source, can be
amplified, something that will
improve the signal to noise ratio.
The adjustment range of our cir-
cuit amounts to no less than ±20
dB, so every conceivable signal
adaptation should be possible. In
order to avoid being unpleasantly
surprised by excessive signal levels,
an LED indicator has been added
which will indicate immediately
when the output signal exceeds a
certain (adjustable) value. Because
the current consumption is a mere
Standardisation is a long way off in many
areas. This is certainly true for audio signal
levels — a phenomenon that many of you will
have encountered at one time or another, usu-
ally at the most inopportune moment. With
equipment such as cassette decks, tuners,
CD/DVD-players, one can never be quite sure
what signal level to expect. Any-
thing is possible from around 200
mV to 2 V, or so.
If you wish to connect a signal
source to an input that does not have
a good input level adjustment, then
this can easily lead to unpleasant sit-
42
Elektor Electronics
11/2002
855731509.446.png 855731509.457.png 855731509.468.png 855731509.479.png
MINI -PROJECT
few mA, the level adapter can sim-
ply be powered from a 9-V battery;
that makes it pleasantly universally
deployable.
and an adjustable amplifier stage.
There is a single indicator common
to both channels. In order to power
the opamps symmetrically from a 9-
V battery, a virtual ground point has
been created with voltage divider
R27/R28/C11. Figure 1 shows the
complete schematic.
The indicator will be described
later, we will first take a look at the
buffer and amplifier stage.
The function of the input buffers
IC1c and IC1b is to provide a con-
stant load for the attached signal
source. The values are such that the
input impedance is fixed at the well-
known standard value of 47 kΩ . The
opamps are connected as voltage fol-
lowers, while resistors R3 and R12
bias them to half of the power sup-
ply voltage. Because the circuit is powered
from an asymmetric power supply, a coupling
capacitor is present at the input. This capac-
itor is always charged by R1 and R10 to pre-
vent any unwanted sound effects when the
signal source is plugged in. The coupling
capacitor is followed by an additional protec-
tion network, guarding against high peak
voltages. This network consists of two diodes
and a resistor.
For practical reasons, an inverting topol-
ogy was purposely selected for the adjustable
amplifier stages IC1a and IC1d. By using the
inverting inputs, the load on the potential
divider for the virtual ground (R27/R28) is
smaller, allowing higher resistance values
and consequently a lower total current con-
sumption.
If, for the moment, we limit the description
to the left channel only, we can establish that
Control circuit
If the circuit were only required to
attenuate, then we could have made
it easy for ourselves and a simple
passive voltage divider would have
sufficed. But in this case we also
wanted to amplify and, in addition,
we would also like a tidy circuit in
which the input and output-imped-
ance are not affected by the position
of the potentiometers.
That is why we decided to go for a
relatively ‘mature’ design. Each
channel consists of an input buffer
P1.A
R4
4k7
R5
4k7
3
1
+9V
47k
2
lin.
P1
R6
D1
R7
1M
1N4148
9
C2
8
L
C1
IC1.C
R2
1k
10
6
47p
5
2
L
4
4
µ
7
63V
C3
R8
100
1
3
IC1.A
2
3
1
R1
R3
4 µ 7
63V
R9
D2
1N4148
+9V
+9V
R26
7
R19
+9V
1
IC2.B
6
S1
R21
47k
R27
R24
R23
5
C7
C8
BT1
2
IC2.A
220
µ
25V
4
3
47 µ
25V
C12
C9
C10
4
D5
9V
IC1
11
IC2
12
R25
D 6
220 µ
25V
100n
100n
R28
C11
3
2
11
5V6
0W4
13
100 µ
10V
P2
100k
IC2.D
10
R22
47k
1
R20
9
P1.B
14
R13
4k7
R14
4k7
IC2.C
6
4
+9V
8
47k
5
lin.
P2: 200mV... 1V(RMS)
R15
D3
R16
1M
1N4148
6
C5
7
R
C4
IC1.B
IC1 = TS924IN
IC2 = LM339
R11
1k
5
47p
13
C6
R
4 µ 7
63V
R17
100
14
IC1.D
12
R10
R12
4 µ 7
63V
R18
D4
1N4148
020189 - 11
Figure 1. The level adapter actually consists of two separate circuits: the adjustment section and an overdrive indicator.
11/2002
Elektor Electronics
43
855731509.001.png 855731509.012.png 855731509.023.png 855731509.034.png 855731509.045.png 855731509.055.png 855731509.066.png 855731509.077.png 855731509.088.png 855731509.099.png 855731509.110.png 855731509.121.png 855731509.132.png 855731509.143.png 855731509.154.png 855731509.165.png 855731509.176.png 855731509.187.png 855731509.198.png 855731509.209.png 855731509.220.png 855731509.231.png 855731509.242.png 855731509.253.png 855731509.264.png 855731509.275.png 855731509.286.png 855731509.297.png 855731509.308.png 855731509.319.png 855731509.330.png 855731509.341.png 855731509.352.png 855731509.363.png 855731509.374.png 855731509.385.png 855731509.396.png 855731509.407.png 855731509.418.png 855731509.429.png 855731509.436.png 855731509.437.png 855731509.438.png 855731509.439.png 855731509.440.png 855731509.441.png 855731509.442.png 855731509.443.png 855731509.444.png 855731509.445.png 855731509.447.png 855731509.448.png 855731509.449.png 855731509.450.png 855731509.451.png 855731509.452.png 855731509.453.png 855731509.454.png 855731509.455.png 855731509.456.png 855731509.458.png 855731509.459.png 855731509.460.png 855731509.461.png 855731509.462.png 855731509.463.png 855731509.464.png 855731509.465.png 855731509.466.png 855731509.467.png 855731509.469.png 855731509.470.png 855731509.471.png 855731509.472.png 855731509.473.png 855731509.474.png 855731509.475.png 855731509.476.png 855731509.477.png 855731509.478.png 855731509.480.png 855731509.481.png 855731509.482.png 855731509.483.png 855731509.484.png 855731509.485.png 855731509.486.png 855731509.487.png 855731509.488.png 855731509.489.png 855731509.002.png 855731509.003.png 855731509.004.png 855731509.005.png 855731509.006.png 855731509.007.png 855731509.008.png 855731509.009.png 855731509.010.png 855731509.011.png 855731509.013.png 855731509.014.png 855731509.015.png 855731509.016.png 855731509.017.png 855731509.018.png 855731509.019.png 855731509.020.png 855731509.021.png 855731509.022.png 855731509.024.png 855731509.025.png 855731509.026.png 855731509.027.png 855731509.028.png 855731509.029.png 855731509.030.png 855731509.031.png 855731509.032.png 855731509.033.png 855731509.035.png 855731509.036.png 855731509.037.png 855731509.038.png 855731509.039.png 855731509.040.png 855731509.041.png 855731509.042.png 855731509.043.png 855731509.044.png 855731509.046.png 855731509.047.png 855731509.048.png 855731509.049.png 855731509.050.png
 
MINI -PROJECT
the maximum amplification of IC1a is equal
to (R5+P1)/R4 and the minimum is equal to
R5/(P1+R4). Because of small losses else-
where, this results in an adjustment range
from 10.5 to 0.09, which pretty much corre-
sponds to ±20 dB.
Resistor R6 (R15) was added to prevent
potential instability of the amplifier as a result
of parasitic capacitance at the input of the
opamp in case the wiring to P1 is a little bit
long. Should the wiper of P1 be sporadically
intermittent, R7 (R16) ensures that there is
always negative feedback around the opamp
and the output will always be nicely at half
the power supply voltage. For stability rea-
sons, C2 (C5) limits the bandwidth to 60 kHz
at maximum amplification.
Another two components to complete the
list: R8 (R17) ensures that the amplifier will
be unconditionally stable even with a capac-
itive load at the output (because of long output
cables, for example). R9 (R18) makes sure
that the output electrolytic capacitor is
always charged to prevent loud noises when
the output load is plugged in.
It is worth mentioning that for IC1 we
deliberately selected a rail-to-rail opamp, so
that despite the low power supply voltage,
reasonably high input voltages are still pos-
sible. The maximum is nominally more than
3V RMS , while with a nearly exhausted bat-
tery 2 V RMS is still not a problem.
L
R
L
R
OUT1
OUT2
H3
C8
C7
R1
R10
R9
R18
020189-1
C4
C3
D3
D4
R11
R12
R8
C6
R21
C1
S1
R19
R7
R27
C2
D6
IC1
IC2
C11
C5
9V
C9
R6
R20
D1
D2
R4
R15
R23
R3
R14
R22
R2
C12
H1
C10
P1
P2
Figure 2. The dimensions of the PCB make an extremely compact construction of
the level adapter possible.
COMPONENTS LIST
C7 = 47µF 25V radial
C8,C12 = 220µF 25V radial
C9,C10 = 100nF
C11 = 100µF 10V radial
Resistors:
R1,R10 = 270k
Indicator
The overdrive indicator is built around quad
comparator IC2. This IC is used to build a
window comparator for each channel. The
window comparator compares the output
signal of the adjustable amplifier stage with
a variable reference. The outputs of IC2 are
of the open-collector type and can therefore
be simply connected together. If one of the
comparator input signals exceeds the refer-
ence voltage, adjusted with P2, LED D8 will
light up.
A few additional details regarding this cir-
cuit. The reference is set symmetrically
around half the power supply voltage with
the aid of R19, D5 and R20, so that both the
negative as well as the positive half of the
signal voltage is monitored. Because the
zener current is set to a really small value of
only 1 mA, the voltage drop across D5 is only
about 5.3 V. R21, R22, R23 and P2 are dimen-
sioned such that the reference voltage,
adjustable with P2, corresponds to signal
voltages from 200 mV to 1 V RMS .
As can be seen in the schematic, LED D6
(and series resistor R24) is connected in par-
allel with an electrolytic capacitor (C7). This
has been added to provide a certain amount of
R2,R6,R11,R15 = 1k
R3,R12 = 56k
Semiconductors:
D1-D4 = 1N4148
D5 = zener diode 5.6V, 0.4W
D6 = LED, red, high-efficiency
IC1 = TS924IN ST (Farnell)
IC2 = LM339
R4,R5,R13,R14 = 4k
7
R7,R16 = 1M
R8,R17,R26 = 100
R9,R18 = 100k
R19,R20 = 1k 8
R21,R22,R27,R28 = 47k
Miscellaneous:
S1 = rocker switch, 1 make contact,
for chassis mounting
BT1 = 9 V battery with holder
Two 3.5 mm stereo jack sockets,
chassis mount
PCB, order code 020189-1 (see
Readers Service page). PCB layout
file also available from Free
Downloads at
www.elektor-electronics.co.uk
R23 = 10k
R24 = 6k
8
R25 = 820
P1 = 47k
stereo potentiometer,
linear
P2 = 100 k mono potentiometer,
linear
Capacitors:
C1,C3,C4,C6 = 4µF7 63V radial
C2,C5 = 47pF
afterglow so that short duration sig-
nal peaks will become better visible.
R25 limits the maximum charging
current of C7 to a safe value for IC2.
Finally, R26 and C8 decouple the
power supply so that any potential
noise from the switching of the LED
has the least possible impact on the
amplifiers.
Construction
An extremely compact circuit board
has been designed for this circuit,
44
Elektor Electronics
11/2002
855731509.051.png 855731509.052.png 855731509.053.png 855731509.054.png 855731509.056.png 855731509.057.png 855731509.058.png 855731509.059.png 855731509.060.png 855731509.061.png 855731509.062.png 855731509.063.png 855731509.064.png 855731509.065.png 855731509.067.png 855731509.068.png 855731509.069.png 855731509.070.png 855731509.071.png 855731509.072.png 855731509.073.png 855731509.074.png 855731509.075.png 855731509.076.png 855731509.078.png 855731509.079.png 855731509.080.png 855731509.081.png 855731509.082.png 855731509.083.png 855731509.084.png 855731509.085.png 855731509.086.png 855731509.087.png 855731509.089.png 855731509.090.png 855731509.091.png 855731509.092.png 855731509.093.png 855731509.094.png 855731509.095.png 855731509.096.png 855731509.097.png 855731509.098.png 855731509.100.png 855731509.101.png 855731509.102.png 855731509.103.png 855731509.104.png 855731509.105.png 855731509.106.png 855731509.107.png 855731509.108.png 855731509.109.png 855731509.111.png 855731509.112.png 855731509.113.png 855731509.114.png 855731509.115.png 855731509.116.png 855731509.117.png 855731509.118.png 855731509.119.png 855731509.120.png 855731509.122.png 855731509.123.png 855731509.124.png 855731509.125.png 855731509.126.png 855731509.127.png 855731509.128.png 855731509.129.png 855731509.130.png 855731509.131.png 855731509.133.png 855731509.134.png 855731509.135.png 855731509.136.png 855731509.137.png 855731509.138.png 855731509.139.png 855731509.140.png 855731509.141.png 855731509.142.png 855731509.144.png 855731509.145.png 855731509.146.png 855731509.147.png 855731509.148.png 855731509.149.png 855731509.150.png 855731509.151.png 855731509.152.png 855731509.153.png 855731509.155.png 855731509.156.png 855731509.157.png 855731509.158.png 855731509.159.png 855731509.160.png 855731509.161.png 855731509.162.png 855731509.163.png 855731509.164.png 855731509.166.png 855731509.167.png 855731509.168.png 855731509.169.png 855731509.170.png 855731509.171.png 855731509.172.png 855731509.173.png 855731509.174.png 855731509.175.png 855731509.177.png 855731509.178.png 855731509.179.png 855731509.180.png 855731509.181.png 855731509.182.png 855731509.183.png 855731509.184.png 855731509.185.png 855731509.186.png 855731509.188.png 855731509.189.png 855731509.190.png 855731509.191.png 855731509.192.png 855731509.193.png 855731509.194.png 855731509.195.png 855731509.196.png 855731509.197.png 855731509.199.png 855731509.200.png 855731509.201.png 855731509.202.png 855731509.203.png 855731509.204.png 855731509.205.png 855731509.206.png 855731509.207.png 855731509.208.png 855731509.210.png 855731509.211.png 855731509.212.png 855731509.213.png 855731509.214.png 855731509.215.png 855731509.216.png 855731509.217.png 855731509.218.png 855731509.219.png 855731509.221.png 855731509.222.png 855731509.223.png 855731509.224.png 855731509.225.png 855731509.226.png 855731509.227.png 855731509.228.png 855731509.229.png 855731509.230.png 855731509.232.png 855731509.233.png 855731509.234.png 855731509.235.png 855731509.236.png 855731509.237.png 855731509.238.png 855731509.239.png 855731509.240.png 855731509.241.png 855731509.243.png 855731509.244.png 855731509.245.png 855731509.246.png 855731509.247.png 855731509.248.png 855731509.249.png 855731509.250.png 855731509.251.png 855731509.252.png 855731509.254.png 855731509.255.png 855731509.256.png 855731509.257.png 855731509.258.png 855731509.259.png 855731509.260.png 855731509.261.png 855731509.262.png 855731509.263.png 855731509.265.png 855731509.266.png 855731509.267.png 855731509.268.png 855731509.269.png 855731509.270.png 855731509.271.png 855731509.272.png 855731509.273.png 855731509.274.png 855731509.276.png 855731509.277.png 855731509.278.png 855731509.279.png 855731509.280.png 855731509.281.png 855731509.282.png 855731509.283.png 855731509.284.png 855731509.285.png 855731509.287.png 855731509.288.png 855731509.289.png 855731509.290.png 855731509.291.png 855731509.292.png 855731509.293.png 855731509.294.png 855731509.295.png 855731509.296.png 855731509.298.png 855731509.299.png 855731509.300.png 855731509.301.png 855731509.302.png 855731509.303.png 855731509.304.png 855731509.305.png 855731509.306.png 855731509.307.png 855731509.309.png 855731509.310.png 855731509.311.png 855731509.312.png 855731509.313.png 855731509.314.png 855731509.315.png 855731509.316.png 855731509.317.png 855731509.318.png 855731509.320.png 855731509.321.png 855731509.322.png 855731509.323.png 855731509.324.png 855731509.325.png 855731509.326.png 855731509.327.png 855731509.328.png 855731509.329.png 855731509.331.png 855731509.332.png 855731509.333.png 855731509.334.png 855731509.335.png 855731509.336.png 855731509.337.png 855731509.338.png 855731509.339.png 855731509.340.png 855731509.342.png 855731509.343.png 855731509.344.png 855731509.345.png 855731509.346.png 855731509.347.png 855731509.348.png 855731509.349.png 855731509.350.png 855731509.351.png 855731509.353.png 855731509.354.png 855731509.355.png 855731509.356.png 855731509.357.png 855731509.358.png 855731509.359.png 855731509.360.png 855731509.361.png 855731509.362.png 855731509.364.png 855731509.365.png 855731509.366.png 855731509.367.png 855731509.368.png 855731509.369.png 855731509.370.png 855731509.371.png 855731509.372.png 855731509.373.png 855731509.375.png 855731509.376.png 855731509.377.png 855731509.378.png 855731509.379.png 855731509.380.png 855731509.381.png 855731509.382.png 855731509.383.png 855731509.384.png 855731509.386.png 855731509.387.png 855731509.388.png 855731509.389.png 855731509.390.png 855731509.391.png 855731509.392.png 855731509.393.png 855731509.394.png 855731509.395.png 855731509.397.png 855731509.398.png 855731509.399.png 855731509.400.png 855731509.401.png 855731509.402.png 855731509.403.png 855731509.404.png 855731509.405.png 855731509.406.png 855731509.408.png 855731509.409.png 855731509.410.png 855731509.411.png 855731509.412.png 855731509.413.png 855731509.414.png 855731509.415.png 855731509.416.png 855731509.417.png 855731509.419.png 855731509.420.png 855731509.421.png 855731509.422.png 855731509.423.png 855731509.424.png 855731509.425.png 855731509.426.png 855731509.427.png 855731509.428.png 855731509.430.png 855731509.431.png 855731509.432.png
 
MINI -PROJECT
the layout and component overlay of
which is shown in Figure 2 . To
make sure that the adjustment and
indicator parts of the circuit don’t
‘bite’ each other, there is a deliberate
separation between the grounds of
both sub-circuits. The circuit board
is quite densely populated with
parts, so construction should not be
hurried.
The terminals for the inputs and
outputs are nicely grouped on one
side of the PCB, while on the oppo-
site side two SIL headers can be
found for the connections to P1 and
P2. These components have deliber-
ately not been fitted directly on the
PCB so that everyone can determine
for themselves what type of input
and output connectors (e.g. mini-
jack, cinch) and potentiometers to
use. In addition, this also affords
greater freedom in the selection of a
suitable enclosure.
The wiring between the input
and output connectors needs to be
done with shielded cable. Standard
hook-up wire can be used for the
potentiometers, but with the chan-
Some measurement results
an enclosure, both potentiometers can be pro-
vided with a scale to indicate the amplifica-
tion and indicator signal level respectively.
The enclosure is preferably made from
metal, because this minimises possible dis-
turbances from any potential external noise
sources. The metal of the enclosure needs to
be connected to ground of the circuit. For
example, a suitable enclosure is type
Box1590N1 from the company H.O.D. How-
ever, the space inside this enclosure is just a
little too small to fit the battery as well — in
this case the next larger size will have to be
used. For completeness’ sake, we will men-
tion that it was naturally the intention that D6
is mounted in such a way that it is visible
from the outside.
As already mentioned, the current con-
sumption of the circuit is so low (about 7 mA)
that a power supply consisting of a 9-V bat-
tery can suffice. However, if you will be using
the circuit in a more permanent application
than a mains adapter is certainly more appro-
priate. A good adapter with regulated output
is preferred. It is particularly important that
the no-load voltage of the adapter does not
exceed 12 V, because that is the maximum
operating voltage of IC1.
Input impedance
47 k
Input voltage max.
(THD = 0.1%)
3.2 V RMS
Output voltage max.
(THD = 0.1%)
3.1 V RMS
THD+N (B=80 kHz) 200 mV in, 20 mV out
0.027 % (20 Hz - 20 kHz)
200 mV in, 200 mV out
0.005 % (20 Hz - 20 kHz)
200 mV in, 2 V out
0.002 % (20Hz - 1 kHz)
0.028 % (20 kHz)
THD+N (B=80kHz)
2 V in, 200 mV out
0.0026 % (20 Hz - 1 kHz)
0.007 % (20 kHz)
2 V in, 2 V out
0.002 % (20 Hz - 1 kHz)
0.01 %
(20 kHz)
Channel separation
> 66 dB (1 kHz)
> 42 dB (20 kHz)
Current consumption
LED off
6.7 mA
LED on
7.8 mA
nel separation in mind, it is best to
keep the wiring to P1 as short as is
possible. It is also recommended to
use a potentiometer with a metal
housing for this, the case of which is
connected to ground with a short
wire. Make sure that when wiring P1
and P2 that they are connected in
such a way that the level increases
when they are turned clockwise. The
numbers of the connections shown
on the schematic correspond with
those of the SIL headers on the PCB.
Once the circuit has been built into
(020189-1)
11/2002
Elektor Electronics
45
855731509.433.png 855731509.434.png 855731509.435.png
 
Zgłoś jeśli naruszono regulamin