From Swordfish Wiki

SwordfishUser: VRbotModule

This simple program demonstrates the use of a VRbot Voice recognition module. The module supports a number of built in Speaker Independent (SI) commands and up to 32 user-defined Speaker Dependent (SD) commands.

The example program shows the use of the built in SI commands to provide a branching tree command syntax. It also provides a USB bridge mode that allows communication from the "VRbot GUI" configuration program with the VRbot module to allow training and configuration, using the existing USB communications.

The VRbot Homepage lists all the datasheets and helpguides required and the VRBot GUI. The module itself can be obtained from Sparkfun here.

Hardware

The example program is configured to run on a PICDEM FS USB Demo Board, using the PDFSUSB Bootloader. The VRBot module connects to the USART using the following connections:

VRBotPICDEM
1Ground
2+5V
3RC6
4RC7

VRbot Pin1 is closest to edge of board.

Note: You should not need to cut the traces under JP3 and JP5 to disconnect the MAX232.

Testing

Connect the USB to power the PICDEM board. The Swordfish USBCDC should then enumerate and you can communicate with the board using a terminal program such as the Swordfish Serial Communicator for debugging and testing.

Every spoken command starts with the trigger "Robot". LED D2 should light to indicate that the VRbot has recognised the trigger word. From there you can select commands in the appropriate wordset, for example:

"Robot", "Move", "Forwards", "Five" or "Robot", "Hello".

On the terminal display you should see the appropriate commands being executed.

VRbot GUI

Press "p" <return> to enter pass-through mode. You can then disconnect the Serial Communicator window and connect using the VRbot GUI in order to test, configure and train commands. Press S2 on the PICDEM board to exit pass-through mode.

Note: The ClearRegisters.bas file is used to allow the use of the Microchip HID Bootloader.

You can download the files from here (plus the crucial files are listed below)

Retrieved from http://www.sfcompiler.co.uk/wiki/pmwiki.php?n=SwordfishUser.VRbotModule
Page last modified on August 21, 2011, at 02:52 PM