How to integrate a rotary encoder for volume control with ESP32 and MAX98357A DAC?

Hello guys i'm looking to enhance my ESP32 smart clock project by adding volume control via a rotary encoder. I plan to use the MAX98357A I2S DAC for audio playback and want to know the best approach to integrate a rotary encoder with the ESP32, specifically how to read the rotary encoder's position and direction changes and apply the volume changes to theMAX98357A DAC's output in real-time I'd appreciate guidance on the most efficient way to implement this feature
Solution:
FREE WING
YouTube
ESP32 I2S DAC Audio playback quality comparison Part 1
Warning !! This Movie has Very Loud Volume Whats DAC is Winner !? * MAX98357A * CS4344 * ES7148 * comparison Part 2 https://youtu.be/ERhKqHNtupI * PCM5102A * UDA1334A I added an MP3 playback function to "Bad Apple!!", so I compared the audio playback quality of the I2S DAC Audio. In this program , The "mp3→loop()" calling cycle is NOT CONSTANT...
Jump to solution
6 Replies
Nayel
Nayel3mo ago
Hi Daniel, How are you? I wanted to mention that I strongly advise against using the MAX98357A for your project. This chip has some unpredictable behavior, and you might experience popping or crackling noises, even if you add bypass capacitors on the input. If you'd like more details or need further assistance, feel free to create a thread, and I'll be happy to help you with your project.
Solution
Nayel
Nayel3mo ago
FREE WING
YouTube
ESP32 I2S DAC Audio playback quality comparison Part 1
Warning !! This Movie has Very Loud Volume Whats DAC is Winner !? * MAX98357A * CS4344 * ES7148 * comparison Part 2 https://youtu.be/ERhKqHNtupI * PCM5102A * UDA1334A I added an MP3 playback function to "Bad Apple!!", so I compared the audio playback quality of the I2S DAC Audio. In this program , The "mp3→loop()" calling cycle is NOT CONSTANT...
Nayel
Nayel3mo ago
the best is the ES7148
Daniel kalu
Daniel kalu3mo ago
I will watch the video and then decide thank you @Nayel
Daniel kalu
Daniel kalu3mo ago
Thanks for the video once again after watching the video down to the part 2 , I think i will go with the PCM5102A I2S DAC for better audio quality and stability. I'll read the rotary encoder's position and direction to adjust the volume in real-time. From what I have see. , the integration with the PCM5102A should be straightforward.
Nayel
Nayel3mo ago
Great, do you need help for the rotary encoder?
Want results from more Discord servers?
Add your server