Pages: [1] 2 3   Go Down
Author Topic: WT5001M02-28P another mp3/wav cheap sound module  (Read 12960 times)
0 Members and 1 Guest are viewing this topic.
Italy
Offline Offline
Full Member
***
Karma: 3
Posts: 148
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

someone have tested this sound module with arduino?
i just ordered one




it uses WT5001 IC

it supports micro-sd cards and it can play also wav files (that i prefer than mp3, because of lag at begin of each track)

Quote
Key Features

1. Built-in 1W amplifier, can directly drive 1W/8Ω speaker.

2. BUSY output port available.

3. Support SPI flash and micro SD card as the meories at the same time.

4. Standard 5 Keys MP3 player, and a ADC key available  to A Special function key,play next sound when press it short time,and Loop current sound. Copy data from TF card to Flash only by pressing key long time.

5. Support standard RS232 serial control.

6. USB interface pins available and support USB flash playback.

7. Support to copy data form micro SD card and USB flash to Flash.

8. Set iSound.mp3 configuration file to change mode when power ON.

9. Great stability for long-time playback and strong anti-interference ability.


Support ·FAT16,FAT32 file system

Support 16Kbps~320Kbps bit rate and 8KHz~44.1KHz sample rate MP3 and WAV two format file

 
SPI-FLASH:4MB~64MB

TF card:128MB~2GB

DC5V
   
36.1mm*19.7mm
Logged

Offline Offline
God Member
*****
Karma: 27
Posts: 829
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Looks like *almost* everything I have been looking for in a MP3 module. The only thing missing is the ability to open any file into the microcontroller. It does seem to have the SPI pins coming out to the connector, so I think you could do that with the SDfat library, but it would have been nice if the module did all the FAT stuff for you.

Of course the datasheets and info I have found are such horrible english that maybe it does support that somehow and it isn't clear.

I think I will order one as well. Would be nice to make a library for it, anyway.
Logged

Guangzhou,Guangdong,China
Offline Offline
Newbie
*
Karma: 0
Posts: 8
waytronic(WT)--manufacturer and designer of sound module,voice chip ,recording module.WT have designed WTV,WTH.WTN3 series voice chip,WTV020-SD,WTV020-S ,WT588D,WT5001M01-M04 ,WTM-SD,WT9501M03,WT8603 etc voice module
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset



Of course the datasheets and info I have found are such horrible english that maybe it does support that somehow and it isn't clear.

I think I will order one as well. Would be nice to make a library for it, anyway.
:smiley-sweat:We will do english manual better in future
Logged

waytronic(WT)--manufacturer and designer of sound module,voice chip ,recording module.WT have designed WTV,WTH.WTN3 series voice chip,WTV020

Offline Offline
God Member
*****
Karma: 27
Posts: 829
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That's ok, I speak horrible Chinese myself smiley

So do you know if it supports direct file access to the SD card, Jasmine? Meaning, are we able to open other files, not just MP3?
« Last Edit: February 28, 2013, 04:11:18 am by Retroplayer » Logged

Guangzhou,Guangdong,China
Offline Offline
Newbie
*
Karma: 0
Posts: 8
waytronic(WT)--manufacturer and designer of sound module,voice chip ,recording module.WT have designed WTV,WTH.WTN3 series voice chip,WTV020-SD,WTV020-S ,WT588D,WT5001M01-M04 ,WTM-SD,WT9501M03,WT8603 etc voice module
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

If you store in SD card,the module only can support 16Kbps~320Kbps bit rate and 8KHz~44.1KHz sample rate MP3 and WAV file.

Logged

waytronic(WT)--manufacturer and designer of sound module,voice chip ,recording module.WT have designed WTV,WTH.WTN3 series voice chip,WTV020

Italy
Offline Offline
Full Member
***
Karma: 3
Posts: 148
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you store in SD card,the module only can support 16Kbps~320Kbps bit rate and 8KHz~44.1KHz sample rate MP3 and WAV file.



thanks for your informations and welcome to the forum, very nice to have Waytronic support here

so you confirm it can read wav files, this is very good for my project because the Mp3 files have always a very small lag at beginning of each track (it's a well known codec issue) that doesn't fit my project (sound must start when led turning ON, without lag)
Logged

Italy
Offline Offline
Full Member
***
Karma: 3
Posts: 148
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

today i received the module
while plays mp3 files without problem and with a very good quality, i can't play wav files
tested 8bit 80kbps 22khz without success smiley-sad

something odd: if you want to keep the files order, firse must create the mp3 playlist on hard disk (0001.mp3, 0002.mp3, ecc) and when ready copy to the micro-SD card. If you rename on microsd card it will messy the order.

I used 2 watt stereo speakers @ 8ohm: if used in mono no problem, when stereo you can hear clipping. With a mini amplifier no problem at all also in stereo mode.





http://youtu.be/FaTS-hvRUFM

Code:
const int buttonPinFire = 7;   // FIRE

// variables will change:
int buttonState = 0;         // variable for reading the pushbutton status

void setup() {
  
    // initialize the button pin as a input:
pinMode(buttonPinFire, INPUT);

 // initialize serial communication:
    Serial.begin(9600);
    

    
    Serial.write(0x7E);
    Serial.write(0x03);
    Serial.write(0xA7);
    Serial.write(0x1F); //  volume max
    Serial.write(0x7E);
    
    // start sound
    Serial.write(0x7E);
    Serial.write(0x04);
    Serial.write(0xA0); // A0 for SD card
    Serial.write((byte)0x00);
    Serial.write(0x02); // track number
    Serial.write(0x7E);
    delay(3000);
    
    }
    
    void loop()
{
                      
    
  buttonState = digitalRead(buttonPinFire);
 if (buttonState == HIGH) {
 
    Serial.write(0x7E);
    Serial.write(0x04);
    Serial.write(0xA0); // A0 for SD card
    Serial.write((byte)0x00);
    Serial.write(0x01); // track number
    Serial.write(0x7E);
delay(300);
}
  
          }
« Last Edit: March 20, 2013, 04:21:32 pm by onesky » Logged

Argentina
Offline Offline
Full Member
***
Karma: 5
Posts: 160
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Great! I read the manual and was not that clear how to connect it or program it. Do you have a new manual or just were lucky connecting it?
Logged

Offline Offline
God Member
*****
Karma: 27
Posts: 829
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

something odd: if you want to keep the files order, firse must create the mp3 playlist on hard disk (0001.mp3, 0002.mp3, ecc) and when ready copy to the micro-SD card. If you rename on microsd card it will messy the order.

With all of these modules, the name doesn't matter. It is the actual order that they are found in the directory entry table. So, if you were to name your files 001.mp3, 004.mp3... and then copy 004.mp3 first, then 001.mp3, it would make 004.mp3 track number one and 001.mp3 track number 2.

So you can name the files however you want. But you must be careful what order they are in the directory entry.

To make things easy, just copy all your files over and use this program:

http://www.anerty.net/software/file/DriveSort/

to sort where the files are put in the directory entry. Pretty much all of these modules have this same issue because they use a very simple FAT access routine.
Logged

Italy
Offline Offline
Full Member
***
Karma: 3
Posts: 148
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Great! I read the manual and was not that clear how to connect it or program it. Do you have a new manual or just were lucky connecting it?
i just followed the data sheet
http://www.hmangas.com/Electronica/Datasheets/Modulos%20de%20Audio%20y%20MP3/WT5001M02-28P/WT5001.pdf

there is the WT5001M02-28P pin assignment scheme (page n. 10). On the board the first pin on the left is labeled "1" as you can see on the magnified picture.
The 5v input is the vdd50 pin 22.
From pag. 14 you can find the serial commands to use with arduino.

With all of these modules, the name doesn't matter. It is the actual order that they are found in the directory entry table. So, if you were to name your files 001.mp3, 004.mp3... and then copy 004.mp3 first, then 001.mp3, it would make 004.mp3 track number one and 001.mp3 track number 2.

So you can name the files however you want. But you must be careful what order they are in the directory entry.

To make things easy, just copy all your files over and use this program:

http://www.anerty.net/software/file/DriveSort/

to sort where the files are put in the directory entry. Pretty much all of these modules have this same issue because they use a very simple FAT access routine.
you are right. If i am going to make any change of the file order i will first copy the root of the microsd to the hard disk, and when finished i will copy again from the hard disk to the micrsod.
« Last Edit: March 21, 2013, 09:48:31 am by onesky » Logged

Offline Offline
God Member
*****
Karma: 27
Posts: 829
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

That tool I linked to makes it very simple. If you read the description, it was designed specifically for this purpose.
Logged

Italy
Offline Offline
Full Member
***
Karma: 3
Posts: 148
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

i have to make a correction of my testing review

 wav files are supported (44.100hz/16bit/stereo) but with issues: files start to play only after 1 or 2 seconds of blank sound with a fading-in effect. tried to lower the sampling rate without any change.
Logged

Offline Offline
God Member
*****
Karma: 27
Posts: 829
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This module looks like a fun one to write a library for. It seems to support a lot of neat features that are confusing in the datasheet. I still need to pick one up, but all sources I have found are in China which for some reason right now is taking over a month to arrive here in the U.S.

I suspect that fading-in is probably some feature that is set somehow and not well documented. Otherwise, it wouldn't make a lot of sense to do it as it would actually take more effort to fade in than to just play.
Logged

Italy
Offline Offline
Full Member
***
Karma: 3
Posts: 148
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

This module looks like a fun one to write a library for. It seems to support a lot of neat features that are confusing in the datasheet. I still need to pick one up, but all sources I have found are in China which for some reason right now is taking over a month to arrive here in the U.S.

I suspect that fading-in is probably some feature that is set somehow and not well documented. Otherwise, it wouldn't make a lot of sense to do it as it would actually take more effort to fade in than to just play.
i don't know but with mp3 files everything is fine (no fade-in effect)
Logged

Connecticut, USA
Offline Offline
Full Member
***
Karma: 6
Posts: 162
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,
Is there a library for this module and a schematic to connect this to the Uno?
thanks.
Logged

It's all about the skills

Pages: [1] 2 3   Go Up
Jump to: