🛠️ Dive into our collection of DIY Kits, 🔊 Audio Amplifiers, Digital Scoreboards, FM transmitters, and more!
🎶 Explore endless possibilities at our new store.


Example 1- Using WTV020SD-16P music module with Arduino

This article is about playing music files using WTV020SD-16P and Arduino. This experiment is suitable for amateurs and beginners. WTV020-SD module is a voice rewritable content type of mass storage voice module, pluggable maximum capacity of 1 GB SD card memory. It can load WAV format files and AD4 formats files.

WTV020-SD module  voice chip has WTV020SD-20S master core, with MP3 control mode, the key one-to-one control mode (3 voice with the voice two), the power-loop control mode as well as the second-line serial control mode.

The following circuit layout shows a basic experiment of WTV020SD module using Arduino. In this experiment, I have connected NEXT and PREV switches only. Actually, these switches are optional because the songs stored on the microSD card can be controlled by Arduino sketch also. Besides, you might also be surprised to know that Arduino is also optional if you just want to play the songs. Check this tutorial that shows how to use this music module without Arduino. Also check this article that shows how to use an audio amplifier with the music module.

Simply go to the ‘Documents’ tab and download the sketch and upload to your Arduino. The link for the library is also available there. You can change the sketch to make the songs play the way you want.

WTV020SD EXPERIMENTS

If you want to understand more about WTV020SD module, check the product manual.

Steps:

a. Copy AD4 format music files on to your 2GB micro SD card. I tested the project with 2GB microSD card only. Download AD4 Format Files (sample files). You can make your own AD4 format files, check this tutorial.

DOWNLOAD AD4 FORMAT SAMPLE FILES- SET2-SAMPLES FILES 2 (NEW!!! uploaded on 15.1.2014)

b. Connect 3.3V power to the music module. Remember that 5V may breakdown your MicroSD card.

WTV020SD EXPERIMENTS

SEE MORE IMAGES OF THIS PROJECT

If this is your first experiment with WTV020SD-16P module, I strongly recommend you to read this article. The recommended article explains about the size of micro SD card and audio formats.

The project works with a 2GB microSD card and AD4 format music files. Click here to know how to convert a wave or mp3 format files to AD4 format.
wtv020sd

Related tutorials:

a. About WTV020SD-16P module.

b. MP3 mode of WTV020SD-16P

c. Mp3 mode and audio amplifier.

d. Basic circuit with Arduino- example 1.

e. Basic circuit (trig and select) example 2.

f. How to convert mp3/wave format files to AD4 format.

g. Troubleshooting

WATCH THE OUTPUT

Related documents:

DOWNLOAD AD4 FORMAT SAMPLE FILES- SET2-SAMPLES FILES 2 (NEW!!! uploaded on 15.1.2014)

I have copied the following sketch from this link. You can go straight to arduino webpage and copy the sketch.

LINK TO GIST PAGE

You can buy all the components for this experiment on www.buildcircuit.com. The web store is owned and operated by buildcircuit.com. Buildcircuit.com/shop is a reliable webstore for amateurs. It sells low cost components and offers fast shipping service.

  1. WTV020SD-16P
  2. 3.3v regulator
  3. 5V regulator
  4. 2GB micro SD card
  5. Audio amplifier
  6. Speaker
  7. Tactile switch
  8. Wires

wtv020sd

DO NOT USE 5V POWER SUPPLY FOR THE MODULE. 5V will burn both your MicroSD card and WTV020SD module. Please use only 3.3V power, either from Arduino or use 3.3V regulator chip.


🛠️ Dive into our collection of DIY Kits, 🔊 Audio Amplifiers, Digital Scoreboards, FM transmitters, and more!
🎶 Explore endless possibilities at our new store.


13 thoughts on “Example 1- Using WTV020SD-16P music module with Arduino

  1. Hi
    I needle help,
    I have one WVT020 P16 , I set up simple circuit without microcontroller . My SD card was format FAT16 and contains four files .ad4. these these have been downloaded from the website. When start on the module wvt020 p16, the led connected in Busy(p15) flashes and nothing else happens.
    You guys could help my?
    Graciously
    Alessandro

    1. First thing, use a 2GB microSD card, the module does not work with 1GB or other cards, I have tested with that. Second thing, press the next or prev buttons for a while ,for example 5 seconds. If it not still working, there is either problem in your microSD card or the module itself.

  2. I’m work whit wtv020sd-16 in module serial(two line), the wtv020sd-16 is connect in microcontroller PIC. When send the number for track what is in sd card the track number is play. However, if send other number track the previous track is stopped and back to start and the number of the track that was sent is only reproduced if sent twice. how can I send alternate tracks being played and they immediately?

    Graciously
    Alessandro

    MY CODE;

    void send(int addr)
    {
    unsigned int i;

    CLK = 1;
    delay_ms(2);

    for (i=16; i>0; i–)
    {
    delay_us(50);
    if((addr>>i)&0x0001 > 0)
    {DI = 0;}
    else{DI = 1;}

    delay_us(50);
    CLK = 0;
    delay_us(50);

    if(i>0){DI=1;}
    else{DI=0;}
    delay_us(50);

    if(i>0){CLK=1;}
    else{CLK=0;}
    }
    }

    if(BT1==0)
    {delay_ms(100);
    if(BT1==0)
    {while(BT1==0);
    send(STOP);
    rest();
    delay_ms(1500);
    }
    }

    if(BT2==0)
    {delay_ms(100);
    if(BT2==0)
    {while(BT2==0);
    send(N);
    if(N>=8){N=0;}
    else{N++;}
    delay_ms(200);
    }
    }

  3. I’ve seen most examples in Serial mode and MP3 mode. How do I get the module to run in 5 group of voice mode. I would like to connect 5 buttons to trigger 5 different AD4s… The datasheet says the module is a OTP module. Who sells a 5 group of voice mode module?

  4. First my question : I understand this module is able to work in several modes. However, I haven’t see anywhere how we can select the mode we want to use ?

    My module works fine. I see many people have problem with their SD card. In fact, I noticed for example a Sandisk 2Go works fine with 3.1V Power. Another same Sandisk 2Go doesn’t work under 3.6V !

    Good music !

  5. then I compile the sketch it says ” ‘wtvosd16p’ does not name a type ”
    it would be great if you could suggest the cause of the error

  6. Hi, I want to share with you my experience that may save you hours of aggravation using this module.
    You have to format the SD card using an SD formatting software. Don’t use Windows nor Mac to format the card – it won’t work!
    I used SDFormatter. configure it to a FULL ERASE.
    Good luck!

  7. hey. i built the circuit following the video on an arduino. im using a kingston 2gb micro sd card. however the led blinks but doesnt produce any sound. I noticed the recommended speakers has a power of 0.25W and the one I am using is 2W. Could that be the reason there isnt any sound??

Leave a Reply

Your email address will not be published. Required fields are marked *