Hi there, I’m trying to get two MAX98357A boards to work in stereo mode using latest ESPHome on ESP32 (devkit1). However regardless of using stereo mode argument in the code, sound from both speakers work in mono regime.
there is no such a code in ESPHome to separate left and right channels with external DAC unfortunatelly. Stereo signal carry signal separation so LRCLK can understand which channel it should decode and play.
As far as I understood, the problem might be with ESPHome itself. I might be wrong.
UPDATE: Figured out stereo output. Problem was in MAX98357A configuration. By default it is configured to mix outputs using 1M resistor (to VDD) so to configure it to left and right channels, SD needs to be pulled-up to VDD with jumper (0 Ohms) that is going to be LEFT channel and with 370-470K resistor to VDD to output Right channel.
All perfect now.
By the way I get really nice sound quality despite this is only class D amplifier.
The connection between DAC and esp32 chip is as given below. Please refer to my other post where I have used different DAC but the result is same. I am getting the stereo quality output.