O'Reilly logo

Raspberry Pi Cookbook for Python Programmers by Tim Cox

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 7. Sense and Display Real-world Data

In this chapter, we will cover:

  • Using devices with the I2C bus
  • Reading analog data using an analog-to-digital converter
  • Logging and plotting data
  • Extending the Raspberry Pi GPIO with an I/O expander
  • Sensing and sending data to online services

Introduction

In the previous chapter, we made use of the Raspberry Pi GPIO to directly control and respond to the attached hardware by controlling or reading the GPIO pins. In this chapter, we will learn how to collect analog data from the real world and process it so we can display, log, graph, and share the data and make use of it in our programs.

We will extend the capabilities of the Raspberry Pi by interfacing with Analog-to-Digital Converters (ADCs), LCD alphanumeric ...

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