Basics project 131 WTV020-SD-16P voice module


Basics: Project 131

Project name:  Overview of WTV020-SD-16P voice module

Tags: WTV020-SD, WTV020SD-16P, WTV020SD-20SS, WTV master chip, WTV020-16SOP, WTV020-20SOP

Attachments: sketch and Wtv020sd16p library

In this project, you needed these parts (Dear visitors. You can support our project buy clicking on the links of parts and buying them or donate us to keep this website alive. Thank you):

  1. WTV020-SD-16P voice module 1 pc
WTV020-SD

2. Jumper cables  F-M 6 pcs, jumper cables M-M 12 pcs

jumper cables

3. Arduino Nano and Mini-B USB cable 1 pc

ARDUINO NANO

4. Momentary switches (pushbuttons) 3 pcs

push button

5. Resistor 470 Ohm 1 pc

resistor

6. Speaker 1W 8 Ohm 1 pc

speaker

7. LED 1 pc

led

8. Micro SD card with adapter 1 pc

9.Small or half breadboard 1 pc

General

We will learn about the WTV020-16P voice module and how to use it with Arduino board.

Understanding the WTV020-16P voice moduleThe WTV020SD-16P voice module is an excellent module for adding music on to electronic projects. WTV020-SD voice module has MP3 mode, key mode(control 3 group of voice with volume adjustment or 5 group of voice), two line serial mode, and Loop play mode (after power on ,the module will play loop, with memory function in the mode).

  • MP3 mode: With play/stop, next , previous, vol+,vol- functions
  • Key mode (3 group of voice): One key trigger one group of voice,and with vol-, and vol+ . all keys’ default trigger modes are edge retrigger.
  • Key mode (5 group of voice): One key trigger one group of voice, trigger mode can be follows: 1. All keys are edge retrigger; 2. All keys are ON/OFF (voice will not cycle after finished); 3. All keys are ON/OFF(voice will cycle after finished).
  • Loop play mode: After power on , it will play the voices automatically . it doesn’t need to tirgger the I/O . and with memory function(when you playing voice 2, power was cut off,next time power on it will start from voice 2 or voice 3.
  • Two line serial mode: WTV020-SD controlled by MCU (Arduino, Raspberry Pi) sending data through CLK and DI . Can play voices in any address, also voices(include mute) can combined to play in this mode.
table

WTV020-SD-16P voice module can be used in automotive electronics (anti-theft alarm, parking sensor, GPS navigation systems, electronic dog, central locking), smart home system, home burglar alarm, medical instruments, the human voice prompts, music player, home appliances (cooker , rice cookers, microwave ovens), entertainment devices (game consoles, amusement machine) learning model (Zaojiao, children’s audio books), intelligent transportation devices (toll stations, car parks), communication equipment (telephone switches, telephones), industrial control areas (elevators, industrial equipment), toys and other fields.

Features:

  • SD card should be FAT format. Sampling rate supported from 6KHz~32KHz and 36KHz for ad4 voice format. 6KHz~16KHz for WAV voice format.
  • Supports automatic speech recognition folders and file playback;
  • You can play background music and commercials language;
  • You can control it with keys or through UART232 serial;
  • You can play any segment of speech;
  • Easy to operate.

Specifications:

  • Supports up to 2GB micro SD card or SPI flash 64MB max;
  • Support 4 Bit ADCPM format files.
  • Sampling rate from 6kHZ to 36KHZ for AD4 voice format.
  • Sampling rate from 6KHz~16KHz for WAV voice format
  • 16 Bit DAC / PWM audio output.
  • Key mode MP3 mode and two line serial mode are optional. Can choose one of them.
  • Copy voice files to SD card by PC.
  • Working voltage: DC2.7~3.5V
  • Quiescent current:: 3uA

WTV020-SD-16P inner circuit:

Internal wiring

WTV020-SD-20S inner circuit:

Understanding the Arduino Nano

You can read more about it here.

Signals and connections of the Arduino Nano

You can read more about it here.

Signals and connections of the WTV020-16P voice module

WTV020-16P voice module

Reset – pin for RESET button.

Audio-L – DAC audio output(+) to amplifier.

SPK+ PWM audio output to the speaker.

SPK- PWM audio output to the speaker.

P04 – pin for VOL+ button (K3) / CLK in two line serial.

GND – ground pin. Connect it to the GND pin of the Arduino board.

VDD – power input pin. Connect it to the 3V3 pin of the Arduino board.

P06 – busy pin. Used for signal output test, when the playing voice, BUSY output level is HIGH, can be connected to a LED for indication.

P02 – pin for NEXT button (K1).

P03 – pin for PREVIOUS button (K2).

P05 – pin for VOL- button (K4) / DI in two line serial.

P07 – pin for PLAY/ PAUSE button (K5).

Wiring

  1. MP3 mode (PWM output)
MP3 mode

Wiring for the WTV020-SD-16P and the WTV020-SD-20S voice modules are the same.

In PWM output, SPK+ ,SPK- connect to speaker .
In MP3 mode, edge trigger. Control I/Os by key short touch to GND, I/O P02 is PREVIOUS, P03 is NEXT, P04 is VOL+, P05 is VOL-, P07 is PLAY/STOP.
The power input is 3.3V DC, if 5V DC input, two serial diodes (IN4001 or IN4007) connect to the positive input to low the voltage.

2. MP3 mode (DAC output)

DAC output

WTV020-SD-16P DAC output,” Audio L” and module GND to amplifier. WTV020-SD-20S DAC output, “SPK+” and module GND to amplifier.
In MP3 mode, edge trigger. Control I/Os by key short touch to GND, I/O P02 is PREVIOUS, P03 is NEXT, P04 is VOL+, P05 is VOL-, P07 is PLAY/STOP.
The power input is 3V3 DC, if 5V DC input, two serial diodes (IN4001 or IN4007) connect to the positive input to low the voltage.

3.Key mode (3 group of voice) (PWM output)

wiring 3

Wiring for the WTV020-SD-16P and the WTV020-SD-20S voice modules are the same.

In PWM output, “SPK+” ,”SPK-” to speaker.
In the key mode,edge trigger. GND short touch I/O to trigger voice. P02、 P03、 P04、 P05、 P07 trigger voice 1,voice 2, vol+,vol-,and voice 3 separately. The power input is 3.3V DC, if 5V DC input, two serial diodes (IN4001 or IN4007) connect to the positive input to low the voltage.

4. Key mode (5 group of voice) (PWM output)

wiring 4

Wiring for the WTV020-SD-16P and the WTV020-SD-20S voice modules are the same.

In PWM output, “SPK+” ,”SPK-” to speaker.
In the key mode,edge trigger. GND short touch I/O to trigger voice. P02、 P03、 P04、 P05、 P07 trigger voice 1,voice 2, voice 3,voice 4,and voice 5 separately. They are edge retrigger. The power input is 3.3V DC, if 5V DC input, two serial diodes (IN4001 or IN4007)connect to the positive input to low the voltage.

5. Loop play after power on (edge trigger PAUSE/PLAY) (PWM output)

drawing 5

Wiring for the WTV020-SD-16P and the WTV020-SD-20S voice modules are the same.

In PWM output, “SPK+” ,”SPK-” to speaker.
In loop play mode,edge trigger. GND short touch I/O to trigger voice. P02, P03, P05, P07 are invalid, P04 trigger pause/play. The power input is 3.3V DC, if 5V DC input, two serial diodes (IN4001 or IN4007) connect to the positive input to low the voltage.

6. Loop play after power on (level trigger PAUSE/PLAY) (PWM output)

drawing 6

Wiring for the WTV020-SD-16P and the WTV020-SD-20S voice modules are the same.

In PWM output, “SPK+” ,”SPK-” to speaker .
In loop play mode,edge trigger. GND short touch I/O to trigger voice. P02, P03, P04, P07 are invalid, P05 trigger pause/play.
The power input is 3.3V DC, if 5V DC input, two serial diodes (IN4001 or IN4007)connect to the positive input to low the voltage.

7. Two line serial mode (PWM output) with AT89C2051 IC

Wiring for the WTV020-SD-16P and the WTV020-SD-20S voice modules are the same.

In PWM output, “SPK+” ,”SPK-” to speaker.
In the two line serial mode, edge tirgger. MCU control I/O, P02 is next, P03 is previous, P07 is pause/play.
The power input is 3.3V DC, if 5V DC input, two serial diodes (IN4001 or IN4007)connect to the positive input to low the voltage.

When the MCU send data to trigger, the data should be binary data corresponding to voice file name. MCU send signal to CLK
and ID at the same time. DI data send high first, then low. When there is no data, CLK and DI are high level. The default volume is maximum.

8. Two line serial mode (PWM output) with Arduino board

drawing 8
WTV020-16P voice module -> Arduino Nano
  • VDD -> 3.3V
  • GND -> GND
  • Reset -> D2
  • P04 (CLK) -> D3
  • P05 (DI)-> D4
  • P06 -> D5

Step by Step instruction

Most SD cards work right out of the box, but it’s possible you have one that was used in a computer or camera and it cannot be read by the SD library. Formatting the card will create a file system that the Arduino can read and write to. It’s not desirable to format SD cards frequently, as it shortens their life span. You’ll need a SD reader and computer to format your card. SD card should be in FAT16 format.

Format the SD card as FAT16. Insert the SD card in your computer. Go to My Computer and right click on the SD card. Select Format…  

formating sd card

A new window pops up. Select FAT16, press Start to initialize the formatting process and follow the onscreen instructions.

Load voice files to SD card, and rename the files in this way, for WAV format voice: 0000.wav , 0001.wav, 0002.wav……; for AD4 format voice: 0000.ad4, 0001.ad4, 0002.ad4 ……., 512 files max. In MP3 mode and Loop play mode, voice will play in order. You can find the samples here and here. If you want to convert MP3 or WAV files this project will help you.

Insert the formatted micro SD card with voice files in the micro SD slot in the WTV020-16P voice module.

Do wiring.

Open Arduino IDE.

Plug your Arduino Nano board into your PC and select the correct board and com port.

Download the wtv020 library here. To install it in Arduino IDE, go to Sketch -> Include library -> Add .zip library and open the downloaded .zip file.

After installing the libraries, restart your Arduino IDE.

Verify and upload sketch to your Arduino Nano.

Summary

We have learnt about the WTV020SD voice module and how to use it with the Arduino board. The WTV020SD is an excellent module for adding music on to electronic projects.

Thank you for reading and supporting us.

Libraries:

  • Wtv020sd16p library. You can download it here.

Project resources:

  • See attachments on the beginning of this project description.

AcoptexCom

Leave a Reply

Your email address will not be published.

Solve : *
24 − 2 =