Chapter 10Interacting with the Physical Environment
In this chapter, you learn how to build on your knowledge of general-purpose input/output (GPIO) and bus interfacing. In particular, you can combine hardware and software to provide the Raspberry Pi (RPi) with the ability to interact with its physical environment in the following three ways: First, by controlling actuators such as motors, the RPi can affect its environment, which is very important for applications such as robotics and home automation. Second, the RPi can gather information about its physical environment by communicating with sensors. Third, by interfacing to display modules, the RPi can present information. This chapter explains how each of these interactions can be performed. Physical interaction hardware and software provides you with the capability to build advanced projects (for example, to build a robotic platform that can sense and interact with its environment). The chapter finishes with a discussion on how you can create your own C/C++ code libraries and utilize them to build highly scalable projects.
Equipment Required for This Chapter:
- Raspberry Pi, DMM, and oscilloscope
- DC motor and H-bridge interface board (e.g., DRV8835)
- Stepper motor, EasyDriver interface board, and a 5 V relay
- MCP3208 SPI ADC, op-amp (MCP6002/4), diodes, and resistors
- TMP36 temperature sensor and Sharp infrared distance sensor
- ADXL335 three-axis analog accelerometer
- 74HC595 serial shift registers
- LCD character display module, ...
Get Exploring Raspberry Pi now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.