Shop OBEX P1 Docs P2 Docs Learn Events
SPHINX4 with Parallax BOE BOT — Parallax Forums

SPHINX4 with Parallax BOE BOT

rotary9krotary9k Posts: 26
edited 2008-05-17 16:00 in BASIC Stamp
Hi all,

I have a Parallax BOE BOT that I am working on in conjunction with the SPHINX4 speech recognition engine out of CMU. My purpose is to create a speech controlled robot. Basically, I will speak into a microphone on my laptop, use the SPHINX4 engine to decode and transmit to my Parallax BOT in which the BASIC stamp will take care of the rest. I simply want to give the robot simple movement commands such as directional movement (move forward, move backwards).

I was hoping someone could help me interface the SPHINX4 with my Parallax. I have the bluetooth module for my Parallax, so I am leaning towards that option as a communication medium. I am aware the Bluetooth Class2 has limited functionality range, but for my intents and purposes, this range limitation is enough.

So is bluetooth really a viable option? I'm pretty new at all this, so I've mainly been reading and googling tutorials as I go along. As such, I have no clue where to start with this.

Any comments or ideas are appreciated!!

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2008-05-17 16:00
    As far as wireless links are concerned, they're all just serial communications ports with the Stamp using SERIN and SEROUT.

    Bluetooth does have limited range by design. You can get longer range units. There are other wireless serial solutions including xBee

    You'll have to do the interfacing of the SPHINX4 engine to a PC serial port. That's not really something that we can help you with here.
    The general idea is that your PC program would send the simple movement commands over a Bluetooth based serial port and the Stamp would receive it via the EB500 almost as if it were received over a wired serial port. Typically, this sort of thing would include a character to mark the beginning of a command, like "!", then a single letter for a command like "F", "B", "R", "L" for forward, backward, right, left. This would be followed maybe by a numeric value for time duration or speed, followed by a carriage return (13). The Stamp manual chapter on the SERIN statement has plenty of examples of how you'd wait for the "!", then receive the command and its argument(s).
Sign In or Register to comment.