Chapter 8. Taking Digital Inputs to the Raspberry Pi Zero

Here's what we will cover in this chapter:

  • Interfacing push switches
  • Interfacing toggle switches and setting debouncing
  • Avoiding the floating states of the input line
  • Interfacing a keypad with the RPZ
  • Interfacing RTC to get accurate time
  • Setting up interrupts on a toggle switch through GPIO
  • Interfacing RFID tags with the RPZ
  • Interfacing a GPS module with the RPZ

Introduction

In this chapter, we move from controlling external devices, such as motors and LEDs, to reading input from devices. The flexibility of the GPIO allows both, and the libraries we used previously to drive outputs work just as well for understanding device inputs.

Get Raspberry Pi Zero Cookbook 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.