An ADC clock of 200kHz means max sample rate around 13kHz. The default arduino setting is ADC clock = 125kHz, so about 100us per conversion. This is about 100kbit/s, just beyond the capability of serial with baud rate of 115200. The datasheet suggests using an ADC clock of 50kHz to 200kHz for good results.
This module can learn 3x5 voice command. (3 group, each group with 5, max 1300ms long command)
To teach, we need a serial tool: Accessport.
- Start the program, plug in the module with the USB to TTL board.
- From the Monitor/Ports menu, select the voice module. If not see, click refresh.
- In settings menu use this settings:
Baud rate: 9600
Parity bit: NONE
Data bit: 8
Stop bit: 1
Send format: HEX
Receive format: Char
Other settings as default.
- The first time, we need to choose 'common' or 'compact' mode.
Im using 'common mode'.
- For this, send '0x36' to the board.:
Just type after the '00000000' AA36, and click 'Send'.
If its ok, above you can see 'common mode' text.
The modul now ready to learn.
- To teach the commands, send '0x11' to the module. (this mean, we record to the first group).
Type after the '00000000' AA11, and click 'Send'.
- After appear the 'START' word above, tell the first command, repeat if ask.
'Finish one' mean, you done with the command, immediately afterwards ask the 4 other command in same way.
'Group 1 finished' mean you are done, close the app, unplug the module,