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
YouTubeFREE WING
Warning !! This Movie has Very Loud Volume
Whats DAC is Winner !?
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...
Was this page helpful?