Book Image

Android Hardware Interfacing with the BeagleBone Black

Book Image

Android Hardware Interfacing with the BeagleBone Black

Overview of this book

Table of Contents (14 chapters)
Android for the BeagleBone Black
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 5. Interfacing with High-speed Sensors Using SPI

In the previous chapter, you worked with the I2C bus to communicate with an FRAM device that requires far more complex communications than that of the simple on/off digital communications used by GPIOs. I2C is very powerful and flexible, but it can be quite slow.

In this chapter, you will learn how to write an Android app that uses the BBB's SPI capabilities to retrieve environmental data from a high-speed sensor. We will cover the following topics:

  • 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