Thursday, 7 September 2017

music - Playing .mp3/.wav file using AVR ? How


I want to play a small .mp3 file using AVR ? How I've been googling with no good result , Those are the result of m googling :

http://www.beyondlogic.org/pic/ringtones.htm
http://www.avrprojects.info/files/media/MMC-card-wave-player-circuit-diagram.gif
http://www.avrprojects.info/avr-projects/mmc-card-based-wav-player/



Answer



From what I can see, 8 bit AVRs aren't fast enough to play MP3. Instead projects mostly rely on decoder chips. The idea is that the decoder will decode the MP3 in hardware and produce output signal which can be later processed in an amplifier and sent to a speaker.


From what I can see, you'd either need to get a board which can do the decoding for you like this (this one has SD card reader, amplifier and a small speaker too) or this (both use VS1011E decoder) or make your own board which will house the decoder, amplifier, SD card reader and so on. Here you can find a project which explains how to do that and here is one which used AVR Butterfly platform. Both projects have screens and are battery powered from what I can see.


No comments:

Post a Comment

arduino - Can I use TI's cc2541 BLE as micro controller to perform operations/ processing instead of ATmega328P AU to save cost?

I am using arduino pro mini (which contains Atmega328p AU ) along with cc2541(HM-10) to process and transfer data over BLE to smartphone. I...