WT588D-library for Arduino using one-line mode.
This library has been tested with a Arduino Micro and a WT588D-U-32M module. By using the one-line mode you need to connect only 3 wires(RESET, SDA, BUSY) to the board instead 5 wires(RESET, SDA, BUSY, CS, CLK) when using the three-line mode. Both protocol-descriptions can be found in the specification.
The user-manual describes the configuration and upload process in detail.
-
Convert existing soundfile
The board doesnt support arbitary file-formats so you may need to convert your exisiting soundfile. Example: Using sox to convert the file in.wav to a 16 Bit (-b 16), 22kHz (-r 22k), mono (-c 1) out.wav-File.
sox "in.wav" -b 16 -r 22k -c 1 "out.wav"
-
Configure the board-settings
There are only two releavant setting, which are important to this library. First you need to enable one-line serial mode (see section 2.5.1 of the software-user-manual). Second you need to set busy-mode to LOW as the library has methods to wait for the busy-signal.
-
Place the soundfiles to the desired equations
-
Compile settings and soundfiles
A bin file with the settings and the sound-data will be created, that we will copy to the board in step 5.
-
Transfer data to the soundboard
See section 2.12 of the user-manual.
- Start the Arduino IDE.
- Goto Sketch > Include Library > Add .ZIP Library and select the WT588D.zip
- An example is now available via File > Examples > WT588D > LoopSound. Or you can import via Sketch > Include Library > WT588D.