A ESP32 based ambient sound player for sleep.
SleepSoundBox is a sleep background music device, it plays looping ambient sounds (brown noise, nature sounds, fire) stored on the SD card, controlled by buttons.
- ESP32 Dev Module
- MAX98357A I2S amplifier
- MicroSD card reader module
- Speaker (Flip5 internal speaker, 3 Ω / 20 W)
- pushbuttons
- Plays
.wavfiles (16-bit PCM, 22 kHz) directly from SD card - Each button triggers looping playback from a specific folder
- 30-minute auto-off timer with deep sleep wake-up
- Debounced buttons for stable control
This project served as a prototype and learning exercise in:
- Digital audio playback with ESP32 (I2S + SD)
- Memory and resource limits of microcontrollers
- Speaker and amplifier wiring
