Go Down

Topic: Arduino library for WTV020-SD-16P audio module (Read 113 times) previous topic - next topic

DerekD

I had a similar problem with it only playing the first blip of the file.  Here's what worked for me.
First, I had to use asyncPlayVoice, then add a delay equal or longer to the length of the file being played.  This keeps the busy led on while the file is playing.  I don't think I ever got PlayVoice to work, and it wouldn't play a file named 0000, the first one it would play was 0001.

My test program only played one file repeatedly, the delay just kept the loop from repeating and interrupting and restarting playing the file.  I think I'll add a millis reading like the blink without delay example so the delay does not stop the program from running anything else waiting for the file to finish playing.  This might get messy if there are a lot of files with different lengths.  Unfortunately, I just fried my module tonight by absentmindedly hooking it up to 5V!  Time to order a few more.

the-rebel-agent


My module (v1.5) plays sounds only about 0.25sec from each file.
I have used library from this post (synch and asynch playing). SD card is 64MB FAT16.
I have downloaded ad4 and wav-files from this topic. http://arduino.cc/forum/index.php?topic=110924.0
Help me.

It seems to me that your sd card is not supported

the-rebel-agent


I had a similar problem with it only playing the first blip of the file.  Here's what worked for me.
First, I had to use asyncPlayVoice, then add a delay equal or longer to the length of the file being played.  This keeps the busy led on while the file is playing.  I don't think I ever got PlayVoice to work, and it wouldn't play a file named 0000, the first one it would play was 0001.

My test program only played one file repeatedly, the delay just kept the loop from repeating and interrupting and restarting playing the file.  I think I'll add a millis reading like the blink without delay example so the delay does not stop the program from running anything else waiting for the file to finish playing.  This might get messy if there are a lot of files with different lengths.  Unfortunately, I just fried my module tonight by absentmindedly hooking it up to 5V!  Time to order a few more.

Syncplay usually works better with long audio files.

GaryY

For easy testing , load the microSD with sample .AD4 files provided in other links. Make sure to format the uSD to 16bit .  Power WTV020 pin 16 & 8.   I would just touch pin 9 or pin 13 to ground for playing the file. Touch pin 1 to reset the chip. The audio output is very low power. I used a speaker from a cell phone to pins 4 & 5 and held it really close to my ear to hear it. Once you get some confidence the sound files are working, you can add a LM386 amplifier, or I bought a 12V 15W amp module on ebay for $6.  After that can build on more controls functions. I also found the WTV020 cant really do MP3 mode unless you specifically buy it that way. Strangely I can force the WTV020 to operate like MP3 mode by interfacing with TTL gates or dry relay contact for a trigger. Using optocouplers or soliud state relays just didnt cut the cheese.
http://arduino.cc/forum/index.php/topic,115411.0.html  more info here

sopejonan

Hello:

I've been playing with rhe sound module i bouught in sparkfun. I've allready been able to make it work with a 2gb sd. As i use an arduino UNO i atached two serial diodes between the arduino and the module. I firstly conected the way i tough i was the correct one but it didn't work.
I made a test making it work as an mp3 and seen that it played sounds i conected the cables "upsidedown". the diagram i'm now using is the one seen in the image. I wanted to ask if this is normal as until what i know the diodes are not in the correct way like this...but is the way it works...if someone has an explanation...



thanks a lot!

Go Up