Editing Android and Arduino

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 2: Line 2:
== Intro ==
== Intro ==
<br>
<br>
On June 5th, 2011, an enthusiastic group of more than forty people gathered here at NoiseBridge for a new Android-Arduino Meetup. Pooling our collective technical know-how, we successfully managed to make our Android phones communicate with Arduino hardware.<br>
On June 5th, 2011, an enthusiastic group of more than forty people gathered here at NoiseBridge for a new Android-Arduino Meetup. Pooling our collective technical know-how , we successfully managed to make our Android phones communicate with Arduino hardware.<br>
<br>
<br>
''And'' our meetup was written up on the ''Make Magazine'' blog!:<br>
''And'' our meetup was written up on the MAKE Magazine blog!:<br>
[http://blog.makezine.com/archive/2011/06/using-the-android-open-accessory-api-without-a-nexus.html Using the Android Open Accessory API without a Nexus]<br>
[http://blog.makezine.com/archive/2011/06/using-the-android-open-accessory-api-without-a-nexus.html Using the Android Open Accessory API without a Nexus]<br>
<br>
<br>
Line 17: Line 17:
First, since Arduino support is ''only available on new versions'' of the Android OS, a lot of people, myself included, needed to '''root''' their phones to get a new version of Android OS on them.  We met at one side of the room, where [[User:Rubin110|Rubin]] gave an overview of the process of rooting an Android phone, followed by a hands-on workshop.  I had my phone rooted, installed the latest Android OS (CyanogenMod), and then got my phone to control the Google ADK hardware!  I document my procedure below so others may benefit from my experience.<br>
First, since Arduino support is ''only available on new versions'' of the Android OS, a lot of people, myself included, needed to '''root''' their phones to get a new version of Android OS on them.  We met at one side of the room, where [[User:Rubin110|Rubin]] gave an overview of the process of rooting an Android phone, followed by a hands-on workshop.  I had my phone rooted, installed the latest Android OS (CyanogenMod), and then got my phone to control the Google ADK hardware!  I document my procedure below so others may benefit from my experience.<br>
<br>
<br>
Note: By contrast, a number of other people at the meetup already had phones with versions of the Android OS compatible with Arduino hardware.  These people gathered at the electronics lab area and had their phones connected with Google ADK, standard Arduinos, and other Arduino clones (with USB Host shield).
Note: By constrast, a number of other people at the meetup already had phones with versions of the Android OS compatible with Arduino hardware.  These people gathered at the electronics lab area and had their phones connected with Google ADK, standard Arduinos, and other Arduino clones (with USB Host shield).
<br>
<br>
<br>
<br>
Line 31: Line 31:
The procedure is mostly given at:<br>
The procedure is mostly given at:<br>
[http://wiki.cyanogenmod.com/index.php?title=TMobile_G2:_Rooting T-Mobile G2 Rooting]<br>
[http://wiki.cyanogenmod.com/index.php?title=TMobile_G2:_Rooting T-Mobile G2 Rooting]<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Note:  The above link is now dead.  I think the equivalent new link is:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[http://wiki.cyanogenmod.org/w/Install_CM_for_vision#Rooting_the_T-Mobile_G2 Rooting the T-Mobile G2] -- [[User:Maltman23|Mitch]] -- 21-Jan-2013.<br>
I will not reproduce everything here, but I'll provide a few notes that are very helpful to know.<br>
I will not reproduce everything here, but I'll provide a few notes that are very helpful to know.<br>
<br>
<br>
Line 47: Line 45:
Basically, follow the instructions here:<br>
Basically, follow the instructions here:<br>
http://wiki.cyanogenmod.com/index.php?title=TMobile_G2:_Rooting<br>
http://wiki.cyanogenmod.com/index.php?title=TMobile_G2:_Rooting<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Note:  The above link is now dead.  I think the equivalent new link is:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[http://wiki.cyanogenmod.org/w/Install_CM_for_vision#Rooting_the_T-Mobile_G2 Rooting the T-Mobile G2] -- [[User:Maltman23|Mitch]] -- 21-Jan-2013.<br>
Again, I am mostly just giving helpful notes below, not reproducing the entire procedure.<br>
Again, I am mostly just giving helpful notes below, not reproducing the entire procedure.<br>
<br>
<br>
Line 64: Line 60:
''jdk-6u25-windows-i586.exe''<br>
''jdk-6u25-windows-i586.exe''<br>
<br>
<br>
Then double-click to install the Android SDK. *Note that there is a bug in the installer: When it says that JDK is needed and it can’t be found, press BACK, and then press NEXT again, and it will proceed fine from there.<br>
Then double-click to install the Android SDK, BUT THERE IS A BUG in the installer: When it says that JDK is needed and it can’t be found, press BACK, and then press NEXT again, and it will proceed fine from there.<br>
<br>
<br>
Then I followed the instructions in this Android SDK guide on how to install the Android SDK on my computer:<br>
Then I followed the instructions in this Android SDK guide on how to install the Android SDK on my computer:<br>
Line 96: Line 92:
<br>
<br>
Using ROM Manager, install cm_vision_full-98.zip
Using ROM Manager, install cm_vision_full-98.zip
After reboot, it ignored the instructions we gave it about backups, so when we get a screen full of orange text (Clockwork Flash Recovery), we did the following:<br>
After reboot, it ignored instructions we gave it about backups, so when we get a screen full of orange text (Clockwork Flash Recovery), we did the following:<br>
- Backup and restore (to backup entire OS) It takes a while.<br>
- Backup and restore (to backup entire OS) (takes a while)<br>
- Wipe data/factory reset<br>
- Wipe data/factory reset<br>
- Wipe cache partition<br>
- Wipe cache partition<br>
Line 115: Line 111:


When I connected the ADK hardware to my phone (via the USB cable), a screen appeared on my phone asking me if I want to connect.<br>
When I connected the ADK hardware to my phone (via the USB cable), a screen appeared on my phone asking me if I want to connect.<br>
SUCCESS!!  I can now control the ADK hardware with my phone and:<br>
SUCCESS!!  I can now control the ADK hardware with my phone:<br>
- Light up the three RGB LEDs any color I like.<br>
- Light up the three RGB LEDs any color I like.<br>
- Power the three servo motors.<br>
- Power the three servo motors.<br>
Line 152: Line 148:


   
   
Since many of us are relatively clueless on how to hack Android phones--or how to connect them to Arduino to do cool things--a bunch of us are getting together next Sunday to put our collective heads together and make Arduino work on our Android phones.
Since many of us are relatively clueless on how to hack Android phones or how to connect them to Arduino to do cool things, a bunch of us are getting together next Sunday to put our collective heads together and make Arduino work on our Android phones.


   
   
Please note that all contributions to Noisebridge are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see Noisebridge:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To protect the wiki against automated edit spam, we kindly ask you to solve the following CAPTCHA:

Cancel Editing help (opens in new window)