Author Topic: Play mp3 from sd card with microprocesor  (Read 1224 times)

0 Members and 1 Guest are viewing this topic.

Offline MattjdTopic starter

  • Regular Contributor
  • *
  • Posts: 230
  • Country: us
Play mp3 from sd card with microprocesor
« on: October 31, 2018, 12:28:26 am »
Hi, I'm looking to make some christmas presents, from scratch, with my EE skills. I'm looking to gift some boards that I design and make. The boards will flash some LED's, maybe have some knobs to change colors on RGB leds, display a nice christmas message on an LCD, and play audio from a SD card.

I've been investigating TI microprocessors as I have the most experience with them. I'm looking for one with a DAC, as that will make things much easier. My google skills must be getting weak because I'm having trouble figuring out what resolution the dac should be so that the audio sounds good. Additionally, if anyone has ever done anything like this, what speed processor do you think is suitable? Ive found some microprocessors that would obviously do the trick, but they're about $25 a piece before I even pay for the board, the sd card slot, buttons, etc.
 

Offline senso

  • Frequent Contributor
  • **
  • Posts: 953
  • Country: pt
    • My AVR tutorials
Re: Play mp3 from sd card with microprocesor
« Reply #1 on: October 31, 2018, 12:35:06 am »
Play wave instead, its just a nice stream that you feed into the DAC with a timer, and slap a big flash chip in there, even an 8 bitter can do that.
 

Offline MattjdTopic starter

  • Regular Contributor
  • *
  • Posts: 230
  • Country: us
Re: Play mp3 from sd card with microprocesor
« Reply #2 on: October 31, 2018, 12:45:21 am »
Play wave instead, its just a nice stream that you feed into the DAC with a timer, and slap a big flash chip in there, even an 8 bitter can do that.

actually, I see what you are saying now. I forgot about the decoding part of mp3s
 

Offline BocaDev

  • Contributor
  • Posts: 42
  • Country: us
Re: Play mp3 from sd card with microprocesor
« Reply #3 on: November 01, 2018, 12:47:23 am »
I have done this by using the ATMEL ATXMEGAA32A4 that only cost a few bucks. I interfaced this chip with a SD card containing WAVE files. I ended up using a 16MHz clock.

Pictures of the board can be found here https://catauto.com/index.php/2014-12-29-23-38-29/repeater-controllers/dr-800-wav-player.
« Last Edit: November 01, 2018, 12:48:56 am by BocaDev »
 

Offline njohn

  • Newbie
  • Posts: 2
  • Country: gb
Re: Play mp3 from sd card with microprocesor
« Reply #4 on: November 01, 2018, 08:12:12 am »
For similar projects, I've just added a YX5300 module as a daughter board.

It's obviously not as DIY as other means, but it's supper easy to use and cost less than $3 on AliExpress.

 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 8526
Re: Play mp3 from sd card with microprocesor
« Reply #5 on: November 01, 2018, 12:02:56 pm »
There are single-chip solutions that can do this, available from China for very very cheap. Probably based on a mask-programmed 8-bit MCU.
 

Offline malagas_on_fire

  • Frequent Contributor
  • **
  • Posts: 591
  • Country: pt
  • Kernel Panic
    • Malagas Lair
Re: Play mp3 from sd card with microprocesor
« Reply #6 on: November 01, 2018, 10:51:23 pm »
somebody has build even on a pic12F1840 :P which has 8 pins, 7Kbyes and really thats all she needs:



https://dmitry.gr/?r=05.Projects&proj=02.%20Single-chip%20audio%20Player
If one can make knowledge flow than it will go from negative to positve , for real
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf