PDA

View Full Version : WTV020-SD-20SS SD Card U Disk Audio Player Interface



andybarrett1
- 21st February 2018, 08:25
Hi All...

Just looking at a possible project.... Looking to play upto 10 wav, mp3, sound files on demand from (10) pushbuttons.

button 1 plays track 1
etc to
button 10 plays track 10

Maybe a stop and reset button

At moment looking at possibly using this WTV020-SD-20SS SD Card U Disk Audio Player maybe ?

https://www.ebay.co.uk/itm/WTV020-SD-20SS-SD-Card-U-Disk-Audio-Player-Voice-Module-MP3-Voice-Module/141785239894?_trksid=p2485497.m4902.l9144

Has any one any experience of using this or any other possible suggestions that might fit the bill.

Sample code ?

Thank you for reading and taking time out to reply.

BR
Andy

MichelJasmin
- 21st February 2018, 18:22
I did a small projet with it:

https://hackaday.io/project/8299-halloween-2015-farting-skeleton

https://www.youtube.com/watch?v=WHcugA2m7bo

My WTV020 is different from yours (https://www.banggood.com/WTV020-SD-16P-U-Disk-Audio-Player-SD-Card-MP3-Voice-Module-p-78682.html?rmmds=search&cur_warehouse=CN) but it's probaby the same.

Please note :

- there are different version of firmware on theses things. Some are standalone players with play/next/prev/stop only, no serial control.
- I did this project in a hurry, for a unique day usage ;)

Normnet
- 21st February 2018, 20:18
I built a PBP wav player with a 18F26K20 48MHz which read mono data at 44k at 8bit resolution. This was non FAT.
Audio as well as GLCD are a cool choice of project as one can hear/see the results.

Norm

aerostar
- 22nd February 2018, 20:41
I have used a number of different modules - the one I like is this http://geekmatic.in.ua/pdf/Catalex_MP3_board.pdf, I made a speaking clock connected to MSF receiver. (Can be done with GPS)

You have to put a wire to one one side of the playback indicator if you want a busy signal, this I used to check if the module was already playing, and when the file playback had finished. (needed for composing messages)

About 80 individual mp3 files whole announcements controlled with 16F628A

(https://www.youtube.com/watch?v=8m4U6P4KARU)

andybarrett1
- 23rd February 2018, 10:28
Hi Aerostar

Thank you for reply.... Your choice of MP3 Player looks a lot easier to us than my initial choice, I am not a software guy :-)

Have you any sample code I can look at for ideas... I know I am being cheeky :-)

BR
Andy

andybarrett1
- 23rd February 2018, 10:31
Thank you all of you for help advice so far.

Some interesting bits of info I am digesting

BR
Andy

aerostar
- 23rd February 2018, 12:23
The commands are easy - the pdf gives them, here are 3


HSEROUT [$7E,$FF,$06,$03,$00,$00,MESSAGE,$EF] ' Plays file from sd card - eg if if button 5 is pushed then make variable MESSAGE =5, the fifth file will play.


HSEROUT [$7E,$FF,$06,$06,$00,$00,VOLUME,$EF] ' VOLUME (1 to 30) It will remember the setting after a powerdown.


HSEROUT [$7E,$FF,$06,$16,$00,$00,$00,$EF] 'STOP PLAY


Things to note

When copying your mp3 files to sd card, make sure the card

is blank, and then copy each 1 on to it seperately.

The reason being is that it takes no notice of the name,

it plays back the files in the order they are put on the

SD card. But for ease of use I name them 001, 002 etc

Alternatively there is a program that will put files in the order you need on the sdcard.
It is called drivesort http://www.anerty.net/software/file/DriveSort/?lang=en


Things to remember on startup send the stop command in case it autoplays.
Send the stop command prior to sending a play command, I cannot remember if when you send another play command it stops the current one, or queues it for play after current one ends.

Correction to previous posting re busy, there is a proper busy signal on the actual chip, it is pin 10, but you will need to VERY carefully solder a thin wire to it and connect that to your PIC for the busy signal.


http://www.da-share.com/files/datasheets/Catalex_YX5300_Docs.zip Has program and data sheets in the zip -

See page 5 of zipped datasheet - the pdf is in Chinese, but info of pinout is in English

andybarrett1
- 23rd February 2018, 12:30
Aerostar

Thank you.

Just waiting for arrival of boards to play with !

Also a handful of freeby chips from microchip

Very much appreciated.

BR
Andy

keithv
- 23rd February 2018, 19:23
This is neat. Is there a module similar to this that allows the user to record the samples as well via an electret mic or some sort of amp in?

andybarrett1
- 24th February 2018, 18:53
This is neat. Is there a module similar to this that allows the user to record the samples as well via an electret mic or some sort of amp in?

I have not seen one that can record....yet !!

Any takers ??

BR
Andy

Art
- 4th March 2018, 03:48
One that can record WAV is VLSI Solutions vs1003b.
Actually vs1003b is obsoleted now, but still readily available.
They have similar chips that are current that can decode more codecs such as FLAC.

Even vs1003b can play mp3, wav, and MIDI, and generate and play sine waves, and record wav.
In addition it can run a spectrum analyser program, and pitch shifter programs, all before your microcontroller has to do anything at all.

https://www.youtube.com/watch?v=MhgL-KUsIN0