Android G1 serial to Arduino

With the ability to get root access to some of these new powerful pieces of hardware we call cell phones, we’re a bit surprised we haven’t seen more interfacing with external hardware. Here’s an example of some rudimentary connections between an Android G1 and an Arduino. To do this, you must have your G1 rooted, have the Android SDK installed, and then a custom python program running.  There is also a simple level shifter from 3.3v to 5v necessary for the connection to the Arduino.  You can get all the details from the instructable. They’ve documented the process quite well adn we’re excited to see what kinds of stuff people come up with.

Comments

  1. Taylor says:

    FINALLY!
    I have been wanting to use the serial output and even have the little plug from sparkfun for it, but i found that android has ZERO libraries for using the serial!
    I can write android apps, but know nothing about python. Is there some way that people could make this into a library for use with regular android Java?
    Thanks!
    -Taylor

  2. MrJackson says:

    You could use a 3.3v Arduino and avoid the level shifter.

  3. Macpod says:

    I wrote that instructable.. and soon after somebody wrote an api to use the serial port from gui apps:
    http://code.google.com/p/android-serialport-api/

    This has been out for a while :) Actually I need to update those instructions for folks running cyanogen mod. I’m pretty sure you don’t need to install a modified kernel now, and that the default baud rate used by cyanogenmod is not 9600bps.

  4. Macpod says:

    Correction, I didn’t write THAT instructable, I wrote the one to make an android serial cable:
    http://www.instructables.com/id/Android_G1_Serial_Cable/

    Sorry!

  5. NatureTM says:

    Arduino and Android together? How trendy!

  6. Matteo Borri says:

    We’ve been selling a daughterboard for that for a while now. You can see it in action here.

    http://forum.xda-developers.com/showthread.php?p=5324975

  7. Riley says:

    Agreed on the “trendy” comments. What happened to just using a bloody picaxe for this stuff?

  8. Marc says:

    Is there any way/chance u could do this on ur iphone either?

  9. Matteo Borri says:

    No, the iPhone doesn’t have a serial port (I think).

  10. taylor says:

    The iPhone *does* have a serial port. There was some info on hackaday a few years ago about it.
    -Taylor

  11. The REAL Lol says:

    Btw you misspelled the last “and”, writer of the article.

    Yes, the iPhone does have a serial port. One pin on the connecter is TX, another is RX. It’s pretty much what accessories use to connect to the iPhone and iPods, which also have it.

  12. tristan says:

    If you don’t want to mess with the firmware on your phone you could just get a BlueSMiRF. Native support with android 2.0+

    …of course that’s not as cool or reliable as what you got there

  13. Matteo Borri says:

    Wow, iphones have a serial port? That kicks ass!

  14. Spork says:
  15. zoobab says:

    You can also make a custom USB cable:

    http://hackerspace.be/Arduino_Duemilanove_in_3.3v

  16. mo says:

    Does anybody have an idea how to make the G1 boot after “power failure”? Usually you have ti hold the power-button e.g. after replacing the battery to make the phone boot, but I need a solution without “hands on” …

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s