Hello and thanks for taking the time to read this,
In this portion of my project I'm looking to have three different audio inputs, a device that monitors an audio signal from one of the inputs and an amplifier able to be configured into a number of different arrangements purely by user interaction.
To clarify, I have the following:
Audio Inputs:
-
3.5mm headphone jack.
-
A microphone
-
A musical instrument shield (from Sparkfun)
-
The device that monitors an audio signal is an audio spectrum analyzer PCB I made that takes a mono audio signal, such as that which is produced by the microphone, and splits the signal into a number of frequency bands whose values can be read by an analog input of a microcontroller.
-
The amp is a 20w stereo amp.
There are a handful modes that I would like to achieve:
The following are already implemented and working (mostly)
Mode 1: Signal from the microphone is read by the spectrum analyzer and the output of the analyzer is used to drive some LEDs.
Mode 2: The output from the musical instrument shield is sent to the amplifier and heard on a set of speakers.
The following is NOT yet implemented
Mode 3: Stereo signal from the 3.5mm jack is passed to the amplifier and heard on a set of speakers and also (somehow) changed to a mono signal and read by the spectrum analyzer to drive some LEDs.
Mode 4: The stereo signal from the musical instrument shield is passed to the amplifier and heard on a set of speakers and also (somehow) changed to a mono signal and read by the spectrum analyzer to drive some LEDs.
The main, unsolved, problems I have here are:
A) How does one convert a stereo audio signal to a mono audio signal and,
B) How would one "split" a stereo audio signal into two branches with one branch preserving the stereo and the other being converted to mono with neither interfering in any way with the other.
Can I simply (and safely) tie the left and right of the stereo signal together to make mono? If so, it seems I would need to somehow isolate the two "branches" or else the branch that was intended to remain stereo would basically become two lines of mono.
Once I solve these two issues I should be able to use a handful of SPDT relays to swap around the circuitry along with whatever solution I settle on to make all of this happen.
I'm very new with adding audio components to my projects and new but slightly less so with electronics in general so any help that you can offer is highly appreciated. It will also earn you a place on the credits page of my complete project!
