Getting The Most Out of A WT588D Sound Module - 3 Steps (With Pictures) - Instructables
Getting The Most Out of A WT588D Sound Module - 3 Steps (With Pictures) - Instructables
Getting The Most Out of A WT588D Sound Module - 3 Steps (With Pictures) - Instructables
24, 16:30 Getting the Most Out of a WT588D Sound Module : 3 Steps (with Pictures) - Instructables
Electronically activated sounds can add a great deal to many projects. An intruder al
ert could deliver the sound of dogs barking. An ultrasonic distance detector could sp
eak the distance as numbers. The WT588D module is easy to setup once one know
s how. This guide should get you running as painlessly as possible. An example has
been given using Arduino that should also be fine for the ESP8266. I derived these fr
om my experience driving WT588D modules from other microcontrollers. I wrote a fu
https://www.instructables.com/Getting-the-Most-Out-of-a-WT588D-Sound-Module/ 1/12
21.07.24, 16:30 Getting the Most Out of a WT588D Sound Module : 3 Steps (with Pictures) - Instructables
nction for the Arduino code. Hence it is easy to incorporate. Also this should be helpf
ul for writing routines for other devices.
NEW: After some time away from this we now find the programmer is not compatible
with Windows 10. Advice from the manufacturer (Waytronic) is to use Windows 7. Thi
s is pain. I still need to use these for a project and so will be setting up W7 using an o
ld HDD that I can swap in and out of an old laptop.
The WT588D can hold up to around 270s of sound/speech at its highest quality or 10
00s at 6kHz sampling. However it can string individual sounds together to give a wid
e capability. Up to 220 ‘sequences’ can be set. For example I wanted an audio notific
ation of distances from 0.01 to 2.20m. I used sound files for ‘zero’ to ‘nine’ plus files f
or ‘zero point’, ‘one point’ and ‘two point’ to deliver the range of 220 numbers from 0.
01 to 2.20. So 220 numbers can be delivered with just 13 sound files. Note that the
WT588D modules can come with memory from 4Mb to 32Mb. If this is not clear chec
k with the supplier.
WT588D modules can be driven in several different ways. If only a few sounds or sou
nd collections are being activated it can be set to be driven by triggering input pins. T
he 16pin module has scope for 4 inputs while the 28pin module has scope for 11. If
more than these are needed, as in the case of 220 numbers, one needs to use either
the ‘one wire’ or the ‘three wire’ interface. The ‘one wire’ method is simper but needs
longer to send the data than the three wire method. The ‘three wire’ approach will be
used here. There is also a 24 sound 3x8 key matrix option for the 28pin module.
It is worth mentioning another sound module – the WTV020. This has the advantage
of taking a 2Gb micro SD card that can be programmed via PC etc. and then inserte
d. Hence it does not need a programmer. (The WT588D needs a special (but low co
st) programmer.) However there are card compatibility problems, including with Sam
sung cards, and finding cards that work is getting more difficult. This drove me to the
WT588D that is now my first choice.
The module can also drive audio amplifiers. Details are given in the WT588D VOICE
CHIP MODULE APPLICATION CIRCUIT.pdf in the download referenced later.
Parts needed:
https://www.instructables.com/Getting-the-Most-Out-of-a-WT588D-Sound-Module/ 2/12
21.07.24, 16:30 Getting the Most Out of a WT588D Sound Module : 3 Steps (with Pictures) - Instructables
The WT588D requires the sound files in a specific format. They must be mono, and f
or the best quality - a 22kHz sampling rate, and be 16 bit .wav files. A popular open s
ource sound editor is Audacity, which is pretty straightforward to use. Search on Instr
uctables if you need any help here. Audacity can be downloaded from: http://www.aud
acityteam.org/download/
You can use your own recordings or search on-line. There are many sound repositori
es. I got a barking dog sound clip from http://soundbible.com/ There were several oth
er free sound sites in the same search (Google: dog barking sound file).
A good source for numbers is OpenTX. This RC transmitter firmware needs audio fil
es for numbers for the spoken telemetry values. You can get these from: http://voices-
21.open-tx.org/opentx-taranisplus/en/ . I used english-kilrah.zip. If you want a different
language click the parent directory to see what is available. These files are mono but
32Khz and 32 bit. Hence they need processing in Audacity to enable use in the WT5
88D.
https://www.instructables.com/Getting-the-Most-Out-of-a-WT588D-Sound-Module/ 3/12
21.07.24, 16:30 Getting the Most Out of a WT588D Sound Module : 3 Steps (with Pictures) - Instructables
If the source file is stereo then combine to mono via Tracks>Stereo Track to Mono
File>Export Audio, enter file name and for ‘Save as type’ select WAV (Microsoft) sign
ed 16-bit PCM.
https://www.instructables.com/Getting-the-Most-Out-of-a-WT588D-Sound-Module/ 4/12
21.07.24, 16:30 Getting the Most Out of a WT588D Sound Module : 3 Steps (with Pictures) - Instructables
https://drive.google.com/file/d/0B4IMeS-6RiDJWGNhTHV1aF9pSDg/view
Extract WT588D.rar and then extract WT588D Software.rar in the extracted files.
Start the program. Click the 6th Chinese pair of characters (2nd from RHS) to chang
e to English.
The left pane is where the sound files are loaded. The middle ‘Equation No.:’ is the s
election of the 220 sound combinations. The right hand pane is where the sound com
binations for each ‘Equation No.’ is entered, referring to the list of sounds in the left h
and pane.
https://www.instructables.com/Getting-the-Most-Out-of-a-WT588D-Sound-Module/ 5/12
21.07.24, 16:30 Getting the Most Out of a WT588D Sound Module : 3 Steps (with Pictures) - Instructables
This will give us a standalone sound module where a Barking sound is triggered by a
n input pin.
Create a new folder called e.g. Bark. Start the WT588D VoiceChip V1.6 program. C
hange the language to English as above.
Start with a new project: File>New Project and enter a project name and select the fo
lder. Note some keyboard characters are not recognised.
Add files: Right click in the left pane, select Load and browse to the sound file and cli
ck Open.
Set the sound selection: right click the right pane (with Equation No: 00H highlighte
d), select Insert.
https://www.instructables.com/Getting-the-Most-Out-of-a-WT588D-Sound-Module/ 6/12
21.07.24, 16:30 Getting the Most Out of a WT588D Sound Module : 3 Steps (with Pictures) - Instructables
We now need to set the input and output modes. Click the hammer (or Operation>Op
tions). Set Control Mode to Key Mode. Set Sound Output to PWM if connecting a sp
eaker direct to the module or to DAC if using an amplifier. Busy Mode can be either. I
default to setting this LOW and connecting a LED from the busy output (Pin15) via a r
esistor to 5v. Leave the Pull High Resistor ticked. Click OK.
Next we need to compile the file to download. Set the Flashsize (e.g. 32M for 32Mb
module). Click the deck of cards (or Operation>Compile(save BIN)). This always giv
es the error: Fail! Click OK, and OK to the file reference, and OK to BIN File saved!
Now connect the WT558D programmer with module inserted. Note the position and
orientation in the photo above.
https://www.instructables.com/Getting-the-Most-Out-of-a-WT588D-Sound-Module/ 7/12
21.07.24, 16:30 Getting the Most Out of a WT588D Sound Module : 3 Steps (with Pictures) - Instructables
Now start the Download tool via Tool>Download Data. Click connect, the status red c
ircle should change to green. Click Erase to clear the module. Then click DownLoad.
Alternatively click OnekeyDownLoad to do these in one operation.
I used an Arduino to provide the 3.3v and 5v supplies. The application note suggests
an alternate to use two diodes to drop 5v to 3.3v. I found this is not enough and three
would probably be better. Best is a 3.3v regulator. Pin 16 can also be 3.3v when conn
ecting to systems running at this voltage.
Now apply power and trigger the sound by connecting pin13 (P00) to ground:
https://www.instructables.com/Getting-the-Most-Out-of-a-WT588D-Sound-Module/ 8/12
21.07.24, 16:30 Getting the Most Out of a WT588D Sound Module : 3 Steps (with Pictures) - Instructables
First we have to add the sound files. These will be copied into a directory with the pro
ject name. Simply right click within the left pane and select Load. Multiple sound files
can be added at a time.
Now select the ‘Equation No.’ to edit. Then right click the right hand pane, Insert, and
add either a .wav file or a silence period. Selecting .WAV brings up the list of sounds
loaded earlier into the left pane.
For the system to speak numbers from zero to 100 I loaded the processed sound file
s for zero to 20 plus 30, 40, 50…..100. So the sound for ‘23’ is created by the sound f
or 20 plus the sound for 3 and so on.
https://www.instructables.com/Getting-the-Most-Out-of-a-WT588D-Sound-Module/ 9/12
21.07.24, 16:30 Getting the Most Out of a WT588D Sound Module : 3 Steps (with Pictures) - Instructables
With the sounds loaded and collated we need to set the control and output parameter
s (Operation>Options). For multiple sounds we want the three wire interface. Directly
connected speaker needs PWM. Use of an amplifier would need ADC. Leave the Pu
ll High Resistor ticked. Click OK.
Next we need to compile the file to download. Set the Flashsize (e.g. 32M for 32Mb
module). Click the deck of cards (or Operation>Compile(save BIN)). This always giv
es the error: Fail! Click OK, and OK to the file reference, and OK to BIN File saved!
Now connect the WT558D programmer with module inserted. Note the position and
orientation in the photo in the previous step.
https://www.instructables.com/Getting-the-Most-Out-of-a-WT588D-Sound-Module/ 10/12
21.07.24, 16:30 Getting the Most Out of a WT588D Sound Module : 3 Steps (with Pictures) - Instructables
Now start the Download tool via Tool>Download Data. Click connect, the status red c
ircle should change to green. Click Erase to clear the module. Then click DownLoad.
Alternatively click OnekeyDownLoad to do these in one operation.
Now to Arduino. Download the WT588Dnos.ino file attached and put it into a folder n
amed WT588Dnos in your sketches folder. Now start the Arduino IDE and open the s
ketch.
The key function to copy to your sketches is: void WT588D(byte data)
digitalWrite(CSpin,LOW);
delay(2);
for(byte i=0;i<8;i++) {
digitalWrite(CLKpin,LOW);
digitalWrite(DATpin, HIGH);
} else {
digitalWrite(DATpin, LOW);
}
https://www.instructables.com/Getting-the-Most-Out-of-a-WT588D-Sound-Module/ 11/12
21.07.24, 16:30 Getting the Most Out of a WT588D Sound Module : 3 Steps (with Pictures) - Instructables
delayMicroseconds(25);
digitalWrite(CLKpin,HIGH);
delayMicroseconds(25);
data = data>>1;
digitalWrite(CSpin,HIGH);
The pins are defined at the beginning and can be set to others if required. You could
add a reset but I did not find this necessary.
WT588D(Num);
Where Num is a byte and set to the Equation number collection to be implemented.
Mike
https://www.instructables.com/Getting-the-Most-Out-of-a-WT588D-Sound-Module/ 12/12