MAX98357 does not work with a touch sensor

In case anyone else runs into this issue, I thought I would save you some time. I am building a project with quite a few sensors, relays, and a media player. I am using a MAX98357 for the audio and it kept giving me very choppy and garbled audio. I re-soldered everything 3 times, removed lights, removed relays, re-soldered, bought new speakers, etc. I have been at this for a month. For some reason it never occurred to me to remove the touch sensor. If you have a touch sensor in your yaml, the MAX98357 will be all garbled.

Hope that saves someone some time.

I literally JUST had this happen to me as well and was about to write a post to see if this is a known bug/issue. Luckily, I had recently added the touch sensor and was just about to start replacing some components assuming I’d shorted something before it dawned on me to try removing the touch sensor from the code. I also thought maybe it was the pins I was using but used about half of the touch pins with the same result.

Anyone have any ideas why this is? I assume there’s something in the way the touch sensor is handled that screws up the timing of data for the audio chip? Is it a bug in ESPHome or just a fact of the way things are handled by the ESP32?

It’s a shame, cause a touch sensor feels like a pretty natural thing one might want to include in a project that includes an audio streaming component. Fortunately in my case, it’s just a toy for my daughter and she won’t know the difference.

1 Like

Thanks @brooksben11 for pointing to this post.
I have the same issues.

Is this something we can ‘officialy report’ ?

Seems like it’s common enough that we could officially report, but I don’t know who to report it to.

I feel like it’s an issue with the ESP32, not ESPHome. In order to isolate it, we would need to try it with arduino code. If I start another project with a media player, I will do that.

1 Like

I have created a github issue:

Please add any additional info there so that hopefully someone smarter than myself can get it fixed!

1 Like