Skip to Main Content
Raspberry Pi Cookbook, 4th Edition
book

Raspberry Pi Cookbook, 4th Edition

by Simon Monk
December 2022
Beginner to intermediate content levelBeginner to intermediate
618 pages
12h 41m
English
O'Reilly Media, Inc.
Book available
Content preview from Raspberry Pi Cookbook, 4th Edition

Chapter 10. Hardware Basics

10.0 Introduction

This chapter contains some basic recipes for setting up and using the Raspberry Pi’s general-purpose input/output (GPIO) connector. This connector enables you to connect all sorts of interesting electronics to your Raspberry Pi.

10.1 Finding Your Way Around the GPIO Connector

Problem

You need to connect electronics to the GPIO connector, but first you need to know more about what all the pins do.

Solution

There have been three versions of the Raspberry Pi GPIO connector: two 26-pin layouts for the original Raspberry Pi, and one 40-pin layout that was introduced with the Raspberry Pi “+” models and has been in use ever since.

A 26-pin Raspberry Pi is more of a vintage collectible than a practical computer, and you’ll likely find it slow and incompatible with a whole slew of software. So, for practical terms, you’ll probably need to get a Raspberry Pi 4 or 400, or at least a Pi 3.

Figure 10-1 shows the current 40-pin layout, which is the same for all 40-pin GPIO Raspberry Pi models right up to the Raspberry Pi 4 and 400.

The top 26 pins are the same as the 26 pins of the original Raspberry Pi model B revision 2. This allows the 40-pin Raspberry Pi models to use hardware and software designed for the earlier 26-pin Raspberry Pi designs. The extra pins of the 40-pin connector are made up of three useful extra GND connections and nine GPIO pins. The ID_SD and ID_SC pins are intended for use in communicating with a special serial memory ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Raspberry Pi Cookbook, 3rd Edition

Raspberry Pi Cookbook, 3rd Edition

Simon Monk
bash Cookbook, 2nd Edition

bash Cookbook, 2nd Edition

Carl Albing, JP Vossen
Getting Started With Arduino, 4th Edition

Getting Started With Arduino, 4th Edition

Massimo Banzi, Michael Shiloh

Publisher Resources

ISBN: 9781098130916Errata PageSupplemental Content