Portal for car enthusiasts

Electronic switch. Signal Processing

Input selector for relay amplifier (DIY).

To switch multiple input signals to a power amplifier without constantly tugging at the cords, various types of selectors are used. Below is a schematic diagram of such a selector; 12-volt relays are used as switching elements. The circuit is capable of switching 4 stereo audio sources. RCA and relay input connectors are located on one small board, which reduces noise and uses fewer shielded cables. The selection of inputs is carried out by a miniature flip switch with 4 positions. The board also contains a rectifier and a filter capacitance for the power supply. The schematic diagram of the selector is shown below:

The power connector is supplied with an alternating voltage of 9...12 Volts from a step-down transformer. In the diagram after the rectifier we see resistor R* marked 0R or more. This resistance is needed to limit the current when using transformers with a higher voltage than 9 Volts. When supplying an alternating voltage of 9 Volts, simply install a jumper. When applying 12 Volts after the rectifier and smoothing capacitance, the result will be 16.92 Volts, and this is already too much for a 12-volt relay; we install a current-limiting resistor. We estimate the nominal value using the formula: 16.92-12 / relay winding current.

The board configuration looks like this:

In the figure, the yellow dot under the resistor R* indicates the location of the droshk cut in the case of using a current-limiting resistor.

Printed circuit board for relay input signal selector in LAY6 format:

Photo view of the LAY6 format selector board:

RCA stereo connector – 4 pcs.
Relay 12 Volt HK19F-DC12V-SHG – 4 pcs.

Link to product page
4-position switch - 1 pc.
5Pin (2.54mm) connector for connecting a biscuit switch – 1 pc.
2Pin connector with bolt clamp (power connection) – 1 pc.
3Pin connector (connecting the selector output to the amplifier input) – 1 pc.
Imported diode assembly type W04, W06 – 1 pc.
You can also install diode assemblies like DB102, DB103 or similar on the board.
Electrolyte capacitor 470...1000mF/25-35V – 1 pc.
Diode 1N4001 (in parallel to the relay windings) – 4 pcs.
LED 5mm – 4 pcs.
Resistors in the LED circuit 1 kOhm – 4 pcs.
Current limiting resistor 200R 0.25W – 1 pc.
Connectors Input1 – Input4 - 3Pin 2.54mm – 4 pcs. This is if you do not use standard RCA input connectors, but external ones, which are installed not on the selector board, but on the amplifier body.
And one more Vcc connector - for supplying a constant supply voltage to the board; in this case, the variable is not connected, and the diode assembly does not need to be soldered.

The conclusion suggests itself: we need to turn our single-beam oscilloscope into a two-beam one, then we can observe its own signal on each beam. Devices that allow such a desire to be fulfilled are called an electronic switch. We will get acquainted with some options for an electronic switch.

So, an electronic switch. It is connected to the input probe of the oscilloscope, and the signals under study are sent to the inputs (there are two) of the switch. Using switch electronics, signals from each input are fed in turn to an oscilloscope. But the oscilloscope scan line for each signal shifts: for one signal, say, the first channel, upward; for the other (second channel) - down. In other words, the switch “draws” two scan lines on the screen, each of which shows its own signal. As a result, it becomes possible to visually compare signals by shape and amplitude, which makes it possible to conduct a wide variety of equipment tests and identify cascades that introduce distortion.


True, the scan lines are no longer continuous, like those of a single-beam oscilloscope, but intermittent, made up of dashes supplied as pulses to the oscilloscope input from the electrode switch. But the pulse repetition rate is relatively high - 100 kHz, so the eye does not notice breaks in the scanning lines, and they look as if they are continuous.


Now that you have some idea of ​​the operating principle of an electronic switch, it’s time to get acquainted with the first version of its circuit - it is shown in Fig. 24. The signals under study are supplied to terminals XT1, XT2 (this is the first channel) and XT5, XT6 (the second channel). Variable resistors R1 and R10 are connected in parallel to each pair of terminals, which are regulators of the signal level that ultimately arrives at the input of the oscilloscope.


From the motor of each resistor, the signal is supplied through a decoupling (DC) oxide capacitor to an amplifier stage made on transistor VT1 for the first channel and VT2 for the second. The load of both stages is common - resistor R6. From it the signal arrives (through the HTZ and HT4 terminals) to the input of the oscilloscope.


The amplification stages of the switch operate alternately - when the transistor of the first channel is open, the transistor of the second is closed, and vice versa. Therefore, the load alternately receives a signal from either a source connected to the terminals of the first channel or a source connected to the terminals of the second channel.

The cascades are switched on alternately by a multivibrator made on transistors VT3 and VT4, to the collectors of which the emitter circuits of the transistors of the amplifier stages are connected.
As you know, during operation of a multivibrator, its transistors alternately open and close. Therefore, when transistor VT3 is open, resistor R4 is connected through its collector-emitter section to the common wire (plus the power supply), which means power is supplied to transistor VT1 of the first channel. When transistor VT4 opens, power is supplied to transistor VT2 of the second channel. Channels are switched at a fairly high frequency - about 80 kHz. It depends on the ratings of the parts of the multivibrator timing circuits -C3R12 and C4R13.


But even alternate switching on of the amplifier stages does not yet provide two scan lines, and both signals will be visible on the same line, albeit in such a chaotic form that it will be practically impossible to distinguish them. It is necessary to set each cascade to its own DC operating mode. For this purpose, a variable resistor R5 (“Shift”) was introduced, with which you can change the current of the base circuit of the transistor. For example, when you move the resistor slide towards the left output according to the diagram, the base current of transistor VT1 will increase, and VT2 will fall. Accordingly, the collector current of transistor VT1 will increase, and therefore the voltage drop across the common collector load (resistor R6) “when the transistor is open. In other words, resistor R6 will have one voltage when transistor VT1 is open, and another voltage when transistor VT2 is open. Therefore, a pulse signal will be received at the input of the oscilloscope (Fig. 25, a), the upper platform of which will belong, say, to the first channel (i.e., correspond to the open state of transistor VT1), and the lower platform to the second.


The duration of the rise and fall of the signal is very short compared to the duration of the signal itself, therefore, during the sweep on which you will examine the AF signals, two clear sweep lines will stand out on the oscilloscope screen (Fig. 25, b), which can be shifted or moved apart relative to each other variable resistor R5.

It is enough now to apply an AF signal to the input of the first channel and the upper scan line will reflect its shape (Fig. 25, c). And when the same signal (multiple in frequency) is supplied to the input of the second channel, the “calmness” of the second line will be disrupted (Fig. 25, d). The scope of the image of a particular signal can be adjusted with the appropriate variable resistor (R1 for the first channel and R10 for the second).


All switch transistors can be P416B, MP42B or other similar structures, designed to operate in pulse modes and have the highest possible current transfer coefficient. Variable resistors - SP-I, constant resistors - MPT-0.25 or MLT-0.125, capacitors - K50-6 (CI, C2) and KLS, MBM (SZ, C4). Power source - battery 3336, power switch SA1 and clamps XT1-XT6 - of any design.

Some of the switch parts are placed on a board (Fig. 26) made of foil fiberglass, and some are located on the walls and front panel of the case (Fig. 27).


It's time to test the switch. Of course, our oscilloscope will help here. Connect its ground probe to the common wire (XT4 clamp), and the input probe to the collector of any multivibrator transistor (VT3 or VT4). The oscilloscope operating mode is standby, sweep duration is 5 μs/div., input is closed. We hope that these instructions are already clear to you and will allow you to press the necessary buttons on the oscilloscope.
Turn on the power of the switch. Multivibrator pulses will immediately appear on the screen (Fig. 28, a) with an amplitude of about 4.5 V,
the next with a frequency of approximately 80 kHz (period duration is approximately 12.5 μs). The same signal should be on the collector of the second transistor of the multivibrator.


After this, switch the input probe of the oscilloscope to the output of the switch (HTZ clamp), set the sliders of variable resistors R1 and R10 to the lowest position according to the diagram, and resistor R5 to any extreme position. The sensitivity of the oscilloscope will have to be set to 0.1 V/div so that a pulse signal appears on the screen (Fig. 28, b), reminiscent of a multivibrator signal. This is the result of alternate opening of transistors VT1 and VT2 at different bias voltages at their bases.
Slowly move the slider of the variable resistor R5 to the other extreme position. The upper and lower areas of the pulses will begin to approach each other, and soon an image will appear on the screen (Fig. 28, c), indicating the equality of the transistor modes. It is as if one oscilloscope beam is formed, composed of pads-durations of the open state of the transistors (“bursts” between them are the result of transient processes when the transistors open and close). As the resistor slider moves further, the pulse pads will begin to diverge. True, compared to the original position, the upper platforms will “belong” to another channel.

Now release the oscilloscope’s “MS-MKS” button, thereby setting the sweep duration to about a thousand times longer. Two lines will appear on the screen (Fig. 28, d) - two rays. The upper beam should “belong” to the first channel, the lower one to the second. This position is corrected with variable resistor R5.


The beginnings of the beams may twitch a little due to the instability of the synchronization. To eliminate this phenomenon, you must either set the “SYNC.” knob. to the middle position corresponding to the zero synchronization signal, or switch the oscilloscope to external trigger mode (by pressing the “INTERNAL - EXTERNAL” button).

Next, set the slider of the variable resistor R1 to the upper position according to the diagram and apply a signal from the AF generator (say, with a frequency of 1000 Hz) to the terminals XT1, XT2. The signal amplitude must be at least 0.5 V. The upper beam will immediately “blur” (Fig. 29, a). If the lower beam turns out to be “blurry”, swap the beams with variable resistor R5. By moving the slider of resistor R1, select the span of the “track” equal to 2... 3 divisions. Using the oscilloscope sweep duration switches and the sweep length knob, try to achieve a stable image of several sinusoidal oscillations on the screen (Fig. 29.6). This is not so easy to do, since there is practically no synchronization and it is difficult to implement - after all, several signals (pulse and sinusoidal) are received at the oscilloscope input and the sweep is not able to select any of them.


But nevertheless, there are ways to obtain a stable image. Firstly, having previously achieved the appearance of an oscillation image in automatic mode, the scan is switched to standby mode with internal synchronization (the “EXTERNAL - INTERNAL” button is released) and a more precise selection of the signal synchronization level using the “SYNCHR.” knob. (usually it has to be installed near the middle position) a stable image is achieved.

The second method is that the sweep is synchronized with an external signal with an amplitude of at least 1 V from the AF generator with which the equipment is supposed to be tested. We have already talked about a similar synchronization method, we hope that you will be able to press the necessary buttons correctly and send a signal to the “INPUT X” jack.


If you also apply an AF signal to the second channel, for example, by connecting terminals XT1 and XT5 with a jumper, both beams of the oscilloscope will “work” (Fig. 29, c). Now try changing the signal amplitude with variable resistors R1 and R10, and shifting the scan lines with variable resistor R5. You will see that with these adjustments you can not only set the desired span
images, but also bring the images so close to each other that it becomes convenient to compare their shape (Fig. 29, d).

And one more piece of advice. To be able to examine signals of small amplitude, you need to use variable resistor R5 to bring the beams as close as possible and switch to a more sensitive range of -0.05 V/div. or even 0.02 V/div. True, in this case, the scanning lines may become somewhat “blurred” due to the noise of the transistors and various interferences.


No less interesting is the second version of the switch, in which the scan lines are solid, and not made up of pulse pads. This is achieved by the fact that the switch, as it were, deflects the scan line up and down, making it available for viewing the signal of either the first channel or the second. Since the frequency of these deviations is relatively high, the eye does not have time to notice them and it seems that there are two beams on the screen independent of each other.

What is the idea behind this option? There is a socket on the back wall of the oscilloscope to which the sawtooth voltage of the sweep generator is output. Here it will control the switch: during one stroke of the “saw” the transistor of the amplifier stage of the first channel will open, during another stroke the transistor of the second channel will open, etc. The convenience of this method of switching, first of all, is that it allows you to consider oscillations significantly wider frequency band compared to the previous version. It is not difficult to verify what has been said by assembling, testing and comparing both switches in operation.


Unfortunately, the switch of the second option is somewhat more complicated, since it adds a sawtooth-to-pulse voltage converter made of three transistors. And the multivibrator is replaced by another switching device - a trigger, containing a larger number of radio elements.

The diagram of the variable part of the switch is shown in Fig. 30. A trigger is assembled on transistors VT3 and VT4, which has two stable states. Depending on the state in which the trigger is currently located, either resistor R4 or R7 is connected to the common wire of the switch, which means that the input transistor of either the first or second channel is open - as in the previous version of the switch.

To transfer the trigger from one state to another, a short pulse of positive polarity must be received at its input (connection point of capacitors SZ, C4). Such a pulse is removed from the Schmitt trigger, made on transistors VT6 and VT7. In turn, the Schmitt trigger is connected to a limiting amplifier assembled on transistor VT5 - to its input (terminal XT7) and a sawtooth voltage is supplied from the oscilloscope. Moreover, for normal operation of the entire pulse shaper, a signal with an amplitude of 0.5 to 20 V can be supplied to the XT7 terminal. The “excess” signal is limited by resistor R17, so the emitter current
transition of transistor VT5 does not exceed the permissible value over the entire range of specified signal amplitudes.
All transistors of the additional device can be the same as in the previous switch, diodes - any of the D9 series, capacitors - KLS (SZ, S4), KM, MBM (C6), resistors - MLT-0.25 or MLT-0.125.

The printed circuit board drawing for this switch option is shown in Fig. 31, The design of the switch remains the same, with the exception that an additional XT7 clamp is installed on the rear panel of the case, which is connected by a conductor to the socket on the rear wall of the oscilloscope.

Testing this switch begins by monitoring the sawtooth voltage at the XT7 terminal. To do this, the “ground” probe of the oscilloscope is connected, as before, to the XT4 terminal, and the input probe is connected to the XT7 terminal (the oscilloscope operates in automatic mode with the input open, the start of the scan is set at the beginning of the lower left scale division). At a sensitivity of 1 V/div. in the extreme right position of the sweep length adjustment knob, an image of one sawtooth oscillation will appear on the screen in the form of an inclined straight line (Fig. 32, a). This image will be saved when setting any sweep duration.

When you move the sweep length adjustment knob to another extreme position, the length of the inclined line will begin to decrease and reach a minimum value (Fig. 32.6).
Using the scale grid, you can determine the amplitude of the sawtooth voltage at the extreme positions of the specified adjustment knob - 3.5 V and 1 V.

Then switch the input probe of the oscilloscope to the collector output of transistor VT7 (or to the connection point of capacitors SZ and C4), and switch the oscilloscope itself to the closed input mode and move the scan line to the middle of the scale grid. A positive pulse should appear on the screen (Fig. 32, c), the image of which in the divisions of the scale grid will remain stable when the duration changes within a wide range, as well as the length of its line. If, when changing the sweep length, and therefore the amplitude of the input signal at the XT7 terminal, the pulse disappears, resistor R18 should be selected more precisely.

At long sweep durations (10, 20 and 50 ms/div), signal distortion will be observed (Fig. 32, d), indicating differentiation of the pulse in the input circuits of the oscilloscope due to insufficient capacitance of the isolation capacitor. The solution here is simple - switch the oscilloscope to open input mode, and connect the input probe to the circuit under test through a paper capacitor with a capacity of 1...2 μF,

After this, the probe with a capacitor is connected in exactly the same way to the output terminal of the HTZ and two scan lines are observed on the screen, as with the previous switch. The sensitivity of the oscilloscope is set to 0.1 V/div. Further work with the switch does not differ from that previously described.

You may want to make sure to alternate scan lines. Then use the oscilloscope buttons to set the longest duration - 50 ms/div. and turn the reamer length knob to the far right position. You will see a point slowly moving either along the trajectory of the upper scan line or along the trajectory of the lower line.

Switches on microcircuits are of no less interest. Figure 33, for example, shows a diagram of the simplest switch on a single chip, developed by Kursk radio amateur I. Nechaev. True, the switch has a relatively low input impedance, which limits the possibilities of its use. However, it deserves attention for its simplicity and interesting principle of operation.

The elements DD1.1 and DD1.2 of the microcircuit are used to assemble a generator of rectangular pulses with a frequency of about 200 kHz. Elements DD1.3 and DD1.4 operate as inverters and make it possible to match the output resistance of the generator with the resistance of the electronic keys that control the passage of signals through the switch channels, as well as to provide appropriate isolation between the channels.

From the outputs of the inverters, the pulses (they are antiphase) of the generator are supplied through resistors R4-R7 to switches made on diodes VD1-VD4 for the first channel and on bottoms YD5-VD8 for the second. If, for example, the output of element DD1.3 is logical level 1, and at this time the output of element DD1.4 is logical level 0, current will flow through resistors R5, R7 and nodes VD5-VD8. The key on these diodes will be open, the signal from the XS2 connector sockets will go to the XS3 connector sockets, to which the X input probes of the oscilloscope are connected. At the same time, the switch on the VDl-VD4 diodes will be closed; the signal from the input jacks of the XS1 connector will not reach the oscilloscope.
When the logical levels at the outputs of elements DD1.3 and DD1.4 change, the signal arriving at the XS1 connector will reach the oscilloscope. The amplitude of the signal coming from the input connectors XS1 and XS2 to the oscilloscope can be adjusted with variable resistors R1 and R2. The distance between the “scan lines” created by the commutator is adjusted by variable resistor R9. When the resistor slider moves up the circuit, these lines diverge, and vice versa.

In order to maximally suppress interference from the pulse generator penetrating the input and output circuits of the switch, a chain of oxide capacitors C2, SZ and trimming resistor R10 is connected in parallel to the power source (of course, with the contacts of the SBI switch closed) - it creates an artificial midpoint.

All diodes, except those indicated in the diagram, can be D2B-D2Zh. D9B-D9Zh, D310, D311, D312. Resistors Rl, R2, R9, R10 are SPO type, the rest are MLT-0.125 or MLT-0.25. Capacitor C1 - BM, PM, KLS or KT, oxide capacitors C2, SZ-K50-3, K50-6, K50-12. Push-button switch - P2K with position fixation. Connectors - any design, for example, used in televisions as antennas. The power source is a battery 3336 or three series-connected elements 316, 332, 343.

Some of the parts are mounted on a printed circuit board (Fig. 34), attached to the cover of a plastic case (Fig. 35) with dimensions of approximately 40X70X95 mm, the power supply is located on the bottom of the case, and the connectors are on the side walls.

Set up the switch like this. The resistor sliders Rl, R2 and R9 are first installed in the lower position according to the diagram and the input probes of the oscilloscope are connected to the XS3 connector. By turning on the switch, moving the slider of resistor R10 achieves the minimum level of noise on the oscilloscope screen (it is advisable to set its sensitivity as high as possible). After this, you can apply controlled signals to connectors XS1 and XS2, adjust their range on the oscilloscope screen with variable resistors Rl, R2, and “move them apart” relative to each other with variable resistor R9.

When working with this switch, you should remember that the input resistance of the channels at the upper positions of the resistor sliders Rl, R2 in the diagram can drop to 1 kOhm. Therefore, it is advisable to work at such a sensitivity of the oscilloscope that the sliders of these resistors can be installed as close as possible to the lower terminals in the circuit. Then the input impedance of the channels will be 5 ... 10 kOhm.

Another development of I. Nechaev is a three-channel switch that allows you to study three signals simultaneously. This switch is especially convenient for testing and debugging various devices with digital chips.

The diagram of a three-channel switch is shown in Fig. 36. It contains three microcircuits and four transistors. A pulse generator is made on transistor VT1 and elements DD1.3, DD1.4. The pulse repetition frequency depends on the ratings of parts C1, C7 and in this case is 100... 200 kHz.

A frequency divider on trigger DD3 is connected to the generator. From the outputs of the generator and divider, pulses are supplied to the decoder, in which elements DD1.1, DD1.2 and DD2.1 operate. The decoder controls the amplification stages assembled on transistors VT2-VT4. The input of each stage receives its own signal under study, which will be visible later on one or another scan line of the oscilloscope. In the collector circuits of the transistors there are inverters (DD2.2-DD2.4), the outputs of which are connected through resistors (R8-R10) to socket XS4 - it is connected to the input signal of an oscilloscope operating in open input mode.

This is how a switch works. At the initial moment, at one of the inputs of the decoder elements there will be a logical level of 0, which means that at their outputs, i.e. at the emitters of the transistors of the amplifier stages, there will be a logical level of I. signal (i.e., at the inputs of the switch there will be a logical level of 0), the transistors will be closed. Since the absence of input current is perceived by the TTL logic elements as the presence of a logical level of 1 at the input pins, the outputs of all inverters will have a logical level of 0.
If, when checking the operating modes of a digital device, logical 1 levels are applied to the switch inputs (3...4 V for TTL and 6...15 V for CMOS logic), the transistors will open, but the inverter inputs will still logic 1 levels arrive and their signal at the outputs does not change.
This is only possible at the initial moment, before the generator starts working. When the generator starts working, “various combinations of logical levels will appear at the inputs of the decoders. As soon as, say, a logical level of 1 appears at the inputs of element DD1.1, which controls the amplifier stage of the first channel, a logical level of 0 is established at its output and the emitter of transistor VT2 is practically connected to the common wire of the switch (minus the power source). In addition, the logical 1 level from the output of element DD2.1 will flow through the divider R12R13 to the input of the oscilloscope and will form a scan line corresponding to the “zero” level (about 1 V) of the first channel of the switch.

If at this time there is a logical level of 0 at connector XS1, the line will remain in place. When the logical I level connector is fed, the line will deviate.

As soon as the logical 1 levels are at the inputs of element DD1.2, the second channel of the switch comes into effect. In this case, the emitter of transistor VT3 will be connected to the common wire, as a result of which resistor R11 will be connected in parallel with resistor R13 and the constant voltage at connector XS4 will drop. A “zero” scan line (about 0.5 V) of the second channel will be formed.
Next, the levels of logical 1 will be at the inputs of element DD2.1, as a result of which only the emitter of transistor VT4 will be connected to the common wire. The “zero” (0 V) line of the third channel of the switch will appear on the oscilloscope screen.

The “distance” between the channel lines is determined by the values ​​of resistors R11 and R13, and the input resistance of the channels is determined by the values ​​of resistors Rl-R3.

Although the maximum channel switching frequency is 200 kHz, and the frequency of the signal under study does not exceed 10 kHz, along with the monitored signal, the moments of channel switching in the form of a light background can also be visible on the oscilloscope screen. To make this background weaker, you need to minimize the length of the connecting wire between the switch and the oscilloscope, and also reduce the brightness of the image. Reducing the frequency of the generator by doubling or tripling the capacitance of capacitor C1 also helps.

The switch can use transistors KT315A-KT315B, KT301D-KT301Zh, KT312A, KT312B, as well as transistors from older versions MP37 and MP38. Diodes - D9B-D9ZH, D2B-D2E. Capacitor O-KT, KD or BM; S2-K50-3 or K50-12 with a capacity of 10...50 µF for a rated voltage of 5...15 V. Resistors - MLT-0.125.

Most parts are mounted on a printed circuit board (Fig. 37, 38), which is then secured inside a suitable housing. On the front wall of the housing, input connectors XS1-XS3 and output jacks XS4, XS5 are installed. Through a hole in the rear wall of the case, a two-wire power supply is output, which is connected during operation of the switch to a rectifier or 5 V battery.

A properly installed switch does not require any setup. If you want to increase the sensitivity of the switch to the level of logical 1 supplied to the input, it is enough to reduce the resistance of resistors R1-R3. True, this will reduce the input impedance of the switch.

category Audio circuits materials in category * Subcategory Schemes of devices for switching and indicating audio signals and preamplifiers

Compared to electromechanical ones, electronic input signal switches are more reliable, have smaller dimensions and weight, and are more convenient to operate.

Along with all the listed advantages, the switch offered to the attention of radio amateurs is distinguished by its simplicity of circuit design and original indication of the connected input.

The nonlinear distortion it introduces into the input signal with a load of at least 1 MOhm and an input signal of up to 0.5 V is about 0.001%. Inputs are switched with just one button.

Audio signal input switch circuit

The switch works as follows:
When the power is turned on, counters DD1 and DD2 are reset, during which all (except output 0) outputs of counter DD2 are set to a logical zero level. At output 0, the level of logical one is set.” This voltage opens the corresponding keys of switches DD3 and DD4, signals from the inputs In1 pass to the output of the switch.

The HG1 indicator indicates this state as 0, which corresponds to the connection of the first input. When you press the input signal selection button SB1 once, a pulse is sent to the input of counters DD1 and DD2, at which 1 lights up on the HG1 indicator, and the logical one level from output 0 of counter DD2 shifts to output 1." The voltage that appears at this output opens the corresponding keys switches DD3, DD4, after which its second inputs Bx2 are connected to the output of the switch.

Similar processes accompany pressing the key a second and third time, during which the third and fourth inputs are connected. When you press the SB1 button for the fourth time, the counters DD1 and DD2 are reset again, i.e. the first inputs are again connected to the load, the HG1 indicator indicates 0 and the process is repeated from the very beginning.

The switch can also use the method of indicating connected inputs using LEDs HL1 - HL4 (part of the circuit outlined by a dash-dotted line), while the need for the DD1 chip and the HG1 indicator disappears.

When installing, instead of the K176IE8 microcircuit, you can use K561IE8, K561IE9. The K561KTZ microcircuit will completely replace the K176KT1, but at the same time nonlinear distortions will increase approximately five times.

In amateur practice, there is often a need to periodically connect various sound sources to one final amplifier. Rearranging the connectors every time is a tedious task. It is much more convenient to connect the desired sound source by simply turning the switch knob of a stereo electronic signal switch, which can be assembled from the proposed set. It is intended both for use as part of an amateur low-frequency amplifier (for example, sets NM2011 or NM2012 - ULF, sets NM2111 or NM2112 - tone and volume control unit), and for independent use in various low-frequency amplification devices.

Specifications

Supply voltage [V].................................................. ...................6-23

Current consumption no more than [mA].................................................. ....................5

Frequency band [kHz]................................................... ....................0.02-1000

Noise voltage [µV].................................................. ............................5

Maximum input signal level (rms) [V]....................5

Input impedance not less than [kOhm].............................................100

Output impedance no more than [Ohm]............................................400

Harmonic coefficient no more than [%]................................................... ....0.03

Crosstalk attenuation between inputs not less than [dB]...................75

Description of the operation of the electronic switch

The switch board assembly is shown in Fig. 1. The electrical circuit of a stereo electronic switch (Fig. 2) is based on the TDA1029 microcircuit, which is a stereo four-channel analog multiplexer. The finished device has five stereo inputs and one output.

Signals supplied to input IN1 go directly to the chip. This makes it possible to use its full frequency range, exceeding 1 MHz. However, recommend it

can only be used for a limited set of signal sources. This is due to the fact that due to the excessively wide bandwidth of the microcircuit, interference may occur from radio stations operating in the long-wave range and generators operating in the ultrasonic frequency range (25...100 kHz). To weaken the effect of possible interference, first-order low-frequency filters (LPF) (R1...R6, C9...C14) are introduced into the input circuits IN2...IN4 of the switch circuit. By selecting filter characteristics, you can set the required bandwidth of the corresponding input.

Inputs IN/OUT4 and IN5 are multifunctional. The IN/OUT4 input can work as a regular, universal input, equivalent to the IN2 and IN3 inputs. If it is necessary to use a microphone, a microphone amplifier is additionally connected to the switch (not included in this set), the output of which is connected to input IN5 (labeled on the board as “input microphone amplifier”). In this case, the IN/OUT4 connector serves as an additional output for a microphone amplifier, for example for recording. If it is necessary to set sound blocking, the three contacts of input IN5 must be connected with a jumper and, by installing switch SA2, use it as a quick sound blocking (“Mute” mode). As can be seen from Fig. 2, pressing SA2 will immediately switch to the blocked input IN4. and the sound will stop. When you release the button, the source that was there before will immediately connect. But in this case, the device can switch only three inputs.

Switch SA1 can be of any type and is installed on the front panel of the amplifier. In Fig. 2 shows the position of the arrow

SA1 when selecting the signal source connected to the first input (IN1). LEDs VD1...VD4 are also installed on the front panel and serve to indicate the enabled channel. When the SA2 button is installed, the VD4 LED indicates the “Mute” mode.

Switching of multiplexer channels occurs when a code combination is applied to the control pins of the microcircuit. The correspondence between the code supplied to the control outputs and the enabled channel is given in Table. 1.

The input voltage from stereo signal sources is supplied to inputs 1...8 of the TDA1029 microcircuit. In addition, a bias voltage is supplied from pin 10 to inputs 1...8 of the microcircuit through resistors R7...R14.

Capacitors Cl...C8 are separation capacitors. They are designed to decouple input circuits using a constant component.

RCA connector blocks (“tulip”) are used as input connectors IN1...IN4.

Switch assembly

Before assembling the board, read the recommendations given at the beginning of this book. To avoid failure of radio elements, try to follow generally accepted installation rules. The list of all elements included in the set is presented in Table. 2. The arrangement of elements on the board is shown in Fig. 3.

When connecting the switch to an existing ULF, it is advisable to carry out the interconnect installation using shielded wire to reduce the influence of interference. If this is not possible, it is necessary to use a larger cross-section mounting wire for the common bus.

A correctly assembled device does not require configuration. Good luck to you!

The purpose of creating this project was the desire to create a simple and reliable device that would perform the functions of switching the inputs and outputs of a high-quality amplifier.

This project is completely open source. I am posting the source code, circuit diagram and project in .
The source code was written in high-level C language in the CVAVR environment literally in an evening. It is well commented and anyone who knows this language at least a little can easily modify the project to suit their purposes.

The selector works like this:
When power is applied, there is a two-second delay to eliminate speaker clicks during transients, while all inputs and outputs are disabled. After a delay, the 4th byte of the EEPROM is compared with the number 0x22; if the number matches, we load the data from non-volatile memory. If it does not match, it means the data is damaged or the data has been erased, load the default values ​​(AC1 off. AC2 off. CD on). When you select the desired input, the LED of the selected input blinks briefly and then it simply lights up, this effect increases the visual functionality of the device as a whole.
Those who for some reason do not need a bunch of buttons can use 1 button (select), which switches inputs in a circle.

The AC outputs also don’t need to be used; for this you simply don’t need to solder in the diodes and buttons responsible for controlling the outputs and don’t solder in the switching relay switches AC1 and AC2. After we have selected the desired input or output, the program timer begins to count, which after about 10 seconds (if the buttons are not pressed again) writes data to the EEPROM memory. When the power is removed and reapplied, the inputs and outputs retain their state after a delay, which is also very convenient.

The relays can be any that you have available. But it is better to use it in 16A speakers from the SHRACK RT series. I recommend the RTD14005 relay for 5V or RT314012 for 12V for this role (when using a 5V relay, you must replace transistors with more powerful ones, for example KSE340 or MJE340). And as relays in signal circuits, you should use specialized signal relays, which are now commercially available in large quantities. I recommend miniature dual relays 12V TQ2-12V or A5W-K at 5V

When flashing the chip, you don’t need to touch the fuses!

Below you can download the firmware, source and project from

List of radioelements

Designation Type Denomination Quantity NoteShopMy notepad
U1 MK AVR 8-bit

ATtiny2313

1 To notepad
U2 Linear regulator

LM7805

1 To notepad
Q1-Q3 Bipolar transistor

2N5551

6 To notepad
D5-D8, D11-D13 Rectifier diode

1N4148

10 Three of them are not shown in the diagram To notepad
C1-C4 Capacitor0.1 µF4 To notepad
R1-R3 Resistor

680 Ohm

3 To notepad
R4, R5, R8 Resistor

3.3 kOhm

6 Three of them are not shown in the diagram To notepad
R6, R7, R9 Resistor

2 kOhm

6 Three of them are not shown in the diagram To notepad
R10 Resistor

10 kOhm

1 To notepad
RL1-RL3 RelayRT3140126 Three of them are not shown in the diagram