Playing sounds from SD card with arduino UNO.
-
Using TMRpcm library to read .wav files from SD card and convert them to analog signal.
-
Anolog circuit inspired from here, which uses a LM386N3 analog audio amplifier.
According SD Arduino reference page, SD card should be formatted to FAT16 or FAT32 file system, and file names have to fulfill 8.3 naming convention (at most 8 characters + dot + 3 extension characters).
The TMRpcm library runs with wav files with the following features:
- Bit resolution: 8 bits
- Sampling rate: 16KHz
- Audio channels: mono
- PCM format: 8-bit, unsigned
You can use this onlie converter to prepare the wav files to store in the SD card.