Arduino Audio Switch





Introduction: Arduino Audio Switch

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.

Step 1: 5.1, 2.1 or 2.0 ?

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.

Step 2: Here All That You Need

This project can be basically performed with:

8ch 5V relay module

Arduino Pro Mini


3xled (optional)

1x220 ohm resistor

1x330 ohm resistor (optional)


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.

Step 3: Assembling

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.

Step 4:

Load the sketch and.... enjoy.



    • Science of Cooking

      Science of Cooking
    • Pocket-Sized Contest

      Pocket-Sized Contest
    • Spotless Contest

      Spotless Contest

    We have a be nice policy.
    Please be positive and constructive.




    Awesome, thanks for sharing!