Arduino Audio Switch

by Acmecorporation in Circuits > Arduino

8567 Views, 14 Favorites, 0 Comments

Arduino Audio Switch

IMG_2719.JPG

Inside my shelter i've a 5.1 Bose surround system and a couple of Yamaha NS-10M Studio speakers. I needed to drive them with only one power amplifier, so i needed a custom audio switch between speakers and LFE too. Instead of a typical mechanic switch i've found an easy solution using an Arduino Pro Mini and a 8ch relay module.

5.1, 2.1 or 2.0 ?

CONFIG.jpg

Pushing its button, arduino audio switch let me give three options to listen amplifier audio output :

1) 2 channel mode through Yamaha speakers

2) 2+1 channel mode through Yamaha speakers and BOSE LFE

3) 5+1 channel mode through BOSE 5.1 surround system

I put point one first. This means that, when system is not powered i can listen music through Yamaha speakers, because this is my common use.

When i give power supply, i can switch between the three options above mentioned.

Here All That You Need

IMG_2688.JPG
IMG_2692.JPG

This project can be basically performed with:

8ch 5V relay module

Arduino Pro Mini

Button

3xled (optional)

1x220 ohm resistor

1x330 ohm resistor (optional)

jumpers

5x7 Prototyping board

You can also add your customized enclosure box and input power supply with related on/off button, as i have.

Obviously you'll need a solder for PCB assembling and something to model your enclosure box.


Assembling

IMG_2707.JPG
IMG_2709.JPG
IMG_2710.JPG
IMG_2699.JPG
IMG_2713.JPG
IMG_2720.JPG
audioswitch2.png

Assembling of the switch box is very easy.

Connect amp and speakers cables directly to relay or trought terminal block, as i have.

Then relay module to Arduino as showed on schematic.

Do not use Arduino VCC pin to drive 8ch relay. Connect relay module VCC directly to 5V and GND to common Arduino ground.

The one that i've made draw 5V from PC USB cable because i've adopted an Arduino Pro Mini with RAW pin burned, so with PC stabilized 5V output i can easly drive Arduino and relay module togheter.

IMG_2718.JPG

Load the sketch and.... enjoy.

Downloads