Mp3 Module for arduino

Go To Last Post
15 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi.

 

Can I use this mp3 module in an amplified speaker
This is what I wanted to do.

First

I have a mini amplified speaker.

[​IMG]

 

 

This image is for representation purpose only. It is a cheap chinese mini speaker. It has on off switch, old Nokia style round hole power input. 5v 350mA, and a cable 3.5mm stereo pin coming out of it.

That's all.
It does not have any in built mp3 playback ability.
It does not have any usb or SD card support.
Just plain amplified rechargeable speaker.
It has a built in generic lithium ion unlabeled battery. (can you guess what could be the output voltage of that battery? )
However the battery doesn't work any more. It now runs only through the external power source.

Second

I found this mp3 module
I haven't purchased it yet
http://s.aliexpress.com/iii6FrUB

mp3 module

It has a TF Card slot

It has the following solder points

Spk + Spk -

Bat + Gnd -

It needs 5 volts.

But it is advertised as mp3 module for Arduino.

I don't want to do anything with arduino.

I just want to be able to add this module into my mini amplified speaker.

So am I right in thinking
If I do these following steps

Open the speaker box

Parallelly connect the power supply of 5v with this module.

And connect the speaker solder points of the module with the stereo cable that the speaker is having.
I'll short the left and right speaker wires into a single point as it is a mono speaker and I don't see stereo support in the module.

I place a single mp3 song (for test purpose) in a TF Card and insert it in the slot.

Start the power supply

Will the song play?

Is this project that simple?

Or am I missing something.
As they say it is mp3 module meant for Arduino.

Am I missing something?
Your advise please.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

emmfranklin wrote:
Is this project that simple?

Sounds like it probably could be. But surely the Arduino module comes with some driving software? Presumably you have to present the user with some kind of "User Inetrface" - buttons for input, perhaps LCD for output? So you can show them what songs there are to choose from and allow them to select playback of one in particular. While you can probably circumvent the user choice if there's just the one song on the card you presumably still have to issue commands to say "there it is, go play it"? So a small amount of work involved, but perhaps not much.

 

(one of the best MP3 players I ever ad (until smartphones took over) was almost this simple - it had something like 2 lines of 20 characters on a very small LCD (about 1cm high and 3..4cm wide) and a couple of buttons and that was it - refreshingly simple!)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Yes i wish to play just one song.

 

all it should do is ..

the moment it is powered on . it should play that one song.

 

i would be more happy if it plays the song again and again when the song reaches its end. this should be its default behaviour.

 

if not . then ill be fine.

 

ill place a large mp3 file where the same song is appended back to back say about 20 times.

 

 

in short

 

power on 

and it should play the song.

 

 

 

my aim is to use a chanting prayer mp3 in a temple in a low volume.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I just followed your link to aliexpress to see the MP3 module. I was hoping to find documentation or a link to their recommended software to use it. Sadly I didn't see that. But I do note that for your $0.93 (incredible!) you not only get the MP3 player chip (and SD card socket) but it says "2W amplifier" in the description (I'm guessing something like LM386?) so you don't need the "blue bit". It looks like you probably just connect a stand-alone speaker component (again guessing - but probably 8 ohm?) to the two speaker output pads. I don't think you need a separate amplifier for this.

 

But I would contact the vendor and ask about manual/datasheets and whether there is example Arduino software available.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks a lot for your time sir,

 

i found this another link

 

http://www.ebay.in/itm/GPD2856A-...

 

i guess its the same thing.

here it says it can play the song by default when powered on.

 

plus there is an image which gives more instructions. which indicates a switch s6 to enable loop one song or full album. some how i would like to know how to enable that switch . all this without arduino.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

In the General Electronics forum at the top I have a Sticky for gadgets. I put a link there to an MP3 player that I have used on several occasions with great results.

It costs more than 0.98 but it has pretty good documentation and can operate stand alone or connected to an arduino

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Looks like "it might work" or "it might not work".

 

If I was doing this myself I'd probably go for one of the many  WS (something something) 53 based modules. This mp3 en/de -coder family has lots of documentation and "arduino" examples on the 'net.

price is a bit higher EUR10 to EUR20? But it has the potential to save a lot of frustration and development cost.

 

Easy alternative is to buy the nearest / cheapest complete mp3 player and use a ucontroller to push it's buttons.

 

Lot's of inspiration:

http://hackaday.com/blog/?s=mp3

 

 

Doing magic with a USD 7 Logic Analyser: https://www.avrfreaks.net/comment/2421756#comment-2421756

Bunch of old projects with AVR's: http://www.hoevendesign.com

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I might risk 98 cents on one. Might get several, in case one falls into the aquarium or something.

The largest known prime number: 282589933-1

It's easy to stop breaking the 10th commandment! Break the 8th instead. 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Looked around a little and it's based on this IC GPD2846A -- which supposedly has a 2W mono amp built in(!).

 

Some info about the chip here http://bsfrance.fr/documentation/10457_MP3_USD_GPD2846A/Description.pdf

Somebody on the arduino forum was trying to do something similar

http://forum.arduino.cc/index.php?topic=358047.0

 

Not claiming any actual knowledge -- just reporting on what I found

 

hj

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This is fascinating.  Thank you for the lead.

 

I believe that this IC will fit your needs well.  It does not even appear to need an AVR to drive it.

 

The poster in the forum.arduino.cc said that he was able to get it to play MP3s "easily".  Nothing is ever 'easy' in embedded systems, but some things are more difficult than others.

He said that he put three MP3 files on a  formatted 4-Gigabyte SD card using a PC.  Then he attached +5 Volts (or a Lithium Ion battery @3.7-4V) to the Vcc_+5 power input, ground, and a speaker on

SPK+ and SPK- pads.  Plugged in the SD card and the MP3 songs played sequentially and repeatedly.  

 

Three push-switches need to be added.  I believe that this is an Analog-to-Digital resistor-ladder where pressing a switch causes a new voltage to be on the IOA3 pin.  There are both short and long presses that do different things.   Multiple switch combination presses MAY also be supported on this board.

 

It looks like the 8-pin chip labeled 8002A is a stereo audio driver that is set up on this board to operate as a mono amplifier in a bridge configuration.

 

If I'm not mistaken,  the MP3 chip looks for any file with extension .mp3 in the root directory of the SD card.  If it finds one, it downloads the chunks of the file's data from the card, converts it into left and right audio, and outputs it to the DACoutput Left and Right pins.   It appears that a RDA5807 FM radio module can be attached using the I2C SCL and SDA pins (user supplies 3.3K ohm pull-up resistors on the SCL and SDA pins).  A mode pin-press (a specific voltage on IOA3, held for a specific time) changes between MP3 and FM radio mode.  If FM radio mode, the push switches control frequency searching up and down. 

 

There is also the possibility of there being a USB data connection with Data+ and Data- pins.  This may mean that the chip can establish itself as a MIDI device when plugged into the PC.  Maybe it can play MP3 files from the PC in this mode.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

SImonetta,

I used a couple of these:

 

http://www.mdfly.com/products/sd...

 

And it truly was as easy as the advert said.  I was able to connect it to an AVR and get it to run.  It also worked without the AVR as well.

 

at $7.00 each not really economical, but for a one off it did the trick.

 

Jim

I would rather attempt something great and fail, than attempt nothing and succeed - Fortune Cookie

 

"The critical shortage here is not stuff, but time." - Johan Ekdahl

 

"Step N is required before you can do step N+1!" - ka7ehk

 

"If you want a career with a known path - become an undertaker. Dead people don't sue!" - Kartman

"Why is there a "Highway to Hell" and only a "Stairway to Heaven"? A prediction of the expected traffic load?"  - Lee "theusch"

 

Speak sweetly. It makes your words easier to digest when at a later date you have to eat them ;-)  - Source Unknown

Please Read: Code-of-Conduct

Atmel Studio6.2/AS7, DipTrace, Quartus, MPLAB, RSLogix user

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks all for your ideas.

Yes it works as i intended and expected.

I ordered it in the month of June and got it last 3 days back. (ordinary post takes that long) I simply connected a small speaker (whose power output i don't know . its an unlabeled speaker.)at the given speaker points. I connected a 5v 1A phone charging outlet into it. i placed a single mp3 file in the memory card . and turned it on . and there it started in 2 seconds. The song is played at full volume and keeps repeating it once it reaches its end.

one thing i noticed that it turns off after playing few seconds of a song. and then restarts from the begininng as if it is experiencing some glitch.
but i realized after several tries is that it is able to play full songs that are of low volume in the first place. any loud volume track it turns off in 2 to 3 seconds. it cannot play loud volumes for a long time. maybe the speaker is demanding too much current . maybe the speaker power rating is higher than what it is designed to handle. so i lowered the track volume using sound editing software . and it worked full track.

anyways i needed the tracks to be played at a very low volume so i used a sound editing software audacity and lowered the volume to a great extent.

 

Now i need to find out how to build a volume controller. Though that is not of urgent need. It is enough what i had in mind. I can keep it as it is. Do let me know about volume controller.

Thanks all.
Thanks clawson, jgmdesign, Paulvdh, Torby, Simonetta
Thanks ford2go your link helped too.

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Do read my reply given at the end. Thanks for your support. Yes it works. it has built in amplifier. all this for less than a dollar.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks ford2go . it works.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Thanks Torby . it works.