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

Andrew Henderson, Aravind Prakash

Design and implement Android apps that interface with your own custom hardware circuits and the BeagleBone Black
Mapt Subscription
FREE
$29.99/m after trial
eBook
$7.50
RRP $14.99
Print + eBook
$24.99
RRP $24.99
What do I get with a Mapt Pro subscription?
  • Unlimited access to all Packt’s 5,000+ eBooks and Videos
  • Early Access content, Progress Tracking, and Assessments
  • 1 Free eBook or Video to download and keep every month after trial
What do I get with an eBook?
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with Print & eBook?
  • Get a paperback copy of the book delivered to you
  • Download this book in EPUB, PDF, MOBI formats
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
What do I get with a Video?
  • Download this Video course in MP4 format
  • DRM FREE - read and interact with your content when you want, where you want, and how you want
  • Access this title in the Mapt reader
$0.00
$7.50
$24.99
$29.99p/m after trial
RRP $14.99
RRP $24.99
Subscription
eBook
Print + eBook
Start 30 Day Trial
Subscribe and access every Packt eBook & Video.
 
  • 5,000+ eBooks & Videos
  • 50+ New titles a month
  • 1 Free eBook/Video to keep every month
Start Free Trial
 
Preview in Mapt

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