Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,729,054 Members 40,339 Now Online
XDA Developers Android and Mobile Development Forum

[DEV][AADK] Google's Arduino based "ADK" Working on Nexus One

Tip us?
 
Nikropht
Old
#1  
Nikropht's Avatar
Member - OP
Thanks Meter 6
Posts: 55
Join Date: Nov 2008
Location: Flower Mound, Texas
Default [DEV][AADK] Google's Arduino based "ADK" Working on Nexus One

I managed to snag an Android Accessory Development Kit from Google IO.

After wrangling all the necessary code bits together I got the demo code running on the Arduino board and my Nexus One.

The first picture you can see the phone reading the sensors of the demo shield, button states, the temperature, a light sensor and the joystick position.

In the second picture the phone is controlling the led colors and has one relay turned on.

In the last picture you can see that the phone detects the board being plugged in, Android knows there is no app installed for the board and it cannot be found in market.

The Nexus One is running a rooted 2.3.4 ROM from this thread

P.S. Mod's can we get a forum section for Android Accessory Development?

Now for Pics.
Attached Thumbnails
Click image for larger version

Name:	220595_2028221823120_1171293854_32484763_2422308_o.jpg
Views:	1911
Size:	96.5 KB
ID:	600018   Click image for larger version

Name:	241461_2028219623065_1171293854_32484761_532902_o.jpg
Views:	1822
Size:	95.1 KB
ID:	600019   Click image for larger version

Name:	243297_2028218703042_1171293854_32484760_947998_o.jpg
Views:	1712
Size:	93.9 KB
ID:	600020  
Google Nexus 5 - Stock
Samsung Galaxy Tab 10.1
Samsung Galaxy Tab 2 7.0
T-Mobile HTC One
T-Mobile - G1 - CM6
Google - Nexus One - Rooted Gingerbread 2.3.4
HTC - Thunderbolt - InfectedRom Eternity
Samsung - Galaxy Nexus - Stock
Viewsonic - GTab - Flashback 3.0
Google - Android Accessory Dev Kit
 
nicholasblock
Old
#2  
nicholasblock's Avatar
Junior Member
Thanks Meter 19
Posts: 23
Join Date: Aug 2010
Location: Green Bay
Now that is bad a**!!! I was waiting for something like this!!
 
ObsidianX
Old
#3  
Member
Thanks Meter 244
Posts: 89
Join Date: Apr 2009
Location: San Jose

 
DONATE TO ME
Hey, I've been attempting to hack in the support into CM7 (nightly, 2.3.4) on my EVO without much success. I've rebuilt the kernel with the necessary flag enabled and ripped the JAR/XML files from the Nexus S update.

I've monitored logcat and seen that it does find the framework JAR (the application wouldn't install otherwise since it's a needed feature) and a dmesg scan shows that the kernel driver is being initialized.

What's happening now is I plug in the ADK and the output from the Arduino board spams that it couldn't get a protocol version from the phone. The phone slows down to a crawl as its probably being spammed with requests from the ADK for a protocol version and doesn't know what to do.

I'm at a loss here as to what I could possibly be missing. If you have any insight through your own endeavors it would be much appreciated.
The Following User Says Thank You to ObsidianX For This Useful Post: [ Click to Expand ]
 
SoyoBro
Old
#4  
Junior Member
Thanks Meter 3
Posts: 13
Join Date: Jan 2011
Great stuff! I was also at Google I/O and picked up an ADK. Can you post the apk file of your app? I'd love to try it out.

And if you're feeling generous...the code?
 
typ_ex
Old
#5  
Senior Member
Thanks Meter 2
Posts: 197
Join Date: Aug 2009
Location: Norman, OK
badass. good ****
Google Nexus One - cm 7
HTC Sensation - cm10
Nexus 4 - Stock
HTC One - Cm 10.1
Samsung Galaxy Nexus - cm10.1
Nexus 7 - glazed jellybean
 
bharathp666
Old
#6  
bharathp666's Avatar
Junior Member
Thanks Meter 1
Posts: 14
Join Date: Dec 2010
Location: Bangalore
Well done mate...
Have tried it out with arduino UNO?...
 
przemo_pl
Old
#7  
Member
Thanks Meter 3
Posts: 35
Join Date: Dec 2010
Location: Warsaw
uh uh, why i wasn't at the Google I/O
Google is doing really good s**t nowadays. I suppose that Arduino will guest in my house in some time as I am fascinated
 
Rock_Harder
Old
#8  
Member
Thanks Meter 3
Posts: 41
Join Date: Aug 2010
Location: Giessen
I am Actually using the ADK with my Nexus One on an Arduino UNO and an USB-Host Shield from Sparkfun, it works equal but only take a fraction to buy it

My first project is an interface for my Audi, at the moment i only use it to start the Motor, but in future i want to try to build a CAN-BUS interface...
 
Nikropht
Old
#9  
Nikropht's Avatar
Member - OP
Thanks Meter 6
Posts: 55
Join Date: Nov 2008
Location: Flower Mound, Texas
Sure here is the compiled ADK.

-Nik
Attached Files
File Type: apk DemoKitLaunch.apk - [Click for QR Code] (2.71 MB, 104 views)
Google Nexus 5 - Stock
Samsung Galaxy Tab 10.1
Samsung Galaxy Tab 2 7.0
T-Mobile HTC One
T-Mobile - G1 - CM6
Google - Nexus One - Rooted Gingerbread 2.3.4
HTC - Thunderbolt - InfectedRom Eternity
Samsung - Galaxy Nexus - Stock
Viewsonic - GTab - Flashback 3.0
Google - Android Accessory Dev Kit
 
Nikropht
Old
#10  
Nikropht's Avatar
Member - OP
Thanks Meter 6
Posts: 55
Join Date: Nov 2008
Location: Flower Mound, Texas
Quote:
Originally Posted by bharathp666 View Post
Well done mate...
Have tried it out with arduino UNO?...
The Arduino UNO doesn't have native USB Host support onboard like the megas.
You will need a USB Host shield and will have to modify the Arduino code.
Google Nexus 5 - Stock
Samsung Galaxy Tab 10.1
Samsung Galaxy Tab 2 7.0
T-Mobile HTC One
T-Mobile - G1 - CM6
Google - Nexus One - Rooted Gingerbread 2.3.4
HTC - Thunderbolt - InfectedRom Eternity
Samsung - Galaxy Nexus - Stock
Viewsonic - GTab - Flashback 3.0
Google - Android Accessory Dev Kit

Tags
accessory development kit, adk
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


XDA PORTAL POSTS

Remove Unnecessary WhatsApp Elements with Xposed

In modern life, you can’t underestimate the power ofthe dark sidemessaging … more

MaR-V-iN to Talk Google and Android APIs at XDA:DevCon 2014

Our international xda:devcon 14in Manchester, UK on the weekend of September … more

But First, Let Me Take a #Selfie

“Today while browsing XDA,I’m going tocheck to seeif my favorite ROM has been updated–but … more