Menu English Ukrainian russian Home

Free technical library for hobbyists and professionals Free technical library


ENCYCLOPEDIA OF RADIO ELECTRONICS AND ELECTRICAL ENGINEERING
Free library / Schemes of radio-electronic and electrical devices

Microprocessor-based audio switch

Free technical library

Encyclopedia of radio electronics and electrical engineering / Audio equipment

Comments on the article Comments on the article

Using the switch, you can easily connect sound sources to various sound reproducing devices in any combination.

The number of household sound reproducing equipment is increasing in our apartments every year. A new music center, home theater or computer speaker leads to an increasing number of interconnects. At a certain moment, wireless headphones are added to the whole variety of equipment, exclusively for the peaceful coexistence of home in the evening hours, when the question arises: what is more important for spiritual development - the twentieth series of a reality show or listening to your favorite album on CD. To watch a DivX movie on a PC, it can be useful to connect a powerful home theater speaker system to your computer. At such a moment, you inevitably have to figure out the intricacies of wires in a cramped dusty space behind the back of a TV or computer.

The cardinal way out is the purchase of a switch, which, by lightly pressing the buttons, would allow you to connect sound sources to one or another sound-reproducing device in any combination. The problem is that such switches are found exclusively in professional equipment and are quite expensive.

To switch the output of a computer sound card, a simple microprocessor-based audio signal switch was developed. It solves quite specific tasks, namely: it connects either active 2.1 speaker systems, or wireless headphones, or a headset with a microphone to work in the Skype program to the computer. The switch has a 1-3 structure, i.e. switches the signal from one input to one of the three outputs. Since the switching element is a passive bidirectional key, it becomes possible to use the switch for the opposite task - to connect one of the three signal sources to active speakers. Of course, this switcher can be used with any other sound-reproducing equipment.

Microprocessor switch of audio signals. Schematic diagram of the microprocessor switch audio signals
(click to enlarge)

Schematic diagram of the microprocessor switch audio signals

The circuit diagram of the switch is shown in the figure. An analog switch on the CD4052 chip acts as a switching element. To switch bipolar signals, it is necessary to apply a negative voltage to the Vee pin, not less than the amplitude of the analog signal applied to the input. The negative voltage is generated using a 561LA7 microcircuit, on which a rectangular pulse generator is assembled, and a diode rectifier according to the voltage multiplication circuit. The current consumption on the Vee line is negligible, so the generator on the 561LA7 consumes only 100 μA on the power line. The operating frequency of the generators is selected in the region of 35 kHz, i.e. outside the audio range.

A control node is assembled on the PIC16F84 microcontroller, which polls the switching direction selection button S1, generates control signals for the CD4052 microcircuit and indicates the current state using the HL1 LED. The clock frequency of 3,5 MHz is not critical and can be selected within any range from 3 to 4 MHz. The microcontroller firmware files are available on the magazine's website. A high-quality stereo headphone amplifier is assembled on the TPA6110A2 chip. The need for an amplifier is due to the fact that the signal from the output of the computer's sound card is not always able to provide sufficient volume in passive headphones. The amplifier operates with a gain of 1, however, if desired, the gain can be easily increased by reducing the resistance of resistors R9 and R10. The amplifier is designed to work with headphones with an output impedance of at least 16 ohms. The coefficient of harmonic distortion of the amplifier is less than 0,03% at a frequency of 1 kHz. The TPA6110A2 amplifier IC (Texas Instruments) can be replaced by the LM4881 IC (National Semiconductor). When assembling the device, special attention should be paid to the correct wiring of the power and ground lines.

When the device is turned on, audio output 1 always becomes active. By successively pressing the S1 button, you can connect other audio outputs "in a ring": 12-3-1-2-.. . Connecting the next output is accompanied by a single sound indication, while the number of sound signals given corresponds to the number of the output. The LED constantly indicates the number of the connected output by the corresponding number of short flashes with a pause between series. For ease of use, the S1 button can be moved outside the case and placed in a convenient place, while the switch itself can be placed closer to the place where the connectors of the switched audio equipment are concentrated.

A free USB port on the computer is used as a power source. The total current consumed by the circuit does not exceed 10 mA. This switch is easy to upgrade, expanding its capabilities. The presence of free ports of the microcontroller makes it possible to complicate the indication scheme, for example, by placing individual LEDs to indicate the connection of each output. To increase the number of switched outputs to 4, it is enough to add a connector and connect it to lines 11 and 4 of the CD4052 chip (with a corresponding change in the program). The current consumption can be significantly reduced by eliminating the LED indication and using the interrupt mode by pressing the S1 button. If you abandon the amplifier on the D3 chip and optimize the operation of the generator (turn it on for a short period to charge C7), then you can build a battery-powered switch. In this case, a set of three AA alkaline batteries will last for several years of continuous operation of the switch. Another way to improve performance is to replace the S1 button with control using an IR remote control or via a radio channel. The computing resources of the microcontroller will be enough for all the above improvements.

Quartz 3,5 MHz
Processor: PIC16c84 (PIC16F84A, PIC16F84)
CP OFF, WDT OFF, PWRTE ON, XT OSC

Firmware:
:020000040000FA
:020000000528D1
:0800080037298316173081002F
:100010000F308600E23085008312850186010D21B4
:10002000ED20E6201A211A211A2106128612051542
:10003000EF20851C4728EF20851C47280511EF205D
:10004000851C4728EF20851C4728EF20851C472862
:10005000EF20851C4728EF20851C4728EF20851CB2
:100060004728EF20851C4728EF20851C4728EF20D4
:10007000851C4728EF20851C4728EF20851C472832
:10008000EF20851C4728EF20851C47281528E620EF
:100090001C211C21EF20EF201C211C21061286169A
:1000A0000515EF20851C8E28EF20851C8E28051154
:1000B000EF20851C8E28EF20851C8E280515EF204B
:1000C000851C8E28EF20851C8E280511EF20851CAD
:1000D0008E28EF20851C8E28EF20851C8E28EF208F
:1000E000851C8E28EF20851C8E28EF20851C8E28ED
:1000F000EF20851C8E28EF20851C8E28EF20851C84
:100100008E28EF20851C8E28EF20851C8E28EF205E
:10011000851C8E28EF20851C8E284E28E6201E2167
:100120001E21EF20EF201E211E21EF20EF201E2197
:100130001E21061686120515EF20851C1128EF20BA
:10014000851C11280511EF20851C1128EF200515AD
:10015000EF20851C1128EF20851C11280511EF20A8
:10016000851C1128EF200515EF20851C1128EF2094
:10017000851C11280511EF20851C1128EF20851CF6
:100180001128EF20851C1128EF20851C1128EF2055
:10019000851C1128EF20851C1128EF20851C1128B3
:1001A000EF20851C1128EF20851C1128EF20851CCD
:1001B0001128EF20851C1128EF20851C1128EF2025
:1001C000851C1128EF20851C1128992806168616F3
:1001D0000800C830F3286430F3283230F3280A309E
:1001E000F3280530F3289100F820910BF42808003B
:1001F00008308F00F930900064006400900BFC28F8
:100200008F0BFA28032964000800F8308F0064007F
:100210008F0B07290B29640008001A211A21EF20EF
:100220001C211C21EF201E211E21EF202021202136
:10023000202108004130222937302229303022295C
:10024000243022298C0023308D0005142E212829EA
:10025000000005102E218D0B252908000C088E00AA
:1002600031293229332934298E0B3029080009001D
:02400E00F93F78
:00000001FF

Author: Oleg Pushkarev, Omsk; Publication: cxem.net

See other articles Section Audio equipment.

Read and write useful comments on this article.

<< Back

Latest news of science and technology, new electronics:

Machine for thinning flowers in gardens 02.05.2024

In modern agriculture, technological progress is developing aimed at increasing the efficiency of plant care processes. The innovative Florix flower thinning machine was presented in Italy, designed to optimize the harvesting stage. This tool is equipped with mobile arms, allowing it to be easily adapted to the needs of the garden. The operator can adjust the speed of the thin wires by controlling them from the tractor cab using a joystick. This approach significantly increases the efficiency of the flower thinning process, providing the possibility of individual adjustment to the specific conditions of the garden, as well as the variety and type of fruit grown in it. After testing the Florix machine for two years on various types of fruit, the results were very encouraging. Farmers such as Filiberto Montanari, who has used a Florix machine for several years, have reported a significant reduction in the time and labor required to thin flowers. ... >>

Advanced Infrared Microscope 02.05.2024

Microscopes play an important role in scientific research, allowing scientists to delve into structures and processes invisible to the eye. However, various microscopy methods have their limitations, and among them was the limitation of resolution when using the infrared range. But the latest achievements of Japanese researchers from the University of Tokyo open up new prospects for studying the microworld. Scientists from the University of Tokyo have unveiled a new microscope that will revolutionize the capabilities of infrared microscopy. This advanced instrument allows you to see the internal structures of living bacteria with amazing clarity on the nanometer scale. Typically, mid-infrared microscopes are limited by low resolution, but the latest development from Japanese researchers overcomes these limitations. According to scientists, the developed microscope allows creating images with a resolution of up to 120 nanometers, which is 30 times higher than the resolution of traditional microscopes. ... >>

Air trap for insects 01.05.2024

Agriculture is one of the key sectors of the economy, and pest control is an integral part of this process. A team of scientists from the Indian Council of Agricultural Research-Central Potato Research Institute (ICAR-CPRI), Shimla, has come up with an innovative solution to this problem - a wind-powered insect air trap. This device addresses the shortcomings of traditional pest control methods by providing real-time insect population data. The trap is powered entirely by wind energy, making it an environmentally friendly solution that requires no power. Its unique design allows monitoring of both harmful and beneficial insects, providing a complete overview of the population in any agricultural area. “By assessing target pests at the right time, we can take necessary measures to control both pests and diseases,” says Kapil ... >>

Random news from the Archive

Achieved data transfer rate of 43 terabits per second 05.08.2014

Researchers at the Danish Technical University (DTU) have been able to transfer data at 43 Tbps using a single fiber optic cable and a single laser transmitter.

The specified speed is equivalent to 5,4 TB / s, that is, for example, it allows you to transfer the entire contents of a 1 TB hard drive in a fifth of a second or copy a 1 GB file in 0,2 ms.

The data transfer speed achieved by Danish scientists is a record to date. The previous record was set in the laboratory of the Karlsruhe Institute of Technology in Germany (32 Tbps).

To achieve the new record, DTU scientists needed to use a new fiber optic cable developed by colleagues from the Japanese telecommunications company NTT. It contains 7 cores instead of one in modern cables. Despite the greater number of cores, the cable has the same diameter as modern products.

The DTU team noted in an official statement that their achievement will increase the data transfer rate and reduce power consumption in the Internet backbone networks. The availability of such a speed to ordinary consumers is out of the question.

The university recalled that they had previously been able to achieve data transfer rates of 1 Pbps (128 TB / s), but for this they needed to use several hundred laser transmitters.

Other interesting news:

▪ Alcohol advertising affects teenagers

▪ Samsung 3,2TB NVMe SSDs with 3D V-NAND Technology

▪ Depression and GNSS

▪ New product labeling technology

▪ The steering will determine driver fatigue

News feed of science and technology, new electronics

 

Interesting materials of the Free Technical Library:

▪ section of the site Experiments in chemistry. Article selection

▪ article by Sidney Sheldon. Famous aphorisms

▪ article What is radium? Detailed answer

▪ Article Creative Director. Job description

▪ article Principles of obtaining a white glow of the LED. Encyclopedia of radio electronics and electrical engineering

▪ article VHF converter. Encyclopedia of radio electronics and electrical engineering

Leave your comment on this article:

Name:


Email (optional):


A comment:





All languages ​​of this page

Home page | Library | Articles | Website map | Site Reviews

www.diagram.com.ua

www.diagram.com.ua
2000-2024