Advice regarding mixing audio signals

Hi all

I have a Mega2560p project that is driving 2x JQ8400 MP3 modules and a Robertsonics WAV trigger board.

I want to mix the output of these 3x modules into a single stereo PAM8406 amplifier.

Now ideally, I should include a level pot for each module, as I have no doubt the outputs will be at different levels. BUT... I could sort that issue out in the coding by setting correct volume levels instead.

Hoping to keep this basic, as it doesn't need to be fancy. I was hoping to find an I2C 4x channel mixer IC, but had no luck.

Before, I have literally linked all the left channels together through 1k resistors and the same with the right channel. It did work, but seems crude.

I found this circuit (attached). Is something this simple gonna cut the mustard?
single-transistor-mixer-circuit-compressed

It might work...
1M is a bit high.
Usually these 1 bjt amplifiers would have an additional resistor from base to ground and a resistor from emitter to ground.
This will not qualify as hifi...

Did you think about an opamp???

Well the amp runs on 5v, so some tweaking will be required I have no doubt (but what, I am not sure).

This might be a winner?

That's annoying.... thought that LM3900 would be ideal (might still be), but it's 4x mono, so I would need 2

If you use the input scheme as in your starting post, you need only half....
...not 2.
Be aware that you chose a smd. A beginner would better start with a through hole ic. And maybe an ic socket like this 16 Pins IC voet - 16PSOCKET
Also be aware that you need a symmetrical power supply or a 'virtual' earth halfway plus and minus.

1 Like

The whole board I a designing is SMD (well, except a few parts). Done lots of SMD.

Not sure what you mean by Symmetrical power supply or a 'virtual' earth halfway plus and minus.

Why not just as the circuit diagram shows?

Because most opamp circuits use a symmetrical power supply (with plus, zero and minus). But if you add the capacitor you can use arduino ground for your audio. Then you create a voltage halfway to bias the opamp (simply 2 1k resistors in series from plus to minus and a 10 uF cap would do).
At the end you would need another cap to get rid of the bias. Like in your 1 transistor example.
The opamp would allow a linear amplification with very little extra components. Easy control of desired amplification and some 'buffering'.

Which circuit diagram do you refer to?

You don't need a quad op-amp. You just need to build a summing amplifier. One op-amp for mono or two for stereo. Audio mixers are built-around summing amplifiers.

1 Like

Thanks all. Googling away looking for a suitable 5v summing circuit. SO MUCH incorrect information out there these days. Circuit diagrams all over the place that are entirely incorrect

Yes, no, maybe?

Except the 741 appears to be obsolete except a few DIP packages lying around RS. I want SMD.
Drives me mad this... any other op-amp recommendations?

I found the TL072, but some people say it's not suitable and some love it (various websites).
Wood from trees and all that

Most opamps need a negative power supply (compared to gnd).

Jesus...

I'm going back to just bundling them together with 1k resistors

Depending on the output impedance of your sources, you might be better off with 10k resistors...

Here is some info on which opamp to chose.

1 Like

If you would add caps at input and output and add a bias halfway for the +input of the opamp this would work fine...

1 Like

Except... I don't know how to do that...

I have no idea what the impedance of the sources would be. There are 2x JQ8400 MP3 modules and the Wav trigger module.
Even if I did know the impedance, I don't understand how to work anything out.

I was hoping for a simple, single 5v rail, op-amp circuit/summing circuit that was a better design than simply using resistors bundled together.

But, as usual, I am baffled by stuff I don't understand and it's got all complicated (not being unappreciative of your assistance).

I am sure sometimes this stuff just gets way over complex for the outcome you are trying to achieve

Don't these come with a datasheet stating the output impedance?
PAM8406: and for this one an input impedance?

It might be that your resistor solution is the optimum solution... but without the missing info no one knows...

Nope... The Wav trigger board has no real info. I would have to do some digging on that or reverse engineering. The Chinese JQ8400 mp3 modules.... no hope (although they are great modules).

Going with this... Found an old Maplins audio projects book in the loft of the workshop and this is the circuit diagram of their QUADRAMIX module you used to be able to buy.

I also have 12v on the board, so I can use that, although it would probably be fine on the 5v.

If the opamp can ron on 5V this would be fine!

1 Like