continued from Programming the WT588D sound module, Part 1.
You’re now ready to upload your audio files to the WT588D sound module.
Grab your programmer module; connect it to your computer via USB. Orient it so the USB connector is up. Take the locking lever and swing it into vertical position.
Locate the notch on the WT588 module (circled in the image below). This is up. Drop the module’s pins into the bottom-most slots in the programmer. Swing the lever back to horizontal to lock it in place, as below.
In the software, select Tool, then Download Data.
In the Downloader dialog box, specify your memory flash size once again.
Click Connect. Hopefully the program now reports success. If not, before you assume you have a bad sound module or bad programming module, check your cable and your USB port.
Once you’ve connected, click on Download SPI Flash. You’ll erase the previous content of the module’s flash memory, then upload the new content, over a few seconds. Done.
We’ve got six different control modes for the sound module. I will cover the Key mode, gloss over a few of the others, then expand on the versatile serial mode I use.
First, a simple circuit with separate, keypress-activated functions, in the default Key Mode:
where VDD is 2.8-5.5V and VCC is 2.8-3.6V, and the output speaker is 0.5W, 8Ω. I wire both VCC and VDD to the same + terminal of a 3V or 3.3V source – two batteries in series, or the output of many microprocessor units, like my preferred Digispark Pros or Digistump Oaks or many (all?) Arduinos.
Even for someone who uses a microcontroller to operate their WT588D, Key mode can be useful. It tells me the audio files compiled properly. Tells me the module and the speaker are working and the upload was good. Allows me to try different control modes. Allows me to hear what the sound files sound like and go back and resample if required.
Testing by Key mode: I hook it up to a breadboard, even more simply than the diagram above. I don’t bother with a reset on pin 1. And I simply touch a wire from ground to pins P00 to P03 to test the sound sequences.
I do leave the LED and 470Ω resistor so that if the speaker or audio is faulty the LED will still indicate that a playback mode was triggered.
One thing you’ll notice – this is quiet. You’ll likely want to amp it up.