Sunday, March 18, 2012

Beginning Android ADK with Arduino

After more than three month I am finally back, to blog about my most recent projects. Why such a long break? Well, I had the opportunity to write about two of my most favorite topics being Android and Arduino. Only this time the scope of the publication was bigger than a blog entry. I was writing a book called "Beginning Android ADK with Arduino" which explains how Android devices can communicate with external hardware by utilizing the Android Open Accessory Development Kit (ADK).


The book is being published by Apress and will be released at the end of march 2012. You can already preorder it at your book store of choice or at any online book store like Amazon or others. You can learn a lot about the basics of the ADK enabled hardware boards, sensors and actuators by combining them with your Android device to create interesting projects. This book will give you a great start so that you can experiment with Android and Arduino on your own electronics projects.

Table of Contents
  1. Introduction
  2. Android and Arduino: Getting to Know Each Other
  3. Outputs
  4. Inputs
  5. Sounds
  6. Light Intensity Sensing
  7. Temperature Sensing
  8. A Sense of Touch
  9. Making Things Move
  10. Alarm System
I really hope that you like the book and that I can help you to bring your ideas to life. If you like it please consider giving it a good online rating and maybe even a review. I would love to hear your feedback!

I just recently attended the Droidcon Berlin which is the biggest independent Android developer conference worldwide. A lot of the talks were about sensor technology, smart home automation, robotics and the ADK. My GDDDE project, the ADK Paper Piano was even featured in one of those talks. I hope that my book will inspire some people to have a look into the ADK and will help to push the advancements in that area even further.  

3 comments:

  1. Dear Mario:

    My DemoKit app is no working on my ASUS tf101 tablet when I updated it to 4.0.3, it worked just fine when it was 3.2 . Can you share some idea with me?

    I am a robot teacher in Taiwan and would like to use Android ADK + Arduino in my class. Thanks for your help.

    David.

    ReplyDelete
  2. What exactly doesn't work anymore? I had a strange behaviour too after upgrading my Nexus S when some Gingerbread updates came out last year.

    Make sure to add the uses-feature line in your manifest and not only the uses-library line like done in the DemoKit example. It helped in my case back then and it is also recommended in the official docs. I don't know why they didn't add ot themselves in the example.

    manifest...
    uses-feature android:name="android.hardware.usb.accessory"

    ...
    application
    uses-library android:name="com.android.future.usb.accessory"
    activity ...

    If the problem still persists please have a look into the logcat messages and paste the error messages so I can have a look. Also if it didn't work paste the AndroidManifest.xml file contents.
    Hope it helped.

    ReplyDelete
  3. Dear sir, Your book is just awsome but I'm getting an issue. while I compile a simple hello world program, which communicate with Android phone, the Arduino compiler gives an error, "AndroidAccessory is not a valid type". kindly help. ikramshah@live.com

    ReplyDelete