Editing
Android and Arduino
(section)
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.
Anti-spam check. Do
not
fill this in!
== Documentation == <br> This entire process took me 3 hours, but it will take you less time if you have a more recent version of Android as explained above.<br> <br> The procedure is mostly given at:<br> [http://wiki.cyanogenmod.com/index.php?title=TMobile_G2:_Rooting T-Mobile G2 Rooting]<br> Note: The above link is now dead. I think the equivalent new link is:<br> [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> <br> Here are some other additional, useful resources:<br> wiki.cyanogen.com<br> forms.cyanogen.com<br> xda-developers.com<br> <br> IRC -- freenode: #cyanogenmod<br> IRC -- freenode: #noisebridge<br> <br> '''Steps I took to get Cyanogen on my G2:'''<br> <br> Basically, follow the instructions here:<br> http://wiki.cyanogenmod.com/index.php?title=TMobile_G2:_Rooting<br> Note: The above link is now dead. I think the equivalent new link is:<br> [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> <br> <br> ''The first step is to backup you phone.'' <br> <br> The next step is to get temporary root access.<br> The main thing here is to ''get ADB running''. One way to do this is by installing the Android SDK on your computer. Since wireless access at Noisebridge was overloaded with so many people using it at once, and since Miloh had the foresight to download the Android SDK for Windows, MacOS, and Linux, I downloaded the Windows version (yes, I use Windows) from Miloh’s account on Pony:<br> http://developer.android.com/sdk/index.html<br> ''installer_r11-windows.exe''<br> <br> But to be able to install the Android SDK, it is necessary to have the Java Development Kit running on your computer (the JRE alone is not sufficient). Download and install JDK on your computer:<br> http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u25-download-346242.html<br> ''jdk-6u25-windows-i586.exe''<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> <br> Then I followed the instructions in this Android SDK guide on how to install the Android SDK on my computer:<br> http://wiki.cyanogenmod.com/index.php?title=Howto:_Install_the_Android_SDK<br> <br> As part of installing the Android SDK, when I connected my phone to my computer, after installing everything, the ADB driver was not installed correctly. So, per the guide's instructions, I had to continue with further steps to update the ADB driver. This worked fine for me.<br> <br> (Back to the instructions for G2 Rooting.)<br> <br> Continue to follow instructions to gain temporary root access on the phone.<br> <br> Next we move on to gain permanent root access on the phone (with the added bonus of unlocking the phone!). Since the first gfree suggested (v0.04) gave me an error about failing to power cycle the eMMC, I had to use gfree v0.02. gfree v0.02 worked fine.<br> <br> I did not flash the Engineering Hboot (stated as optional in the G2 Rooting instructions).<br> <br> Continue with intructions for Installing a Custom Recovery Image.<br> <br> Continue with instructions for Flashing a Radio.<br> <br> Now continue with instructions for Flashing CyanogenMod:<br> After downloading the ROM Manager free version, it turns out that I couldn’t download the Cyanogenmod nightlies, which are the latest versions (need paid version or ROM Manager to get latest versions -- ugh), so I used the "second method" in the instructions, and downloaded the latest nightly on my computer, then transferred to G2:<br> http://download.cyanogenmod.com/?device=vision<br> ''cm_cision_full-98.zip''<br> <br> Due to legal reasons, there are a bunch of free Google Android apps that are not allowed to come with CyanogenMod. You can download these (including Android Market) and transfer them to the phone. The package I downloaded and transferred to my phone:<br> ''CyanogenMod 7''<br> <br> NOTE: When transferring files to the phone, it is fine to transfer zipped files.<br> <br> Unhook the phone and then go back to instructions using Second Version.<br> <br> 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> - Backup and restore (to backup entire OS) It takes a while.<br> - Wipe data/factory reset<br> - Wipe cache partition<br> - Advanced: Wipe dalvik cache (not in instructions, but seemed worthwhile)<br> - Install from sdcard for cm_vision_full-98<br> - Install from sdcard for Google apps (g_apps)<br> - Reboot system<br> <br> If things falter at this point, I will have a bricked phone. If things do go well, I should get the CyanogenMod logo animation boot screen. What will happen? . . . <br> SUCCESS!! -- Though it took a couple of minutes watching the static HTC screen, the CyanogenMod logo animation came up, and my phone works great!<br> <br> '''Then I installed the Google ADK software on my G2.'''<br> <br> Lilia compiled the ADK software for me.<br> Pro tip: when compiling the demo app under Eclipse, your build target (Project Properties -> Android -> Project Build Target) should be "Google APIs" API 10, which can be installed from the ADK/AVD manager -> Available packages -> Third party Add-ons -> Google Inc. -> Google APIs by Google Inc., Android API 10. This is NOT the same as the Android SDK 2.3.3 API 10. --lilia<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> - Light up the three RGB LEDs any color I like.<br> - Power the three servo motors.<br> - Turn the two relays on and off.<br> - Read the temperature sensor.<br> - Read the joystick position.<br> <br> I can't wait to play with this more!<br> <br> Additional info: There is a visually-oriented programming language for easily creating your own Android apps called App Inventor. Here is a fun intro to it:<br> [http://appinventor.googlelabs.com/about/ http://appinventor.googlelabs.com/about/]<br> I haven't used it, but I will...<br> <br> <br> [[User:Maltman23|Mitch]].<br> <br> <br> <br> <br> --------------------------------------------------------------- ''Here is the original announcement:<br>'' A couple of weeks ago Google announced Android interconnectivity with Arduino, paving the way for a cheap, easy-to-use hardware development platform. Google then created the ADK (Android Development Kit, based on Arduino), which is not cheap -- but they gave a bunch away for free at the Maker Faire last weekend.<br> [http://developer.android.com/guide/topics/usb/adk.html info on Android website]<br> and<br> [http://arduino.cc/blog/2011/05/10/google-launches-android-open-accessory-development-kit-based-on-arduino/ info on Aruino's website]<br> 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. It is likely that a Google employee and Android developer will be joining us to help out. '''When''': Sunday, 5-June-2011, 3pm<br> '''Where''': Noisebridge 2169 Mission St., 3rd floor<br> '''What''': get our Android phones to play with Arduino (including the Google ADK)<br> '''Who''': anyone (regardless of skill level) who cares to join in the fun<br><br>
Summary:
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)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Log in
Request account
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Dig in!
Noisebridge
- Status: MOVED
- Donate
- ABOUT
- Accessibility
- Vision
- Blog
Manual
MANUAL
Visitors
Participation
Community Standards
Channels
Operations
Events
EVENTS
Guilds
GUILDS
- Meta
- Electronics
- Fabrication
- Games
- Music
- Library
- Neuro
- Philosophy
- Funding
- Art
- Crypto
- Documentation/Wiki
Wiki
Recent Changes
Random Page
Help
Categories
(Edit)
Tools
What links here
Related changes
Special pages
Page information