Step 2: Introduction to the Arduino ADK

The Arduino ADK is basically an Arduino Mega with a built in USB host controller.  It has over 50 digital pins, 15 analog pins, and many more for communication.  It has a very fast processor with over 200kb of memory to store code!!!  In most programs, you use less than 15kb.

The Arduino ADK can communicate with Android devices, or basically any USB slave (i.e. keyboard, mouse).  It has a MAX3421E that communicates with the ATmega2560 through SPI to transmit and receive data to the Arduino ADK.

Some of these concepts might be a little confusing, but you don't have to understand them in full detail to make a simple Android app.
Nice project- no matter what your age. I am teaching an Arduino class & I' ll have them link to this. Never heard of Handbag but will have to give it a try. Thanks.
Qtechknow, great tutorial. I always learn so much from you. Keep it up. Thanks!<br><br>How would you make it detect your presence and turn the light on and off based on your proximity?<br><br>Just curious.... thanks again!<br><br>-mat
Thanks!<br> <br> I think that you could use a <a href="https://www.sparkfun.com/products/8630" rel="nofollow">PIR Motion Sensor</a>&nbsp;for sensing your presence. &nbsp;The PIR motion sensor works by taking a picture every second, and comparing them to see if the picture changed/motion occurred.<br> <br> You could use a <a href="http://www.parallax.com/tabid/768/productid/92/default.aspx" rel="nofollow">Ping proximity sensor</a> to tell how far away something is, like your hand.<br> <br> Using the Arduino ADK, the Android could be a digital display for the sensor data, and the Arduino can decide based on the readings for the sensors whether to turn the light on or not.<br> <br> I've seen a project done like this, called the <a href="http://blog.makezine.com/projects/luminch-one/" rel="nofollow">Luminch One</a>. &nbsp;It uses only a proximity sensor (basically a ping sensor, but a different brand), and when you wave your hand over the lamp, it fades on, and you can adjust the light by moving your hand up and down.
<p>Hi, I have been having problems with the files, things such as &quot;'UsbHost' was not declared in this scope&quot; and other issues. Could you post a tutorial video on youtube or make these instructions more clear on setting up the code to run on the arduino.</p><p>thanks</p><p>BTW Im 15 and studying engineering</p>
<p>same with me, hope so you can share tutorial video on youtube</p>
<p>same with me, hope so you can share tutorial video on youtube</p>
<p>What would i put in this section to make the leds blink until turned off?</p><p>void turnLedOn() { </p><p> digitalWrite(ledStripPin, HIGH); // turn LED strip on when button is pressed</p><p>}</p><p>void turnLedOff() {</p><p> digitalWrite(ledStripPin, LOW); </p><p>}</p>
Awesome I like it very much. Your instructables are so great I'm as old as you, but I'm just a begimner and you're an expert. It looks like you're able to build and make everything
<p>wow...your genius</p>
it good to have young kids inerested in electronics <br>ps im 11
I am glad to hear that you are working with ADK and Handbag . I bought an Electric Sheep board , but I have not done anything with it yet. <br>Great work Q! <br>Build_it_Bob
Thanks for all of your comments! I believe that the handbag app is compatible with the electric sheep. :D
Great project. <br>Can i use another Arduino set, say Uno, beside Mega?
Thanks! You can use the USB host shield from SparkFun with the Uno to have the Arduino work as the USB host, however I have not tested this with Android devices.
If I ever get an Arduino ADK I will definetly use this instructable.
Nice i'ble! <br>I gave ya votes on all of the contests! <br> <br>Good luck!
Thanks for the votes! <br> <br>Love your Lockduino Instructable, too!
Happy you like it!
Cool project! How did you come up with that idea?

About This Instructable




Bio: White House Maker Faire // 15 years old // CEO of Qtechknow, maker and electronics enthusiast, I teach Arduino classes, and put making into schools!
More by Qtechknow:NFC Door Lock with the Qduino Mini (under $100) Qtechknow Robot Obstacle Course Your Image on an Arduino! - TFT LCD Screen Guide 
Add instructable to: