1: Yes the files were converted. Just to make sure I downloaded the test file made (and tested) by another user on these forums.
2: As far as I am aware, I just needed to copy the files named 0000.ad4, 0001.ad4, etc to the SDcard root dir?
3: Ok. If the file tree is correct, then I will try a different card.
I don't have a shield to test it with, as money is tight at the moment, and I've never needed one. Please let me know about the file tree if you can, as I can't find any info about it on the web. Cheers!
I've been working on the WTV020-SD-MINI for about 1 week but to no avail. After reading up almost everything posted on the web and utilizing all the files that were shared which proved to be working, I'm still not getting any sound except a few bleeps when the busy pin's LED blinks. I'm currently using a 1GB Samsung uSD card and I think that it is the culprit.
I will be changing this uSD card to a Sandisk soon and hope it will work, fingers crossed
Will get back to you guys soon after changing the uSD.
I've been working with a Somo-14D recently on a lightsaber project. I got it generally working until I realized that it couldn't do gapless playback. The gap was very small, but very noticeable when going from a swing directly into a hum.
Do you know if this module can do gapless playback? I know the two units are similar, I just don't know how similar.
Likewise... I have been trying to get this to work and have not heard a peek in testing.
I am using the sparkfun board pictured below. https://www.sparkfun.com/products/11125
1gb sandisk microSD
1 sound file on the card at 72kb.
FAT formatted on windows 7
File is named 0.ad4, and located in the root directory
I have tried wiring it up directly to 3v power, to the 3.3v and Vcc pads and touching the reset and play pins to ground... nothing
I tried using the arduino with this library as well, and have not seen any data on the serial monitor, nor any reaction from the board.
Would anyone with experience getting this to work consider writing an idiot helper post detailing exactly how to configure the board, leads, arduino code/libraries to get a hello world equivalent file to play?
Is there anyway to isolate whether the SD card is the problem vs a user error in wiring and configuring?
Just a big thank you to the-rebel-agent for the library. I'm totally new to the arduino and electronics, but managed to get my module up and running with very little problems. I sourced my module from the e-bay link provided earlier in this thread and changed the solder-jumper to 5v. Everything seems to be working as it should.
Thanks for this library ! I managed to get my module working. I used a noname 2GD card.
However, if i call the playVoice() or asyncPlayVoice() function once, nothing happen. I have to call the function several times to make the module work.
Another problem is that the playback stops 10 ou 20s after the beginning. I tried with 8bits 22050Hz and 8bits 11025Hz.
Thank You very much the-rebel-age for this library and example.
It works great.
And thanks chathuranga for the schematic you posted, it helped.
I have 1.5v module from the link you gave.
I use these 2gb micro SD card for all my Arduino modules that need micro SD(ethernet, tft lcd, etc.). http://www.amazon.com/gp/product/B000VOU91U/ref=oh_details_o01_s00_i00 and they work great.
Also, for others if you don't want the sounds looping put all the code you need from the void loop part of the sketch in the void setup part(leaving void loop empty or commented out), then you have full control through the module buttons.
This is all you need for setup and loop for simple playback/stop and select.
Hi the-rebel-agent,
I have the Arduino 1.0.1 Software, and when I try to verify your code the following errors appear:
WTV020.c: In function 'reset_WTV20':
WTV020.c:17: error: 'PB2' undeclared (first use in this function)
WTV020.c:17: error: (Each undeclared identifier is reported only once
WTV020.c:17: error: for each function it appears in.)
WTV020.c: In function 'send':
WTV020.c:25: error: 'PB1' undeclared (first use in this function)
WTV020.c:28: error: 'for' loop initial declaration used outside C99 mode
WTV020.c:33: error: 'PB0' undeclared (first use in this function)
I'm new to the use of Arduino, so any help will be welcomed.
chathuranga:
Bravo, Tested library and worked fine..
And answering my previous question, I tested this with a 2GB SanDisk MicroSD card successfully. In other words there is no limitation of 1GB.
EDIT: SUCCESS, FINALLY!
I booted my computer in my windows partition and used this tool: https://www.sdcard.org/downloads/formatter_3/
to format my SD cards [Overwrite Formatting Option], I've only tried the SanDisk & Kingston but I assume the other one works too!
So the issue with the SD cards may just be [I speculate] nuances on the different implementations of available formatting tools (previously I was using gparted).
Alas, [previously] I am [was] not being so lucky.
I've tried with 3 different 2Gb microSD cards:
SanDisk, Kingston & unbranded
Formatted them all with FAT16 filesystem (and even tried to make a partition smaller than 1Gb)
Used several .ad4 files "fished" from these foruns and lately official sample ad4 files from the 4D website
Hey, thank you very much guys for your greetings. I am really pleased that my little piece of source code did something useful. I have been out of this forum but I am back. First of all, when you have a problem with this sound module, 90% of the times, blame the uSD card. IT is VERY pesky about them. Later, could be the wired, and If everything else did not work, just replace the module.
About the gap, It depends entirely on the software and the module. It seems that needs 20 [ms] to switch between tracks. That's the gap you heard. I have been trying to fix that, but seems impossible given the hardware. I also moved the pin from 3.3 to 5 in one of my modules ( I have 2 of them) and did not work. Put 2 diodes, as recommended and worked, but no so fine. Any other moved the pin and got fine results?