O'Reilly logo

Exploring Raspberry Pi by Derek Molloy

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 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, ...

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