EmbeddedRelated.com
Forums

Building a MP3 Player using LPC2148

Started by "Nat...@yahoo.com [lpc2000]" February 28, 2015
I have been trying to build a Mp3 Player for my project using LPC2148.I need to interface SD card which will be containing the songs and the output of the SD card will be given to the inbuilt DAC to produce the analog sound signal.I am finding it quite difficult to implement.Can someone please help me.Also I wanted to know that if it possible to play MP3 files using LPC2148?How can I interface my SD card to the LPC2148.?

An Engineer's Guide to the LPC2100 Series

You can play .wav files with a simple DAC but I don't think you can play MP3s. You need a CODEC like one of these:
Search Results for codec - SparkFun Electronics https://www.sparkfun.com/search/results?term=codec

https://www.sparkfun.com/search/results?term=codec

Search Results for codec - SparkFun Electronics https://www.sparkfun.com/search/results?term=codec Articles 0 found We didn't find any articles that matched codec.

View on www.sparkfun.com https://www.sparkfun.com/search/results?term=codec
Preview by Yahoo

I did a project like this several years ago using an LPC2106, a codec and a network chip. The files were stored on an FTP server for no particularly good reason.

I used uIP for the network stack and, as I recall, there was code provided for the network interface device. I have forgotten the part number. I think I used version 0.9

Richard
Anything you could possibly need to code for the LPC2148 hardware is here:
http://www.jcwren.com/arm/ http://www.jcwren.com/arm/

This includes a FAT file system and drivers for an SD/MMC card. It's great code!

You will still need to write a driver for the CODEC but that is pretty easy.

Richard
l... wrote:
> You can play .wav files with a simple DAC but I don't think you can
> play MP3s. You need a CODEC like one of these:
>
> Search Results for codec - SparkFun Electronics
>
You can play MP3s to a DAC using a software codec such as the Helix MP3 decoder but the LPC2148 doesn't have enough RAM to do it.

I have written one using LPC1758

See
http://www.lpcware.com/content/nxpfile/an11178-mp3-player-solution-nxp-lpc1700-series
The hardware codec listed above is the best option if you must use LPC2148.
--
Tim Mitchell

Posted by: Tim Mitchell



I also used the LPC2148 with the VS1053.
I used the hardware codec to keep the uP workload low because the uP has to
drive and update a color OLED display as well.
Either I would go for a newer uP like Cortex M3 / M4 or I you have to use
the LPC2148 then I would as suggested to use a hardware codec like the
VS1053.

Best regards

Juergen
2015-03-02 9:36 GMT+01:00 Tim Mitchell t...@sabretechnology.co.uk [lpc2000] <
l...>:

> l... wrote:
> > You can play .wav files with a simple DAC but I don't think you can
> > play MP3s. You need a CODEC like one of these:
> >
> > Search Results for codec - SparkFun Electronics
> >
> > You can play MP3s to a DAC using a software codec such as the Helix MP3
> decoder but the LPC2148 doesn't have enough RAM to do it.
>
> I have written one using LPC1758
>
> See
>
> http://www.lpcware.com/content/nxpfile/an11178-mp3-player-solution-nxp-lpc1700-series
>
> The hardware codec listed above is the best option if you must use LPC2148.
>
> --
> Tim Mitchell
>
>
There's an NXP ap note which address this very topic;

http://www.nxp.com/documents/application_note/AN10583.pdf http://www.nxp.com/documents/application_note/AN10583.pdf
I dont know if you've searched or not, but i'd implemented this few years ago using NXP AN 105823 its about mp3 player only directly decoded on LPC2148 using EFSL and LIBMAD on LPC2148
If you want I can also post you the same project (if the problem is not solved yet)
It works pretty fine with MONO sound
There's a youtube video also, its from whom I purchased ARM board then
MP3 Player using LPC2148 on ARM7 Development Board https://www.youtube.com/watch?v=5nfLfgBsLYU

https://www.youtube.com/watch?v=5nfLfgBsLYU

MP3 Player using LPC2148 on ARM7 Development Board https://www.youtube.com/watch?v=5nfLfgBsLYU This is a demonstration of an MP3 Player with ARM7 Development Board by ENTESLA. This demonstration is based on NXP's application note AN10583 for...

View on www.youtube.com https://www.youtube.com/watch?v=5nfLfgBsLYU
Preview by Yahoo

Let me know if you need any help

Amit R
INDIA
I built one such player couple years ago without hardware decoder using NXP AN 10583 on LPC2148
where Mp3 file has to be stored in SD card, and decoded using LIBMAD
I can send you the project also if the problem is not solved
you can download this source code directly and run it on LPC2148
remember it only plays MONO files

Cheers
Amit Rana
India