What is the best ESP32 board and audio playback solution for a smart clock with NTP synchronization?

Hello guys I'm working on a compact ESP32 project to build a smart clock that fits inside a standard clock enclosure. I want to synchronize the time with NTP servers to ensure accurate timekeeping and play audio files, such as MP3 or WAV, at the top of every hour. The device should be small enough to fit inside a clock, making it a discreet addition to any room. I'm looking for suggestions on a suitable ESP32 board and audio playback solution that can handle my requirements. Additionally, I'd appreciate guidance on implementing NTP time synchronization and scheduling audio playback in a way that's both efficient and reliable.
3 Replies
Enthernet Code
Enthernet Code3mo ago
Hello @Daniel kalu For your compact smart clock project, I recommend using the ESP32-WROOM-32 module due to its small size and adequate processing power for your needs. For audio playback, you can use an external I2S DAC like the MAX98357A, which is well-suited for playing MP3 or WAV files. To synchronize the time with NTP servers, you can use the NTPClient library, and for scheduling audio playback, the Ticker library is a reliable choice. Make sure you use efficient coding practices to manage the timing and synchronization to keep the operations smooth and reliable.
Daniel kalu
Daniel kalu3mo ago
I've got the ESP32-WROOM-32 module, but I'm still deciding on the DAC - I'm considering the MAX98357A, but also looking at the PCM5102A or the SGTL5000. Do either of these alternatives have any advantages or disadvantages compared to the MAX98357A?
UC GEE
UC GEE3mo ago
@Daniel kalu Firstly, you have to know the functionality of each parameter in your project,MAX98357A is an integrated I2S DAC and amplifier, simplifying design and reducing space, but it may exhibit distortion under certain conditions.The PCM5102A offers potentially better audio quality and lower distortion, but requires an additional amplifier, increasing complexity and size.While,SGTL5000 is a versatile codec suitable for various applications, but it is considered older technology☺️, raising concerns about future support and obsolescence. So you have to consider the choice of what you need from the project, For simplicity,MAX98357A should dominate during your project. Then,for a good audio quality ,go for PCM5102A or maybe it is the Versatility you are aiming at, go for SGTL5000.
Want results from more Discord servers?
Add your server