Interfacing a keypad with the RPZ

Now that we've looked at the Raspberry Pi Zero's pull-up and pull-down resistor options, we can apply our knowledge to operating a 12- or 16-digit keypad. Let's take a look!

Getting ready

All you'll need for this recipe is a 16-key numeric keypad. One is included in the Elegoo kit, and they are available from most online retailers. A typical keyboard input looks something like this:

Getting ready

How to do it...

  1. There are eight pins on a 16-key numeric keypad. Here is how you wire them to your Raspberry Pi:

    How to do it...

  2. Understanding the internals ...

Get Raspberry Pi Zero Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.