O'Reilly logo

Android for the BeagleBone Black by Aravind Prakash, Andrew Henderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

Understanding SPI

The Serial Peripheral Interface (SPI) bus is a high-speed, serial ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required