Arduino Audio Switch?

is it possible to use the arduino for audio switching

5 audio input to 1 output.
1 button to toggle to each inputs.

then show which input is active to a LCD?

Newbie here.

Sure, you can do that.

You'll need to do some programming...

The switching logic is simple (you could do it without a microcontroller) but the LCD is a little more complicated. The switching is just some [u]if-statements[/u] in a loop. i.e If button 1 is pressed, turn-on relay 1 (that's the basic logic, not the actual code).

You'll have to look up some LCD examples. Or, it would be cheaper & easier to connect an LED to each relay-output.

Assuming this is stereo, you'll need 5 DPDT relays. Most relays require more than the 5V at 40mA supplied by the Arduino, so you may need a transistor or MOSFET and 12V (or whatever the relay coil is rated at) to drive the relay. Or, a [u]ULN2803[/u] chip can drive up to 8 relays. The relay contact rating is not critical for low-voltage, low-current audio signals (but you do have to pay attention to the relay coil rating).

Or if you can find relays with a 5V coils rated at 40mA or less, you can drive them directly from the Arduino.

Newbie here.

Start simple and "develop" your project. i.e. Start with the [u]Button Example[/u].

Then modify the code to hold the LED on after you release the button.

Then, add another button and another LED, and modify the code so when you push a button "all" of the LEDs go off and only the one associated with the correct button comes-on (and stays on).

Then, wire-up a relay (or two) to work with the LED(s).

When you can switch between two relays, add 3 more buttons & 3 more relays, and the associated code.

After everything is working with LEDs, you can optionally add the LCD. (You'll probably want to start by experiment with just the LCD (without the code for the buttons & relays). Then, once you understand how the LCD works, you can put everything together.

Maxim makes some DPDT chips that are clickless for signal switching that work well with low voltage. One I was looking at was the MAX14585. Relays would make noise. It is just a matter of programming and figuring out your relay logic. Outputting anything to an LCD is also no problem. You can even write the code to spell out the device selected on the LCD.

If you can imagine it, we can make it. Using the MAX chip would require 5 pins for control for your 5 devices using 5 chips. They are cheap.
Just a basic sketch is attached.

Basic.JPG