Glen’s Wheelchairbot Adds 2-Way Communications

Glen, our newest team member from Australia, has shared his new Wheelchairbot with us. He’s using two Parallax continuous rotation servos and some Tamiya plates to quickly hack together the body. What’s really impressive is the inclusion of an ultrasonic range finder to sense distance to nearby objects and then speaking it back.

Here is a quick video of Glen showing his bot using text-to-speech to speak the distance between it and a nearby object.

In order to make this work, Glen has to solve a challenging problem in getting two-way serial communications to work using Python on Android. It might sound easy but PySerial is not included in the Android Scripting Environment, so he had to roll his own code to reliably read and write to the serial port. After a lot of trial and error, the code is now in the open source Cellbots project so you can try this yourself.

Glen's Wheelchair robot

The Arduino code has also been upgraded to handle a forward-facing and/or downward facing ultrasonic range finder. We’ve tested with Parallax and MaxBotix parts, both of which share the same code. If you don’t have one, just set the range margin setting at the top of the Arduino code to zero and it won’t bother trying to check the distance.

Glen is also using a $2 Sparkfun 3.3v to 5v level converter, which will save you a lot of hassle in wiring up your 3.3v phone to a 5v Arduino board. Much easier than using a hex inverter chip for the 3.3v to 5v side, and two resistors for the 5v to 3.3v side. We’ve tested the code using both methods and they each work fine but the chip makes wiring simple and is easier to find.

Wiring configuration on the Wheelchairbot robot

We really appreciate the code submissions Glen made and he’s now an official team member. You can read more about Glen on his Garrows.com website, and we have some additional photos of Wheelchairbot in the Cellbots Picasa gallery below.

Posted in Android | 4 Comments

Send Commands Via XMPP Chat

Your Cellbot can now take commands from anywhere in the world via XMPP chat. In this example we’ve created a new Google Account just for the robot, and put the username and password in a brand new config file we’ve added to the platform. This config file also lets you set the default command method, which now includes telnet, voice recognition, or xmpp.

We started by using the SayChat script from the sample code in the Android Scripting Environment. It took a little bit of customization to incorporate it into our platform, but a rough prototype was up and running in about an hour. It really proved how powerful it is to have Python on Android, and how quickly we can iterate using it.

New config file

The config file is read wen we launch the program from ASE. We see the username being used on screen and then we know we’re ready to use chat to send commands.

Launching the code in ASE

There are now many more human readable commands to send thanks to the work we did when adding voice recognition. We still support all of the same single character commands that work well over telnet, but you can also check out the source code to see a list of full words that are available. The robot doesn’t reply back yet so hopefully someone out there can submit a patch, or we’ll get around to it soon.

All files in our scripts directory in ASE

The new config file should also make it easier for you to customize the settings for your robot and still update the main source code as new features are added. Over time we hope this develops into a nice API with multiple layers to support a wide range of devices. For now, enjoy the new XMPP capability and chatting with your robot from anywhere in the world!

Posted in Android | 3 Comments

Welcome Slashgear and Make readers

Looks like Slashgear and Make got a kick out of our latest upgrade to the Truckbot. The new neon green acrylic and voice recognition seems to be a big hit. Thanks for the support!

Posted in Uncategorized | Leave a comment

Start A Discussion In Our New Group

If you have an idea for something awesome that a Cellbot could do, or need help with building your own robot, the new discussion and support group is for you!

http://groups.google.com/group/cellbots

Start a conversation today, share your projects, or rant about your Cellbot not doing the dishes when you ask it to. All topics on robotics are welcome!

Posted in How-To | Leave a comment

Control Your Android Robot With Voice Recognition

We’re excited to show our newest capability today: voice recognition!

The Android platform comes with voice recognition built in, and thanks to the Android Scripting Environment, we only need a single line of code to use (droid.recognizeSpeech() if you were curious). We are using it for continuous recognition where you can give it command after commands, as well as the ability to initiate a single voice recognition request on demand.

Voice recognition dialog on the Android phone connected to the Cellbot robot

Voice recognition dialog on the Android phone

Check out the video below where you can see me giving it multiple commands the robot responding. Note how one time it failed to figure out what I was saying and simply asked again.

The code is live on our open source project site, and we have a new discussion group to join if you want to get help from others. Be sure to share your robots as well and we can feature them here on the site listening to your every command. Bonus points to the first robot that respond to “fetch beer”!

Posted in Android | 11 Comments