Go Down

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


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.

Has anyone succeeded in playing a long file ?

Thanks !


Oct 03, 2012, 03:12 pm Last Edit: Oct 05, 2012, 12:40 am by elac Reason: 1
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.
//Initializes the module.
void setup() {
void loop() {

Thanks again!!!
It's all about the skills


Hello all,
I'd like to put together a tutorial for my students for audio-from-arduino.
Would those who have succeeded with this board please tell me
1)  what code they used? (the original library posted by the-rebel-agent is the winner?)
2)  what is the proper hook-up of pins (i.e. circuit diagram).  the one posted by chathuranga  works?

thanks in advance,



I am having problems with this module, i cant change the song that sounds every time it sounds the 0000 sound

Any idea??


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.

Go Up