Android G1 serial to Arduino

posted Jan 25th 2010 11:00am by
filed under: android hacks, arduino hacks

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.



16 Responses to Android G1 serial to Arduino

  • 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

  • MrJackson says:

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

  • 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.

  • 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!

  • NatureTM says:

    Arduino and Android together? How trendy!

  • 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

  • Riley says:

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

  • Marc says:

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

  • Matteo Borri says:

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

  • taylor says:

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

  • 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.

  • 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

  • Matteo Borri says:

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

  • 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

    XHTML: You can use these tags: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

    Hack a Day serves up fresh hacks each day, every day from around the web as well as hacking related news.

    Send us your hacks






         




    Hacks

    Resources