Improving our ESP32 MP3 Player

We saw in the last instalment (here) how to simply play an MP3 on our ESP32. In this article/video we look at how to add volume control and to play all the MP3’s that we put on the root directory of our SD card (ignoring anything else). The video below takes you through all this, in addition the source code and affiliate links are also available further down.

Affiliate links for the items shown: Clicking these costs you the same price but gives me a small commission, please consider supporting this channel by using them 🙂

MAX98357A : https://amzn.to/3eovdrd
(You will need two of these for stereo sound)
Potentiometer : https://amzn.to/3dDBorD
ESP32 : https://amzn.to/2Xzhc3k
Breadboards: https://amzn.to/2THZTvy
Speakers : https://amzn.to/2zBhK0F
16Gb SanDisk SD card : https://amzn.to/2XH1sLA
SD Card Reader (https://amzn.to/2ApOppK), note this is the only one I could quickly find that said it supported 3.3v and it’s for the normal size SD cards not Micro, you could always by a micro one and do my hack

The Demo Code (Full code with volume and ability to cycle through all MP3’s on root of SD card).

1 Comment

  1. Hi, Following your I2S work with interest and fascination. I’ve come across a problem, I’m trying to add a volume control to your Internet Radio project with no success. Everything I’ve tried points to the value of the volume control not being read! I’ve created a standalone sketch using your code to read and display the READ value and the ADJUSTED value which is working fine but just not in the radio project…. Have you any thoughts??

Comments are closed.