Android for the BeagleBone Black

Design and implement Android apps that interface with your own custom hardware circuits and the BeagleBone Black

Android for the BeagleBone Black

Learning
Andrew Henderson, Aravind Prakash

Design and implement Android apps that interface with your own custom hardware circuits and the BeagleBone Black
$14.99
$24.99
RRP $14.99
RRP $24.99
eBook
Print + eBook

Instantly access this course right now and get the skills you need in 2017

With unlimited access to a constantly growing library of over 4,000 eBooks and Videos, a subscription to Mapt gives you everything you need to learn new skills. Cancel anytime.

Free Sample

Book Details

ISBN 139781784392161
Paperback134 pages

Book Description

This book explores using the Android OS on the BeagleBone Black hardware platform and provides an introduction to Android's unique approach to hardware interfacing. You'll be walked through the process of installing and configuring Android on your BeagleBone Black, as well as preparing your PC development environment to create Android applications that directly interface with hardware devices. Several example projects within this book introduce you to using the GPIO, SPI, and I2C hardware interfaces of the BeagleBone Black.

You'll create Android apps that communicate directly with actual hardware components such as sensors, memory chips, switches, and LEDs. Step-by-step guidance through both the software and hardware portions of these projects is provided. Combining all of the previous projects into a single project that uses GPIO, SPI, and I2C together, you will explore the details of creating an advanced hardware interfacing app. Finally, you'll be provided with information on transitioning prototype code into code suitable for deployment on an Android-based device. With a variety of example apps that demonstrate key hardware communication concepts, this book will help you become an Android hardware interfacing pro in no time.

Table of Contents

Chapter 1: Introduction to Android and the BeagleBone Black
Looking back on Android and BeagleBone Black development
Shopping for the hardware essentials
Learning about the hardware you'll interface with
Installing Android on the BeagleBone Black
Summary
Chapter 2: Interfacing with Android
Understanding the Android HAL
Installing PacktHAL
Setting up the Android NDK for PacktHAL
Multiplexing the BBB pins
Summary
Chapter 3: Handling Inputs and Outputs with GPIOs
Understanding GPIOs
Building a GPIO-interfacing circuit
Including PacktHAL within your apps
Exploring the GPIO example app
Summary
Chapter 4: Storing and Retrieving Data with I2C
Understanding I2C
Multiplexing for I2C on the BBB
Representing I2C devices in the Linux kernel
Building an I2C-interfacing circuit
Exploring the I2C FRAM example app
Summary
Chapter 5: Interfacing with High-speed Sensors Using SPI
Understanding SPI
Multiplexing for SPI on the BBB
Representing SPI devices in the Linux kernel
Building an SPI interface circuit
Exploring the SPI sensor example app
Summary
Chapter 6: Creating a Complete Interfacing Solution
Building the complete interface circuit
Exploring the complete example app
Summary
Chapter 7: Where to Go from Here
Integrating your solution with Android
Combining your project with other hardware
Exploring the BBB's other interfaces
Summary

What You Will Learn

  • Install Android on your BeagleBone Black
  • Explore the three primary hardware interfaces of the BeagleBone Black—GPIO, SPI, and I2C
  • Construct circuits that interface the BeagleBone Black with high-speed sensors, external memory chips, and more
  • Discover the advantages and disadvantages of using GPIO, I2C, and SPI components in your interfacing projects
  • Modify Android to recognize and interface with your own custom and prototype hardware
  • Develop multithreaded apps that communicate directly with custom circuitry

Authors

Table of Contents

Chapter 1: Introduction to Android and the BeagleBone Black
Looking back on Android and BeagleBone Black development
Shopping for the hardware essentials
Learning about the hardware you'll interface with
Installing Android on the BeagleBone Black
Summary
Chapter 2: Interfacing with Android
Understanding the Android HAL
Installing PacktHAL
Setting up the Android NDK for PacktHAL
Multiplexing the BBB pins
Summary
Chapter 3: Handling Inputs and Outputs with GPIOs
Understanding GPIOs
Building a GPIO-interfacing circuit
Including PacktHAL within your apps
Exploring the GPIO example app
Summary
Chapter 4: Storing and Retrieving Data with I2C
Understanding I2C
Multiplexing for I2C on the BBB
Representing I2C devices in the Linux kernel
Building an I2C-interfacing circuit
Exploring the I2C FRAM example app
Summary
Chapter 5: Interfacing with High-speed Sensors Using SPI
Understanding SPI
Multiplexing for SPI on the BBB
Representing SPI devices in the Linux kernel
Building an SPI interface circuit
Exploring the SPI sensor example app
Summary
Chapter 6: Creating a Complete Interfacing Solution
Building the complete interface circuit
Exploring the complete example app
Summary
Chapter 7: Where to Go from Here
Integrating your solution with Android
Combining your project with other hardware
Exploring the BBB's other interfaces
Summary

Book Details

ISBN 139781784392161
Paperback134 pages
Read More

Read More Reviews