You can download the sketch and software to upload sound files to the WTD588D on my GitHub page
The WTD588D -U 32M is a digital record and playback device. It can operate as a standalone playback device or it can be controlled by a microprocessor such as an Arduino. It exists in a number of formats, the -U shows that the board has a USB to allow uploading sound files, if this is missing the board will have a smaller footprint, but not have a USB chip. The memory storage is shown by 32M (32 m byte) and there are also 16mb versions. The USB versions can be obtained for less than £3 from China, like this one on eBay.
To make the most of the WTD588D you need two pieces of software, a sound editing software like audacity (download for free from http://audacityteam.org). The other piece of software required, WT588D VoiceChip V1.6, is included on my GitHub page. Run the software (PC only) and it opens up in Korean. To switch to English click on the second menu button from the right, shown underlined in green in the screenshot below.
To save having to do this each time go to the programs folder on your hard drive and find the folder Waytronic, look for WT_App.exe, and send to the desktop as a link. Click on this shortcut to run the English version each time.
The sound files need to be in WAV format and a rate of 20,000 and Audacity is used to edit your sound files ready to be uploaded to the WT588D. The VoiceChip software will not accept WAV files saved at a rate higher than 20,000.
Start by creating a new project. Click on the File menu option (or the blank page icon on the top left of the screen) and give the project a name ( I found that for some reason not all of the keys were available on my keyboard!), then right click on the left hand pane, select LOAD from the drop down menu. Navigate to the folder containing your WAV file and click on it. The file will appear. Now right click in the right hand pane, select the file and it will be shown.
Click on the COMPILE button, once the file has compiled clock on the OPTIONS button and make sure the Control mode is set to KEY for this test (up to four keys can be defined and are operated by taking the KEY pin LOW (keys are connected to pins 16, 17, 18 and 19). Make sure the WT588D is connected to your computer via the USB and click on the UPLOAD button to upload the WAV file to the WT588D. On the UPLOAD screen click on the CONNECT button and if the WT588D is connected the STATUS lamp will turn green. Use the browse button to find the desired BIN file (created with COMPILE) and click on ONE KEY DOWNLOAD. Wait for the upload to complete.
To test that everything had worked I plugged the WT588D onto a breadboard, I connected a LED (with a 220R resistor in series) between pins 21 and 22, this is the busy LED and will light when the sound is being played.. I connected a pair of headphones (in Mono mode) between pins 9 and 10. Lastly I connected a flying lead to pin 19.
Touching the flying lead from pin 19 to pin 14 (Gnd) started the sound playing, the LED lighting. I had uploaded a full music track (which took up almost half of the available memory!) and I was surprised at the quality of playback, there seemed to be no extraneous pops or crackles and no obvious clipping.
An 8 ohm speaker connected to the two PWM pins, 9 and 10, will provide 0.5w. If a larger output is required an amplifier cannot be connected to the PWM outputs. Instead connect the input of the amplifier to the DAC pin (pin 8) and Gnd (pin 14) as shown in the diagram below.
Deleting sound files and emptying the WT5888D:
To delete individual sound files, right click in the left hand pane to show a menu. DELETE will remove selected files and EMPTY will erase all the sound files from the library. To erase files to be uploaded, click on the right hand pane, select a file and then right click will show a menu. Delete individual files or delete all files. Recompile, then upload the new set of files to the WT588D. To Erase the flash memory click on the DOWNLOAD button (second from the right) and click on ERASE.
Tracks and playing continuous or one at a time:
The column of hexadecimal numbers in the centre of the screen, labeled EQUATION NUMBER can be thought of as the track numbers. If you load all your sounds into one EQUATION NUMBER then they will all play one after another. However, if you save each sound file to a different EQUATION NUMBER and in OPERATIONS/KEY SETUP change Key 1 to NEXT LOOP, the tracks will play one at a time. Each time KEY 1 is pressed the next sound file will play, looping back to the start once all tracks have been played. If KEY 1 is changed to NEXT UNLOOP the last track will keep playing each time KEY 1 is pressed and not loop back to the start. Keys can be configured in a number of ways including PAUSE, VOLUME UP, VOLUME DOWN etc.
Setup in this manner a simple sound player can be obtained, the four available keys can me set to play, pause, stop and turn the device on or off. To be more useful providing voice to such devices as a speaking clock or to provide spoken instructions etc one of the other modes available, I2C , must be used and this will be the topic of a later blog.