Dangerous Prototypes

In development => Project development, ideas, and suggestions => Arduino => Topic started by: KathyHacks on August 22, 2014, 10:55:46 am

Title: Simple Wav Player Using Arduino
Post by: KathyHacks on August 22, 2014, 10:55:46 am
Talking about using Arduino to play music, is it the Arduino MP3 shield not the first thing you come up with? Or maybe some geeks will consider about tone() function? They are not the things our topic is about today. We don’t need any MP3 shield, tone(), or SD card. Only Arduino can perfectly play the music you like.

It’s cool. Do-it-yourself a home-brew MP3 player for dear daddy or little daughter is fascinating. If you got a small Freaduino Nano or Freaduino Pro to put this into fact, then I’m sure ipod won’t be your consideration.

But specifically how do you make it? Let us take a look.

PS: For the demo we’re gonna show you, since the RAM for the Arduino is very small, hence we can only keep a 2-3 second music. Use a SD card, there’ll be no time limitation.

Integrated with the homemade low-pass filter, this Arduino-based simple WAV player is to send out PWM signal generated by UNO, then through the low-pass filter and make the PCM data stored in the flash of UNO into sounds. Basically, the player cannot be regarded as a pure WAV playback, because by extracting the data from the WAV file and storing it in an array format in UNO, this tutorial is for reference. You can make SD card based WAV player by referring to this idea.

The WAV player is easy to make on different platforms and applicable for various scenarios like voice broadcast system, electronic keyboard, as long as you understand the principle of sound.

(http://http://www.elecfreaks.com/wp-content/uploads/2014/08/Arduino-Simple-WAV-Player.jpg)

http://www.elecfreaks.com/7440.html (http://www.elecfreaks.com/7440.html)