[SOLVED] Two sources to one amplifier board

I have currently a "DF mini player" that is connected to an XH-M543 amplifier over the DAC gpios.

I have another project with A2DP that is connected to an external decoder board (see picture below) and is also connected to a separate XH-M543 and that works to. (LGR is connected)

Now my question is... Can I connect those two sources to one amplifier with only one esp32? I prefer to keep this amplifier. I could wire them together i think... Do I need a DC blocking cap and a voltage divider to do that. Or are there other, better ways to do that?

You need an analog mixer for the audio. Wiring the outputs together directly could damage them. The question of ESP32 compatibility is a different issue that I will leave to ESP32 experts.

Kind of hilarious that they labelled the amp output as an input. :slight_smile:

Excuse me if I didn't enplane myself very clear. I know it will work with an esp32.

Would this be OK?

It should be just fine.

Connected like this?

I have already bought one, but it doesn't fit in my E-box. I could drill a hole... but if there is a solution without this mixer, I would like to hear from anyone?

You can get a much smaller mixer than that. A simple mixer can be a resistive junction. 3 resistors. But since that is a lossy mixer, there's usually an amp with it. You might find some gain settings with the sources and power amp, that allow headroom for the small losses.

Here is one example:

So I could add just a few resistors in my cable.. I don't need to adjust the gain with a button.

This is what I found now on your advice...


I believe this is for a 12v application to keep arround 30ma on the line. I think I have to change the resistor value. It could be very low because I have 3.3v application. What would be a right value of the resistor?

Following my calculation I have 30ma to much soo if I do 3.3v/0.03=110ohm to keep the 30ma on the device. Can anyone confirm please?

Audio has nothing to do with milliamps. :astonished: The 1k resistors will be quite fine.

considering I don't have much space, two 1K resistors are the best solution for me.

I will follow this schematic


Thanks @anon57585045 and @Paul_B for you advice.

I have tested it and works!

1 Like

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.