Part of the Professional Arduino Series
This solution was originally developed for a live game, where audio needed to be played through a stereo system when buttons were triggered. Audio files are stored on a SD card in 8bit 16KHz mono PCM WAV format, read in by the ATMega328, and a PWM output to RC filter is used to generate an analog output signal for a stereo. The timer2 of the ATMega328 is used to clock data out via PWM.
All code included, as well as link to WAV conversion tools and RC filter resources...
Sign Up For Full Access
Members gain full access to the Prosource library with dozens of source files for ARM Cortex, ATMega, PIC processors
as well as desktop and embedded Linux systems. Solutions for bootloaders, Buildroot and Yocto targets as well as guided articles
on embedded development to gain critical knowledge in new systems and speed up development.