3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

Android G1 Serial To Arduino Robot

Step 8Run the whole process

Run the whole process
«
  • truckbot.jpg
  • 2010-01-24 22.14.56.jpg
  • 2010-01-24 00.05.09.jpg
  • ddms adb shell putty.jpg
  • tank.jpg
You should be able to connect the HTC USB board to the phone, fire up the cellbot.py file in ASE, and open a terminal sessions into the phone. Type "H" to have the phone say hello or any other commands from the README.txt file.

A "q" will quit the Python script on the phone and close the terminal socket.

Here is a recap of how it all works:
1. The Python script opens a socket to accept incoming telnet connections and echo the commands out the serial port
2. We connect from our PC to the phone via telnet on port 9002 and send it commands that we see on screen
3. The HTS USB board interfaces with the G1's USB port and sends the 3.3v signal into the 74LS04 pin 1.
4. The signal comes out of the chip on pin 2, goes back in on pin 3, and comes out again on pin 4 at 5v
5. Our Arduino accepts the serial signal on RX pin 0 and process it via the Cellbot.pde program
6. We can type 'q' to kill the Python script and close the telnet connection

Now that you've completed this very complicated process to send basic commands to an Arduino robot, it is time for you to hack it to be more awesome! We don't yet have 2-way serial working so the Arduino can't send commands back into the phone but we're working on that.

Stay current by subscribing to our blog at Cellbots.com.

About the Authors:

Tim Heath
Lead researcher who first put this process together at the Tech Shop in Menlo Park, where he is a member.

Ryan Hickman
Programmer who worked on the Python and Arduino code and authoered this Instructable.

« Previous StepDownload PDFView All StepsNext Step »
4 comments
Mar 27, 2010. 8:49 PMchristian2gothic says:
is it necessary for the phone on the bot to have service turned on??

are there ways to control the bot through satellite instead of using cellphone service. that way you wouldn't be dependent on a service.

Is there any way to bypass the use of cell phone towers all together???
Mar 28, 2010. 7:51 PMchristian2gothic says:
what if you wanted the bot to travel across several states?

and i've been looking into flying bots, it's been hard to find anything here on instructables.

how hard is it to send live video and sound feed from the bot to your PC??

i'm trying to gather info for a different project i'm working on??

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
13
Followers
1
Author:mranalytical