
If you are interested in DIY AUX output, you might want to take a look at this article.
If you happen to have a speaker and have always wanted to modify it to support AUX output, this article provides you with a detailed tutorial on how to achieve AUX output. If you already know which amplifier chip to use, it will make things even easier. In this case, there happens to be a decoder board based on the ES9038Q2M. By simply connecting the wires, sound output is successfully achieved, and the modification is completed. Below is the detailed introduction.

This is the amplifier module inside the speaker. It supports I2S input, and in fact, it is indeed using I2S input. Therefore, you only need to identify three points, as shown in the figure below.

Next, find the 5V power supply point to provide power to the decoder board.

Connect to the decoder board as follows:


LRCLK >> LRCK DIN >> DATA SCLK >> BCLK
Using the PCM5102A, since the output pins are arranged according to this board, you can directly use the board by soldering the terminals.

That’s it. As for the remaining wiring, you can arrange it based on your own ideas. For the issue of simultaneous output between the amplifier and AUX, you can add a switch, or directly use the speaker to control an IoT relay for intelligent switching.