Professional Android Open Accessory Programming with Arduino

Book description

Learn how to control your home or car from your Android smartphone - air conditioning, lights, entertainment systems, and more!

Android Open Accessory is a new, simple, and secure protocol for connecting any microcontroller-empowered device to an Android smartphone or tablet. This Wrox guide shows Android programmers how to use AOA with Arduino, the microcontroller platform, to control such systems as lighting, air conditioning, and entertainment systems from Android devices. Furthermore, it teaches the circuit-building skills needed to create games and practical products that also take advantage of Android technology.

  • Introduces Android Open Accessory and shows how to set up the hardware and development environment

  • Explains how to code both Android and Arduino elements of an accessory

  • Features four complete projects developers can build using various sensors and indicators/actuators, including source code

  • Gives Android developers the tools to create powerful, sophisticated projects

Professional Android Open Accessory with Android ADK and Arduino opens exciting new opportunities for Android developers.

Table of contents

  1. Cover
  2. Contents
  3. Part I: Welcome to the Wonderful World of Accessories
    1. Chapter 1: Introduction to Android Open Accessory
      1. I, Android
      2. What Is Android Open Accessory?
      3. What Is Arduino?
      4. How Does AOA Work with Arduino?
      5. What Can You Do with AOA?
      6. What Can’t You Do with AOA?
      7. Why it Matters that Google Chose Arduino
      8. Summary
    2. Chapter 2: Setting up the (Arduino) Hardware
      1. Choosing Microcontroller Boards for Your Project
      2. Choosing Sensors and Actuators for Your Project
      3. Powering up Your Project
      4. Summary
    3. Chapter 3: Understanding Data Communication
      1. Data Communication Basics
      2. Hardware Layer for the Communication Protocol
      3. Introducing MQTT
      4. P2PMQTT: A Modified MQTT
      5. Summary
    4. Chapter 4: Setting up Development Environments
      1. Setting up Android Development
      2. Setting up Arduino Development
      3. Hello Open Accessory App
      4. Summary
    5. Chapter 5: Creating the Accessory Library
      1. Getting Started with Android Libraries
      2. Building the P2PMQTT Library
      3. Managing Open Accessory Connections
      4. Summary
    6. Chapter 6: Using Your Accessory Library
      1. Using Custom Android Libraries
      2. Building the Mini Projects
      3. Summary
    7. Chapter 7: Digital Arduino
      1. Digital Actuators
      2. Writing the Arduino Program
      3. Digital Sensors
      4. Summary
    8. Chapter 8: Analog Arduino
      1. Analog Actuators
      2. Analog Sensors
      3. Summary
  4. Part II: Projects
    1. Chapter 9: Bike Ride Recorder
      1. The Concept Behind Bike Computers
      2. The Design Brief
      3. Working with the Arduino Side
      4. Building the Android App
      5. Summary
    2. Chapter 10: Kitchen Lamp
      1. The Concept
      2. The Design Brief
      3. The Arduino Side
      4. Building The Android App
      5. Further Improvements
      6. Summary
    3. Chapter 11: Mr. Wiley
      1. The Concept
      2. The Design Brief
      3. The Arduino Side
      4. Building the Android App
      5. Making Further Improvements
      6. Summary
  5. Introduction
  6. Advertisements

Product information

  • Title: Professional Android Open Accessory Programming with Arduino
  • Author(s): Andreas Goransson, David Cuartielles Ruiz
  • Release date: January 2013
  • Publisher(s): Wrox
  • ISBN: 9781118454763