In this chapter, you will learn how to sense the physical world with BeagleBone Black. Various types of electronic sensors, such as cameras and microphones, can be connected to the Bone using one or more interfaces provided by the standard USB 2.0 host port (as shown in Figure 2-1).
The two 46-pin cape headers (called
P9) along the long edges of the board (shown in Figure 2-2) provide connections for cape add-on boards, digital and analog sensors, and more.
The simplest kind of sensor provides a single digital status, such as off or on, and can be handled by an input mode of one of the Bone’s 65 general purpose input/output (GPIO) pins. More complex sensors might be connected using one of the Bone’s seven analog-to-digital converter (ADC) inputs or several I2C buses.
Chapter 3 discusses some of the output mode usages of the GPIO pins.
You want to acquire and attach a sensor and need to understand your basic options.
Figure 2-3 shows many of the ...